[jboss-dev-forums] [Design of POJO Server] - Re: Unifying metadata
scott.stark@jboss.org
do-not-reply at jboss.com
Thu Sep 20 09:14:18 EDT 2007
"adrian at jboss.org" wrote :
| Currently there is a POJO/MBean that lets you specify
| schema -> SchemaBindingInitializer
| (there are factory settings)
|
| What's required for the JBossXBBuilder is instead
| schema -> annotated class name (the root class)
| and build the schemabinding from that.
|
| In fact, since the annotated class name contains the schema name
| as an annotation, all that's really required is being able to add classes
| (unless we also want to specify aliases as well).
|
| Also, JBossXB needs updating so we can do
| dtd -> annotated class name
| or
| dtd -> schema
| so we can parse xmls with legacy dtds using the schema binding.
|
| This requires a change to JBossXB's SAXParser to trap the dtd event
| and store it somewhere for when the schema handling tries to resolve
| schema. i.e. resolve using the dtd public/system id instead of the non-existant
| xmlns declaration.
So it seems the jbossxb and jbossxb-builder projects need to be merged, and the DefaultSchemaResolver/SchemaResolverConfig updated to support these mappings. With this there would be no need to sublcass the SchemaResolverDeployer resolver. I can work on that today if we agree to merge these since both projects are dependencies of the metadata project.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086670#4086670
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086670
More information about the jboss-dev-forums
mailing list