I have an XSD file with an enumerated type. I'd like to create an "extended" XSD file, which adds some additional enumerations, but otherwise behaves just like the main XSD.
For example, the main XSD file contains this:
<xsd:simpleType name="color">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="red"></xsd:enumeration>
<xsd:enumeration value="orange"></xsd:enumeration>
<xsd:enumeration value="yellow"></xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
...
<xsd:element name="myColor" type="color" />
My imaginary extended XSD file would simply add "gold" to the "color" type. The existing "myColor" element would now be able to contain "gold", if it used this XSD instead of the main one.
Is this possible?