diff options
Diffstat (limited to 'test/read_file')
-rw-r--r-- | test/read_file/reference.xml | 11 | ||||
-rw-r--r-- | test/read_file/transformation.xsl | 24 |
2 files changed, 35 insertions, 0 deletions
diff --git a/test/read_file/reference.xml b/test/read_file/reference.xml new file mode 100644 index 0000000..7cbcc95 --- /dev/null +++ b/test/read_file/reference.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<test_case> +<function_read_file><?xml version="1.0"?> +<tester> + <eintrag>Hello 1</eintrag> + <eintrag>Hello 2</eintrag> + <eintrag>Hello 3</eintrag> + <eintrag>Hello 4</eintrag> +</tester> +</function_read_file> +</test_case> diff --git a/test/read_file/transformation.xsl b/test/read_file/transformation.xsl new file mode 100644 index 0000000..96b8976 --- /dev/null +++ b/test/read_file/transformation.xsl @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:InputXSLT="function.inputxslt.application" + exclude-result-prefixes="InputXSLT" +> + +<xsl:output + method="xml" + omit-xml-declaration="no" + encoding="UTF-8" + indent="yes" +/> + +<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> + +</xsl:stylesheet> |