[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Variables and inherited attributes

Subject: Re: Variables and inherited attributes
From: Eric van der Vlist <vdv@xxxxxxxxxxxx>
Date: Tue, 20 Jun 2000 17:52:34 +0200
Re: Variables and inherited attributes
Hi Patrice,

Patrice Bonhomme wrote:
> 
> Hi,
> 
> 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).

> I think that true global variables would have been a good solution to
> handle inherited attributes (xml:lang, xml:base, etc.).

This is sometimes possible...
If your variable has a single value which you can define your variable
outside any template (even through a complex XPath expression), it will
be global (but has to have a "single" value since you won't be able to
change it.

Hope this helps.

Eric

 
> Any ideas?
> 
> Pat
> --
>   ==============================================================
>    bonhomme@xxxxxxxx      Tel : 03 83 59 30 52 / 06 11 34 03 85
>    http://www.loria.fr/~bonhomme                 Office : B.228
>   ==============================================================
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

-- 
------------------------------------------------------------------------
Eric van der Vlist       Dyomedea                    http://dyomedea.com
http://xmlfr.org         http://4xt.org              http://ducotede.com
------------------------------------------------------------------------


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.