users@jaxb.java.net

Re: Compiling FPML schemas via JAXB 2.x RI XJC

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Sat, 29 Sep 2007 01:12:46 +0200

Hi.

> I'm afraid that schema change is not an option due fact that these schemas
> are defined by www.fpml.org.

So what? Use an XSLT to pre-process the schema and remove the
problematic element.
All valida fpml documents will still be readable since

replaceAllPositions (definePosition | removePosition) *

is clearly a superconstruction of

replaceAllPositions definePosition+ (definePosition | removePosition) *

The hacked schema will consider

replaceAllPositions
and
replaceAllPositions removePosition

sequences valid when they are not valid in the original schema, but
it's only a question of validation.

Bye.
/lexi