- From: <bugzilla@jessica.w3.org>
 - Date: Mon, 26 Oct 2015 09:37:13 +0000
 - To: public-qt-comments@w3.org
 
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29242
            Bug ID: 29242
           Summary: Overriding a required parameter with an optional
                    parameter
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0
          Assignee: mike@saxonica.com
          Reporter: mike@saxonica.com
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---
In 3.5.3.3, the compatibility rules for overriding of variables and parameters
state:
If the overridden variable is a parameter that specifies required="yes" then
the overriding variable is either a non-parameter variable, or a parameter that
specifies required="yes"
This rule seems unnecessary and illogical. It essentially says that variables
can override parameters, and parameters can override variables, in all cases
except the following: an optional parameter cannot override a required
parameter.
But an optional parameter always supplies a default, so why not? As written, if
a library package has a required parameter LINE_LENGTH, then I can override
this with a variable LINE_LENGTH set to 80, but I cannot override it with an
optional parameter LINE_LENGTH whose default is 80.
In addition the terminology 'required="yes"' is wrong. If we make the rule for
explicitly required parameters then it should also apply to implicitly required
parameters.
Proposal: delete this rule.
-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 26 October 2015 09:37:16 UTC