summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2008-05-13 14:34:37 +0000
committerDaniel Veillard <veillard@src.gnome.org>2008-05-13 14:34:37 +0000
commit970091425f31577eb9f106961331f6013f0b3335 (patch)
treed9501c007c406bb0bc26a519c18371d38d805219 /tests
parent2fafb8f6dd28f77cecfdac3fe8cc0328248b05b7 (diff)
downloadlibxslt-970091425f31577eb9f106961331f6013f0b3335.tar.gz
libxslt-970091425f31577eb9f106961331f6013f0b3335.tar.bz2
libxslt-970091425f31577eb9f106961331f6013f0b3335.zip
fix the processing of top level elements of stylesheets which are not in
* libxslt/xslt.c libxslt/extensions.c libxslt/extensions.h: fix the processing of top level elements of stylesheets which are not in the XSLT namespace and are not an extension either should fix #529223 * tests/docs/Makefile.am tests/docs/bug-167.xml tests/general/Makefile.am tests/general/bug-167.*: add the test to the regression suite Daniel svn path=/trunk/; revision=1472
Diffstat (limited to 'tests')
-rw-r--r--tests/docs/Makefile.am1
-rw-r--r--tests/docs/bug-167.xml1
-rw-r--r--tests/general/Makefile.am1
-rw-r--r--tests/general/bug-167.out1
-rw-r--r--tests/general/bug-167.xsl20
5 files changed, 24 insertions, 0 deletions
diff --git a/tests/docs/Makefile.am b/tests/docs/Makefile.am
index 727d0814..a261fcb7 100644
--- a/tests/docs/Makefile.am
+++ b/tests/docs/Makefile.am
@@ -165,6 +165,7 @@ EXTRA_DIST = \
bug-164.xml \
bug-165.xml \
bug-166.xml \
+ bug-167.xml \
character.xml \
array.xml \
items.xml
diff --git a/tests/docs/bug-167.xml b/tests/docs/bug-167.xml
new file mode 100644
index 00000000..69d62f2c
--- /dev/null
+++ b/tests/docs/bug-167.xml
@@ -0,0 +1 @@
+<doc/>
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index 4c52d298..106844be 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -174,6 +174,7 @@ EXTRA_DIST = \
bug-164.out bug-164.xsl \
bug-165.out bug-165.xsl bug-145.err \
bug-166.out bug-166.xsl \
+ bug-167.out bug-167.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-167.out b/tests/general/bug-167.out
new file mode 100644
index 00000000..54bf7eda
--- /dev/null
+++ b/tests/general/bug-167.out
@@ -0,0 +1 @@
+Hello \ No newline at end of file
diff --git a/tests/general/bug-167.xsl b/tests/general/bug-167.xsl
new file mode 100644
index 00000000..8bff7bfe
--- /dev/null
+++ b/tests/general/bug-167.xsl
@@ -0,0 +1,20 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+<xsl:output method="text"/>
+
+<xsl:template match="/">
+ <xsl:text>Hello </xsl:text>
+ <xsl:if test="false()">
+ <xsl:text>world</xsl:text>
+ </xsl:if>
+</xsl:template>
+
+<x:ignore xmlns:x="x">
+<xsl:template match="/">
+ <!--this better not be here!-->
+</xsl:template>
+</x:ignore>
+
+</xsl:stylesheet>
+