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 22738 - Error in the XML Schema for the XQuery XML Syntax
Summary: Error in the XML Schema for the XQuery XML Syntax
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQueryX 3.0 (show other bugs)
Version: Candidate Recommendation
Hardware: PC Linux
: 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: 2013-07-19 23:46 UTC by Nikolay Ognyanov
Modified: 2013-07-21 07:54 UTC (History)
0 users

See Also:


Attachments

Description Nikolay Ognyanov 2013-07-19 23:46:52 UTC
In the schema as published at http://www.w3.org/TR/2013/CR-xqueryx-30-20130108/#Schema in the definition of PathExpr as there is a duplciate </xsd:choice> closing tag:

  <xsd:complexType name="pathExpr">
    <xsd:complexContent>
      <xsd:extension base="expr">
        <xsd:choice>
          <xsd:sequence>
            <xsd:element name="rootExpr" type="emptyContent"/>
            <xsd:element ref="stepExpr" minOccurs="0" maxOccurs="unbounded"/>
          </xsd:sequence>
          <xsd:element ref="stepExpr" maxOccurs="unbounded"/>
          </xsd:choice> 
        </xsd:choice> !!!!!!! This is an error
      </xsd:extension>
    </xsd:complexContent>
  </xsd:complexType>
Comment 1 Jim Melton 2013-07-20 23:12:44 UTC
Thank you for the comment.  I have corrected the obvious error, and the result is visible at https://www.w3.org/XML/Group/qtspecs/specifications/xqueryx-30/html/Overview.html#Schema (member-only link). 

If you are unable to access that link, here is the relevant section of the schema:

  <xsd:complexType name="pathExpr">
    <xsd:complexContent>
      <xsd:extension base="expr">
        <xsd:choice>
          <xsd:sequence>
            <xsd:element name="rootExpr" type="emptyContent"/>
            <xsd:element ref="stepExpr" minOccurs="0" maxOccurs="unbounded"/>
          </xsd:sequence>
          <xsd:element ref="stepExpr" maxOccurs="unbounded"/>
        </xsd:choice>
      </xsd:extension>
    </xsd:complexContent>
  </xsd:complexType>

As a result, I am marking this bug RESOLVED/FIXED.  If you are satisfied, please mark it CLOSED.
Comment 2 Nikolay Ognyanov 2013-07-21 07:54:41 UTC
Thank you.