[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: 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>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|