You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by pa...@apache.org on 2002/02/06 19:18:18 UTC

cvs commit: xml-xalan/test/tests/contrib/var var01d.xsl

pauldick    02/02/06 10:18:18

  Modified:    test/tests/contrib/var var01d.xsl
  Log:
  Minor cleanup
  
  Revision  Changes    Path
  1.2       +16 -9     xml-xalan/test/tests/contrib/var/var01d.xsl
  
  Index: var01d.xsl
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/tests/contrib/var/var01d.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- var01d.xsl	18 Oct 2001 20:10:08 -0000	1.1
  +++ var01d.xsl	6 Feb 2002 18:18:18 -0000	1.2
  @@ -1,36 +1,43 @@
   <?xml version="1.0" encoding="utf-8"?>
  -<xsl:stylesheet 
  -  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  -  version="1.0">   
  +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  +   
   <!-- var01.xsl: variations on a theme:Bugzilla#4218; input .xml is ignored-->
   
   <!-- Theme: passing with-param, somehow variable stack frame gets messed up -->
  +
  +<!-- The result does not contain <template2> tags because the returned RTF is -->
  +<!-- converted to a string in which element tags are nixed.  -->
  +
   <xsl:template match="/">
       <out>
         <!-- Variables declared at same level as call-template -->
         <xsl:variable name="v1" select="'abc-should-appear-once'"/>
         <xsl:variable name="v2" select="'def-should-appear-once'"/>
  -      
  +
  +      <!-- Param name is same in all cases -->      
         <xsl:call-template name="template1">
  -        <!-- Param name is same in all cases -->
           <xsl:with-param name="param1">
  +
             <!-- Theme change: value-of before call-template -->
  -          <xsl:value-of select="$v2"/>
  +          <xsl:value-of select="$v2"/><xsl:text>,</xsl:text>
             <xsl:call-template name="template2">
               <xsl:with-param name="param1" select="$v1"/>
             </xsl:call-template>
           </xsl:with-param>
  +
         </xsl:call-template>
  +
       </out>
     </xsl:template>
    
     <xsl:template name="template1">
       <xsl:param name="param1" select="'error'"/>
  -    <template1><xsl:value-of select="$param1"/></template1>
  +    <template1><xsl:value-of select="$param1"/><xsl:text>!!</xsl:text></template1>
     </xsl:template>
    
     <xsl:template name="template2">
       <xsl:param name="param1" select="'error'"/>
  -    <template2><xsl:value-of select="$param1"/></template2>
  +    <template2><xsl:value-of select="$param1"/><xsl:text>.</xsl:text></template2>
     </xsl:template>
  -</xsl:stylesheet>
  \ No newline at end of file
  +
  +</xsl:stylesheet>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org