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: "Sebastian Rahtz" <sebastian dot rahtz at computing-services dot oxford dot ac dot uk>
- Date: Tue, 20 Jun 2000 18:59:06 +0100 (BST)
- References: <394F88CF.89A76DD3@loria.fr><394F9342.AE226921@dyomedea.com>
- Reply-To: xsl-list at mulberrytech dot com
Eric van der Vlist writes:
> > As values of global variables (constants in fact) can't be changed, i
> > was wondering if there exists a generic solution to manage inherited
> > attribute values.
>
> Personally, when this is needed, I pass these values from template to
> template using parameters (xsl:with-parameter works also with
> xsl:apply-templates, not only with xsl:call-template).
>
you can also cycle through ancestor::*/@xml:lang
(or something like that) until you find a
non-empty value.
Sebastian
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list