Bug 20902 - [XQ30] Incompatibilities
[XQ30] Incompatibilities
Status: RESOLVED FIXED
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3.0
Candidate Recommendation
PC Windows NT
: P2 normal
: ---
Assigned To: Jonathan Robie
Mailing list for public feedback on specs from XSL and XML Query WGs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-08 10:51 UTC by Tim Mills
Modified: 2013-05-07 17:42 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Mills 2013-02-08 10:51:48 UTC
In XQ10, the reserved-function-names extra-grammatical constraint only applied to FunctionCall.

In XQ30, the constraint also applies to NamedFunctionRef and FunctionDecl.  This means that some valid XQ10 queries now raise errors, for example:

    declare default function namespace "http://www.w3.org/2005/xquery-local-functions";
    declare function attribute() { fn:true() };
    local:attribute()

This should be listed in the XQ30 incompatibilities.

I have already committed test cases for reserved function names.
Comment 1 Jonathan Robie 2013-03-19 16:37:35 UTC
Yes, this should be listed as an incompatibility.
Comment 2 Michael Kay 2013-05-07 17:42:00 UTC
Noted during discussion today that the resolution of this bug represents an official interpretation of the XQuery 1.0 specification, to the effect that the prohibition of reserved function names applies only to their use in function calls, and not to their use in function declarations.


  翻译: