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:
@@ -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
|
||||
|
||||
@@ -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
1
tests/docs/bug-49-.xml
Normal file
@@ -0,0 +1 @@
|
||||
<doc/>
|
||||
3
tests/docs/bug-50-.xml
Normal file
3
tests/docs/bug-50-.xml
Normal file
@@ -0,0 +1,3 @@
|
||||
<tst xmlns="http://example.org/">
|
||||
<doc>Failed</doc>
|
||||
</tst>
|
||||
@@ -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 \
|
||||
|
||||
2
tests/general/bug-49-.out
Normal file
2
tests/general/bug-49-.out
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0"?>
|
||||
SUCCESS
|
||||
15
tests/general/bug-49-.xsl
Normal file
15
tests/general/bug-49-.xsl
Normal 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>
|
||||
7
tests/general/bug-50-.out
Normal file
7
tests/general/bug-50-.out
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
|
||||
success
|
||||
name=doc
|
||||
local-name=doc
|
||||
|
||||
14
tests/general/bug-50-.xsl
Normal file
14
tests/general/bug-50-.xsl
Normal 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>
|
||||
Reference in New Issue
Block a user