users@jaxb.java.net

Re: xjc schema compilation error jaxb2 limitation?

From: Zden?k Vráblík <zdenek_at_vrablik.org>
Date: Mon, 4 Jun 2007 10:20:05 +0100

Hi,

I would like to parse WFS 1.0 and it uses GML 2.1.2 and Openlayers
have support for GML 2.

Regards,
Zdenek

On 6/4/07, Aleksei Valikov <valikov_at_gmx.net> wrote:
> Hi.
>
>
> > I have checked the schema and schema is valid according w3c.
> >
> > See:
> >
> http://www.w3.org/2001/03/webdata/xsv?docAddrs=http%3A%2F%2Fschemas.opengis.net%2Fgml%2F2.1.2%2Fgeometry.xsd&warnings=on&keepGoing=on&independent=on&style=xsl#
>
> Well, they also do use a tool for validation. If XJC is stricter than this
> tool or not?
>
> > I don't understand the error from jaxb compiler. Could you explain
> > what does it mean?
>
> Well/, XJC thinks that derivation by restriction is done incorrectly. To
> answer if it's so or not, you have to recheck this with the spec precisely.
>
> I can remember, I have had this type of issues with some OGC schemas and
> JAXB 1.x. In all of the cases XJC was right and I could resolve them by
> correcting the schemas.
>
> Is there any particular reason you stick to GML 2.x?
>
> Bye.
> /lexi
>