users@jaxb.java.net

Re: Unable to apply a customisation in a multiple compilation scenario

From: Colin Fleming <colin.mailinglist_at_gmail.com>
Date: Thu, 12 Jun 2008 11:16:06 +0200

Hi Lexi,

Sorry about the long time to reply, I was away at a conference.
Modifying the episodes by hand is not an option for us, since we
dynamically compile arbitrary schemas (edited by users) at runtime,
and it has to work consistently. I've changed our implementation to
not use episodic compilation since the bugs caused us so many
problems. Instead, I always compile all classes (including
xs:include'd ones), and delete the java files I don't require for the
particular module I'm compiling in. To get the classes generated in
the correct packages I transform the schemas before compiling them to
include a schemaBindings element with the package specified. It's an
awkward solution but it does work, and it has the nice property of
fixing another bug that was a problem for us (enums don't work with
episodes). It's early days but it does seem to work.

Thanks again for all your help Aleksei, I appreciate it.

Cheers,
Colin