diff options
Diffstat (limited to 'test/read_directory')
-rw-r--r-- | test/read_directory/transformation.xsl | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/read_directory/transformation.xsl b/test/read_directory/transformation.xsl index f1446a2..5955c26 100644 --- a/test/read_directory/transformation.xsl +++ b/test/read_directory/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-directory('../')"/> - </xsl:variable> + <xsl:variable name="result" select="InputXSLT:read-directory('../')"/> <xsl:choose> - <xsl:when test="xalan:nodeset($result)/directory/@result = 'success'"> - <xsl:for-each select="xalan:nodeset($result)/directory/entry"> + <xsl:when test="$result/self::directory/@result = 'success'"> + <xsl:for-each select="$result/self::directory/entry"> <item type="{@type}"> <name><xsl:value-of select="./name"/></name> |