Re: [xsl] How can I use a variable out of it scope ?

Subject: Re: [xsl] How can I use a variable out of it scope ?
From: "Michael Beddow" <mbnospam@xxxxxxxxxxx>
Date: Wed, 31 Jan 2001 11:06:12 -0000
On Wednesday, January 31, 2001 10:12 AM
frank Stein wrote:

> > > I would like to use a variable out of it scope.
[..]
>
> I'm using the following XML input document :
> ...
> <Level_1 Name="Name_1">
> ...
> </Level_1>
> ...
> <Level_1 Name="Name_n">
> <Level_2 Name="Name_2">
> </Level_2>
> ...
> <Level_2 Name="Name_n">
> </Level_2>
> ...
> </Level_1>
> ...

Hard to say without knowing more about the real structure of your
data, but is there anything that stops you making the Level 2 handler
template ino a callable one, then passing in your variable (or rather,
its value copied to a parameter) from a point where it *is* in scope?

Michael
------------------------------------------
Michael Beddow
http://www.mbeddow.net/



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


Current Thread