<?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>3387</bug_id>
          
          <creation_ts>2006-06-24 11:23:34 +0000</creation_ts>
          <short_desc>Editorial, FODC0005 is used by both fn:doc() and fn:doc-available(), but only specified for fn:doc().</short_desc>
          <delta_ts>2006-07-02 11:47:52 +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>Candidate Recommendation</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>editorial</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Frans Englich">frans.englich</reporter>
          <assigned_to name="Ashok Malhotra">ashok.malhotra</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>10231</commentid>
    <comment_count>0</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2006-06-24 11:23:34 +0000</bug_when>
    <thetext>The description for FODC0005 reads:

err:FODC0005, Invalid argument to fn:doc.

However, FODC0005 is also used in fn:doc-available(). Here&apos;s the cases it&apos;s used:

fn:doc(): If $uri is not a valid xs:anyURI, an error is raised [err:FODC0005].

fn:doc(): If the Available documents provides no mapping for the string, an error is raised [err:FODC0005]

fn:doc-available(): If $uri is not a valid xs:anyURI, an error is raised [err:FODC0005].


Possible solutions:
* Change the description for FODC0005 to &quot;Invalid argument to fn:doc or fn:doc-available&quot;. I think this is the least intrusive change, and aligns with what currently is specified.
* Allocate a new error code for fn:doc-available(). If detailed error codes are of interest, this is probably an appealing alternative.

I have no preference, I can understand both. Conservatism is understandable, but on the other hand it&apos;s neither that intrusive to allocate a new error code.


Frans</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10355</commentid>
    <comment_count>1</comment_count>
    <who name="Ashok Malhotra">ashok.malhotra</who>
    <bug_when>2006-07-02 11:46:03 +0000</bug_when>
    <thetext>Thanks!  Fixed by making error description refer to both functions.  Please close.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>