<?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>3695</bug_id>
          
          <creation_ts>2006-09-11 09:18:00 +0000</creation_ts>
          <short_desc>Static typing of value comparisons</short_desc>
          <delta_ts>2007-01-16 17:52:35 +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>minor</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>11605</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2006-09-11 09:18:00 +0000</bug_when>
    <thetext>In:

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

&quot;The static semantics for function calls is given in [4.1.5 Function Calls]. The comparison functions all have return type xs:boolean, as specified in [Functions and Operators].&quot;

Since value comparisons can operate on empty sequences, shouldn&apos;t ValueOp(Expr1, Expr2) type check to xs:boolean? in the general case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11844</commentid>
    <comment_count>1</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-09-19 00:01:17 +0000</bug_when>
    <thetext>This is a good catch. The text is not reflecting the current status (probably hasn&apos;t for a long time). This should be fixed. I believe the inference rules are consistent with F&amp;O and do not need to be fixed.
- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12035</commentid>
    <comment_count>2</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-09-26 14:04:14 +0000</bug_when>
    <thetext>Tim,
This bug has been reclassified as editorial.
The XSLT and XML Query working groups have decided to
accept the comment and fix the text to align with the
F&amp;O document.
Best,
- Jerome
On Behalf of the XSLT and XML Query WGs</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>