<?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>3670</bug_id>
          
          <creation_ts>2006-09-07 16:15:52 +0000</creation_ts>
          <short_desc>[FS] Missing op:anyURI-equal(A, B)</short_desc>
          <delta_ts>2007-09-30 09:08:44 +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>
          <dependson>3433</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Mills">tim</reporter>
          <assigned_to name="Jerome Simeon">simeon</assigned_to>
          <cc>bungeman</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>11493</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2006-09-07 16:15:52 +0000</bug_when>
    <thetext>Operator op:anyURI-equal(A, B) mentioned in:

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

is missing in &quot;functions and operators&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11495</commentid>
    <comment_count>1</comment_count>
    <who name="Ashok Malhotra">ashok.malhotra</who>
    <bug_when>2006-09-07 17:20:26 +0000</bug_when>
    <thetext>My recollction is that we agreed to remove op:anyURI-equal from the F&amp;O when we decided that URIs would be compared like strings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11639</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2006-09-13 10:06:59 +0000</bug_when>
    <thetext>Presumably the additional typechecking rule:

-------------------------------------------------
statEnv |- xs:anyURI can be promoted to xs:string

is also required?

XQTS test fn-document-uri-12 appears to requires such a rule, because in:

fn:contains(fn:document-uri($input-context1),\&quot;works-mod\&quot;)

fn:document-uri returns xs:anyURI?, while fn:contains only takes xs:string? arguments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12040</commentid>
    <comment_count>3</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-09-26 14:41:34 +0000</bug_when>
    <thetext>I think there are some inconsistencies in the formal semantics here.

I believe the following changes should fix them:

(1) replace the line:
fs:eq(A, B) 	xs:anyURI 	xs:anyURI 	op:anyURI-equal(A, B) 	xs:boolean
in the operator&apos;s table by:
fs:eq(A, B) 	xs:anyURI 	xs:anyURI 	op:numeric-equal(fn:compare(A, B), 0)

since URIs are now compared as strings.

(2) Add the type promotion judgment from xs:anyURI to xs:string as suggesed by Tim:


-------------------------------------------------
statEnv |- xs:anyURI can be promoted to xs:string


- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12054</commentid>
    <comment_count>4</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-09-26 15:59:09 +0000</bug_when>
    <thetext>Tim,
The XSLT and XML Query working groups have looked at your comment, and decided to close it by adopting the two listed changes below to the the Formal Semantics document.
Let us know if you are ok with that resolution.
Best,
- Jerome
On behalf XSLT and XML Query WGs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12057</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2006-09-26 16:05:20 +0000</bug_when>
    <thetext>Great, thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13648</commentid>
    <comment_count>6</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2007-01-17 09:49:08 +0000</bug_when>
    <thetext>The type promotion rule doesn&apos;t appear to have made it into the FS document dated 21 November 2006.

XQTS test K2-BaseURIProlog-4 requires this promotion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13844</commentid>
    <comment_count>7</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2007-01-30 17:32:07 +0000</bug_when>
    <thetext>Ouch. And it&apos;s not in the REC document from january 23rd either. I thought it had been done, but must have fall into the cracks. It will have to go into an errata.
Thanks for pointing this out.
- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14188</commentid>
    <comment_count>8</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2007-02-26 00:07:09 +0000</bug_when>
    <thetext>The fix for this bug does not appear in the Recommendation of 23 January 2007.  It will be considered for a future publication (either an Errata document or some possible future version of the specification). </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15982</commentid>
    <comment_count>9</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2007-07-31 18:26:25 +0000</bug_when>
    <thetext>*** Bug 4898 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16887</commentid>
    <comment_count>10</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2007-09-30 09:05:08 +0000</bug_when>
    <thetext>This issue has been entered as FS erratum E010. The changes proposed in Comment #3 (plus a similar change for the fs:ne case) 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>