aboutsummaryrefslogtreecommitdiff
path: root/test/read_file
diff options
context:
space:
mode:
Diffstat (limited to 'test/read_file')
-rw-r--r--test/read_file/transformation.xsl10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/read_file/transformation.xsl b/test/read_file/transformation.xsl
index 9610046..a968f35 100644
--- a/test/read_file/transformation.xsl
+++ b/test/read_file/transformation.xsl
@@ -7,16 +7,14 @@
exclude-result-prefixes="InputXSLT xalan"
>
-<xsl:include href="[testcase.xsl]"/>
+<xsl:import href="[testcase.xsl]"/>
<xsl:template name="implementation">
- <xsl:variable name="result">
- <xsl:copy-of select="InputXSLT:read-file('test.txt')"/>
- </xsl:variable>
+ <xsl:variable name="result" select="InputXSLT:read-file('test.txt')"/>
<xsl:choose>
- <xsl:when test="xalan:nodeset($result)/file/@result = 'success'">
- <xsl:value-of select="xalan:nodeset($result)/file"/>
+ <xsl:when test="$result/self::file/@result = 'success'">
+ <xsl:value-of select="$result/self::file"/>
</xsl:when>
<xsl:otherwise>
Error during file io