I just 'upgraded' to the 1.4 WSDP and now my compilation (XJC) of my
schemas no longer works. I have an import that is giving me the
following error.
<xs:import
namespace="
http://www.uscentral.org/cnecs/poster/xml"
schemaLocation="CustodyAdjustment.xsd"/>
<xs:complexType name="CustodyAdjustment">
<xs:sequence>
<xs:element ref="busobj:CustodyAdjustment"/>
</xs:sequence>
</xs:complexType>
[xjc] [ERROR] src-resolve: Cannot resolve the name
'busobj:CustodyAdjustment' to a(n) 'element declaration' component.
[xjc] line 24 of BatchCustodyAdjustment.xsd
WHY? And where is the users guide now?
Thank you
Ted D. Poovey
Software Engineer III
U.S. Central
Phone : (913) 227-6106
Fax : (913) 227-6254
-----Original Message-----
From: Kohsuke Kawaguchi [mailto:Kohsuke.Kawaguchi_at_Sun.COM]
Sent: Friday, July 02, 2004 6:58 PM
To: users_at_jaxb.dev.java.net
Subject: Re: Does JAXB support importing from a different namespace?
I think this is coming from the behavior in Xerces. As you might know,
the XML Schema spec is so ambiguous that the schema processors are
allowed to ignore arbitrary <xs:import>s.
I think the way Xerces behaves is that it only honors the first
<xs:import> for every namespace, and it just ignores all the
successive
<xs:import>s for that namespace.
You can use the "-nv" switch to bypass the correctness check by
Xerces,
if you just want this to compile.
But if you are writing a schema that you expect other people to use,
then you might actually want to redesign your modularization.
regards,
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net