Subject: RE: [xsl] Referring to imported variable's value in override From: "Houghton,Andrew" <houghtoa@xxxxxxxx> Date: Mon, 29 Mar 2010 11:51:50 -0400 |
> From: Christian Roth [mailto:roth@xxxxxxxxxxxxxx] > 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.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Referring to imported variabl, Christian Roth | Thread | Re: [xsl] Referring to imported var, David Carlisle |
[xsl] Referring to imported variabl, Christian Roth | Date | Re: [xsl] Referring to imported var, David Carlisle |
Month |