[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Variable containing unique values

Subject: Variable containing unique values
From: "Hesselberth, Jan" <Jan.Hesselberth@xxxxxxxxxxxxxxxxxx>
Date: Wed, 21 May 2008 14:59:53 +0100
 Variable containing unique values
I've read the book and looked at the examples but I can't manage to
create a variable containing unique values for my xml. All I get is a
list of all values.
I need a variable containing unique values for rolloverDate. I've tried
all sorts of rules for testing for current rolloverDate not being equal
to previous rollover dates but I can't get it to work.
Can you help please.
	Jan Hesselberth

The code I have is

	<xsl:variable name="unique-dates">
select="/rolloverDate[not(preceding::rolloverDate= current())]"/>
		<xsl:copy-of select="."/>

The xml snippet looks like

<summaryAccount id="12345">
	<element id="1">
	<element id="2">
<summaryAccount id="12346">
	<element id="1">
<summaryAccount id="12347">
	<element id="1">
	<element id="2">


The information contained in this e-mail and any attachments are private and
This message is solely intended for a particular recipient, if you are not the
recipient you are prohibited from storing, copying, disseminating or using the
in any way.  If you received this e-mail in error please notify the sender
E-mail transmission cannot be guaranteed to be secure or error-free as
information could
be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses.
The sender therefore does not accept liability for any errors, viruses or
omissions in the
contents of this message, which arise as a result of transmission. This e-mail
is not
intended to create legally binding commitments on behalf of Northern Rock plc,
nor do its
contents reflect the corporate views or policies of Northern Rock plc.

Northern Rock plc,
Registered Office Northern Rock House Gosforth Newcastle upon Tyne NE3 4PL.
Registered in England, number 3273685. Telephone No: 0191 2857191

Northern Rock plc is authorised and regulated by the Financial Services
Authority for
deposit-taking; advising on and arranging mortgages and general insurance; and
introducing life assurance and investments.

This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.