I'd like to override package for my schema via binding .xjb
file.
It is done with:
<schemaBindings>
<package name="com.schema.common" />
</schemaBindings>
JXC compiler expects context for above code, defined via schemaLocation
.
I store .xsd
and .xjb
files in separate directories and this looks ugly (like all Java EE):
<bindings schemaLocation="../../../../wsdl/common_v47_0/CommonReqRsp.xsd">
<schemaBindings>
<package name="com.schema.common" />
</schemaBindings>
</bindings>
Is it possible to define bindings
context without relative path in schemaLocation
?
I've seen SCD ("schema component designator"). It looks promising but I can't find reference for this syntax...
x-schema
part? I cannot find any documentation about it. Can you provide a link to documentation if you know where it is? – Marcello