1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2026-01-07 21:58:22 +03:00

added a couple of regression tests for bugs posted on the list Daniel

* tests/docs/Makefile.am tests/general/Makefile.am
  tests/general/bug-49-* tests/docs/bug-49-*
  tests/general/bug-50-* tests/docs/bug-50-*: added a
  couple of regression tests for bugs posted on the list
Daniel
This commit is contained in:
Daniel Veillard
2001-07-08 14:35:46 +00:00
parent eaf4a6610a
commit c2dc2ac6eb
9 changed files with 53 additions and 0 deletions

View File

@@ -1,3 +1,10 @@
Sun Jul 8 16:34:07 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* tests/docs/Makefile.am tests/general/Makefile.am
tests/general/bug-49-* tests/docs/bug-49-*
tests/general/bug-50-* tests/docs/bug-50-*: added a
couple of regression tests for bugs posted on the list
Sun Jul 8 15:40:44 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* libxslt/xsltproc.c: avoid generating CDATA node in document

View File

@@ -52,6 +52,8 @@ EXTRA_DIST = \
bug-46-.xml \
bug-47-.xml \
bug-48-.xml \
bug-49-.xml \
bug-50-.xml \
character.xml \
array.xml \
items.xml

1
tests/docs/bug-49-.xml Normal file
View File

@@ -0,0 +1 @@
<doc/>

3
tests/docs/bug-50-.xml Normal file
View File

@@ -0,0 +1,3 @@
<tst xmlns="http://example.org/">
<doc>Failed</doc>
</tst>

View File

@@ -54,6 +54,8 @@ EXTRA_DIST = \
bug-46-.out bug-46-.xsl \
bug-47-.out bug-47-.xsl \
bug-48-.out bug-48-.xsl \
bug-49-.out bug-49-.xsl \
bug-50-.out bug-50-.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \

View File

@@ -0,0 +1,2 @@
<?xml version="1.0"?>
SUCCESS

15
tests/general/bug-49-.xsl Normal file
View File

@@ -0,0 +1,15 @@
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:variable name="a">
<xsl:variable name="b" select="'SUCCESS'"/>
<xsl:value-of select="$b"/>
</xsl:variable>
<xsl:template match="/">
<xsl:value-of select="$a"/>
</xsl:template>
</xsl:stylesheet>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0"?>
success
name=doc
local-name=doc

14
tests/general/bug-50-.xsl Normal file
View File

@@ -0,0 +1,14 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/TR/xhtml1/strict"
xmlns:tst="http://example.org/">
<xsl:template match="tst:doc|doc">
success
<xsl:text>name=</xsl:text>
<xsl:value-of select="name(.)"/>
<xsl:text>
local-name=</xsl:text>
<xsl:value-of select="local-name(.)"/>
</xsl:template>
</xsl:stylesheet>