<?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>3667</bug_id>
          
          <creation_ts>2006-09-07 14:43:50 +0000</creation_ts>
          <short_desc>Missing xs:anyUri from fn:boolean typing rule.</short_desc>
          <delta_ts>2006-10-19 19:53:07 +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>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Mills">tim</reporter>
          <assigned_to name="Jerome Simeon">simeon</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>11487</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2006-09-07 14:43:50 +0000</bug_when>
    <thetext>In:

http://www.w3.org/TR/xpath20/#id-ebv

&quot;If its operand is a singleton value of type xs:string, xs:anyURI, xs:untypedAtomic, or a type derived from one of these, fn:boolean returns false if the operand value has zero length; otherwise it returns true.&quot;

However, in:

http://www.w3.org/TR/xquery-semantics/#sec_fn_boolean

statEnv |-  Type &lt;: (empty | NodeType+ | xs:boolean | xs:string | xs:untypedAtomic | fs:numeric)
---------------------------------------------------
statEnv  |-  (FN-URI,&quot;boolean&quot;)(Type) : xs:boolean

This typing rule should include xs:anyURI.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11862</commentid>
    <comment_count>1</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-09-19 15:25:30 +0000</bug_when>
    <thetext>Good catch. The typing rule should have xs:anyURI added to it, as follows:

statEnv |-  Type &lt;: (empty | NodeType+ | xs:boolean | xs:string |
xs:untypedAtomic | fs:numeric | xs:anyURI)
---------------------------------------------------
statEnv  |-  (FN-URI,&quot;boolean&quot;)(Type) : xs:boolean

- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12034</commentid>
    <comment_count>2</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-09-26 14:01:21 +0000</bug_when>
    <thetext>Tim,
The XSLT and XML Query Working groups have adopted your proposal and
will make the corresponding changes in the next version of the formal
semantics documents.
Best regards,
- Jerome Simeon
on behalf of the XSLT and XML Query WGs</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>