Simon,
That was a helpful write up of the issues.
What about the idea of modifying the class file to specify an
@XmlType.name() equal to "" (rather than "##default"), so that we would
end up following this mapping rule per the JAXB spec.
otherwise if @XmlType.namespace() is
"##default" && @XmlType.name() is "" and
class is not annotated with @XmlRootElement, then
the {target namespace} of the attribute or element
to which the property or field, from where this class is
referenced, is mapped.
Having seen how opaque the JAXB RI tooling can be, I wonder if this
might be a good approach.
Scott