You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/11/09 20:50:34 UTC

DO NOT REPLY [Bug 4779] New: - xsltc fails to pass top-level parameter to top-level variable (variable31)

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4779>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4779

xsltc fails to pass top-level parameter to top-level variable (variable31)

           Summary: xsltc fails to pass top-level parameter to top-level
                    variable (variable31)
           Product: XalanJ2
           Version: CurrentCVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: tom.amiro@sun.com


Conformance test variable31 regressed on 10-30-01. This is important 
functionality. 

Running xalan on variable31
<?xml version="1.0" encoding="UTF-8"?>
<out>titi</out>


Running XSLTC with Xerces Parser on variable31
<?xml version="1.0" encoding="UTF-8" ?>
<out/>

 glrr 112 =>cat variable31.xsl
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    version="1.0">

  <!-- FileName: variable31 -->
  <!-- Document: http://www.w3.org/TR/xslt -->
  <!-- DocVersion: 19991116 -->
  <!-- Section: 11.4 Top-level Variables and Parameters  -->
  <!-- Purpose: Test passing value from top-level param to top-level variable
via value-of. -->
  <!-- Author: Benoit Cerrina, adapted by David Marston -->

  <xsl:param name="toto" select="'titi'"/>

  <xsl:variable name="tata">
    <xsl:call-template name="set-tata"/>
  </xsl:variable>

  <xsl:template match="/">
    <out>
      <xsl:value-of select="$tata"/>
    </out>
  </xsl:template>

  <xsl:template name="set-tata">
    <xsl:value-of select="$toto"/>
  </xsl:template>

</xsl:stylesheet>