<?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>3677</bug_id>
          
          <creation_ts>2006-09-08 14:56:20 +0000</creation_ts>
          <short_desc>[SCD] Numeric predicates confusing</short_desc>
          <delta_ts>2009-02-06 17:41:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema</product>
          <component>SCDS: XML Schema Component Designators</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://lists.w3.org/Archives/Member/w3c-xml-schema-wg/2006Aug/0016.html</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="Mary Holstege">holstege</reporter>
          <assigned_to name="Mary Holstege">holstege</assigned_to>
          
          
          <qa_contact name="XML Schema comments list">www-xml-schema-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11516</commentid>
    <comment_count>0</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2006-09-08 14:56:20 +0000</bug_when>
    <thetext>Originally raised in http://lists.w3.org/Archives/Member/w3c-xml-schema-wg/2006Aug/0016.html by Kohsuke Kawaguchi &lt;Kohsuke.Kawaguchi@Sun.COM&gt;

- I&apos;m confused with predicate. For example, when I read &quot;4.2.3 element
   declaration&quot;, it says &quot;prefix:name[n] where the [n] will be absent
   if the {scope} of the element declaration is global and may be
   absent if the value of n is 1&quot;

   That seems to imply that if I write: &quot;/~my:type//my:element&quot;, then
   this is treated identical as &quot;/~my:type//my:element[1]&quot;, thus it
   would actually only match the first such element declaration below,
   and not both of them.

   &lt;complexType name=&quot;type&quot;&gt;
     &lt;sequence&gt;
       &lt;!-- two elements of the same name --&gt;
       &lt;element name=&quot;element&quot; ... /&gt;
       &lt;element name=&quot;element&quot; ... /&gt;

   This goes against my intuition.

   Also, while it&apos;s reasonable to assume that the predicate is 1-origin
   after spending some time with this spec, I failed to find the
   explicit statement about whether predicate is 0-origin or 1-origin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11968</commentid>
    <comment_count>1</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2006-09-22 16:58:59 +0000</bug_when>
    <thetext>This is broken all right.  The intention was to not make people write [1] when
there was only one, but it is not stated correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23530</commentid>
    <comment_count>2</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2009-02-06 17:41:03 +0000</bug_when>
    <thetext>Fixed in Last Call draft http://www.w3.org/TR/2008/WD-xmlschema-ref-20081117/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>