diff options
author | Adrian Kummerländer | 2014-05-17 13:59:33 +0200 |
---|---|---|
committer | Adrian Kummerländer | 2014-05-17 13:59:33 +0200 |
commit | 246a8e020d97cfc3b4409996f99450fa95b730b1 (patch) | |
tree | 85dd9b1dc7bf739ba8bc32cae007b983e19f0fb9 /test/transform/test.xsl | |
parent | e7f9b4789d5b0971a14ac00c9bc834f7154ccb9f (diff) | |
download | InputXSLT-246a8e020d97cfc3b4409996f99450fa95b730b1.tar InputXSLT-246a8e020d97cfc3b4409996f99450fa95b730b1.tar.gz InputXSLT-246a8e020d97cfc3b4409996f99450fa95b730b1.tar.bz2 InputXSLT-246a8e020d97cfc3b4409996f99450fa95b730b1.tar.lz InputXSLT-246a8e020d97cfc3b4409996f99450fa95b730b1.tar.xz InputXSLT-246a8e020d97cfc3b4409996f99450fa95b730b1.tar.zst InputXSLT-246a8e020d97cfc3b4409996f99450fa95b730b1.zip |
Improved FunctionTransform test case transformations
* added basic "transformer" wrapper template to call "InputXSLT:transform"
** this removes the need to specifiy arguments in a separate xslt variable
Diffstat (limited to 'test/transform/test.xsl')
-rw-r--r-- | test/transform/test.xsl | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/test/transform/test.xsl b/test/transform/test.xsl index 677e80d..9a1ea7a 100644 --- a/test/transform/test.xsl +++ b/test/transform/test.xsl @@ -14,17 +14,14 @@ indent="yes" /> -<xsl:param name="arguments"/> +<xsl:param name="parameters"/> <xsl:template match="/"> <test_case> <transform_test> - <argument_value> - <xsl:value-of select="xalan:nodeset($arguments)/value"/> - </argument_value> - <transformation_content> - <xsl:value-of select="InputXSLT:read-file('transformation.xsl')"/> - </transformation_content> + <parameter_value> + <xsl:value-of select="$parameters/test * 2"/> + </parameter_value> </transform_test> </test_case> </xsl:template> |