You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Scott Boag/CAM/Lotus <Sc...@lotus.com> on 2000/12/16 18:45:05 UTC

Re: [Xalan2J] VariableReference given for variable out of context or without definition! Name = eclassname

This was caused by a change that Joe made in the course of some code
cleanup.  I just checked in a fix.

-scott




                                                                                                                   
                    Davanum                                                                                        
                    Srinivas             To:     xalan-dev@xml.apache.org                                          
                    <dims@yahoo.c        cc:     Gary L Peskin <ga...@firstech.com>, (bcc: Scott Boag/CAM/Lotus)   
                    om>                  Subject:     [Xalan2J] VariableReference given for variable out of        
                                         context or without definition! Name = eclassname                          
                    12/16/2000                                                                                     
                    10:58 AM                                                                                       
                    Please                                                                                         
                    respond to                                                                                     
                    xalan-dev                                                                                      
                                                                                                                   
                                                                                                                   




Hi Guys,

The latest Xalan2J gives me the following error:
"VariableReference given for variable out of context or without definition!
Name = eclassname"

The xsl used to work at some point (this is from xml-fop project). Please
let me know if this is a
bug or a feature and workarounds if any.

Thanks,
dims

Here's the snippet:

<xsl:variable name="eclassname">
  <xsl:choose>
    <xsl:when test="class-name">
      <xsl:value-of select="class-name"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:call-template name="makeClassName">
        <xsl:with-param name="propstr" select="name"/>
      </xsl:call-template>
    </xsl:otherwise>
  </xsl:choose>
</xsl:variable>

<xsl:variable name="classname">
     <xsl:value-of select="$eclassname"/><xsl:if test="not(@type
='generic')">Maker</xsl:if>
</xsl:variable>


=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/