S
scorpion
I have a simple type like this:
<xs:simpleType name="SizeType">
<xs:restriction base="xs:token">
<xs:enumeration value="small"/>
<xs:enumeration value="medium"/>
<xs:enumeration value="large"/>
<xs:enumeration value="xlarge"/>
</xs:restriction>
</xs:simpleType>
Now, I need to have an id attribute to that, so I'm trying to make it a
complex type by extending to
<xs:complexType name="SizeType">
<xs:simpleContent>
<xs:extension base="xs:token">
....
</xs:extension>
</xs:simpleContent>
</xs:complexType>
Now, I'm stuck. How do I change that to a complex type, with the enumeration
there? Better, is there a way to give an id to a simpleType, without
changing it
to a complexType, as the complexType is, er..., complex for such simple
thing?
TIA.
<xs:simpleType name="SizeType">
<xs:restriction base="xs:token">
<xs:enumeration value="small"/>
<xs:enumeration value="medium"/>
<xs:enumeration value="large"/>
<xs:enumeration value="xlarge"/>
</xs:restriction>
</xs:simpleType>
Now, I need to have an id attribute to that, so I'm trying to make it a
complex type by extending to
<xs:complexType name="SizeType">
<xs:simpleContent>
<xs:extension base="xs:token">
....
</xs:extension>
</xs:simpleContent>
</xs:complexType>
Now, I'm stuck. How do I change that to a complex type, with the enumeration
there? Better, is there a way to give an id to a simpleType, without
changing it
to a complexType, as the complexType is, er..., complex for such simple
thing?
TIA.