[Bug 20843] [XT3TS] function-1902

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20843

Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CLOSED                      |REOPENED
         Resolution|FIXED                       |---

--- Comment #6 from Michael Kay <mike@saxonica.com> ---
This test requires an XSLT 2.0 processor to reject calls on 3.0 functions such
as math:sin or fn:has-children.

I can find nothing in the XSLT 2.0 specification that requires this.

Firstly, calls such as math:sin are definitely legal. If the processor chooses
to implement an extension function of this name in this namespace, there is
nothing in the spec to prevent it.

I thought there might be something to prevent the processor adding extension
functions in the FN namespace, but this too appears to be legal.

The spec mandates (in 3.2 Reserved namespaces) that "Reserved namespaces must
not be used... in the names of stylesheet-defined objects such as variables and
stylesheet functions." But there is nothing to prevent their use for extension
functions. This may well be an oversight, but we're dealing here with the spec
as written.

(From a practical perspective, my "XSLT 2.0" processor is actually a 3.0
processor running with certain functionality disabled. I have to decide what to
disable, and I want to disable only what the 2.0 spec strictly requires me to
disable. I don't think it requires me to disable these functions.)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 30 July 2015 19:16:54 UTC