From b31f9170c2bc2330442070968d3cb334cadb5faa Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 18 Aug 2014 20:11:18 +0200 Subject: Renamed FunctionExternalCommand result root node * this change was implemented to match the naming scheme of all other external functions * updated external text formatter test case accordingly --- test/external_text_formatter/transformation.xsl | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'test/external_text_formatter') diff --git a/test/external_text_formatter/transformation.xsl b/test/external_text_formatter/transformation.xsl index c6f11fc..eb92c46 100644 --- a/test/external_text_formatter/transformation.xsl +++ b/test/external_text_formatter/transformation.xsl @@ -11,15 +11,11 @@ <xsl:import href="[testcase.xsl]"/> <xsl:template name="formatter"> - <xsl:param name="format"/> - <xsl:param name="file"/> - + <xsl:param name="format"/> + <xsl:param name="file"/> <xsl:variable name="content" select="InputXSLT:read-file($file)/text()"/> - <xsl:copy-of select="InputXSLT:external-command( - $format, - $content - )"/> + <xsl:copy-of select="InputXSLT:external-command($format, $content)"/> </xsl:template> <xsl:template name="implementation"> @@ -31,8 +27,8 @@ </xsl:variable> <xsl:choose> - <xsl:when test="xalan:nodeset($result)/output/@result = 'success'"> - <xsl:copy-of select="xalan:nodeset($result)/output/*"/> + <xsl:when test="xalan:nodeset($result)/command/@result = 'success'"> + <xsl:copy-of select="xalan:nodeset($result)/command/node()"/> </xsl:when> <xsl:otherwise> Failure during external text formatting -- cgit v1.2.3