XML technologies / XML / XML in a Nutshell / Resource Directory Description Language (RDDL) / What is at the end of a namespace URL?

(Excerpt from "XML in a Nutshell" by Elliotte Rusty Harold & W. Scott Means)

The authors of the namespace specification could not agree on what should be found at the other end of a namespace URL. Should it be a DTD, a schema, a description (specification), or something else? All are possible, but none is required for every particular XML application. Some applications use DTDs and others do not. Some use schemas and others do not. Some use stylesheets and others do not. Consequently, Namespaces are, in most cases, purely formal identifiers. They do not actually locate or identify anything.

Namespaces in XML (Namespaces in XML) explicitly states: “The namespace name should have the characteristics of uniqueness and persistence. It is not a goal to make this name directly usable for retrieving a schema, if one exists.” Thus, nothing specific, such as a DTD or schema, must be present at the end of a namespace URL. In fact, the namespace name does not even have to be resolvable. It could equally be an unresolvable URN such as urn:isbn:1565922247. However, this does not mean that nothing can exist at the end of a namespace URL, only that nothing has to.

This did not stop countless developers from entering namespace URLs in their browsers’ address bars, filling the logs of the W3C and others with “404 Not Found” errors. Nor did it prevent weekly discussions on the xml-dev mailing list about whether an XML document could be parsed on a system without a network connection. Eventually, members of the xml-dev mailing list agreed that it was time to put something at the end of a namespace URL, even though they were not required to.

The question of what to put there remained unresolved. All the reasons for not having chosen anything still applied. Rick Jelliffe suggested solving the problem with an extra level of indirection, and Tim Bray proposed implementing this level using XHTML and XLinks. Instead of choosing just one of the many possibilities, the namespace URL could lead to an XML document listing everything associated with the XML application identified by that URL.

Experience showed that as soon as developers encountered a string containing http, they entered it in their browser’s address bar.

Note: In the immortal words of Claude L. Bullard: “All the fuss over URN/URI/URL cannot get around the simple fact that entering http:// somewhere in a browser window turns that area blue and makes a finger appear when you point at it. The monkey expects a resource, and when it gets none, it is shocked. Monkeys do not read specifications to find out why they should be shocked. Instead, they turn red and raise a finger.”

The basic syntax of RDDL therefore had to be something that looked reasonable in a browser, preferably HTML. It also had to be well-formed, perhaps even valid XML. XHTML naturally came to mind immediately. Modular XHTML provided exactly the extensibility needed to add the syntax required by RDDL.

  

 

 

 

back to top