<?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>22738</bug_id>
          
          <creation_ts>2013-07-19 23:46:52 +0000</creation_ts>
          <short_desc>Error in the XML Schema for the XQuery XML Syntax</short_desc>
          <delta_ts>2013-07-21 07:54:41 +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 3.0</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</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="Nikolay Ognyanov">nikolay.ognyanov</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>91032</commentid>
    <comment_count>0</comment_count>
    <who name="Nikolay Ognyanov">nikolay.ognyanov</who>
    <bug_when>2013-07-19 23:46:52 +0000</bug_when>
    <thetext>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 &lt;/xsd:choice&gt; closing tag:

  &lt;xsd:complexType name=&quot;pathExpr&quot;&gt;
    &lt;xsd:complexContent&gt;
      &lt;xsd:extension base=&quot;expr&quot;&gt;
        &lt;xsd:choice&gt;
          &lt;xsd:sequence&gt;
            &lt;xsd:element name=&quot;rootExpr&quot; type=&quot;emptyContent&quot;/&gt;
            &lt;xsd:element ref=&quot;stepExpr&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
          &lt;/xsd:sequence&gt;
          &lt;xsd:element ref=&quot;stepExpr&quot; maxOccurs=&quot;unbounded&quot;/&gt;
          &lt;/xsd:choice&gt; 
        &lt;/xsd:choice&gt; !!!!!!! This is an error
      &lt;/xsd:extension&gt;
    &lt;/xsd:complexContent&gt;
  &lt;/xsd:complexType&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91043</commentid>
    <comment_count>1</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2013-07-20 23:12:44 +0000</bug_when>
    <thetext>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:

  &lt;xsd:complexType name=&quot;pathExpr&quot;&gt;
    &lt;xsd:complexContent&gt;
      &lt;xsd:extension base=&quot;expr&quot;&gt;
        &lt;xsd:choice&gt;
          &lt;xsd:sequence&gt;
            &lt;xsd:element name=&quot;rootExpr&quot; type=&quot;emptyContent&quot;/&gt;
            &lt;xsd:element ref=&quot;stepExpr&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
          &lt;/xsd:sequence&gt;
          &lt;xsd:element ref=&quot;stepExpr&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xsd:choice&gt;
      &lt;/xsd:extension&gt;
    &lt;/xsd:complexContent&gt;
  &lt;/xsd:complexType&gt;

As a result, I am marking this bug RESOLVED/FIXED.  If you are satisfied, please mark it CLOSED.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91048</commentid>
    <comment_count>2</comment_count>
    <who name="Nikolay Ognyanov">nikolay.ognyanov</who>
    <bug_when>2013-07-21 07:54:41 +0000</bug_when>
    <thetext>Thank you.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>