[Bug 2523] xqx: pathExpr and stepExpr

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2523





------- Additional Comments From jim.melton@acm.org  2005-12-17 01:42 -------
Thanks very much for your comment.  As it happens, this same error was also
reported to me through a private communication from somebody else. 

The solution that I devised would result in an XML Schema element definition
that looks like the following.  The relevant change is to make the element
xpathAxis optional and remove the now-redundant elements nameText and Wildcard. 

  <xsd:element name="stepExpr">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:choice>
          <xsd:sequence>
            <xsd:element ref="xpathAxis" minOccurs="0"/>
            <xsd:choice>
              <xsd:element ref="kindTest"/>
              <xsd:element ref="nameTest"/>
              <xsd:element ref="Wildcard"/>
             </xsd:choice>
          </xsd:sequence>
          <xsd:element name="filterExpr">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:group ref="filterExpr"/>
              </xsd:sequence>
            </xsd:complexType>
          </xsd:element>
        </xsd:choice>
        <xsd:element name="predicates" type="exprList" minOccurs="0"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>

I will propose this to the Working Group and, if approved, make the change as
indicated.

Received on Saturday, 17 December 2005 01:42:34 UTC