Hi,
Tempore 10:08:36, die Thursday 22 September 2005 AD, hinc in foro {comp.text.xml} scripsit Eugen <el******@web.de>:
I want distinct <category> and <desc> values in the kind:
C1_D1
C2_D2
C3_D3
In XSLT 1.0 , it's common practice to approach this as a standard grouping problem, which in it's turns is easily tackled with the Muenchian technique.
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:key name="node" match="node" use="concat(category,'_',desc)"/>
<xsl:template match="dataset">
<xsl:for-each select="node[generate-id()=
generate-id(key('node',concat(category,'_',desc))[1])]">
<xsl:value-of select="concat(category,'_',desc)"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
regards,
--
Joris Gillis (
http://users.telenet.be/root-jg/me.html)
«Error, keyboard not found— press F1 to continue» , BIOS