<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>20902</bug_id>
          
          <creation_ts>2013-02-08 10:51:48 +0000</creation_ts>
          <short_desc>[XQ30] Incompatibilities</short_desc>
          <delta_ts>2013-05-07 17:42:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3.0</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Mills">tim</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>mike</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>82746</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-02-08 10:51:48 +0000</bug_when>
    <thetext>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 &quot;http://www.w3.org/2005/xquery-local-functions&quot;;
    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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84631</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2013-03-19 16:37:35 +0000</bug_when>
    <thetext>Yes, this should be listed as an incompatibility.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87362</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-05-07 17:42:00 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>