fixed bug #68751 added a specific example in the regression tests Daniel

* libxslt/templates.c: fixed bug #68751
* tests/docs/Makefile.am tests/docs/bug-68.xml
  tests/general/Makefile.am tests/general/bug-68.*: added a
  specific example in the regression tests
Daniel
This commit is contained in:
Daniel Veillard 2002-01-15 11:02:11 +00:00
parent 18c8f88910
commit a78d584a69
7 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,10 @@
Tue Jan 15 12:00:18 CET 2002 Daniel Veillard <daniel@veillard.com>
* libxslt/templates.c: fixed bug #68751
* tests/docs/Makefile.am tests/docs/bug-68.xml
tests/general/Makefile.am tests/general/bug-68.*: added a
specific example in the regression tests
Tue Jan 15 10:40:41 CET 2002 Daniel Veillard <daniel@veillard.com>
* libxslt/transform.c xsltproc/xsltproc.c: fixed a couple of

View File

@ -217,6 +217,9 @@ xsltAttrTemplateValueProcess(xsltTransformContextPtr ctxt, const xmlChar *str) {
xmlChar *expr, *val;
if (str == NULL) return(NULL);
if (*str == 0)
return(xmlStrndup("", 0));
cur = str;
while (*cur != 0) {
if (*cur == '{') {

View File

@ -68,6 +68,7 @@ EXTRA_DIST = \
bug-64.xml \
bug-65.xml \
bug-66.xml \
bug-68.xml \
character.xml \
array.xml \
items.xml

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

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

View File

@ -71,6 +71,7 @@ EXTRA_DIST = \
bug-64.out bug-64.xsl \
bug-65.ent bug-65.out bug-65.xsl \
bug-66.out bug-66.xsl \
bug-68.out bug-68.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \

1
tests/general/bug-68.out Normal file
View File

@ -0,0 +1 @@
<IMG a="">

8
tests/general/bug-68.xsl Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<IMG a=""/>
</xsl:template>
</xsl:stylesheet>