[ http://issues.apache.org/jira/browse/XALANC-611?page=all ]
     
David Bertoni resolved XALANC-611:
----------------------------------

    Resolution: Invalid

This is not a bug:

http://www.w3.org/TR/xslt#local-variables

"A binding shadows another binding if the binding occurs at a point where the 
other binding is visible, and the bindings have the same name. It is an error 
if a binding established by an xsl:variable or xsl:param element within a 
template shadows another binding established by an xsl:variable or xsl:param 
element also within the template."

> Definitions of two variables with the same name are not hiding each other
> -------------------------------------------------------------------------
>
>          Key: XALANC-611
>          URL: http://issues.apache.org/jira/browse/XALANC-611
>      Project: XalanC
>         Type: Bug
>   Components: XalanC
>     Versions: CurrentCVS
>  Environment: all
>     Reporter: Dmitry Hayes
>      Fix For: CurrentCVS

>
> <xsl:template match="doc">
>   <xsl:variable name="var" select="'level1'"/>
>   
>   <xsl:for-each select="a">
>     <xsl:variable name="var" select="@pos"/>
>   </xsl:for-each>
> </xsl:template>
> Processor output : 
> XSLT Error: A variable or parameter with this name has already been declared 
> in
> this template. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to