Subject: Re: [xsl] Count of unique attribute names From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx> Date: Fri, 3 Nov 2006 12:50:24 +0000 |
Hi list
My XSLT 2.0 solution below is working. I am just wondering if there is an easier way that could perhaps bring distinct-values() into play?
<xsl:variable name="uniqueAttributeNames"> <xsl:for-each-group select="//@*" group-by="local-name()"> <xsl:sequence select="local-name()"/> </xsl:for-each-group> </xsl:variable>
<xsl:variable name="uniqueAttributeNames" select="distinct-values(//@*/local-name())" as="xs:string+"/>
cheers andrew
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Count of unique attribute nam, Jesper Tverskov | Thread | RE: [xsl] Count of unique attribute, Michael Kay |
[xsl] How to retain subtree element, Karl | Date | RE: [xsl] Count of unique attribute, Michael Kay |
Month |