<?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>1757</bug_id>
          
          <creation_ts>2005-07-19 21:47:25 +0000</creation_ts>
          <short_desc>[FS] editorial: 7.2.4 The fn:boolean function</short_desc>
          <delta_ts>2008-08-18 05:51:20 +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>Formal Semantics 1.0</component>
          <version>Last Call drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Dyck">jmdyck</reporter>
          <assigned_to name="Michael Dyck">jmdyck</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>4933</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-19 21:47:25 +0000</bug_when>
    <thetext>7.2.4 The fn:boolean function

&quot;a sequence of one or more nodes&quot;
    Actually, F+O 15.1.1 indicates that a sequence consisting of a node
    followed by atomic values should not raise a type error, whereas this
    rule would reject it.

&quot;or a singleton value of type ...&quot;
    Missed xs:boolean.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4934</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Rys">mrys</who>
    <bug_when>2005-07-19 22:18:10 +0000</bug_when>
    <thetext>F+O describes the dynamic semantics. The static semantics is designed to 
disallow any heterogeneous node/atomic value sequence.

Best regards
Michael (speaking for myself, but also as the original proposer of the 
semantics)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8962</commentid>
    <comment_count>2</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-03-29 22:26:56 +0000</bug_when>
    <thetext>Fixed the second comment, without changing the intended semantics of fn:boolean.
- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12327</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2006-10-06 00:03:17 +0000</bug_when>
    <thetext>&quot;The fn:boolean function as described in the [Functions and Operators] document takes an empty sequence, a sequence of one or more nodes, or a singleton value of type .... All other values are illegal.&quot;
    No, fn:boolean &lt;em&gt;as described in the F+O doc&lt;/em&gt; handles a wider set of
    inputs. If you want the static typing to accept a narrower set of types,
    fine, but don&apos;t make it sound like they&apos;re in agreement. 

    Also, the list of singleton types is missing xs:anyURI.

    Also, NodeType+ probably isn&apos;t what you want. See Bug 1747, comment #3.

    </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21584</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2008-08-18 05:49:11 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; &quot;The fn:boolean function as described in the [Functions and Operators]
&gt; document takes an empty sequence, a sequence of one or more nodes, or a
&gt; singleton value of type .... All other values are illegal.&quot;
&gt;     No, fn:boolean &lt;em&gt;as described in the F+O doc&lt;/em&gt; handles a wider
&gt;     set of inputs. If you want the static typing to accept a narrower set
&gt;     of types, fine, but don&apos;t make it sound like they&apos;re in agreement. 

I have clarified the distinction between the dynamic and static type
restrictions.

&gt;     Also, the list of singleton types is missing xs:anyURI.

The Rec fixed this in the inference rule, but not in the preceding prose.

&gt;     Also, NodeType+ probably isn&apos;t what you want. See Bug 1747, comment #3.

Changed to [[ node()+ ]]_sequencetype.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21585</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2008-08-18 05:51:07 +0000</bug_when>
    <thetext>These remaining points have been entered as FS erratum E026, and the fixes
have been committed to the source files for the next edition of the FS
document.  Consequently, I&apos;m marking this issue resolved-fixed, and closed.

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>