<?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>15789</bug_id>
          
          <creation_ts>2012-01-30 11:17:40 +0000</creation_ts>
          <short_desc>[XQuery30] Declaring a context item does not consistently set the focus</short_desc>
          <delta_ts>2012-02-28 15:26:46 +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>XQuery 3.0</component>
          <version>Working drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ghislain Fourny">g</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>mike</cc>
    
    <cc>tim</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>63323</commentid>
    <comment_count>0</comment_count>
    <who name="Ghislain Fourny">g</who>
    <bug_when>2012-01-30 11:17:40 +0000</bug_when>
    <thetext>The focus must fulfill consistency rules as stated in the description of the dynamic context (2.1.2) and in paragraph C.2. In particular, the context size and the context position must be defined and greater than zero if the context item is defined.

I suspect that section 4.17 (Context Item Declaration) may render the focus inconsistent, by setting the context item without setting the context position and size appropriately.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63764</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-02-06 17:06:05 +0000</bug_when>
    <thetext>XSLT handles this by defining the term &quot;singleton focus&quot;. A singleton focus set to N is defined to have context item = N, position = 1, size = 1. Constructs such as the context item declaration are defined to create a singleton focus set to the selected item.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64079</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2012-02-14 12:54:27 +0000</bug_when>
    <thetext>The Working Group agrees to adopt the solution in Comment #1 (with editorial discretion).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64679</commentid>
    <comment_count>3</comment_count>
    <who name="Ghislain Fourny">g</who>
    <bug_when>2012-02-28 15:26:46 +0000</bug_when>
    <thetext>*** Bug 16035 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>