[xsd-users] namespace mapping

Boris Kolpackov boris at codesynthesis.com
Wed Jun 25 08:36:54 EDT 2008


Hi Ray,

Rizzuto, Raymond <Raymond.Rizzuto at sig.com> writes:

> The fact that XSD insulates me from needing to know the details of
> serialization is a double edged sword.  Is it possible that XSD could
> choose unique prefixes for the namespaces in the document?

No at the moment but we may add this functionality in the future.
Generally, people prefer to assign meaningful prefixes to their
namespaces instead of something like p1, p2, etc.


> Anyway, for now, I have made changes that seem to work.  If I understand
> correctly, I can use an empty prefix with a namespace of
> "http://sig.com/sdmp/messages".

Yes, you can make http://sig.com/sdmp/messages the default namespace
(i.e., empty prefix) as long as you have all elements in your
vocabulary qualified (elementFormDefault="qualified").


Boris




More information about the xsd-users mailing list