summaryrefslogtreecommitdiff
path: root/tests/general/bug-199.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/general/bug-199.xsl')
-rw-r--r--tests/general/bug-199.xsl18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/general/bug-199.xsl b/tests/general/bug-199.xsl
new file mode 100644
index 00000000..9a0a9848
--- /dev/null
+++ b/tests/general/bug-199.xsl
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <xsl:template match="node()|@*">
+ <xsl:copy>
+ <xsl:for-each select="namespace::a">
+ <xsl:attribute name="ns">
+ <xsl:value-of select="."/>
+ <xsl:text>(</xsl:text>
+ <xsl:number count="*" level="any"/>
+ <xsl:text>)</xsl:text>
+ </xsl:attribute>
+ </xsl:for-each>
+ <xsl:apply-templates select="node()|@*"/>
+ </xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>