users@jaxb.java.net

Re: XJC & Imported Schema Defineition : Cannot Resolve Name

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Wed, 15 Sep 2004 11:19:43 +0200

Hi.

> Forgive a question that gives me away as a neophyte
>
> I've created an XSD using XML Spy
>
> it contains the schema attribute
>
> xmlns:gml="http://www.opengis.net/gml" and the schema element
>
> <import namespace="http://www.opengis.net/gml"
>
schemaLocation="http://schemas.opengis.net/gml/3.1.0/base/geometryBasic0d1d.
> xsd"/>
>
> XML spy has no trouble resolving the elements of this imported
definition,
> i.e it shows me the elements defined
> in the imported schema file and allows me to specify an element of
the form
> <element ref="gml:LineString"/>
> as valid definition
>
> Neverthless an XJC parse of the Schma definition fails with
>
> [ERROR] src-resolve: Cannot resolve the name 'gml:LineString' to a(n)
> 'element declaration' component.
>
> I provide command line options to specify my proxy host and port,
though I
> do not define a catalog file (on
> the basis that I have provided a completely resolved external reference)

Would you mind sending me your schema?

I used to compile GML schema in one of the projects. I'll take a look.

Bye.
/lexi

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net