Zafar Abbas [MSFT] wrote:
> You must declare "project" as the default namespace in your schema. Just add
> a xmlns="project" attribute on the xs:schema element like:
>
> <xs:schema targetNamespace="project" elementFormDefault="qualified"
> xmlns:mstns="
http://tempuri.org/XMLSchema.xsd" > xmlns:xs="
http://www.w3.org/2001/XMLSchema" xmlns="project">
>
>
> "George W." <user@example.net> wrote in message
> news:OYjDDaolEHA.3496@TK2MSFTNGP12.phx.gbl...
>
>>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>
>
>