- From: <bugzilla@wiggum.w3.org>
- Date: Fri, 08 Sep 2006 14:56:23 +0000
- To: www-xml-schema-comments@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=3677 Summary: [SCD] Numeric predicates confusing Product: XML Schema Version: unspecified Platform: PC URL: http://lists.w3.org/Archives/Member/w3c-xml-schema- wg/2006Aug/0016.html OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: SCDS: XML Schema Component Designators AssignedTo: holstege@mathling.com ReportedBy: holstege@mathling.com QAContact: www-xml-schema-comments@w3.org Originally raised in http://lists.w3.org/Archives/Member/w3c-xml-schema-wg/2006Aug/0016.html by Kohsuke Kawaguchi <Kohsuke.Kawaguchi@Sun.COM> - I'm confused with predicate. For example, when I read "4.2.3 element declaration", it says "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" That seems to imply that if I write: "/~my:type//my:element", then this is treated identical as "/~my:type//my:element[1]", thus it would actually only match the first such element declaration below, and not both of them. <complexType name="type"> <sequence> <!-- two elements of the same name --> <element name="element" ... /> <element name="element" ... /> This goes against my intuition. Also, while it'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.
Received on Friday, 8 September 2006 14:56:52 UTC