+Mon Jul 17 11:15:23 PDT 2006 William Brack <wbrack@mmm.com.hk>
+
+ * Updated tests affected by recent library changes -
+ tests/general/bug-1-.out, tests/general/bug-24-.out,
+ tests/keys/month.out : (<t></t> now becomes <t/>);
+ tests/general/bug-41-.xsl and tests/general/bug-43.xsl :
+ call-template and apply-template, where the template has
+ no parameter but one is supplied (var should not be affected)
+ tests/general/bug-145.err : changed error text
+
Fri Jul 14 18:16:59 CEST 2006 Kasimier Buchcik <libxml2-cvs@cazic.net>
* libxslt/attributes.c libxslt/documents.c
<?xml version="1.0"?>
<FOO>
<BAR>This is bar 1</BAR>
- <XXX></XXX>
+ <XXX/>
<BAR>This is bar 2</BAR>
</FOO>
compilation error: file ./bug-145.xsl line 4 element transform
xsl:version is missing: document may not be a stylesheet
runtime error: file ./bug-145.xsl line 6 element call-template
-xsl:call-template : template a:a not found
+The called template '{a}a' was not found.
no result for ./../docs/bug-145.xml
<?xml version="1.0"?>
<indexdoc>
<primaryterm>Main Menu</primaryterm>
- <secondaryterm></secondaryterm>
- <tertiaryterm></tertiaryterm>
+ <secondaryterm/>
+ <tertiaryterm/>
<primaryterm>Panel</primaryterm>
- <secondaryterm></secondaryterm>
- <tertiaryterm></tertiaryterm>
+ <secondaryterm/>
+ <tertiaryterm/>
<primaryterm>Panel</primaryterm>
<secondaryterm>Auto-hide</secondaryterm>
- <tertiaryterm></tertiaryterm>
+ <tertiaryterm/>
<primaryterm>Panel</primaryterm>
<secondaryterm>Background</secondaryterm>
- <tertiaryterm></tertiaryterm>
+ <tertiaryterm/>
<primaryterm>Panel</primaryterm>
<secondaryterm>Hide Buttons</secondaryterm>
- <tertiaryterm></tertiaryterm>
+ <tertiaryterm/>
<primaryterm>Panel</primaryterm>
<secondaryterm>Hiding</secondaryterm>
- <tertiaryterm></tertiaryterm>
+ <tertiaryterm/>
<primaryterm>Panel</primaryterm>
<secondaryterm>Individual Panel Properties</secondaryterm>
- <tertiaryterm></tertiaryterm>
+ <tertiaryterm/>
<primaryterm>Panel</primaryterm>
<secondaryterm>Properties</secondaryterm>
- <tertiaryterm></tertiaryterm>
+ <tertiaryterm/>
</indexdoc>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'>
-<xsl:variable name="foo" select="'FAILURE'"/>
+<xsl:variable name="foo" select="'SUCCESS'"/>
+<!-- Global var shouldn't be changed by call with param -->
<xsl:template name="test">
<xsl:value-of select="$foo"/>
</xsl:template>
<xsl:template match="/">
<xsl:variable name="foo" select="'FAILURE'"/>
<xsl:call-template name="test">
- <xsl:with-param name="foo" select="'SUCCESS'"/>
+ <xsl:with-param name="foo" select="'FAILURE'"/>
</xsl:call-template>
</xsl:template>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'>
-<xsl:variable name="foo" select="'FAILURE'"/>
+<xsl:variable name="foo" select="'SUCCESS'"/>
+<!-- Global var shouldn't be changed by call with param -->
<xsl:template match="doc">
<xsl:value-of select="$foo"/>
</xsl:template>
<xsl:template match="/">
<xsl:variable name="foo" select="'FAILURE'"/>
<xsl:apply-templates>
- <xsl:with-param name="foo" select="'SUCCESS'"/>
+ <xsl:with-param name="foo" select="'FAILURE'"/>
</xsl:apply-templates>
</xsl:template>
<month>December</month>
<month>December</month>
<month>December</month>
- <month></month>
+ <month/>
</dates>