Subject: RE: Doublet
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 15 Mar 2005 13:53:26 -0000
|
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 |
- Doublet
- Sven Waibel - 15 Mar 2005 13:00:59 -0000
- Michael Kay - 15 Mar 2005 13:53:52 -0000 <=
|
|