added test for entities parsing (Bug #129489) Daniel
authorDaniel Veillard <veillard@src.gnome.org>
Sun, 21 Dec 2003 12:59:00 +0000 (12:59 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Sun, 21 Dec 2003 12:59:00 +0000 (12:59 +0000)
* tests/docs/Makefile.am tests/docs/bug-139.xml
  tests/general/Makefile.am tests/general/bug-139*: added
  test for entities parsing (Bug #129489)
Daniel

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

index d49ee0c..3b9620a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,14 @@
+Sun Dec 21 13:56:48 CET 2003 Daniel Veillard <daniel@veillard.com>
+
+       * tests/docs/Makefile.am tests/docs/bug-139.xml
+         tests/general/Makefile.am tests/general/bug-139*: added
+         test for entities parsing (Bug #129489)
+
 Sun Dec 21 20:33:27 HKT 2003 William Brack <wbrack@mmm.com.hk>
 
        * tests/docs/Makefile.am tests/docs/bug-138.xml
          tests/general/Makefile.am tests/general/bug-138*: added
-         test for namespace problem (Bug 129624)
+         test for namespace problem (Bug #129624)
 
 Sun Dec 21 13:17:05 CET 2003 Daniel Veillard <daniel@veillard.com>
 
index ffb96c9..2f5511c 100644 (file)
@@ -138,6 +138,7 @@ EXTRA_DIST =        \
        bug-136.xml \
        bug-137.xml \
        bug-138.xml \
+       bug-139.xml \
        character.xml \
        array.xml \
        items.xml
diff --git a/tests/docs/bug-139.xml b/tests/docs/bug-139.xml
new file mode 100644 (file)
index 0000000..9340011
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<!DOCTYPE section
+[
+<!ENTITY foo "FOO">
+<!ENTITY bar "&foo; BAR">
+]>
+<section>
+My title is &bar; and some.
+</section>
index 04c9018..5581c50 100644 (file)
@@ -144,6 +144,7 @@ EXTRA_DIST = \
     bug-136.out bug-136.xsl \
     bug-137.imp  bug-137.out  bug-137.xsl \
     bug-138.out bug-138.xsl \
+    bug-139.out bug-139.xsl \
     character.out character.xsl \
     character2.out character2.xsl \
     itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-139.out b/tests/general/bug-139.out
new file mode 100644 (file)
index 0000000..6b7a59c
--- /dev/null
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+
+My title is FOO BAR and some.
+
diff --git a/tests/general/bug-139.xsl b/tests/general/bug-139.xsl
new file mode 100644 (file)
index 0000000..4b4d504
--- /dev/null
@@ -0,0 +1,14 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns="http://www.w3.org/1999/xhtml"
+                version="1.0">
+
+
+<xsl:template match="/">
+    <xsl:apply-templates/>
+</xsl:template>
+
+<xsl:template match="section">
+    <xsl:value-of select="."/>
+</xsl:template>
+
+</xsl:stylesheet>