[jboss-dev-forums] [Design of JBossXB] - SchemaBindingResolver.resolve based on ns to class
scott.stark@jboss.org
do-not-reply at jboss.com
Wed Oct 10 16:10:22 EDT 2007
The current logic of being able to register a namespace to class mapping does not work for families of descriptors like javaee that reuse the same namespace across all of the descriptors. The only indication of a difference as the time resolution is done is the optional schemaLocation information:
| <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
| version="2.4">
|
| <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
| version="2.1">
|
|
Either the schemaLocation needs to be looked at, and a schemaLocation,class pair used to register a class, or we allow multiple class bindings for a namespace to create an uber SchemaBinding with multiple root elements. The latter seems like it would work, but I have not looked into it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093705#4093705
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093705
More information about the jboss-dev-forums
mailing list