[vwnc] is this a XMLTypesParser bug or a bad formed xsd ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] is this a XMLTypesParser bug or a bad formed xsd ?

Martin Rubi
When I try to generate a binding using the XMLTypesParser, I get a walkback
for a schema containing something like this:

<xs:complexType>
    <xs:choice>
        <xs:element ref="operacion"/>
        <xs:element ref="resultado"/>
    </xs:choice>
    <xs:attribute name="version" type="xs:string"/>
</xs:complexType>

if I qualify the refereneces,
        <xs:element ref="ns:operacion"/>

it works fine.
Are unqualified refs invalid ?

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] is this a XMLTypesParser bug or a bad formed xsd ?

Kogan, Tamara

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf
> Of Martin Rubi
> Sent: Thursday, October 09, 2008 12:14 PM
> To: [hidden email]
> Subject: [vwnc] is this a XMLTypesParser bug or a bad formed xsd ?
>
> When I try to generate a binding using the XMLTypesParser, I get a
> walkback
> for a schema containing something like this:
>
> <xs:complexType>
>     <xs:choice>
>         <xs:element ref="operacion"/>
>         <xs:element ref="resultado"/>
>     </xs:choice>
>     <xs:attribute name="version" type="xs:string"/>
> </xs:complexType>
>
> if I qualify the refereneces,
>         <xs:element ref="ns:operacion"/>
>
> it works fine.
> Are unqualified refs invalid ?

There are valid but to resolve them we need default namespace defined in the xml schema.

Tamara


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc