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

Re: how to get variable value outside scope

Subject: Re: how to get variable value outside scope
From: Mukul Gandhi <mukul_gandhi@xxxxxxxxx>
Date: Sun, 27 Feb 2005 02:31:44 -0800 (PST)
form get variable
Thank you David for your comments.. I have corrected
both the mistakes you have pointed.. The updated
article is posted again.

Regards,
Mukul

--- David Carlisle <davidc@xxxxxxxxx> wrote:
> 
> Mukul,
> 
> There are a few technical issues, eg
> 
> > The form [1] binds a variable name to a
> simple(simplest!) RTF. This
> > form is similar to declaration : <xsl:variable
> name="varname"
> > select="'mukul'" /> . The form [2] binds a
> variable name to a tree
> > fragment 
> 
> actually the form <xsl:variable
> name="x">foo</xsl:variable> also binds a
> result tree fragment, which is immportant it means
> you normally
> shouldn't do it as it's inefficient and has the
> wrong behaviour when
> coerced to boolean.
> 
> But mainly I wanted to comment on the general
> premise that
> 
> > So the variable construct in XSLT behaves quite
> differently than
> > traditional variables. 
> 
> This is like describing chinese by saying that it
> doesn't use the
> traditional english alphabet. The behaviour may be
> different from your
> expectation but "tradition" depends on who you are,
> and how long you've
> been there.
> 
> The use of variables to denote values rather than
> memory locations has a
> long tradition that is much older than digital
> computers, and even in
> the context of digital computer languages goes back
> at least as far as
> lisp in the early 1960's. Given that, it reads
> rather strangely to see
> such newfangled languages as Java, and even C,
> described as
> "traditional". When I was first shown computer
> programmining (Fortran,
> at school in the mid 70's) the use of "variables" in
> that language and
> the fact that X=X+1 actually meant something and
> wasn't just a false
> equation, was described by all the beginner guides
> as a strange use of
> "variable" but a necessary low level feature in
> order to control a
> machine which wasn't capable of the normal
> mathematical reasoning. How
> times change....
> 
> David



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Sports - Sign up for Fantasy Baseball. 
http://baseball.fantasysports.yahoo.com/

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.