aboutsummaryrefslogtreecommitdiff
path: root/test/default_params
diff options
context:
space:
mode:
Diffstat (limited to 'test/default_params')
-rw-r--r--test/default_params/reference.xml2
-rw-r--r--test/default_params/transformation.xsl25
2 files changed, 8 insertions, 19 deletions
diff --git a/test/default_params/reference.xml b/test/default_params/reference.xml
index fcdbacf..566064b 100644
--- a/test/default_params/reference.xml
+++ b/test/default_params/reference.xml
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<test_case>
-<default_params>
<target_file>actual.xml</target_file>
<parent_directory>default_params</parent_directory>
-</default_params>
</test_case>
diff --git a/test/default_params/transformation.xsl b/test/default_params/transformation.xsl
index 1bbddef..0ffaea0 100644
--- a/test/default_params/transformation.xsl
+++ b/test/default_params/transformation.xsl
@@ -6,27 +6,18 @@
exclude-result-prefixes="InputXSLT"
>
-<xsl:output
- method="xml"
- omit-xml-declaration="no"
- encoding="UTF-8"
- indent="yes"
-/>
+<xsl:include href="[testcase.xsl]"/>
<xsl:param name="target-file"/>
<xsl:param name="parent-directory"/>
-<xsl:template match="/">
-<test_case>
- <default_params>
- <target_file>
- <xsl:value-of select="$target-file"/>
- </target_file>
- <parent_directory>
- <xsl:value-of select="$parent-directory"/>
- </parent_directory>
- </default_params>
-</test_case>
+<xsl:template name="implementation">
+ <target_file>
+ <xsl:value-of select="$target-file"/>
+ </target_file>
+ <parent_directory>
+ <xsl:value-of select="$parent-directory"/>
+ </parent_directory>
</xsl:template>
</xsl:stylesheet>