<?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>2724</bug_id>
          
          <creation_ts>2006-01-18 08:15:23 +0000</creation_ts>
          <short_desc>Context position : some inconsistencies about what it is supposed to be.</short_desc>
          <delta_ts>2006-02-23 00:05:26 +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 1.0</component>
          <version>Candidate Recommendation</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pierrick Brihaye">pierrick.brihaye</reporter>
          <assigned_to name="Don Chamberlin">chamberl</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>7864</commentid>
    <comment_count>0</comment_count>
    <who name="Pierrick Brihaye">pierrick.brihaye</who>
    <bug_when>2006-01-18 08:15:23 +0000</bug_when>
    <thetext>The specs give very strict indications about how context positions should be
assigned a value :

Its value is always an integer greater than zero
The position of the first item in a sequence is always 1 (one)
The context position is always less than or equal to the context size
Context positions are assigned to items based on their ordinal position in the
result sequence. The first context position is 1.
The context position is the position of the context item within the sequence of
items currently being processed.

Sometimes however, other solutions are (fortunately) possible : 
 
During evaluation of a function body, the focus (context item, context position,
and context size) is undefined
[C.2 Dynamic Context Components]
Default initial value : none
Consistency rules : If context item is defined, context position must be &gt;0 and
&lt;= context size; else context position is undefined.

May the specs be more consistent and precise about defined/undefined focus ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8073</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2006-01-31 22:33:14 +0000</bug_when>
    <thetext>Context position is sometimes undefined. In contexts where it is defined, our
specs say how it is defined. In contexts where it can be undefined, we state
that fact.

I do not understand what is inconsistent or imprecise about our specs with
respect to context position - can you please clarify?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8078</commentid>
    <comment_count>2</comment_count>
    <who name="Pierrick Brihaye">pierrick.brihaye</who>
    <bug_when>2006-02-01 09:55:18 +0000</bug_when>
    <thetext>I just request some precisions that would make paragraphs more &quot;autonomous&quot;.

For example :
[Definition: The context position is the position of the context item within the
sequence of items currently being processed.]
I would preprend something like : &quot;When the focus is defined...&quot;

The like for :
The context position is the position of the context item within the sequence of
items currently being processed.

I could cope with the expression of the C2 table (&quot;If context item is defined&quot;)
 but the notion of &quot;focus&quot; looks to me more generic.



 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8393</commentid>
    <comment_count>3</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2006-02-23 00:05:14 +0000</bug_when>
    <thetext>Pierrick,
Thanks for your comment. The Query and XSLT working groups considered your 
comment on 02 Feb 2006 and agreed to add the phrase &quot;When the focus is defined&quot; 
to the definition of context position, as you suggested. The change will be 
included in the next published version of the XPath and XQuery specifications. 
Since we consider this to be an editorial rather than a substantive change, I 
have marked this issue as closed.
Regards,
Don Chamberlin, for the Query and XSLT working groups</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>