On Mon, 6 Aug 2001, Sebastien Gignoux wrote:

> [Error] :6:14: Element type "aaa" must be declared.
> [Error] :7:9: The content of element type "pipo" must match "(aaa|bbb)".
> [...]
> <?xml version="1.0"?> <xs:schema targetNamespace="http://www.pipo.org";
>             xmlns:xs="http://www.w3.org/2001/XMLSchema";>
>
>     <xs:element name="pipo" type="pipoType"/>
>
>     <xs:complexType name="pipoType">
>        <xs:choice>
>           <xs:element name="aaa" type="xs:string"/>
>           <xs:element name="bbb" type="xs:string"/>
>        </xs:choice>
>     </xs:complexType>
> </xs:schema>

I think it might be the same problem that I had. There was a good
solution in a response from Sandy Gao, see "Re: Schema problem?" on this
list about a week ago:

| [...] In your xsd file, you didn't specify attribute "elementFormDefault",
| whose default is "unqualified". That means, all locally declared
| elements don't have a target namespace. [...]
| To solve it, you can either specify "elementFormDefault" as "qualified",
| or try not use default namespace in the instance file. [...]

At least it seems to me that you have the same problem, so you could add
elementFormDefault="qualified" to the <xs:schema> element.

Best,
  Erwin Bolwidt



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to