aboutsummaryrefslogtreecommitdiff
path: root/test/read_directory
diff options
context:
space:
mode:
Diffstat (limited to 'test/read_directory')
-rw-r--r--test/read_directory/reference.xml2
-rw-r--r--test/read_directory/transformation.xsl19
2 files changed, 5 insertions, 16 deletions
diff --git a/test/read_directory/reference.xml b/test/read_directory/reference.xml
index 8252569..a7192ea 100644
--- a/test/read_directory/reference.xml
+++ b/test/read_directory/reference.xml
@@ -1,11 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<test_case>
-<function_read_directory>
<item>common</item>
<item>default_params</item>
<item>read_directory</item>
<item>read_file</item>
<item>read_xml_file</item>
<item>transform</item>
-</function_read_directory>
</test_case>
diff --git a/test/read_directory/transformation.xsl b/test/read_directory/transformation.xsl
index d3c21f1..3a4d162 100644
--- a/test/read_directory/transformation.xsl
+++ b/test/read_directory/transformation.xsl
@@ -6,21 +6,12 @@
exclude-result-prefixes="InputXSLT"
>
-<xsl:output
- method="xml"
- omit-xml-declaration="no"
- encoding="UTF-8"
- indent="yes"
-/>
+<xsl:include href="[testcase.xsl]"/>
-<xsl:template match="/">
-<test_case>
- <function_read_directory>
- <xsl:for-each select="InputXSLT:read-directory('../')[@type='directory']">
- <item><xsl:value-of select="."/></item>
- </xsl:for-each>
- </function_read_directory>
-</test_case>
+<xsl:template name="implementation">
+ <xsl:for-each select="InputXSLT:read-directory('../')[@type='directory']">
+ <item><xsl:value-of select="."/></item>
+ </xsl:for-each>
</xsl:template>
</xsl:stylesheet>