summaryrefslogtreecommitdiff
path: root/tests/general/bug-183.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/general/bug-183.xsl')
-rw-r--r--tests/general/bug-183.xsl9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/general/bug-183.xsl b/tests/general/bug-183.xsl
new file mode 100644
index 00000000..429951fe
--- /dev/null
+++ b/tests/general/bug-183.xsl
@@ -0,0 +1,9 @@
+<?xml version='1.0'?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:key name="index" match="val" use="current()/@k"/>
+<xsl:template match="/">
+ <result>
+ <xsl:value-of select="key('index', 'one')"/>
+ </result>
+</xsl:template>
+</xsl:stylesheet>