<?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>30151</bug_id>
          
          <creation_ts>2017-07-19 02:24:19 +0000</creation_ts>
          <short_desc>[FO31] The function fn:boolean does not have properties like determinism defined</short_desc>
          <delta_ts>2017-12-20 10:51:16 +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>Functions and Operators 3.1</component>
          <version>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="Abel Braaksma">abel.braaksma</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>andrew_coleman</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>128725</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2017-07-19 02:24:19 +0000</bug_when>
    <thetext>Section 7.3.1 fn:boolean misses a Properties section. As a result it is not directly clear whether it is context-independent or not (it isn&apos;t).

I think the properties should be:

deterministic, context-independent, focus-independent

It also looks like that sometimes properties are listed for operators and sometimes not. We do say in 1.7 Properties of functions:

&quot;All functions defined in this specification are ·deterministic· unless otherwise stated. Exceptions include the following: &quot;

But we don&apos;t have a similar statement on functions (and operators) being context-independent (unless otherwise noted) or focus-independent (unless otherwise noted). While it may seem obvious that if it isn&apos;t listed, they are context-independent, I don&apos;t see that stated.

There aren&apos;t many operators defined that have a Properties section, but still, I&apos;d guess we ought to be consistent here, or have a general statement about it (I sought for it, but couldn&apos;t find it).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128858</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-08-28 22:14:12 +0000</bug_when>
    <thetext>fn:boolean appears to be the only function in the fn namespace for which the properties section is absent.

For op: functions I think properties are given only in the cases where there is some context-dependency to report.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128864</commentid>
    <comment_count>2</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2017-08-29 20:09:14 +0000</bug_when>
    <thetext>(In reply to Michael Kay from comment #1)
&gt; fn:boolean appears to be the only function in the fn namespace for which the
&gt; properties section is absent.
Yes, I think so too, it&apos;s missing only there.

&gt; For op: functions I think properties are given only in the cases where there
&gt; is some context-dependency to report.
I&apos;d expect a line somewhere that says this. Maybe there is, but I haven&apos;t found it. The logical place would be in 1.7 Properties of Functions.

Suggestion:

All operators defined in this spec with the &quot;op&quot; prefix are deterministic, context-independent and focus-independent, unless stated otherwise.

(if this is indeed correct, of course)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129020</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-12-19 15:21:23 +0000</bug_when>
    <thetext>Erratum FO31.E2 was drafted to fix this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129024</commentid>
    <comment_count>4</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2017-12-20 10:51:16 +0000</bug_when>
    <thetext>resolved in latest commit</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>