Re: [xsl]Local-Global Variable help

Subject: Re: [xsl]Local-Global Variable help
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 30 Aug 2006 12:21:30 +0100
> 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

> 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


Current Thread