<?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>11014</bug_id>
          
          <creation_ts>2010-10-12 14:46:53 +0000</creation_ts>
          <short_desc>Boolean literals?</short_desc>
          <delta_ts>2010-12-03 20:25:22 +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>Member-only Editors Drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</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="Jonathan Robie">jonathan.robie</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>john.snelson</cc>
    
    <cc>josh.spiegel</cc>
    
    <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>41107</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2010-10-12 14:46:53 +0000</bug_when>
    <thetext>The following text in &quot;3.1.1 Literals&quot; implies, but does not state, that fn:true() and fn:false() can be used to represent Boolean literals:

&quot;The xs:boolean values true and false can be represented by calls to the built-in functions fn:true() and fn:false(), respectively.&quot;

This comes immediately after a list of examples of literals, and immediately before this text:

&quot;Values of other atomic types can be constructed by calling the constructor function for the given type.&quot;

Do we intend to allow these to be used as literals? The grammar does not support them. We need to clarify this text one way or another.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41112</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-10-12 14:59:38 +0000</bug_when>
    <thetext>The function calls true() and false() are not literals, but they fulfil the same role as literals, in that you can use them in an expression anywhere you can use a literal. I think that&apos;s what the text is trying to say.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41773</commentid>
    <comment_count>2</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2010-10-26 17:31:00 +0000</bug_when>
    <thetext>Related to this, in section 4.15 Annotations it states:

&quot;An annotation always has a value. If no explicit value is provided, the value is fn:true(). &quot;

But the grammar for an annotation is: 
[27] Annotation ::= &quot;%&quot; EQName (&quot;(&quot; Literal (&quot;,&quot; Literal)* &quot;)&quot;)?

So it seems that a user can not set the value of an annotation to fn:false() which is strange given the default value is fn:true()?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41967</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2010-11-02 17:47:45 +0000</bug_when>
    <thetext>The Working Group decided to fix this by removing the last sentence in the following excerpt:

(In reply to comment #2)
&gt; Related to this, in section 4.15 Annotations it states:
&gt; 
&gt; &quot;An annotation always has a value. If no explicit value is provided, the value
&gt; is fn:true(). &quot;

Editorially, the following may be clarified:

&quot;The xs:boolean values true and false can be represented by calls to the
built-in functions fn:true() and fn:false(), respectively.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43034</commentid>
    <comment_count>4</comment_count>
    <who name="John Snelson">john.snelson</who>
    <bug_when>2010-12-03 20:25:22 +0000</bug_when>
    <thetext>This has now been fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>