Code:
<xsl:variable name="root" select="/"/>
Code:
<xsl:template match="/">
<catalogo>
<xsl:for-each select="fn:distinct-values(//autore)">
<autore>
<nome><xsl:copy-of select="."/></nome>
<xsl:variable name="nome" select="."/>
<xsl:copy-of select="$root/biblioteca/libro[autore=$nome]/titolo"/>
</autore>
</xsl:for-each>
</catalogo>
</xsl:template>
wanna eliminate the
<xsl:for-each select="fn:distinct-values(//autore)">
is there a function to transform the array "fn:distinct-values(//autore)" to a tree, without using the for-each instrunction?
tnx :)
xslt learner :)