Subject: Re: [xsl] problem with xsl:import and namespaces From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 17 Aug 2010 08:27:09 -0400 |
I've got five stylesheets, where test.xsl imports A.xsl and B.xsl, A.xsl imports C1.xsl, and B.xsl imports C2.xsl. C1.xsl and C2.xsl is in the same namespace, and defining the same function (i.e. C2.xsl is a newer version of C1.xsl). Now, I wouldn't think that this would cause a problem, as C1.xsl and C2.xsl is not imported directly into the same stylesheet. test.xsl only makes use of C1.xsl and C2.xsl indirectly via A.xsl and B.xsl, not knowing that there are multiple versions of C (or that A.xsl and B.xsl uses C for that matter.)
However, when importing B.xsl after A.xsl in test.xsl, then the function in C1.xsl is overridden by the one in C2.xsl, even when called from A.xsl...
I guess there's something I've missed about xsl:import and namespaces
-- XSLT/XQuery training: after http://XMLPrague.cz 2011-03-28/04-01 Vote for your XML training: http://www.CraneSoftwrights.com/s/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] problem with xsl:import and n, Jostein Austvik Jaco | Thread | Re: [xsl] problem with xsl:import a, Jostein Austvik Jaco |
[xsl] problem with xsl:import and n, Jostein Austvik Jaco | Date | Re: [xsl] problem with xsl:import a, Jostein Austvik Jaco |
Month |