summaryrefslogtreecommitdiff
path: root/tests/exslt/functions/function.11.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/exslt/functions/function.11.xsl')
-rw-r--r--tests/exslt/functions/function.11.xsl32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/exslt/functions/function.11.xsl b/tests/exslt/functions/function.11.xsl
new file mode 100644
index 00000000..7a3437a6
--- /dev/null
+++ b/tests/exslt/functions/function.11.xsl
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet
+ version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:func="http://exslt.org/functions"
+ xmlns:test="test"
+ extension-element-prefixes="func"
+>
+ <func:function name="test:fragment">
+ <func:result>
+ <a>
+ <b/>
+ </a>
+ </func:result>
+ </func:function>
+
+ <func:function name="test:func1">
+ <xsl:variable name="var" select="test:fragment()"/>
+ <func:result select="$var"/>
+ </func:function>
+
+ <func:function name="test:func2">
+ <xsl:variable name="var" select="test:func1()"/>
+ <func:result select="$var"/>
+ </func:function>
+
+ <xsl:template match="/">
+ <xsl:copy-of select="test:func2()"/>
+ </xsl:template>
+</xsl:stylesheet>
+