aboutsummaryrefslogtreecommitdiff
path: root/test/transform
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-06-27 21:35:46 +0200
committerAdrian Kummerlaender2014-06-27 21:35:46 +0200
commita8be7f7dde5cf0d51026de0e6bc4d0f59f41c4b6 (patch)
tree17ccde0cd5fa5a4f632aec7a0ff11ed954e2b93f /test/transform
parent266b408ee53b9bc7db2b1a5c92e62adfd2af6def (diff)
downloadInputXSLT-a8be7f7dde5cf0d51026de0e6bc4d0f59f41c4b6.tar
InputXSLT-a8be7f7dde5cf0d51026de0e6bc4d0f59f41c4b6.tar.gz
InputXSLT-a8be7f7dde5cf0d51026de0e6bc4d0f59f41c4b6.tar.bz2
InputXSLT-a8be7f7dde5cf0d51026de0e6bc4d0f59f41c4b6.tar.lz
InputXSLT-a8be7f7dde5cf0d51026de0e6bc4d0f59f41c4b6.tar.xz
InputXSLT-a8be7f7dde5cf0d51026de0e6bc4d0f59f41c4b6.tar.zst
InputXSLT-a8be7f7dde5cf0d51026de0e6bc4d0f59f41c4b6.zip
Updated README.md and added "write-file" test case
* slightly improved FunctionTransform test case utility templates
Diffstat (limited to 'test/transform')
-rw-r--r--test/transform/transformation.xsl14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/transform/transformation.xsl b/test/transform/transformation.xsl
index 99933ba..ba17981 100644
--- a/test/transform/transformation.xsl
+++ b/test/transform/transformation.xsl
@@ -14,9 +14,7 @@
<xsl:param name="transformation"/>
<xsl:param name="parameters"/>
- <xsl:variable name="stylesheet" select="
- InputXSLT:read-file(string($transformation))
- "/>
+ <xsl:variable name="stylesheet" select="InputXSLT:read-file($transformation)"/>
<xsl:choose>
<xsl:when test="$stylesheet/self::file/@result = 'success'">
@@ -53,15 +51,15 @@
<xsl:when test="xalan:nodeset($result)/transformation/@result = 'success'">
<xsl:variable name="writeResult" select="
InputXSLT:write-file(
- string($target),
+ $target,
xalan:nodeset($result)/transformation/text()
)
"/>
- <transformation result="success" target="{$target}"/>
+ <generator result="success" target="{$target}"/>
</xsl:when>
<xsl:otherwise>
- <transformation result="error" target="{$target}"/>
+ <generator result="error" target="{$target}"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
@@ -78,13 +76,13 @@
</xsl:variable>
<xsl:choose>
- <xsl:when test="xalan:nodeset($result)/transformation/@result = 'success'">
+ <xsl:when test="xalan:nodeset($result)/generator/@result = 'success'">
<xsl:copy-of select="
InputXSLT:read-file('test_actual.xml')/test_case/transform_test/*
"/>
</xsl:when>
<xsl:otherwise>
- <xsl:copy-of select="xalan:nodeset($result)/transformation/*"/>
+ <xsl:copy-of select="xalan:nodeset($result)/generator/*"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>