W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2008

[Bug 5650] xsl:function/(@required | @tunnel)

From: <bugzilla@farnsworth.w3.org>
Date: Tue, 22 Apr 2008 12:44:02 +0000
To: public-qt-comments@w3.org
Message-Id: <E1JoHqs-0003Ho-W4@farnsworth.w3.org>


------- Comment #1 from mike@saxonica.com  2008-04-22 12:44 -------
Personal response.

>I don't find anything, not in "9.2 Parameters" or "10.3 Stylesheet Functions", that state xsl:function/xsl:param/@tunnel is disallowed or what error code to raise.

The last para of 9.2 states: "The optional tunnel attribute may be used to
indicate that a parameter is a tunnel parameter. The default is no; the value
yes may be specified only for template parameters." This implies that the value
tunnel="no" is legal for a function parameter. If tunnel="yes" is specified, I
would suggest raising XTSE0020: "an attribute ... contains a value that is not
one of the permitted values for that attribute."

>"The optional required attribute may be used to indicate that a parameter is mandatory. This attribute ... must not be specified for function parameters, which are always mandatory." but it isn't stated what error code to raise.

I would suggest XTSE0010: "the content of [an] element does not correspond to
the content that is allowed for the element."

I don't dispute that it seems inconsistent to allow tunnel="no" while not
allowing required="yes", nor that we are inconsistent about when we define
specific error messages for a condition and when we fall back to general
purpose error codes. But I don't think such inconsistencies can be classed as
bugs in the spec. 
Received on Tuesday, 22 April 2008 12:44:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:22 UTC