added an example in the regression tests for bug #108976 which is fixed in
authorDaniel Veillard <veillard@src.gnome.org>
Sun, 23 Mar 2003 12:10:47 +0000 (12:10 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Sun, 23 Mar 2003 12:10:47 +0000 (12:10 +0000)
* tests/docs/Makefile.am tests/docs/bug-110.*
  tests/general/Makefile.am tests/general/bug-110*: added an
  example in the regression tests for bug #108976 which is
  fixed in libxml2
Daniel

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

index c6d75ed..377c9f6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Sun Mar 23 13:09:17 CET 2003 Daniel Veillard <daniel@veillard.com>
+
+       * tests/docs/Makefile.am tests/docs/bug-110.*
+         tests/general/Makefile.am tests/general/bug-110*: added an
+         example in the regression tests for bug #108976 which is
+         fixed in libxml2
+
 Sat Mar 22 12:35:47 CET 2003 Daniel Veillard <daniel@veillard.com>
 
        * tests/docs/Makefile.am tests/docs/bug-109.xml
index 08f9a80..6ce4f6f 100644 (file)
@@ -109,7 +109,11 @@ EXTRA_DIST =       \
        bug-107.xml \
        bug-108.xml \
        bug-109.xml \
+       bug-110.xml bug-110.ent \
        character.xml \
        array.xml \
        items.xml
 
+all:
+
+tests:
diff --git a/tests/docs/bug-110.ent b/tests/docs/bug-110.ent
new file mode 100644 (file)
index 0000000..eaa70cf
--- /dev/null
@@ -0,0 +1 @@
+<elem id='id0' />
diff --git a/tests/docs/bug-110.xml b/tests/docs/bug-110.xml
new file mode 100644 (file)
index 0000000..6a20119
--- /dev/null
@@ -0,0 +1,9 @@
+<!DOCTYPE root [ 
+<!ATTLIST elem id ID #IMPLIED> 
+<!ENTITY target SYSTEM "bug-110.ent"> 
+]> 
+<root> 
+  &target;
+  <!-- <elem id='id0' /> --> 
+</root> 
index 8bcd089..bf4601b 100644 (file)
@@ -114,6 +114,7 @@ EXTRA_DIST = \
     bug-107.out bug-107.xsl \
     bug-108.out bug-108.xsl \
     bug-109.out bug-109.xsl \
+    bug-110.out bug-110.xsl \
     character.out character.xsl \
     character2.out character2.xsl \
     itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-110.out b/tests/general/bug-110.out
new file mode 100644 (file)
index 0000000..ff43ca4
--- /dev/null
@@ -0,0 +1 @@
+SUCCESS
diff --git a/tests/general/bug-110.xsl b/tests/general/bug-110.xsl
new file mode 100644 (file)
index 0000000..2899a7f
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                version='1.0'>
+
+<xsl:output method='text'/>
+
+<xsl:template match="/">
+  <xsl:variable name="id1" select="generate-id(/root/elem)"/>
+  <xsl:variable name="id2" select="generate-id(id('id0'))"/>
+  <xsl:if test="$id1 = $id2">
+    <xsl:text>SUCCESS
+</xsl:text>
+  </xsl:if>
+  <xsl:if test="$id1 != $id2">
+    <xsl:text>ERROR
+</xsl:text>
+  </xsl:if>
+</xsl:template>
+</xsl:stylesheet>
+