summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-03-20 23:27:04 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-03-20 23:27:04 +0000
commiteb36bbe5bdeb8899be66bce7c84b2b5c1f7bc84b (patch)
tree918133efa1024d855b9c52522a9bc1580f8036ea /tests
parent64db7a69b2a89abcf581ff0e5aac3ef21f2dfe6b (diff)
downloadlibxslt-eb36bbe5bdeb8899be66bce7c84b2b5c1f7bc84b.tar.gz
libxslt-eb36bbe5bdeb8899be66bce7c84b2b5c1f7bc84b.tar.bz2
libxslt-eb36bbe5bdeb8899be66bce7c84b2b5c1f7bc84b.zip
fixing bug #75603 added a specific example for bug #75603 in the
* libxslt/transform.c: fixing bug #75603 * tests/docs/Makefile.am tests/docs/bug-77.xml tests/general/Makefile.am tests/general/bug-77.*: added a specific example for bug #75603 in the regression tests Daniel
Diffstat (limited to 'tests')
-rw-r--r--tests/docs/Makefile.am1
-rw-r--r--tests/docs/bug-77.xml4
-rw-r--r--tests/general/Makefile.am1
-rw-r--r--tests/general/bug-77.out5
-rw-r--r--tests/general/bug-77.xsl18
5 files changed, 29 insertions, 0 deletions
diff --git a/tests/docs/Makefile.am b/tests/docs/Makefile.am
index 73874c3e..aacbaed7 100644
--- a/tests/docs/Makefile.am
+++ b/tests/docs/Makefile.am
@@ -77,6 +77,7 @@ EXTRA_DIST = \
bug-74.xml \
bug-75.xml \
bug-76.xml \
+ bug-77.xml \
character.xml \
array.xml \
items.xml
diff --git a/tests/docs/bug-77.xml b/tests/docs/bug-77.xml
new file mode 100644
index 00000000..e414475e
--- /dev/null
+++ b/tests/docs/bug-77.xml
@@ -0,0 +1,4 @@
+<foo>
+<bar id="Wowie" xml:lang="en">Hi</bar>
+<bar id="Zowie" xml:lang="fr">bonjour</bar>
+</foo>
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index 21da13ad..e33e242d 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -80,6 +80,7 @@ EXTRA_DIST = \
bug-74.out bug-74.xsl \
bug-75.out bug-75.xsl \
bug-76.out bug-76.xsl \
+ bug-77.out bug-77.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-77.out b/tests/general/bug-77.out
new file mode 100644
index 00000000..a6392e50
--- /dev/null
+++ b/tests/general/bug-77.out
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<foo>
+<bar xml:lang="en" id="Wowie">Hi</bar>
+<bar xml:lang="fr" id="Zowie">bonjour</bar>
+</foo>
diff --git a/tests/general/bug-77.xsl b/tests/general/bug-77.xsl
new file mode 100644
index 00000000..fabd6f10
--- /dev/null
+++ b/tests/general/bug-77.xsl
@@ -0,0 +1,18 @@
+<?xml version="1.0"?> <xsl:stylesheet
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+<!-- I have tried this with xmlns:xml="http://www.w3.org/XML/1998/namespace"
+ defined above, too
+ -->
+
+<xsl:template match="/">
+<xsl:apply-templates mode="copy"/>
+</xsl:template>
+
+<xsl:template match="@* | node()" mode="copy">
+<xsl:copy>
+<xsl:apply-templates select="node() | @*" mode="copy"/>
+</xsl:copy>
+</xsl:template>
+
+</xsl:stylesheet>