mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2026-01-07 21:58:22 +03:00
added an example in the regression tests for bug #108976 which is fixed in
* 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
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
1
tests/docs/bug-110.ent
Normal file
1
tests/docs/bug-110.ent
Normal file
@@ -0,0 +1 @@
|
||||
<elem id='id0' />
|
||||
9
tests/docs/bug-110.xml
Normal file
9
tests/docs/bug-110.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE root [
|
||||
<!ATTLIST elem id ID #IMPLIED>
|
||||
<!ENTITY target SYSTEM "bug-110.ent">
|
||||
]>
|
||||
|
||||
<root>
|
||||
⌖
|
||||
<!-- <elem id='id0' /> -->
|
||||
</root>
|
||||
@@ -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 \
|
||||
|
||||
1
tests/general/bug-110.out
Normal file
1
tests/general/bug-110.out
Normal file
@@ -0,0 +1 @@
|
||||
SUCCESS
|
||||
20
tests/general/bug-110.xsl
Normal file
20
tests/general/bug-110.xsl
Normal file
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user