Subject: RE: [xsl] Counting uniquely selected values of elements From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx> Date: Mon, 14 Apr 2003 13:19:57 +0000 |
See <http://jenitennison.com/xslt/grouping>
<xsl:key name="uniq" match="a/b/c" use="." />
<xsl:template match="root">
<xsl:for-each select="a/b/c[generate-id(.) = generate-id(key('uniq', .))]">
<xsl:value-of select="."/> occurs <xsl:value-of select="count(key('uniq', .))"/> times. <xsl:text/>
</xsl:for-each>
</xsl:template>
Cheers,
Jarno - neuroticfish: wakemeup! (club-edit)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Counting uniquely selecte, Jarno . Elovirta | Thread | RE: [xsl] Counting uniquely selecte, Jarno . Elovirta |
RE: [xsl] Grouping is not working t, Américo Albuquerque | Date | RE: [xsl] apply-templates - A doubt, Américo Albuquerque |
Month |