summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-03-29 17:29:22 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-03-29 17:29:22 +0000
commit457772a90e88f421748295cacb1a8ab7e5d385a9 (patch)
treea62af626b77bb1f1a10feb303f8e93c58ddaabe1
parent6e5b48bfa025fda0c08121df93f1f49892f61a3e (diff)
downloadlibxslt-457772a90e88f421748295cacb1a8ab7e5d385a9.tar.gz
libxslt-457772a90e88f421748295cacb1a8ab7e5d385a9.tar.bz2
libxslt-457772a90e88f421748295cacb1a8ab7e5d385a9.zip
added a specific example for bug #76927 in the regression tests Daniel
* tests/docs/Makefile.am tests/docs/bug-81.xml tests/general/Makefile.am tests/general/bug-81.*: added a specific example for bug #76927 in the regression tests Daniel
-rw-r--r--ChangeLog6
-rw-r--r--tests/docs/Makefile.am1
-rw-r--r--tests/docs/bug-81.xml12
-rw-r--r--tests/general/Makefile.am1
-rw-r--r--tests/general/bug-81.out4
-rw-r--r--tests/general/bug-81.xsl18
6 files changed, 42 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 718feb4f..46e9e040 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Mar 29 18:28:23 CET 2002 Daniel Veillard <daniel@veillard.com>
+
+ * tests/docs/Makefile.am tests/docs/bug-81.xml
+ tests/general/Makefile.am tests/general/bug-81.*: added a
+ specific example for bug #76927 in the regression tests
+
Wed Mar 27 10:03:11 CET 2002 Daniel Veillard <daniel@veillard.com>
* AUTHORS HACKING: Added Igor Zlatkovic as official maintainer
diff --git a/tests/docs/Makefile.am b/tests/docs/Makefile.am
index cf18217d..90b31d40 100644
--- a/tests/docs/Makefile.am
+++ b/tests/docs/Makefile.am
@@ -81,6 +81,7 @@ EXTRA_DIST = \
bug-78.xml \
bug-79.xml \
bug-80.xml \
+ bug-81.xml \
character.xml \
array.xml \
items.xml
diff --git a/tests/docs/bug-81.xml b/tests/docs/bug-81.xml
new file mode 100644
index 00000000..45220c94
--- /dev/null
+++ b/tests/docs/bug-81.xml
@@ -0,0 +1,12 @@
+<tree>
+ <a>
+ <value>3.14</value>
+ </a>
+ <b>
+ <value>2</value>
+ </b>
+ <c>
+ <value>0.5</value>
+ </c>
+</tree>
+
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index ff007707..67ca6fc8 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -84,6 +84,7 @@ EXTRA_DIST = \
bug-78.out bug-78.xsl \
bug-79.out bug-79.xsl \
bug-80.out bug-80.xsl \
+ bug-81.out bug-81.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-81.out b/tests/general/bug-81.out
new file mode 100644
index 00000000..c897afe2
--- /dev/null
+++ b/tests/general/bug-81.out
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+3.14 - 2 - 0.5 =
+0.64
+3.14 - 2 - 0.5 = 0.64
diff --git a/tests/general/bug-81.xsl b/tests/general/bug-81.xsl
new file mode 100644
index 00000000..fd7e89f0
--- /dev/null
+++ b/tests/general/bug-81.xsl
@@ -0,0 +1,18 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+version="1.0">
+ <xsl:template match="/">
+ <xsl:value-of select="//a/value"/> - <xsl:value-of
+select="//b/value"/> - <xsl:value-of select="//c/value"/> =
+<xsl:value-of select="//a/value - //b/value - //c/value"/>
+<xsl:text>
+</xsl:text>
+ <xsl:apply-templates select="//c"/>
+ </xsl:template>
+ <xsl:template match="c">
+ <xsl:value-of select="//a/value"/> - <xsl:value-of
+select="//b/value"/> - <xsl:value-of select="value"/> = <xsl:value-of
+select="//a/value - //b/value - value"/>
+ </xsl:template>
+</xsl:stylesheet>
+
+