summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/docs/Makefile.am1
-rw-r--r--tests/docs/bug-111.xml17
-rw-r--r--tests/exslt/common/node-set.2.out2
-rw-r--r--tests/general/Makefile.am1
-rw-r--r--tests/general/bug-111.out6
-rw-r--r--tests/general/bug-111.xsl45
6 files changed, 71 insertions, 1 deletions
diff --git a/tests/docs/Makefile.am b/tests/docs/Makefile.am
index 6ce4f6fb..ec7d70ad 100644
--- a/tests/docs/Makefile.am
+++ b/tests/docs/Makefile.am
@@ -110,6 +110,7 @@ EXTRA_DIST = \
bug-108.xml \
bug-109.xml \
bug-110.xml bug-110.ent \
+ bug-111.xml \
character.xml \
array.xml \
items.xml
diff --git a/tests/docs/bug-111.xml b/tests/docs/bug-111.xml
new file mode 100644
index 00000000..b10f5152
--- /dev/null
+++ b/tests/docs/bug-111.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+ <DIRTREE dirpath="c:\file" dirname="file">
+ <f n="AdditionalInfo.bmp" s="1999194" m="03/06/2002 11:21" a=" A" />
+ <f n="AdditionalInfo.jpg" s="65835" m="03/15/2002 13:43" a=" A" />
+ <f n="jdesupport.htm" s="6264" m="03/15/2002 13:32" a=" A" />
+ <f n="LoginScreen.bmp" s="1410914" m="03/06/2002 11:18" a=" A" />
+ <f n="MainScreen.bmp" s="1683330" m="03/06/2002 11:16" a=" A" />
+ <f n="MainScreen.jpg" s="46339" m="03/15/2002 13:43" a=" A" />
+ <f n="newsa.htm" s="3646" m="03/15/2002 13:41" a=" A" />
+ <f n="OutputOptions.bmp" s="1216234" m="03/06/2002 11:22" a=" A" />
+ <f n="ReportSysOverview.bmp" s="2008270" m="03/06/2002 11:23" a=" A" />
+ <f n="ReportViewer.jpg" s="56653" m="03/15/2002 13:44" a=" A" />
+ <f n="SelectProfile.bmp" s="1683330" m="03/06/2002 11:17" a=" A" />
+ <f n="SelectProfile.jpg" s="71648" m="03/15/2002 11:06" a=" A" />
+ <d name="utils" />
+ </DIRTREE>
+
diff --git a/tests/exslt/common/node-set.2.out b/tests/exslt/common/node-set.2.out
index bae9ab2d..8b50a796 100644
--- a/tests/exslt/common/node-set.2.out
+++ b/tests/exslt/common/node-set.2.out
@@ -1,2 +1,2 @@
<?xml version="1.0"?>
-<out xmlns:exslt="http://exslt.org/common">3</out>
+<out xmlns:exslt="http://exslt.org/common">4</out>
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index bf4601b7..a2665c54 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -115,6 +115,7 @@ EXTRA_DIST = \
bug-108.out bug-108.xsl \
bug-109.out bug-109.xsl \
bug-110.out bug-110.xsl \
+ bug-111.out bug-111.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-111.out b/tests/general/bug-111.out
new file mode 100644
index 00000000..012d3b50
--- /dev/null
+++ b/tests/general/bug-111.out
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<root>
+ Test 1
+ DIRTREE : true : true
+ Test 2
+ DIRTREE : true : true</root>
diff --git a/tests/general/bug-111.xsl b/tests/general/bug-111.xsl
new file mode 100644
index 00000000..20d66844
--- /dev/null
+++ b/tests/general/bug-111.xsl
@@ -0,0 +1,45 @@
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:exsl="http://exslt.org/common"
+ extension-element-prefixes="exsl"
+ exclude-result-prefixes="exsl">
+
+
+<xsl:template match="/">
+<root>
+ <xsl:variable name="dtree">
+ <DIRTREE dirpath="c:\file" dirname="file">
+ <f n="AdditionalInfo.bmp" s="1999194" m="03/06/2002 11:21" a=" A" />
+ <f n="AdditionalInfo.jpg" s="65835" m="03/15/2002 13:43" a=" A" />
+ <f n="jdesupport.htm" s="6264" m="03/15/2002 13:32" a=" A" />
+ <f n="LoginScreen.bmp" s="1410914" m="03/06/2002 11:18" a=" A" />
+ <f n="MainScreen.bmp" s="1683330" m="03/06/2002 11:16" a=" A" />
+ <f n="MainScreen.jpg" s="46339" m="03/15/2002 13:43" a=" A" />
+ <f n="newsa.htm" s="3646" m="03/15/2002 13:41" a=" A" />
+ <f n="OutputOptions.bmp" s="1216234" m="03/06/2002 11:22" a=" A" />
+ <f n="ReportSysOverview.bmp" s="2008270" m="03/06/2002 11:23" a=" A" />
+ <f n="ReportViewer.jpg" s="56653" m="03/15/2002 13:44" a=" A" />
+ <f n="SelectProfile.bmp" s="1683330" m="03/06/2002 11:17" a=" A" />
+ <f n="SelectProfile.jpg" s="71648" m="03/15/2002 11:06" a=" A" />
+ <d name="utils" />
+ </DIRTREE>
+ </xsl:variable>
+ Test 1
+ <xsl:apply-templates select="exsl:node-set($dtree)/DIRTREE"/>
+ Test 2
+ <xsl:apply-templates select="/DIRTREE"/>
+
+</root>
+</xsl:template>
+
+<xsl:template match="DIRTREE[d][f]" priority="100">
+ <xsl:value-of select="name()"/> : <xsl:value-of select="boolean(d)"/> : <xsl:value-of select="boolean(f)"/>
+
+</xsl:template>
+
+<xsl:template match="@*|node()">
+ Default Template Match Found
+</xsl:template>
+
+</xsl:stylesheet>
+