summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-03-22 15:15:36 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-03-22 15:15:36 +0000
commit54b4ce572b8024785c0e1362ce38317715ae7c8a (patch)
treebc71138166489822b3f86e655b5c816c1fa30acf /tests
parent9ce2508b8878f029218f29b86b611ec1d4018e9c (diff)
downloadlibxslt-54b4ce572b8024785c0e1362ce38317715ae7c8a.tar.gz
libxslt-54b4ce572b8024785c0e1362ce38317715ae7c8a.tar.bz2
libxslt-54b4ce572b8024785c0e1362ce38317715ae7c8a.zip
Fixing bug #75777 error with namespaced attribute match rules evaluation
* libxslt/pattern.c: Fixing bug #75777 error with namespaced attribute match rules evaluation * tests/docs/Makefile.am tests/docs/bug-78.xml tests/general/Makefile.am tests/general/bug-78.*: added a specific example for bug #75777 in the regression tests Daniel
Diffstat (limited to 'tests')
-rw-r--r--tests/docs/Makefile.am1
-rw-r--r--tests/docs/bug-78.xml8
-rw-r--r--tests/general/Makefile.am1
-rw-r--r--tests/general/bug-78.out3
-rw-r--r--tests/general/bug-78.xsl17
5 files changed, 30 insertions, 0 deletions
diff --git a/tests/docs/Makefile.am b/tests/docs/Makefile.am
index aacbaed7..d7cfa7cb 100644
--- a/tests/docs/Makefile.am
+++ b/tests/docs/Makefile.am
@@ -78,6 +78,7 @@ EXTRA_DIST = \
bug-75.xml \
bug-76.xml \
bug-77.xml \
+ bug-78.xml \
character.xml \
array.xml \
items.xml
diff --git a/tests/docs/bug-78.xml b/tests/docs/bug-78.xml
new file mode 100644
index 00000000..c5987944
--- /dev/null
+++ b/tests/docs/bug-78.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<userView>
+ <navigation>
+ <category name="europe" id="91">
+ tototo
+ </category>
+ </navigation>
+</userView>
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index e33e242d..2704a5c9 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -81,6 +81,7 @@ EXTRA_DIST = \
bug-75.out bug-75.xsl \
bug-76.out bug-76.xsl \
bug-77.out bug-77.xsl \
+ bug-78.out bug-78.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-78.out b/tests/general/bug-78.out
new file mode 100644
index 00000000..666454ca
--- /dev/null
+++ b/tests/general/bug-78.out
@@ -0,0 +1,3 @@
+
+ tototo
+
diff --git a/tests/general/bug-78.xsl b/tests/general/bug-78.xsl
new file mode 100644
index 00000000..b2640ffb
--- /dev/null
+++ b/tests/general/bug-78.xsl
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:xi="http://www.toto.com/xinclude" version="1.0">
+ <xsl:output encoding="ISO-8859-1" method="html"/>
+ <xsl:strip-space elements="*"/>
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ </xsl:template>
+ <xsl:template match="xi:*">
+ <xsl:copy>
+ <xsl:apply-templates select="node()|@*"/>
+ </xsl:copy>
+ </xsl:template>
+ <xsl:template match="@xi:*">
+ <xsl:copy/>
+ </xsl:template>
+</xsl:stylesheet>