Bugzilla – Bug 20902
[XQ30] Incompatibilities
Last modified: 2013-05-07 17:42:00 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.
Yes, this should be listed as an incompatibility.
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.