aboutsummaryrefslogtreecommitdiff
path: root/test/read_xml_file
diff options
context:
space:
mode:
Diffstat (limited to 'test/read_xml_file')
-rw-r--r--test/read_xml_file/reference.xml2
-rw-r--r--test/read_xml_file/transformation.xsl19
2 files changed, 5 insertions, 16 deletions
diff --git a/test/read_xml_file/reference.xml b/test/read_xml_file/reference.xml
index d82dc9c..26b5f82 100644
--- a/test/read_xml_file/reference.xml
+++ b/test/read_xml_file/reference.xml
@@ -1,9 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<test_case>
-<function_read_xml_file>
<item>Hello 1</item>
<item>Hello 2</item>
<item>Hello 3</item>
<item>Hello 4</item>
-</function_read_xml_file>
</test_case>
diff --git a/test/read_xml_file/transformation.xsl b/test/read_xml_file/transformation.xsl
index ba6fed1..e0a3794 100644
--- a/test/read_xml_file/transformation.xsl
+++ b/test/read_xml_file/transformation.xsl
@@ -6,21 +6,12 @@
exclude-result-prefixes="InputXSLT"
>
-<xsl:output
- method="xml"
- omit-xml-declaration="no"
- encoding="UTF-8"
- indent="yes"
-/>
+<xsl:include href="[testcase.xsl]"/>
-<xsl:template match="/">
-<test_case>
- <function_read_xml_file>
- <xsl:for-each select="InputXSLT:read-xml-file('../common/test.txt')/tester/eintrag">
- <item><xsl:value-of select="."/></item>
- </xsl:for-each>
- </function_read_xml_file>
-</test_case>
+<xsl:template name="implementation">
+ <xsl:for-each select="InputXSLT:read-xml-file('../common/test.txt')/tester/eintrag">
+ <item><xsl:value-of select="."/></item>
+ </xsl:for-each>
</xsl:template>
</xsl:stylesheet>