I could tell just by looking at the XB code that it didn't support fragments, hence my "looks like XB requires a full document" comment...
I'll just make a full XSD and JBossXB deployer for AOP with hooks for MC integration (and reuse the BeanXMLDeployer after some refactoring of it). I can't wait for this stuff anymore unless it can be done in a day or so.
Don't refactor BeanXMLDeployer. I'm currently working on it.
It is a long way from being finished, I'm still trying to rework the code
to more accuratley match what we are trying to achieve.
In any (sic!) case. Refactoring is not the way it should be done. See the discussions
in the JBossXB forum about the introduction of different schema mappings.