users@jaxb.java.net

RE: XJC & Imported Schema Defineition : Cannot Resolve Name

From: NAGY Endre <Endre_NAGY_at_rta.nsw.gov.au>
Date: Tue, 28 Sep 2004 16:47:03 +1000

Lexi

Apologies for taking so long to reply

If your curious. I removed the reference to "gml:LineString".
This then created a problem with the import of the GML Schema file.

The schema compiler documentation seems to place some significance to
creating
a catalog file that redirected references to external schema
specifications to a
local directory.

This worked (i.e after I copied OGC's schema definitions locally)

There seems to be a problem making an internet connection through the
schema compiler.

There you go

Endre

-----Original Message-----
From: Aleksei Valikov [mailto:valikov_at_gmx.net]
Sent: Wednesday, 15 September 2004 7:20 PM
To: users_at_jaxb.dev.java.net
Subject: Re: XJC & Imported Schema Defineition : Cannot Resolve Name


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/geometryBasic0
d1d.
> 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
IMPORTANT NOTICE: This e-mail and any attachment to it are intended only to be read or used by the named addressee. It is confidential and may contain legally privileged information. No confidentiality or privilege is waived or lost by any mistaken transmission to you. The RTA is not responsible for any unauthorised alterations to this e-mail or attachment to it. Views expressed in this message are those of the individual sender, and are not necessarily the views of the RTA. If you receive this e-mail in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient.

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