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: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 9 Oct 2006 23:46:10 +0100
> 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.

It works for me. But I see now there was a bug in versions prior to 8.7.2:

https://sourceforge.net/tracker/index.php?func=detail&aid=1477110&group_id=2
9872&atid=397617

Michael Kay
http://www.saxonica.com/

> 
> 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