<?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>1758</bug_id>
          
          <creation_ts>2005-07-19 22:35:26 +0000</creation_ts>
          <short_desc>[FS] editorial: 7.2.5 The fn:collection and fn:doc functions</short_desc>
          <delta_ts>2007-02-25 23:18:54 +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>Last Call drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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="Michael Dyck">jmdyck</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>4936</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-19 22:35:26 +0000</bug_when>
    <thetext>7.2.5 The fn:collection and fn:doc functions

&quot;if the argument is not a literal string or is a string but not defined
in statEnv.collectionType&quot;
    The corresponding rules are given in the opposite order. Swap the
    order in the prose, I think.

STA / rule 3 / conclusion
&quot;fn:collection(Expr)&quot;
    s/Expr/StringLiteral/

STA / rule 4 / premise 1
&quot;statEnv |- Expr is not a StringLiteral&quot;
    Delete &quot;statEnv |-&quot;.

STA / rule [34] / conclusion
&quot;... | processing-intruction | ...&quot;
    s/intr/instr/

STA / rule 5 / premise 1
&quot;statEnv |- statEnv.docType(StringLiteral) = ...&quot;
    Delete &quot;statEnv |-&quot;.

&quot;if the argument is not a literal string or is not defined in the domain
of statEnv.docType&quot;
    Again, the corresponding rules are given in the opposite order. Swap
    the order in the prose, I think.

STA / rule 6 / conclusion
&quot;fn:doc(Expr)&quot;
    s/Expr/StringLiteral/

STA / rule 7 / premise 1
not(Expr = StringLiteral)
    Regardless of statEnv and Expr, you can always find a binding for
    &apos;StringLiteral&apos; such that the premise holds (i.e., even if Expr *is*
    a StringLiteral) which is not what you want. Change to:
        &quot;Expr is not a StringLiteral&quot;
    as in rule 4.
(leftover from last year, comment #188)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8963</commentid>
    <comment_count>1</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-03-30 00:13:57 +0000</bug_when>
    <thetext>Fixed as suggested. Some editorial discretion necessary as the section had already been changed.
- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12328</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2006-10-06 00:12:00 +0000</bug_when>
    <thetext>STA / rule 7 / premise 2
statEnv |- Expr is not a URILiteral
    Delete &quot;statEnv |-&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13606</commentid>
    <comment_count>3</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2007-01-16 18:01:26 +0000</bug_when>
    <thetext>Fixed.
- Jerome
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14102</commentid>
    <comment_count>4</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2007-02-25 23:18:54 +0000</bug_when>
    <thetext>Closing bug because commenter has not objected to the resolution posted on 2007-01-16</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>