users@jaxb.java.net

xsd:redefine ignored in binding ?

From: Loïc Quéran <loic.queran_at_gmail.com>
Date: Tue, 22 Sep 2009 17:56:12 +0200

Hi again,

In the public scxml-profile-ecma.xsd from http://www.w3.org/TR/scxml/, the
core module XSD is redefined by <xsd:redefine
schemaLocation="scxml-module-core.xsd">. The following binding <jxb:bindings
schemaLocation="scxml-module-core.xsd" node="/xs:schema"> works with minimal
profile, which includes the core module, but fails with the ecma profile,
which redefines it:


parsing a schema...
[ERROR] "file:/C:/jaxb-ri-20090206/samples/scxml/scxml-module-core.xsd" is
not a part of this compilation. Is this a mistake for
"file:/C:/jaxb-ri-2009020
amples/scxml/scxml-module-data.xsd"?
  line 8 of file:/C:/jaxb-ri-20090206/samples/scxml/binding.xjb

[ERROR] The "jxb:schemaBindings" customization is not associated with any
schema element.
  line 5 of file:/C:/jaxb-ri-20090206/samples/scxml/binding.xjb

Failed to parse a schema.

How can I work around this ?

Thanks in advance for any help.

Best regards,

Loïc