users@jaxb.java.net

Re: implClass Instantiation

From: John Tracy <junk_at_valenciasystems.com>
Date: Thu, 25 Sep 2003 17:33:20 -0400

Thanks for the workaround. Unfortunately when I try this I get
the following message when I try to compile the schema:

[ERROR] Cannot derive a name from schema. A name attribute specified
  to the <class> customization.

The error goes away (but so does the workaround solution) if I
simply remove '/xs:complexType' from the bindings node attribute.

I can't make any sense out of this error. Any idea what is going wrong?

----- Original Message -----
From: "Kohsuke Kawaguchi" <Kohsuke.Kawaguchi_at_Sun.COM>
To: <users_at_jaxb.dev.java.net>
Sent: Monday, September 22, 2003 7:54 PM
Subject: Re: implClass Instantiation


>
> > I sent the requested information (schema, binding file and element
names) to
> > you last Wednesday. Have you had a chance to investigate this yet?
>
> Yes. To fix this problem, apply implClass customization at complex types,
> not at elements. For example, instead of:
>
> <jxb:bindings node="//xs:element[@name='INeedBeer']">
> <jxb:class implClass="a.b.c.d.e.f.INeedBeerImpl" />
> </jxb:bindings>
>
> Write as:
>
> <jxb:bindings node="//xs:element[@name='INeedBeer']/xs:complexType">
> <jxb:class implClass="a.b.c.d.e.f.INeedBeerTypeImpl" />
> </jxb:bindings>
>
> I agree that your customization should work and the intention is clear,
> but it doesn't work because of various reasons. Sorry about that.
>
>
> 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