Sign In/My Account | View Cart  
advertisement

Article:
 XML Namespaces Don't Need URIs
Subject: Namespace prefix registry
Date: 2005-04-14 17:01:14
From: mikeday

Hi Bryan,


I did not mention the idea of a namespace prefix registry in the article because I don't believe that such a thing would be necessary -- it certainly would not be very practical to implement.


The example I gave of using XSLT with namespace prefixes and no namespace URIs does not need a namespace registry in order for the XSLT processor to function correctly, which is worth keeping in mind.


I think that the perceived need for a namespace registry and for unique namespace URIs is based on the misconception that every element name must be globally unique in every circumstance or software won't know what to do.


In practice, XML processing software usually has more contextual information available to it than just the element names, and disambiguation can be based on context, position, attributes and so on rather than making names globally unique.


Best regards,


Michael


Previous Message Previous Message   Next Message Next Message


Full Text Titles Only Newest First

Sponsored By: