From: <tho...@jb...> - 2005-06-29 09:39:14
|
The prefix assocciation (ns1, ns2, ...) with a namespace uri is not relevant for two schemas to be semantically equivalent. It is probable that wscompile puts array types in seperate schema files to associate them with different target namespaces and such avoids name collisions. Is is all about reuse of the defined type in a different schema. Image you have two comlex java types that live in two different packages and both use the same array type. For that scenario it makes sense to define the array type in yet another schema. Whether jbossws tools produces output that is equivalent to wscompile largely depends on the validation algorithm. Lexical equivalencs is not required neither the use of identical namespace prefixes. anonymous wrote : | When schema components are imported from multiple namespaces, each namespace | must be identified with a separate import element. The import elements themselves | must appear as the first children of the schema element. Furthermore, each namespace | must be associated with a prefix, using a standard namespace declaration, and that | prefix is used to qualify references to any schema components belonging to that | namespace. Finally, import elements optionally contain a schemaLocation attribute to | help locate resources associated with the namespaces. | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883049#3883049 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883049 |