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 Em...@tcc.thomson-csf.com on 2000/12/21 12:01:23 UTC

Order in ComplexeType definition

Hi all,

With this schema definition the validation is OK :
<schema>
   <element name="Foo">
      <complexType content="elementOnly">
	<element ref="Bar" minOccurs="1" maxOccurs="unbounded"/>
	<attribute name="date" type="string"/>
      </complexType>
   </element>
...
</schema>


But with this one, it dosen't :
<schema>
   <element name="Foo">
      <complexType content="elementOnly">
	<attribute name="date" type="string"/>
	<element ref="Bar" minOccurs="1" maxOccurs="unbounded"/>
      </complexType>
   </element>
 ...
</schema>

It seems that the declaration order between elements and attributes is
important. Is it normal ?
Thanks.
		Emmanuel.