added an example in the regression tests for bug #109160 fixed in libxml2
authorDaniel Veillard <veillard@src.gnome.org>
Wed, 26 Mar 2003 21:41:37 +0000 (21:41 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Wed, 26 Mar 2003 21:41:37 +0000 (21:41 +0000)
* tests/docs/Makefile.am tests/docs/bug-113.*
  tests/general/Makefile.am tests/general/bug-113*: added an
  example in the regression tests for bug #109160 fixed in libxml2
Daniel

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

index e345262..2f8eaee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Mar 26 22:41:00 CET 2003 Daniel Veillard <daniel@veillard.com>
+
+       * tests/docs/Makefile.am tests/docs/bug-113.*
+         tests/general/Makefile.am tests/general/bug-113*: added an
+         example in the regression tests for bug #109160 fixed in libxml2
+
 Wed Mar 26 21:43:30 CET 2003 Daniel Veillard <daniel@veillard.com>
 
        * configure.in python/Makefile.am python/libxslt.c libxslt/xsltutils.c
index f06c337..4f4b612 100644 (file)
@@ -112,6 +112,7 @@ EXTRA_DIST =        \
        bug-110.xml bug-110.ent \
        bug-111.xml \
        bug-112.xml \
+       bug-113.xml \
        character.xml \
        array.xml \
        items.xml
diff --git a/tests/docs/bug-113.xml b/tests/docs/bug-113.xml
new file mode 100644 (file)
index 0000000..e061224
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE dest [
+<!ELEMENT dest (#PCDATA)>
+<!ATTLIST dest id ID #IMPLIED>
+]>
+<dest id="hällo">WORKS</dest>
+
index e7f4e8a..dd6b04a 100644 (file)
@@ -117,6 +117,7 @@ EXTRA_DIST = \
     bug-110.out bug-110.xsl \
     bug-111.out bug-111.xsl \
     bug-112.out bug-112.xsl \
+    bug-113.out bug-113.xsl \
     character.out character.xsl \
     character2.out character2.xsl \
     itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-113.out b/tests/general/bug-113.out
new file mode 100644 (file)
index 0000000..5818730
--- /dev/null
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+WORKS
+WORKS TOO
+
diff --git a/tests/general/bug-113.xsl b/tests/general/bug-113.xsl
new file mode 100644 (file)
index 0000000..7565876
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  version="1.0">
+
+<xsl:template match="/">
+  <xsl:value-of select="id('hällo')"/>
+  <xsl:apply-templates/>
+</xsl:template>
+<xsl:template match="id('hällo')">
+WORKS TOO
+</xsl:template>
+<xsl:template match="dest">
+</xsl:template>
+
+</xsl:stylesheet>