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

RE: setting the variable value dynamically

Subject: RE: setting the variable value dynamically
From: "Kotes Mogili" <Kotes.Mogili@xxxxxxxxxxxxxxxxx>
Date: Mon, 8 Mar 2004 12:32:00 -0500
xsl set variable
I was thinking to update a global variable inside another global variable based on certain condition. I learned that it is not possible and will do in some alternate way..


 -----Original Message-----
From: 	owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]  On Behalf Of Andreas L. Delmelle
Sent:	Monday, March 08, 2004 11:58 AM
To:	xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:	RE:  setting the variable value dynamically

> -----Original Message-----
> From: Kotes Mogili
> Is it possible to set the variable value dynamically in XSLT?? If
> yes , please let me know how can it be done...


What exactly do you mean by this?

An xsl:variable, once created, cannot change its value within the same
context. So if it's a variable global to the stylesheet, the value will
remain the same throughout the entire transformation.

OTOH: you can use an xsl:param, either global to the stylesheet (can be set
e.g. via the command-line) or as parameter to a specific template (can be
set by apply-templates/call-template accompanied by xsl:with-param).



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

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

Current Thread


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.
First Name
Last Name
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.