Examples of documents with multiple namespaces are hard to find? All Elsevier's XML files use multiple namespaces (see the DTDs at http://info.sciencedirect.com/implementing/implementing_sdos/dtds/):
One namespace for the family of documents to which this document belongs to, one namespace for elements shared by all our documents, one namespace for the markup of bibliographic references, one namespace for an extension to CALS table markup, namespaces for elements from public standards like XLink and MathML. The documents also use remapping of namespace prefix binding: the default namespace is remapped to the CALS namespace; this was necessary because the CALS DTD does not allow a prefix.
Useful? Certainly so. Technically complicated? Yes, especially the fact that no prefix is bound to a namespace is a trap for many. Does it work well with the DTDs? To a certain extent; I would prefer to use RELAX-NG schemas.
If I would now rewrite these schemas, I would certainly try to reuse XHTML elements, and I would certainly identify them as such by using the XHTML namespace.
In summary, I love namespaces.
|