Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement <xsl:key> #93

Open
menelai opened this issue Apr 25, 2024 · 1 comment
Open

Implement <xsl:key> #93

menelai opened this issue Apr 25, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@menelai
Copy link

menelai commented Apr 25, 2024

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

@leonelsanchesdasilva leonelsanchesdasilva self-assigned this Apr 27, 2024
@leonelsanchesdasilva leonelsanchesdasilva added the enhancement New feature or request label Apr 27, 2024
@tenaz3
Copy link

tenaz3 commented Jun 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants