summaryrefslogtreecommitdiff
path: root/tests/general
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-05-17 00:48:47 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-05-17 00:48:47 +0000
commit42504dbb485340bfc2e05a513785ad720f438584 (patch)
tree37c60e78a5994f4b23b23d9d3807b7c0204bee03 /tests/general
parent90d2dcdda9e33b818cfe9b3ee0d27023938e10ed (diff)
downloadlibxslt-42504dbb485340bfc2e05a513785ad720f438584.tar.gz
libxslt-42504dbb485340bfc2e05a513785ad720f438584.tar.bz2
libxslt-42504dbb485340bfc2e05a513785ad720f438584.zip
fixing bug #135542 about the DOCTYPE name being generated when the root
* libxslt/transform.c: fixing bug #135542 about the DOCTYPE name being generated when the root element is namespaced * tests/general/bug-151*, tests/docs/bug-151.xml, tests/general/Makefile.am, tests/docs/Makefile.am: added regression test for bug #135542 Daniel
Diffstat (limited to 'tests/general')
-rw-r--r--tests/general/Makefile.am1
-rw-r--r--tests/general/bug-151.out0
-rw-r--r--tests/general/bug-151.xsl15
3 files changed, 16 insertions, 0 deletions
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index 452e97b5..73f9a9bf 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -158,6 +158,7 @@ EXTRA_DIST = \
bug-148.out bug-148.xsl \
bug-149.out bug-149.xsl \
bug-150.out bug-150.xsl \
+ bug-151.out bug-151.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-151.out b/tests/general/bug-151.out
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/tests/general/bug-151.out
diff --git a/tests/general/bug-151.xsl b/tests/general/bug-151.xsl
new file mode 100644
index 00000000..e5b9f731
--- /dev/null
+++ b/tests/general/bug-151.xsl
@@ -0,0 +1,15 @@
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:ex="http://example.org/">
+
+<xsl:output method="xml"
+ encoding="UTF-8"
+ doctype-public="-//example.org//Example 1.0//EN"/>
+
+<xsl:template match="/tst">
+ <ex:document xmlns:ex="http://example.org/">
+ <xsl:apply-templates match="doc"/>
+ </ex:document>
+</xsl:template>
+
+</xsl:stylesheet>