Hi im generating html from my xsl and i want to generate a unique id for a tag, this is in order to call a function in js inside the xsl that needs this id…
this is a simplifiyed sample of my xsl
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
<xsl:template match="/">
<xsl:for-each select="data/item">
<xsl:sort select="position()" data-type="number" order="descending"/>
<span id="spanDescription"/>
</xsl:for-each>
</div>
</xsl:template>
</xsl:stylesheet>
Use a variable and
concat():