diff options
Diffstat (limited to 'tests/general/bug-221.xsl')
-rw-r--r-- | tests/general/bug-221.xsl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/general/bug-221.xsl b/tests/general/bug-221.xsl new file mode 100644 index 00000000..9b4af652 --- /dev/null +++ b/tests/general/bug-221.xsl @@ -0,0 +1,15 @@ +<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> |