View Single Post
  #3 (permalink)  
Old January 27th, 2005, 11:19 AM
pgtips pgtips is offline
Friend of Wrox
 
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Let's say you have a key like this:
Code:
<xsl:key name="k1" match="something" use="@type"/>
then you can just do this:
Code:
<xsl:template match="stuff">
    unique : <xsl:value-of select="count(something[generate-id() = generate-id(key('k1', @type)[1])])"/>
</xsl:template>
Reply With Quote