1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-09-11 16:10:45 +03:00
Files
libxslt/tests/general/bug-221.xsl
Nick Wellnhofer 5b0965010a Backup XPath context node in xsltInitCtxtKey
Regression caused by commit 029d0e96.

Closes #66.
2019-06-12 12:01:26 +02:00

16 lines
451 B
XML

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:key name="actions" match="/model/resource/action" use="@name"/>
<xsl:template match="action">
<xsl:if test="generate-id(key('actions', @name)[1]) = generate-id(.)">
<r><xsl:value-of select="@name"/></r>
</xsl:if>
</xsl:template>
<xsl:template match="/">
<xsl:apply-templates select="model/resource/action"/>
</xsl:template>
</xsl:stylesheet>