> <?xml version="1.0" encoding="UTF-8"?>
>  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
>             xmlns:my="http://david.com/david-schema";
>             targetNamespace="http://david.com/david-schema";
> elementFormDefault="qualified"
> >
>
>  <xs:element name="addressbook">
>    <xs:complexType>
>     <xs:sequence>
>       <xs:element ref="my:person" minOccurs='1' maxOccurs='1'/>
>     </xs:sequence>
>    </xs:complexType>
>  </xs:element>
>
>  <xs:element name="person" type="xs:string"/>
>
> </xs:schema>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <my:addressbook xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>               xmlns:my="http://david.com/david-schema";
>                 xsi:schemaLocation="http://david.com/david-schema
> david3.xsd">
>
> <person>David</person>
> </my:addressbook>
>
>
>
> My understanding is that person should be prefixed because
> elementFormDefault="qualified". Xerces J does indeed fail this file.

person should be prefixed, but it has nothing to do with elementFormDefault.
Since person is a global element referenced by addressbook, it will always
be a qualified element.

Dave


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

Reply via email to