xsl-list
[Top] [All Lists]

Re: [xsl] Variable and parameter with same name and scope allowed in 2.0

2006-05-02 07:35:50
David Carlisle wrote:

<xsl:variable name="x"/>
<xsl:if test="true()">
<xsl:variable name="x"/>
</xsl:if>

is an error but

<xsl:if test="true()">
<xsl:variable name="x"/>
</xsl:if>
<xsl:variable name="x"/>

is not.

  Interesting.  I always read §11.5, "Variables and Parameters within
Templates" [XSLT 1.0] as "using wo variables or parameters of the same
name in the same template is an error".

  Thanks for the correction.

  Regards,

--drkm
























        

        
                
___________________________________________________________________________ 
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos 
services préférés : vérifiez vos nouveaux mails, lancez vos recherches et 
suivez l'actualité en temps réel. 
Rendez-vous sur http://fr.yahoo.com/set

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--