xsl-list
[Top] [All Lists]

RE: is the variable really out of scope??

2002-12-06 02:50:13
        <xsl:variable name="k" select="$s mod 1" />
        k = <xsl:value-of select="$i" /><br />

        <xsl:variable name="i" select="$s - $k" />

You can't refer to a local variable before it's declared.

I think the second line above was meant to read

        k = <xsl:value-of select="$k" /><br />

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>