users@jaxb.java.net

Using SCD to refer to every element in the schema

From: Kenny MacLeod <kennym_at_kizoom.com>
Date: Wed, 26 Mar 2008 15:52:11 +0000

Folks,

I'm trying to use SCD syntax in my binding customisations to simplify
the changing of the package name for a given schema.

I start off with this working config:

<jxb:bindings schemaLocation="datex2.xsd" node="/xsd:schema">
        <jxb:schemaBindings>
                <jxb:package name="eu.datex2.v1_0"/>
        </jxb:schemaBindings>
</jxb:bindings>


That is to say, "all code generated from this schema should be in
package eu.datex2.v1_0".

I'm having trouble expressing this as SCD, however. The closest I can
get is

scd="/*::datex2"

But XJC barfs on this saying "matched 270 schema components whereas only
1 is expected".

Has anyone managed this?

kenny