users@jaxb.java.net

Re: Still no Substitution group support?

From: Joe Fialli <Joseph.Fialli_at_sun.com>
Date: Thu, 05 Jun 2003 19:51:08 -0400

Gary Gregory wrote:

> Hello,
>
> From the 1.0 spec:
>
> "Substitution group
> Any XML Schema concepts indicating that substitution group support is
> a necessary component of the schema should be reported as an error."
>
> When will Substitution group be supported?
>
> Is my only alternative is to use a vendor extension to specify a
> common supertype?
>
JAXB standard implementation 1.0.1 was an implementation maintenance
release. No updates to the
specification were made. The "-extension" mode of the xjc compiler enables
support of element substitution group w/o violating the specification
quote above.
Element Substitution support is available with xjc "-extension" mode
option. No changes
in schema-derived API where necessary to implement element substitution
group so there
is no need to fear that the next specification release would not just
adopt it as is.

Type substitution, xml documents containing "xsi:type" attribute on XML
elements, is not
supported in this release. Several methods need to be added to
element instances to support type substitution properly.

-Joe Fialli, Sun Microsystems



> Thanks,
> Gary
>