From: Christian Roth [mailto:roth(_at_)visualclick(_dot_)de]
Sent: Monday, March 29, 2010 11:37 AM
To: XSL List
Subject: [xsl] 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.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--