users@jaxb.java.net

Re: xjc schema compilation error jaxb2 limitation?

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Mon, 4 Jun 2007 11:07:44 +0200

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