summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-02-11 09:46:08 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-02-11 09:46:08 +0000
commit4fd05fcdeaecbaffcda73867714266c600405c43 (patch)
tree89a46573964b48e94a974dfb82a957ad82b6bb7b /tests
parent94738b61d3d16c2c70db52b59df131a4c9d97a52 (diff)
downloadlibxslt-4fd05fcdeaecbaffcda73867714266c600405c43.tar.gz
libxslt-4fd05fcdeaecbaffcda73867714266c600405c43.tar.bz2
libxslt-4fd05fcdeaecbaffcda73867714266c600405c43.zip
added a specific example for Norm's bug in the regression tests Daniel
* tests/docs/Makefile.am tests/docs/bug-71.xml tests/general/Makefile.am tests/general/bug-71.*: added a specific example for Norm's bug in the regression tests Daniel
Diffstat (limited to 'tests')
-rw-r--r--tests/docs/Makefile.am1
-rw-r--r--tests/docs/bug-71.xml1
-rw-r--r--tests/general/Makefile.am1
-rw-r--r--tests/general/bug-71.out2
-rw-r--r--tests/general/bug-71.xsl17
5 files changed, 22 insertions, 0 deletions
diff --git a/tests/docs/Makefile.am b/tests/docs/Makefile.am
index b164bf8e..a24da2e5 100644
--- a/tests/docs/Makefile.am
+++ b/tests/docs/Makefile.am
@@ -71,6 +71,7 @@ EXTRA_DIST = \
bug-68.xml \
bug-69.xml \
bug-70.xml \
+ bug-71.xml \
character.xml \
array.xml \
items.xml
diff --git a/tests/docs/bug-71.xml b/tests/docs/bug-71.xml
new file mode 100644
index 00000000..555662cc
--- /dev/null
+++ b/tests/docs/bug-71.xml
@@ -0,0 +1 @@
+<address id='foo'/>
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index 8e538be3..194b0e48 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -74,6 +74,7 @@ EXTRA_DIST = \
bug-68.out bug-68.xsl \
bug-69.out bug-69.xsl \
bug-70.out bug-70.xsl \
+ bug-71.out bug-71.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-71.out b/tests/general/bug-71.out
new file mode 100644
index 00000000..878571b0
--- /dev/null
+++ b/tests/general/bug-71.out
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<pa:Contact xmlns:pa="urn:test:pa" xmlns:rdf="urn:test:rdf" rdf:about="hello"><pa:primaryPhone rdf:about="toto"/></pa:Contact>
diff --git a/tests/general/bug-71.xsl b/tests/general/bug-71.xsl
new file mode 100644
index 00000000..190148ea
--- /dev/null
+++ b/tests/general/bug-71.xsl
@@ -0,0 +1,17 @@
+<?xml version='1.0' encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0"
+xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+xmlns:rdf="urn:test:rdf"
+xmlns:pa="urn:test:pa">
+
+<xsl:template match="address">
+ <xsl:variable name="id" select="@id"/>
+
+ <pa:Contact rdf:about="hello">
+ <pa:primaryPhone>
+ <xsl:attribute name="rdf:about">toto</xsl:attribute>
+ </pa:primaryPhone>
+ </pa:Contact>
+</xsl:template>
+
+</xsl:stylesheet>