You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Will Allan <wi...@active.com> on 2000/12/29 05:37:56 UTC

Bug in xalan-j_2_0_D05?

Why does this produce an error?
<xsl:template match="rule">
	<xsl:variable name="condition">true</xsl:variable>
	<xsl:apply-templates select="if[@condition = $condition]"/>
</xsl:template>

The error is:
VariableReference given for variable out of context or without definition!
Name = condition

This exact code worked correctly in xalan-j_2_0_D01.

Will


Re: Bug in xalan-j_2_0_D05?

Posted by Gary L Peskin <ga...@firstech.com>.
Will Allan wrote:
> 
> Why does this produce an error?
> <xsl:template match="rule">
>         <xsl:variable name="condition">true</xsl:variable>
>         <xsl:apply-templates select="if[@condition = $condition]"/>
> </xsl:template>
> 
> The error is:
> VariableReference given for variable out of context or without definition!
> Name = condition
> 
> This exact code worked correctly in xalan-j_2_0_D01.

Will --

Can you provide a more complete working example with input XML and XSLT?

Gary