xsl-list
[Top] [All Lists]

Re: [xsl]Local-Global Variable help

2006-08-30 04:08:55
Variables in XSLT behave a bit differently as compared to variables in
procedural languages (like Java or C). In XSLT, variables cannot
change state. There is only one time assignment, and nothing can be
done after that.

For your requirement, you can pass values from one template to another
as template parameters.

On 8/30/06, m(_dot_)core(_at_)aimconsulting(_dot_)it 
<m(_dot_)core(_at_)aimconsulting(_dot_)it> wrote:
Hi all,

i need to create a variable in a template and call it in another template how 
it can be done?

i need to create the variable in the first template because i put in it 
something that i match so i cannot simply create that variable as global

thx a lot for replies


--
Regards,
Mukul Gandhi

http://gandhimukul.tripod.com

--~------------------------------------------------------------------
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>
--~--