Hi Jeffrey,

What kind of errors are you seeing, if I may ask ?

Regards
Werner Guttmann

[EMAIL PROTECTED] wrote:
> Greetings -
> 
> We're trying to complete a proof of concept with the following basic 
> test.xsd, test.xml files & have run into an exception when using the 
> xs:choice order identifier.  It's a critical feature for us to use, and 
> we've verified using the same tests that when we remove those specific 
> lines we're able to execute without error.  Please advise if additional 
> info necessary, thanks in advance for any suggestions.  Please see below:
> 
> 
> test.xsd:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <xs:schema xmlns="http://www.example.com/schema/Test"; xmlns:xs="
> http://www.w3.org/2001/XMLSchema"; targetNamespace="
> http://www.example.com/schema/Test"; elementFormDefault="qualified" 
> attributeFormDefault="unqualified" version="1.0" xml:lang="en">
> 
> <xs:element name="companyEmployee" type="employee"/>
> 
> <xs:complexType name="person">
>   <xs:sequence>
>     <xs:element name="firstname" type="xs:string"/>
>     <xs:element name="lastname" type="xs:string"/>
>   </xs:sequence>
> </xs:complexType>
> 
> <xs:complexType name="employee">
>   <xs:complexContent>
>     <xs:extension base="person">
>       <xs:sequence>
>         <xs:element name="title" type="xs:string" />
>          <xs:choice>
>             <xs:element name="foo" type="xs:string" />
>             <xs:element name="bar" type="xs:string" minOccurs="1" />
>         </xs:choice>
>        <xs:element name="office" type="xs:string" />
>       </xs:sequence>
>     </xs:extension>
>   </xs:complexContent>
> </xs:complexType>
> 
> </xs:schema>
> 
> 
> 
> test.xml
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <CompanyEmployee 
> xsi:schemaLocation="http://www.example.com/schema/Test Test.xsd" 
> xmlns="http://www.example.com/schema/Test"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";>
>     <firstname>Joe</firstname>
>     <lastname>Plumber</lastname>
>     <title>Slacker</title>
>     <foo>1</foo>
>     <foo>2</foo>
>     <office>NY</office>
> </CompanyEmployee>
> 
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to