This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Variables and inherited attributes
- To: xsl-list at mulberrytech dot com
- Subject: Re: Variables and inherited attributes
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Tue, 20 Jun 2000 16:37:00 +0100 (BST)
- References: <394F88CF.89A76DD3@loria.fr>
- Reply-To: xsl-list at mulberrytech dot com
> I think that true global variables would have been a good solution to
> handle inherited attributes (xml:lang, xml:base, etc.).
how would they have helped?
Either pass the values down as parameters, or just use get the value
from the source tree, the currently active value for xml:lang is
<xsl:value-of select="ancestor-or-self::*/@xml:lang[1]"/>
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list