W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2004

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

From: Jonny Pony <jonnypony666@hotmail.com>
Date: Tue, 15 Jun 2004 16:16:46 +0000
To: xmlschema-dev@w3.org
Message-ID: <BAY12-F39HZgzDgtZKp00031a95@hotmail.com>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:44 GMT