XSD - Possibility of "enumeration" with defined order of elements

Hi,

my xsd:

...
<xs:complexType name="ColumnHeader">
  <xs:sequence>
    <xs:element name="Column" type="Column"/>
  </xs:sequence>
</xs:complexType>

<xs:simpleType name="Column">
  <xs:restriction base="xs:string">
    <xs:enumeration value="Spaltenname"/>
    <xs:enumeration value="Datentyp"/>
    <xs:enumeration value="Column Size"/>
    <xs:enumeration value="Dezimalstellen"/>
  </xs:restriction>
</xs:simpleType>

I want the enumerated elements in a defined order, like in <xs:sequence>.

Wanted (only valid) xml-output. The <column>-elements must appear in this 
order:
...
<Section>
  <ColumnNames>
    <Column>Spaltenname</Column>
    <Column>Datentyp</Column>
    <Column>Column Size</Column>
    <Column>Dezimalstellen</Column>
  </ColumnNames>
</Section>

Is there a possiblility to do that?

Cheers
Jonny

_________________________________________________________________
Die ultimative Fan-Seite für den MSN Messenger http://www.ilovemessenger.de 
Emoticons und Hintergründe kostenlos downloaden!

Received on Tuesday, 15 June 2004 12:17:17 UTC