[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Reference to variable cannot be resolved.

Subject: Re: Reference to variable cannot be resolved.
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Fri, 14 Feb 2003 09:18:31 -0800 (PST)
Re:  Reference to variable cannot be resolved.
> > <xsl:template match="/">
> >   <xsl:variable name="x" select="1"/>
> >   <xsl:variable name="x" select="$x+1"/>
> >   <xsl:value-of select="$x"/>
> > </xsl:template>
> 
> Um, I think that's legal in XSLT 2.0. What makes you think that it
> isn't?
> 
> I think that the argument for allowing shadowing of local variables
> was that it allows those unimaginative programmers who can only think
> of the one variable name (you know who I'm talking about, David C.)
to
> reuse that variable name while carrying out several steps of
> processing on the same value, precisely as you have above.

Jeni,

I am sure that if you were designing your own language you'd never
allow such a practice.

Neither would I.




=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL

__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.