users@jaxb.java.net

XJC & Imported Schema Defineition : Cannot Resolve Name

From: NAGY Endre <Endre_NAGY_at_rta.nsw.gov.au>
Date: Wed, 15 Sep 2004 16:02:36 +1000

Greetings

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)

Where have I gone wrong

Endre

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