xsl-list
[Top] [All Lists]

RE: Doublet

2005-03-15 06:53:26
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(_dot_)waibel(_at_)imbus(_dot_)de] 
Sent: 15 March 2005 13:01
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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>


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>