; tests/general/bug-41-.xsl and tests/general/bug-43.xsl : call-template
authorWilliam M. Brack <wbrack@src.gnome.org>
Mon, 17 Jul 2006 18:24:47 +0000 (18:24 +0000)
committerWilliam M. Brack <wbrack@src.gnome.org>
Mon, 17 Jul 2006 18:24:47 +0000 (18:24 +0000)
* 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

ChangeLog
tests/general/bug-1-.out
tests/general/bug-145.err
tests/general/bug-24-.out
tests/general/bug-41-.xsl
tests/general/bug-43-.xsl
tests/keys/month.out

index ca84632..9340fc7 100644 (file)
--- a/ChangeLog
+++ b/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
index bedd070..575f50b 100644 (file)
@@ -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>
index 7f08c57..5daeab4 100644 (file)
@@ -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
index ae78992..9bcfd65 100644 (file)
@@ -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>
index 26b744b..9ce6c7b 100644 (file)
@@ -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>
 
index 551ed23..5057f20 100644 (file)
@@ -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>
 
index 180559d..99c3a3d 100644 (file)
@@ -3,5 +3,5 @@
   <month>December</month>
   <month>December</month>
   <month>December</month>
-  <month></month>
+  <month/>
 </dates>