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

RE: Referring to imported variable's value in override

Subject: RE: Referring to imported variable's value in override
From: "Houghton,Andrew" <houghtoa@xxxxxxxx>
Date: Mon, 29 Mar 2010 11:51:50 -0400
RE:  Referring to imported variable's value in override
> From: Christian Roth [mailto:roth@xxxxxxxxxxxxxx]
> Sent: Monday, March 29, 2010 11:37 AM
> To: XSL List
> Subject:  Referring to imported variable's value in override
>
> How does one best tackle this? Maybe define the base variable with a
> different name, say, "test-base" in the imported stylesheet, so that
> there is no name-clash resp. override happening? How to do this when
> there are more customization layers to handle, each one wishing to
> refer
> to "what's already there"?

One could use a qualified name for the variables:

<xsl:variable name="sub:test" ... />
<xsl:variable name="main:test" ...$sub:test... />

or use two different local names.  Note you would need to defined xmlns:sub on
the xsl:transform or xsl:stylesheet in sub.xsl and xmlns:main on the
xsl:transform or xsl;stylesheet in main.xsl.


Andy.

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.