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/default_params | |
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/default_params')
-rw-r--r-- | test/default_params/reference.xml | 2 | ||||
-rw-r--r-- | test/default_params/transformation.xsl | 25 |
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> |