<?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>1288</bug_id>
          
          <creation_ts>2005-05-03 10:41:48 +0000</creation_ts>
          <short_desc>modelling of /./ in XqueryX</short_desc>
          <delta_ts>2005-05-13 15:47:09 +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>XQueryX 1.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 2000</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="David Carlisle">davidc</reporter>
          <assigned_to name="Jim Melton">jim.melton</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>3590</commentid>
    <comment_count>0</comment_count>
    <who name="David Carlisle">davidc</who>
    <bug_when>2005-05-03 10:41:48 +0000</bug_when>
    <thetext>Issue: xqueryx-slash-slash, priority: 3, status: closed

says that // can be modelled with the non-abbreviated form
/descendant-or-self::node()/
which is fine, 
butthe examples shown model it as descendant-or-self::
which isn&apos;t, in general, equivalent.

eg section 3.2
doc(&quot;http://bstore1.example.com/bib/bib.xml&quot;)//author
is converted to
doc(&quot;http://bstore1.example.com/bib/bib.xml&quot;)/descendant-or-self::author
rather than
doc(&quot;http://bstore1.example.com/bib/bib.xml&quot;)/descendant-or-self::node()/author

As in this case the root of the tree is a document node, and there are no
predicates in the step, these two expressions will return the same result
but they correspond to different routes through the Xquery grammar, and I
believe they should  be modelled differently in XqueryX.

This doesn&apos;t require a change to XqueryX as specified, just a change to the
XQueryX version of the examples to use the XML equivalent to
/descendant-or-self::node()/author



similarly in 3.3 has:
doc(&quot;http://bstore1.example.com/bib.xml&quot;)/descendant-or-self::book

David</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3451</commentid>
    <comment_count>1</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2005-05-11 00:35:06 +0000</bug_when>
    <thetext>Your remarks identify places where the document can be improved by correcting
some examples.  We will undertake these changes editorially.  Thank you for your
comment. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3386</commentid>
    <comment_count>2</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2005-05-11 19:43:28 +0000</bug_when>
    <thetext>The XML Query Working Group has considered this comment and agrees to correct
the examples in the manner that you described. 

Please let us know if you agree with this resolution of your issue, by adding a
comment to the issue record and changing the Status of the issue to Closed. Or,
if you do not agree with this resolution, please add a comment explaining why.
If you wish to appeal the WG&apos;s decision to the Director, then also change the
Status of the record to Reopened. If you wish to record your dissent, but do not
wish to appeal the decision to the Director, then change the Status of the
record to Closed. If we do not hear from you in the next two weeks, we will
assume you agree with the WG decision.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3321</commentid>
    <comment_count>3</comment_count>
    <who name="David Carlisle">davidc</who>
    <bug_when>2005-05-13 15:47:09 +0000</bug_when>
    <thetext>Thanks for agreeing to fix these
(sorry I thought I&apos;d replied to this earlier)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>