users@jaxb.java.net

Re: JAXB annotated class to include external schema

From: Alex Wibowo <alexwibowo_at_gmail.com>
Date: Tue, 26 Aug 2008 17:39:22 +1000

Hi Wolfgang,

One of the type I used in the class was generated using XJC from
"Types.xsd".
i.e. "Types.xsd" has the type definition for "CodeDescription" (which is an
element inside "AccessoryCategory")


Hope that clarifies the question.

By the way... when I did the maven build, I got the following error:

------------------------------------------------
java.lang.InternalError: Error escaping one of these uris:
        schema3.xsd

------------------------------------------------

( I have no idea where this "schema3.xsd" comes from. )





Thanks again..





On Tue, Aug 26, 2008 at 3:27 PM, Wolfgang Laun <wolfgang.laun_at_gmail.com>wrote:

> On Tue, Aug 26, 2008 at 6:23 AM, Alex Wibowo <alexwibowo_at_gmail.com> wrote:
>
>
> > I cant see how the generated schema (AFIDMS.xsd) can include the external
> > schema (Types.xsd). i.e.
> > ---------------------------------------------------------------
> > <xsd:include schemaLocation="../../../common/Types.xsd"/>
> > ---------------------------------------------------------
>
> Why woukd you want to have this xsd:include? XML data can use definitions
> from two or more XML schemata on separate files.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>


-- 
Best regards,
WiB