added a specific example for bug #71181 in the regression tests Daniel
authorDaniel Veillard <veillard@src.gnome.org>
Mon, 11 Feb 2002 15:35:47 +0000 (15:35 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Mon, 11 Feb 2002 15:35:47 +0000 (15:35 +0000)
* tests/docs/Makefile.am tests/docs/bug-73.xml
  tests/general/Makefile.am tests/general/bug-73.*: added a
  specific example for bug #71181 in the regression tests
Daniel

ChangeLog
tests/docs/Makefile.am
tests/docs/bug-73.xml [new file with mode: 0644]
tests/general/Makefile.am
tests/general/bug-73.out [new file with mode: 0644]
tests/general/bug-73.xsl [new file with mode: 0644]

index 32178e3..5823b49 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Feb 11 16:34:37 CET 2002 Daniel Veillard <daniel@veillard.com>
+
+       * tests/docs/Makefile.am tests/docs/bug-73.xml
+         tests/general/Makefile.am tests/general/bug-73.*: added a 
+         specific example for bug #71181 in the regression tests
+
 Mon Feb 11 16:22:36 CET 2002 Daniel Veillard <daniel@veillard.com>
 
        * libxslt/pattern.c: fixed bug #71181 p/text() would not
index 0f32b71..92646e0 100644 (file)
@@ -73,6 +73,7 @@ EXTRA_DIST =  \
        bug-70.xml \
        bug-71.xml \
        bug-72.xml \
+       bug-73.xml \
        character.xml \
        array.xml \
        items.xml
diff --git a/tests/docs/bug-73.xml b/tests/docs/bug-73.xml
new file mode 100644 (file)
index 0000000..0b2cb1c
--- /dev/null
@@ -0,0 +1,5 @@
+<body>
+  <p>The first paragraph.</p>
+  <p>The <em>second</em> paragraph.</p>
+</body>
+
index c53204b..40ccbed 100644 (file)
@@ -76,6 +76,7 @@ EXTRA_DIST = \
     bug-70.out bug-70.xsl \
     bug-71.out bug-71.xsl \
     bug-72.out bug-72.xsl \
+    bug-73.out bug-73.xsl \
     character.out character.xsl \
     character2.out character2.xsl \
     itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-73.out b/tests/general/bug-73.out
new file mode 100644 (file)
index 0000000..c84dba0
--- /dev/null
@@ -0,0 +1,3 @@
+text in p = "The first paragraph."
+text in p = "The"
+text in p = "paragraph."
diff --git a/tests/general/bug-73.xsl b/tests/general/bug-73.xsl
new file mode 100644 (file)
index 0000000..5c60a81
--- /dev/null
@@ -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">
+
+  <xsl:output method="text"/>
+
+  <xsl:template match="p/text()">
+    <xsl:value-of
+      select="concat('text in ', name(..), ' = &#x22;')"/>
+    <xsl:value-of select="normalize-space(.)"/>
+    <xsl:text>&#x22;&#xa;</xsl:text>
+  </xsl:template>
+
+  <xsl:template match="text()"/>
+
+</xsl:stylesheet>
+