Can someone help me with this? I keep double checking my schema layout
and it looks like my implementation is correct... yet it must not be.
I have the following schema which is invalid (Says: C:\Work\WIMAR
XML\WIMARKeyedText.xsd(7): Type 'ImageHeaderType' is not declared. An
error occurred at C:\Work\WIMAR XML\WIMARKeyedTexttest.xsd, (12, 6).
):
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema targetNamespace="project" elementFormDefault="qualified"
xmlns:mstns="http://tempuri.org/XMLSchema.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Roll">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="ImageHeader" type="ImageHeaderType" />
<xs:element name="RD" type="RDType" />
</xs:choice>
<xs:attribute name="number" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="WI_M_\d{1,3}" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:complexType name="ImageHeaderType">
</xs:complexType>
<xs:complexType name="RDType">
</xs:complexType>
</xs:schema>