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

RE: Global Variable

Subject: RE: Global Variable
From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx>
Date: Wed, 14 Aug 2002 10:10:14 +0000
xslt set
James,
Hello Aruniima,

You will have to update your XSL knowledge, <xsl:param/> and <xsl:variable/>
when set, never change....
But isnt it possible to set the variable value based on some condition ??
like
<xsl:variable name = "myVar">
<xsl:choose>
<xsl:when test = "some-condition"> some value</xsl:when>
<xsl:otherwise>some-other-value</xsl:otherwise>
</xsl:choose>
</xsl:variable>

If the objective is to set a variable based on condition.. as arunima put it..
"Is it possible to have a Global variable kind of concept which can
be set to different values in the program based on conditions & used???"


If thaz what is required?
Vasu

From: "James Fuller" <james.fuller@xxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE:  Global Variable
Date: Wed, 14 Aug 2002 10:15:33 +0100




> aruniima.chakrabarti@xxxxxxxxxxxxxxxxxx > Sent: 14 August 2002 10:10

> Hi,
> 	Is it possible to have a Global variable kind of concept which can
> be set to different values in the program based on conditions & used???


Hello Aruniima,


You will have to update your XSL knowledge, <xsl:param/> and <xsl:variable/>
when set, never change....


this may be an odd concept to you, possibly coming from a world where we use
variables quite extensively this way.....


think of the days when we used GOTO statements...remember that with line
numbers ..... people back then couldnt believe that you didn't have to do
this... the analogy is similar to using variables.

check out the xslt FAQ at www.dpawson.co.uk for more information.

though it is possible that you are just asking on how to use <xsl:variable/>
or <xsl:param/>


once again, check the FAQ, and if u still have a problem then post your
sample XSLT and XML and we will try to solve the problem.

cheers, jim fuller


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




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.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.