summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2004-06-30 04:29:32 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2004-06-30 04:29:32 +0000
commit19739dbd5fd3449b0cdae8984f3dd8b787d18ad2 (patch)
treef38a3432d3283f554a9aefa2f0dcf223eeb1c3f4 /tests
parentc6295e84f5ec944cff0743ad57c332fce1879b3c (diff)
downloadlibxslt-19739dbd5fd3449b0cdae8984f3dd8b787d18ad2.tar.gz
libxslt-19739dbd5fd3449b0cdae8984f3dd8b787d18ad2.tar.bz2
libxslt-19739dbd5fd3449b0cdae8984f3dd8b787d18ad2.zip
some enhancement for fixing bug 142768 added regression test for this bug
* libxslt/namespaces: some enhancement for fixing bug 142768 * tests/namespaces/Makefile.am, tests/namespaces/tst6*: added regression test for this bug
Diffstat (limited to 'tests')
-rw-r--r--tests/namespaces/Makefile.am3
-rw-r--r--tests/namespaces/tst6.out13
-rw-r--r--tests/namespaces/tst6.xml12
-rw-r--r--tests/namespaces/tst6.xsl7
4 files changed, 34 insertions, 1 deletions
diff --git a/tests/namespaces/Makefile.am b/tests/namespaces/Makefile.am
index 1964bc03..229e0a11 100644
--- a/tests/namespaces/Makefile.am
+++ b/tests/namespaces/Makefile.am
@@ -9,8 +9,9 @@ EXTRA_DIST = \
tst.xml tst.xsl tst.out \
tst2.xml tst2.xsl tst2.out \
tst3.xml tst3.xsl tst3.out \
- tst4.xml tst4.xsl tst4.out
+ tst4.xml tst4.xsl tst4.out \
# tst5.xml tst5.xsl tst5.out
+ tst6.xml tst6.xsl tst6.out
all:
diff --git a/tests/namespaces/tst6.out b/tests/namespaces/tst6.out
new file mode 100644
index 00000000..31208ada
--- /dev/null
+++ b/tests/namespaces/tst6.out
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<foo xmlns="urn:foo" xmlns:foo="urn:foo" xmlns:foo2="urn:foo2">
+ <bar>hello</bar>
+ <foo:baz>phaw</foo:baz>
+ <foo:bling xmlns="urn:foo2">
+ <bar2>hello2</bar2>
+ </foo:bling>
+ <bar>hello</bar>
+ <foo:baz>phaw</foo:baz>
+ <bling xmlns="urn:foo2">
+ <bar2>hello2</bar2>
+ </bling>
+</foo>
diff --git a/tests/namespaces/tst6.xml b/tests/namespaces/tst6.xml
new file mode 100644
index 00000000..7cfad8ba
--- /dev/null
+++ b/tests/namespaces/tst6.xml
@@ -0,0 +1,12 @@
+<foo xmlns="urn:foo" xmlns:foo="urn:foo" xmlns:foo2="urn:foo2">
+ <bar>hello</bar>
+ <foo:baz>phaw</foo:baz>
+ <foo:bling xmlns="urn:foo2">
+ <bar2>hello2</bar2>
+ </foo:bling>
+ <bar>hello</bar>
+ <foo:baz>phaw</foo:baz>
+ <bling xmlns="urn:foo2">
+ <bar2>hello2</bar2>
+ </bling>
+</foo>
diff --git a/tests/namespaces/tst6.xsl b/tests/namespaces/tst6.xsl
new file mode 100644
index 00000000..a2d4af1e
--- /dev/null
+++ b/tests/namespaces/tst6.xsl
@@ -0,0 +1,7 @@
+<xsl:transform
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+ <xsl:template match="/">
+ <xsl:copy-of select="."/>
+ </xsl:template>
+</xsl:transform>