Re: [xsl] xml:base, resolve-uri and imported xslt files: how to get the importing base url from imported xslt

Subject: Re: [xsl] xml:base, resolve-uri and imported xslt files: how to get the importing base url from imported xslt
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Tue, 10 Oct 2006 00:19:07 +0200
Michael Kay wrote:
This would be a bug if it were true, but I can't reproduce it.
Tried it, tested it.
Are you sure that A *imports* B, rather than *including* B?
Yes, I use <xsl:import />
It would be useful if you could supply a complete working example.
Well, if it works incorrectly for me, I hope it works incorrectly for you too ;-) . I wonder what you tested, I really can't find a scenario where it does work the way I expect it (but then again, I may be overlooking something seriously).

Here it goes (just to be sure, I included all the heading information as well). Just run A.xslt with Saxon8B and you get "E No value supplied for required parameter redefine-me]" (I actually called it with input doc as 'A.xslt'). It shouldn't matter whether the >>required="no"<< is there or not, but for what it's worth, I tried both: same result.

Stylesheet A.xslt:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="2.0">
<xsl:import href="B.xslt" />
<xsl:param name="redefine-me" select=" 'OVERRIDDEN!' " required="no" />
</xsl:stylesheet>


Stylesheet B.xslt:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="2.0">
<xsl:param name="redefine-me" required="yes" />
</xsl:stylesheet>


Current Thread