Re: [xsl] Accessing a variable defined in the parent node

Subject: Re: [xsl] Accessing a variable defined in the parent node
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 20 Nov 2003 12:53:05 GMT

> How can I do it?

You can not, the variable goes out of scope at teh end of the element in
which it is defined.

If you want to see the value in another templet you need to declare it
as a parameter in the second template and pass the parameter in the
xsl:apply-templates call.

David

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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


Current Thread