summaryrefslogtreecommitdiffstats
path: root/libxslt/tests/general/bug-47-.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'libxslt/tests/general/bug-47-.xsl')
-rw-r--r--libxslt/tests/general/bug-47-.xsl18
1 files changed, 18 insertions, 0 deletions
diff --git a/libxslt/tests/general/bug-47-.xsl b/libxslt/tests/general/bug-47-.xsl
new file mode 100644
index 0000000..60f11bb
--- /dev/null
+++ b/libxslt/tests/general/bug-47-.xsl
@@ -0,0 +1,18 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version='1.0'>
+
+<xsl:template name="test">
+<xsl:text>SUCCESS</xsl:text>
+</xsl:template>
+
+<xsl:template match="/">
+<xsl:variable name="foo">
+<xsl:call-template name="test"/>
+</xsl:variable>
+<xsl:if test="1">
+<xsl:value-of select="$foo"/>
+</xsl:if>
+</xsl:template>
+
+</xsl:stylesheet>