<?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>1247</bug_id>
          
          <creation_ts>2005-04-13 15:09:25 +0000</creation_ts>
          <short_desc>fn:id uses error err:XPTY0004 but it should use err:XPTY0006</short_desc>
          <delta_ts>2012-03-27 23:33:01 +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>Functions and Operators 1.0</component>
          <version>Last Call drafts</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="Alberto Massari">amassari</reporter>
          <assigned_to name="Ashok Malhotra">ashok.malhotra</assigned_to>
          <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>3742</commentid>
    <comment_count>0</comment_count>
    <who name="Alberto Massari">amassari</who>
    <bug_when>2005-04-13 15:09:25 +0000</bug_when>
    <thetext>In §15.5.2, fn:id reports error err:XPTY0004 &quot;if the context item is not a
node&quot;; but the error is defined in the appendix to be &quot;It is a type error if,
during the static analysis phase, an expression is found to have a static type
that is not appropriate for the context in which the expression occurs, or
during the dynamic evaluation phase, the dynamic type of a value does not match
a required type as specified by the matching rules in 2.5.4 SequenceType Matching.&quot; 
As other functions (like namespace-uri, name,..) use err:XPTY0006 for the same
reason, I think it should be used also here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3743</commentid>
    <comment_count>1</comment_count>
    <who name="Alberto Massari">amassari</who>
    <bug_when>2005-04-13 15:16:27 +0000</bug_when>
    <thetext>The same comment applies to fn:idref too</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3744</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-04-13 15:26:17 +0000</bug_when>
    <thetext>In fact a decision was made to merge XPTY0004 and XPTY0006 into a single error
code, because the only distinction between them was the time at which the error
is detected rather than the nature of the error. Unfortunately this decision has
not been implemented in the F+O book.

Michael Kay</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2722</commentid>
    <comment_count>3</comment_count>
    <who name="Ashok Malhotra">ashok.malhotra</who>
    <bug_when>2005-06-07 21:59:15 +0000</bug_when>
    <thetext>The joint WGs agreed in the telcon on 6-7-2005 to change the error for &quot;context
item is not a node&quot; to an F&amp;O error.  As suggested by Jerome, this should be a
type error.  See (member-only) mail:
http://lists.w3.org/Archives/Member/w3c-xsl-query/2005May/0032.html
http://lists.w3.org/Archives/Member/w3c-xsl-query/2005May/0035.html

Ashok Malhotra</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66157</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-03-27 23:33:01 +0000</bug_when>
    <thetext>Changing status from the rarely-used VERIFIED to CLOSED.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>