summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-12-02 16:22:07 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-12-02 16:22:07 +0000
commit4903b605420cbd54e050bb07803f8bb82187751b (patch)
treeb2f37d8439143052934e77b774713f5b585102d8 /tests
parenta8fbad39afd072f40de317fd7f5972b74a43fbc0 (diff)
downloadlibxslt-4903b605420cbd54e050bb07803f8bb82187751b.tar.gz
libxslt-4903b605420cbd54e050bb07803f8bb82187751b.tar.bz2
libxslt-4903b605420cbd54e050bb07803f8bb82187751b.zip
applied patch from Josh Parsons fixing bug #100056 added the example in
* libxslt/extensions.c: applied patch from Josh Parsons fixing bug #100056 * tests/docs/Makefile.am tests/docs/bug-100.xml tests/general/Makefile.am tests/general/bug-100.*: added the example in the regression tests for this case * tests/docs/Makefile.am tests/docs/bug-99.xml tests/general/Makefile.am tests/general/bug-99.*: this test covers an xsl:attribute namespace bug that Norm pointed out. Daniel
Diffstat (limited to 'tests')
-rw-r--r--tests/docs/Makefile.am2
-rw-r--r--tests/docs/bug-100.xml1
-rw-r--r--tests/docs/bug-99.xml1
-rw-r--r--tests/general/Makefile.am2
-rw-r--r--tests/general/bug-100.out2
-rw-r--r--tests/general/bug-100.xsl9
-rw-r--r--tests/general/bug-99.out2
-rw-r--r--tests/general/bug-99.xsl16
8 files changed, 35 insertions, 0 deletions
diff --git a/tests/docs/Makefile.am b/tests/docs/Makefile.am
index 01f50eea..890c1348 100644
--- a/tests/docs/Makefile.am
+++ b/tests/docs/Makefile.am
@@ -98,6 +98,8 @@ EXTRA_DIST = \
bug-96.xml \
bug-97.xml \
bug-98.xml \
+ bug-99.xml \
+ bug-100.xml \
character.xml \
array.xml \
items.xml
diff --git a/tests/docs/bug-100.xml b/tests/docs/bug-100.xml
new file mode 100644
index 00000000..69d62f2c
--- /dev/null
+++ b/tests/docs/bug-100.xml
@@ -0,0 +1 @@
+<doc/>
diff --git a/tests/docs/bug-99.xml b/tests/docs/bug-99.xml
new file mode 100644
index 00000000..69d62f2c
--- /dev/null
+++ b/tests/docs/bug-99.xml
@@ -0,0 +1 @@
+<doc/>
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index 14c3332c..3e2b9e71 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -102,6 +102,8 @@ EXTRA_DIST = \
bug-96.out bug-96.xsl \
bug-97.out bug-97.xsl \
bug-98.out bug-98.xsl \
+ bug-99.out bug-99.xsl \
+ bug-100.out bug-100.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-100.out b/tests/general/bug-100.out
new file mode 100644
index 00000000..478b115d
--- /dev/null
+++ b/tests/general/bug-100.out
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<!--libxslt:test element test worked-->
diff --git a/tests/general/bug-100.xsl b/tests/general/bug-100.xsl
new file mode 100644
index 00000000..c2e9a090
--- /dev/null
+++ b/tests/general/bug-100.xsl
@@ -0,0 +1,9 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns="http://xmlsoft.org/XSLT/"
+ xsl:extension-element-prefixes="#default"
+ version='1.0'>
+<xsl:template match="/">
+<test/>
+</xsl:template>
+</xsl:stylesheet>
diff --git a/tests/general/bug-99.out b/tests/general/bug-99.out
new file mode 100644
index 00000000..70c32f25
--- /dev/null
+++ b/tests/general/bug-99.out
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<doc xmlns="ns1" xmlns:ns1="ns1" ns1:attr="foo!"/>
diff --git a/tests/general/bug-99.xsl b/tests/general/bug-99.xsl
new file mode 100644
index 00000000..ec5ffb99
--- /dev/null
+++ b/tests/general/bug-99.xsl
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+<xsl:output method="xml"/>
+
+<xsl:template match="/">
+ <xsl:element name="doc" namespace="ns1">
+ <xsl:attribute name="attr" namespace="ns1">
+ <xsl:text>foo!</xsl:text>
+ </xsl:attribute>
+ </xsl:element>
+</xsl:template>
+
+</xsl:stylesheet>
+