xslt-processor icon indicating copy to clipboard operation
xslt-processor copied to clipboard

Implement <xsl:key>

Open menelai opened this issue 10 months ago • 1 comments

Should work this way:

<xsl:key name="term-key" match="mark" use="concat(@term, ../../@id)"/>
<xsl:template match="marks">
  <xsl:variable name="unique-term" select="mark[generate-id()=generate-id(key('term-key', concat(@term, ../../@id)))]/@term"/>
</xsl:template>

Thank you

menelai avatar Apr 25 '24 13:04 menelai

I had the same issue when I try to combine xml and stylesheet from nmap(https://svn.nmap.org/nmap/docs/nmap.xsl)

tenaz3 avatar Jun 10 '24 15:06 tenaz3