I had been working with Werner Guttman lead of the Castor XML project on ideas for extending the Spring OXM for current Castor version. I've prepared a set of patches with change made to Spring OXM schema, that will allow configuring the Castor marshaller using oxm namespace.
This propsitions will allows to define the marshaller like below i.e.:
You will find three patches attached:
SpringOXM Xml Schema - with changes made in the xsd.
SpringOXM Xml Schema Implmentation - that contains simple change made in CastorMarshaller and definition of CastorMarshallerBeanDefinitionParser.
SpringOXM Xml Schema Tests - with tests for CastorMarshallerBeanDefinitionParser