<?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>1401</bug_id>
          
          <creation_ts>2005-05-13 17:14:04 +0000</creation_ts>
          <short_desc>Use substitution groups to improve usability</short_desc>
          <delta_ts>2005-08-05 16:34:25 +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>XQueryX 1.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 2000</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="Mary Holstege">holstege</reporter>
          <assigned_to name="Jim Melton">jim.melton</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>3322</commentid>
    <comment_count>0</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2005-05-13 17:14:04 +0000</bug_when>
    <thetext>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&apos;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 &quot;op:&quot; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3325</commentid>
    <comment_count>1</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2005-05-13 17:15:54 +0000</bug_when>
    <thetext>(On behalf of Schema WG)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4355</commentid>
    <comment_count>2</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2005-06-27 00:30:13 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5366</commentid>
    <comment_count>3</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2005-08-05 16:34:25 +0000</bug_when>
    <thetext>The Schema WG is satisfied with this resolution.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>