aboutsummaryrefslogtreecommitdiff
path: root/test/transform/transformation.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/transformation.xsl')
-rw-r--r--test/transform/transformation.xsl12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/transform/transformation.xsl b/test/transform/transformation.xsl
index 9039642..7348fef 100644
--- a/test/transform/transformation.xsl
+++ b/test/transform/transformation.xsl
@@ -2,8 +2,9 @@
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:xalan="http://xml.apache.org/xalan"
xmlns:InputXSLT="function.inputxslt.application"
- exclude-result-prefixes="InputXSLT"
+ exclude-result-prefixes="InputXSLT xalan"
>
<xsl:output
@@ -16,12 +17,17 @@
<xsl:template match="/">
<test_case>
<transform>
+ <xsl:variable name="argument">
+ <key>test</key>
+ <value>42</value>
+ </xsl:variable>
+
<xsl:variable
name = "result"
- select = "InputXSLT:transform('test.xsl', 'test_actual.xml')"
+ select = "InputXSLT:transform('test.xsl', 'test_actual.xml', $argument)"
/>
- <xsl:value-of select="
+ <xsl:copy-of select="
InputXSLT:read-xml-file('test_actual.xml')/test_case/transform_test
"/>
</transform>