mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2026-01-07 21:58:22 +03:00
; tests/general/bug-41-.xsl and tests/general/bug-43.xsl : call-template
* 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
This commit is contained in:
10
ChangeLog
10
ChangeLog
@@ -1,3 +1,13 @@
|
||||
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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<FOO>
|
||||
<BAR>This is bar 1</BAR>
|
||||
<XXX></XXX>
|
||||
<XXX/>
|
||||
<BAR>This is bar 2</BAR>
|
||||
</FOO>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
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
|
||||
|
||||
@@ -1,27 +1,27 @@
|
||||
<?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>
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
<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>
|
||||
@@ -11,7 +12,7 @@
|
||||
<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>
|
||||
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
<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>
|
||||
@@ -11,7 +12,7 @@
|
||||
<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>
|
||||
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
<month>December</month>
|
||||
<month>December</month>
|
||||
<month>December</month>
|
||||
<month></month>
|
||||
<month/>
|
||||
</dates>
|
||||
|
||||
Reference in New Issue
Block a user