xsl-list
[Top] [All Lists]

Re: [xsl]Local-Global Variable help

2006-08-30 04:21:43

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

variables have scope determined by the element in which they were bound
so in particular if it is bound on one template it can not be used in
another.


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

Clearly you don't need a variable (as variables can not be used to pass
information between templates). Perhaps you want to use a parameter and
pass it when calling apply-templates, but it is hard to know without any
information.

David



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