aboutsummaryrefslogtreecommitdiff
path: root/test/read_file
diff options
context:
space:
mode:
Diffstat (limited to 'test/read_file')
-rw-r--r--test/read_file/reference.xml4
-rw-r--r--test/read_file/transformation.xsl15
2 files changed, 4 insertions, 15 deletions
diff --git a/test/read_file/reference.xml b/test/read_file/reference.xml
index 7cbcc95..0bca6f7 100644
--- a/test/read_file/reference.xml
+++ b/test/read_file/reference.xml
@@ -1,11 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
-<test_case>
-<function_read_file>&lt;?xml version="1.0"?&gt;
+<test_case>&lt;?xml version="1.0"?&gt;
&lt;tester&gt;
&lt;eintrag&gt;Hello 1&lt;/eintrag&gt;
&lt;eintrag&gt;Hello 2&lt;/eintrag&gt;
&lt;eintrag&gt;Hello 3&lt;/eintrag&gt;
&lt;eintrag&gt;Hello 4&lt;/eintrag&gt;
&lt;/tester&gt;
-</function_read_file>
</test_case>
diff --git a/test/read_file/transformation.xsl b/test/read_file/transformation.xsl
index 96b8976..e17734e 100644
--- a/test/read_file/transformation.xsl
+++ b/test/read_file/transformation.xsl
@@ -6,19 +6,10 @@
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_file>
- <xsl:value-of select="InputXSLT:read-file('../common/test.txt')"/>
- </function_read_file>
-</test_case>
+<xsl:template name="implementation">
+ <xsl:value-of select="InputXSLT:read-file('../common/test.txt')"/>
</xsl:template>
</xsl:stylesheet>