This causes xmlbeans to generate separate classes for these naming elements for openejb and jetty. This produces a big nuisance when trying to parse the xmlbeans objects.
Working with xmlbeans I discovered that it is quite easy to manipulate xml and in particular to change the namespace of an element. In particular it should be easy to change the namespace on the naming elements to a naming-specific namespace.
So, my proposal is to:
-- for user use, keep the inclusion of the naming schema as it is so all elements are in one namespace.
--before geronimo/openejb reads the configuration, change the namespace on naming elements to an explicit "naming" namespace
--for xmlbeans generation, set up schemas that shift namespace when moving to the naming elements.
--xmlbeans should then be able to reuse classes generated in the naming module wherever the naming schema is included.
This should eliminate the "refAdapter" nonsense that attempts to work around the several "identical" generated classes in different packages.
(I hope the coincidence of the sub-schema happening to be for the naming module and the principal xml issue being namespaces is not too confusing:-)
Thoughts?
thanks david jencks
