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>
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--