This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1401 - Use substitution groups to improve usability
Summary: Use substitution groups to improve usability
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQueryX 1.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows 2000
: P2 normal
Target Milestone: ---
Assignee: Jim Melton
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-13 17:14 UTC by Mary Holstege
Modified: 2005-08-05 16:34 UTC (History)
0 users

See Also:


Attachments

Description Mary Holstege 2005-05-13 17:14:04 UTC
Use substitutionGroups to make the syntax easier to work with
both with respect to selectors, by eliminating need for xsi:type,
nd for humans.

There are three places in the existing schema where this might apply:
(1) For expressions, to eliminate the need for xsi:type
    This is largely a matter of turning named complex types into 
    elements. See xqx.newschema1.xsd and xq.ex1.xml
(2) For steps in path expressions. This amounts to converting the simple
    type enumeration into a collection of elements.
    See xqx.newschema2.xsd and xq.ex2.xml
(3) For operators. This involves converting some types to elements and
    various enumerations to elements. Since some of the operator names
    are non valid as element names, names need to be created for these
    cases. See xqx.newschema3.xsd and xq.ex3.xml
        
(1) and (2) aren't necessary to get rid of xsi:type, but they do provide
for a more direct syntax. One could go even further on (c) and put the
operators into the "op:" namespace:, which might assist in automatic
mapping from XQuery grammar. 

See schemas and examples at http://lists.w3.org/Archives/Member/w3c-archive/
2005May/0068.html
Comment 1 Mary Holstege 2005-05-13 17:15:54 UTC
(On behalf of Schema WG)
Comment 2 Jim Melton 2005-06-27 00:30:13 UTC
The Query WG has considered your comment and agrees with it.  A new XQueryX
schema has been developed that uses substitution groups in preference to the
previous hierarchial approach.  When a new edition of the XQueryX spec is
published, we hope that you will review it and, if, you find the changes
satisfactory, mark this comment as CLOSED. 

We appreciate your feedback on the XML Query specifications. Please let us know
if this response is satisfactory. If not, please respond to this message,
explaining your concerns.

Jim Melton
On behalf of the XML Query Working Group
Comment 3 Mary Holstege 2005-08-05 16:34:25 UTC
The Schema WG is satisfied with this resolution.