Quantcast
Channel: Development With A Dot
Viewing all articles
Browse latest Browse all 404

Distinct Values in XSLT

$
0
0

How to get distinct attribute values:

   1:<xsl:variablename="rows"select="/some/path/@name"/>
   2:<xsl:for-eachselect="$rows">
   3:<xsl:iftest="generate-id() = generate-id($rows[. = current()][1])">
   4:<xsl:value-ofselect="."/>
   5:<br/>
   6:</xsl:if>
   7:</xsl:for-each>

Viewing all articles
Browse latest Browse all 404

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>