#510 Overriding a required param

v8.7.1
closed
Michael Kay
5
2012-10-08
2006-04-26
Michael Kay
No

In XSLT, if a stylesheet parameter is defined in one
module with required="yes", and an importing module
overrides this parameter (either with xsl:variable or
xsl:param) supplying a default value, the parameter is
still treated as required and XTDE0050 is reported if
no value is supplied by the calling application.

Source code fix: in XSLParam.java (package
net.sf.saxon.style) at line 94, add to the start of the
compile() method the code:

    if (redundant) {
        return null;
    }

Test case var31 added.

Discussion