You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Tarek Hammoud <ma...@c158163-a.mntp1.il.home.com> on 2001/08/27 14:15:23 UTC

Does not validate

Hello,

The following schema raises a missing particle error in DataObject. It used to validate correctly with 1.3. I had to introduce a "bogus" element to DefaultModel.

Tarek Hammoud

<xsd:schema targetNamespace="http://www.citadel.com/base"
elementFormDefault="unqualified"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns:base="http://www.citadel.com/base">

  <xsd:complexType name="DefaultModel">
      <xsd:sequence>
           <xsd:element name="bogus" minOccurs="0" type="xsd:string"  />
        </xsd:sequence>
  </xsd:complexType>

  <xsd:element name="dataObject"  type="base:DataObject"/>

  <xsd:complexType name="DataObject">
     <xsd:complexContent>
        <xsd:extension base = "base:DefaultModel">
           <xsd:attribute name="lastModificationTimeStamp"
type="xsd:dateTime"  use="optional" default="" />
           <xsd:attribute name="lastModificationID"   type="xsd:string"
use="optional" default="" />
        </xsd:extension>
     </xsd:complexContent>
  </xsd:complexType>

</xsd:schema>