<?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>8663</bug_id>
          
          <creation_ts>2010-01-06 21:33:05 +0000</creation_ts>
          <short_desc>[XQuery11] additional rule needed for nondeterministic function</short_desc>
          <delta_ts>2010-01-26 17:41:18 +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>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/2009/WD-xquery-11-20091215/#FunctionDeclns</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="Andrew Eisenberg">andrew.eisenberg</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          
          
          <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>30684</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2010-01-06 21:33:05 +0000</bug_when>
    <thetext>The bnf in section 4.17 Function Declaration states:

[31]    FunctionDecl           ::=    &quot;declare&quot; FunctionOptions &quot;function&quot; QName &quot;(&quot; ParamList? &quot;)&quot; (&quot;as&quot; SequenceType)? (FunctionBody | &quot;external&quot;)
[32]    FunctionOptions        ::=    (PrivateOption | DeterministicOption)*
[33]    PrivateOption          ::=    &quot;private&quot; | &quot;public&quot;
[34]    DeterministicOption    ::=    &quot;deterministic&quot; | &quot;nondeterministic&quot;


We later say:

&quot;An XQuery processor can use static analysis to determine whether a user-defined function is deterministic (the syntax of function declarations does not allow a user-defined function to be declared deterministic or nondeterministic).&quot;


We need to raise a static error if DeterministicOption and &quot;external&quot; are both specified.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31241</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2010-01-26 17:41:18 +0000</bug_when>
    <thetext>This is related to http://www.w3.org/Bugs/Public/show_bug.cgi?id=7863.

Marking invalid, we&apos;ll apply the solution from 7863.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>