diff options
author | Adrian Kummerländer | 2014-05-21 20:30:37 +0200 |
---|---|---|
committer | Adrian Kummerländer | 2014-05-21 20:30:37 +0200 |
commit | 283101c02a7e6a71f221fe731168e9b0096e3766 (patch) | |
tree | 8dfe46ba47aaad2edc66bfef14e45ac5864a7fb0 /test/read_file | |
parent | 35334241ce4b76b1b1a66219ce938f27fdf39031 (diff) | |
download | InputXSLT-283101c02a7e6a71f221fe731168e9b0096e3766.tar InputXSLT-283101c02a7e6a71f221fe731168e9b0096e3766.tar.gz InputXSLT-283101c02a7e6a71f221fe731168e9b0096e3766.tar.bz2 InputXSLT-283101c02a7e6a71f221fe731168e9b0096e3766.tar.lz InputXSLT-283101c02a7e6a71f221fe731168e9b0096e3766.tar.xz InputXSLT-283101c02a7e6a71f221fe731168e9b0096e3766.tar.zst InputXSLT-283101c02a7e6a71f221fe731168e9b0096e3766.zip |
Added test case base template and improved transformer helper template
* test case base template contains the basic test case markup
** it was mostly created to include include-path resolution into the test cases
* improved transformer helper template by separating the external function call into its own variable
Diffstat (limited to 'test/read_file')
-rw-r--r-- | test/read_file/reference.xml | 4 | ||||
-rw-r--r-- | test/read_file/transformation.xsl | 15 |
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><?xml version="1.0"?> +<test_case><?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 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> |