summaryrefslogtreecommitdiff
path: root/tests/general
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2012-08-15 23:50:22 +0200
committerDaniel Veillard <veillard@redhat.com>2012-09-06 20:41:46 +0800
commitf6c48211e5ee97b36ae9f3d2f8711fdce38e6e5e (patch)
treecddc857e1b6bcc776eab5811ce3712a1df66ba05 /tests/general
parent0c302874da763e0020940d50992f99f15efc6f8c (diff)
downloadlibxslt-f6c48211e5ee97b36ae9f3d2f8711fdce38e6e5e.tar.gz
libxslt-f6c48211e5ee97b36ae9f3d2f8711fdce38e6e5e.tar.bz2
libxslt-f6c48211e5ee97b36ae9f3d2f8711fdce38e6e5e.zip
Reserved namespaces in xsl:element and xsl:attribute
For https://bugzilla.gnome.org/show_bug.cgi?id=587360 Correct handling of 'xml' and 'xmlns' namespaces in xsl:element and xsl:attribute.
Diffstat (limited to 'tests/general')
-rw-r--r--tests/general/Makefile.am1
-rw-r--r--tests/general/bug-177.out2
-rw-r--r--tests/general/bug-177.xsl7
3 files changed, 10 insertions, 0 deletions
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index c9b20365..e531870e 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -184,6 +184,7 @@ EXTRA_DIST = \
bug-174.out bug-174.xsl bug-174.err \
bug-175.out bug-175.xsl bug-175.err \
bug-176.out bug-176.xsl \
+ bug-177.out bug-177.xsl \
bug-178.out bug-178.xsl \
character.out character.xsl \
character2.out character2.xsl \
diff --git a/tests/general/bug-177.out b/tests/general/bug-177.out
new file mode 100644
index 00000000..91cd684d
--- /dev/null
+++ b/tests/general/bug-177.out
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<doc xml:id="etc"/>
diff --git a/tests/general/bug-177.xsl b/tests/general/bug-177.xsl
new file mode 100644
index 00000000..52036f57
--- /dev/null
+++ b/tests/general/bug-177.xsl
@@ -0,0 +1,7 @@
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template match="/*">
+ <xsl:copy>
+ <xsl:attribute name="id" namespace="http://www.w3.org/XML/1998/namespace">etc</xsl:attribute>
+ </xsl:copy>
+ </xsl:template>
+</xsl:stylesheet>