It would be useful to know whether this gives the same results on other XSLT processors. In other words, are you submitting this as a Saxon bug, or are you simply asking for XSLT programming advice? If the latter, a better place is the xsl-list at - though I'll try to find time to look at it anyway.

Michael Kay

On 23/09/2010 3:13 PM, Jens Henrik Gabe wrote:
When overriding a template from a 2nd level import in several 1st level imports, only the last overriding template "survives"!
We are using SAXON v9.2.1.1
The attached files details the issue:
test.func.xsl are imported by both test.sub1.xsl and test.sub2.xsl, and the template with mode="value" are overridden in both importing files.
Transforming the test.xml with test.front.xsl should result in
but the result is:
------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
_______________________________________________ saxon-help mailing list archived at