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

RE: Doublet

Subject: RE: Doublet
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 15 Mar 2005 13:53:26 -0000
michael doublet
Eliminating duplicates is a simple example of a grouping problem. For
grouping in XSLT, see http://www.jenitennison.com/xslt/grouping

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Sven Waibel [mailto:sven.waibel@xxxxxxxx] 
> Sent: 15 March 2005 13:01
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Doublet
> 
> Hi everybody,
> 
> i got following result:
> 
> 10000
> 10001
> 1
> 10000
> 
> I want to have:
> 
> 10000
> 10001
> 1
> 
> I don't want to get doublets.
> 
> Does anybody know something about it?
> 
> Thanks in advance and best regards
> Sven
> 
> 
> my xsl:
> ----------------------------------
> <xsl:template match="pc">
> 		<xsl:for-each select="error-id">
> 			<fo:block>
> 				<xsl:value-of select="@name"/>
> 			</fo:block>
> 		</xsl:for-each>
> 	</xsl:template>
> 
> ---------------------------------
> my xml:
> ---------------------------------
> <tc>
> 	<pc>
> 		<error-id id="1" name="10000" />
> 		<error-id id="2" name="10001"/>
> 	</pc>
> 	<pc>
> 		<error-id id="3" name="1" />
> 		<error-id id="1" name="10000"/>
> 	</pc>
> </tc>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.