Re: [xsl] Re: random url for namespace to avoid uncontrollable dependencies

Subject: Re: [xsl] Re: random url for namespace to avoid uncontrollable dependencies
From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@xxxxxxxxx>
Date: Thu, 25 Aug 2011 07:31:24 +0200
For the purpose of establishing an XML namespace, a URI (a URI reference, to be precise) is just treated as a string literal.

So firstly, you dont have to use URLs. You may use any URI that is formed according to the rules of RFC 3986, be the URI scheme or the URI registered somewhere or not. A URI may be urn:ISBN:9784711081542, for example. Some XML parsers may not even check whether the URI is formed according to RFC 3986s rules. So your MD5 hash may be accepted, too.

If you do use URLs, it doesnt matter by whom they are controlled, whether the host name part DNS-resolves, whether the resource they point to exists, etc. For practical purposes its just important to know that is a different identifier than or, or, as in the example given on, is different from is different from


On 2011-08-25 07:07, Dirk wrote:
On 08/25/11 07:06, Dirk wrote:

as a developer i have serious problems with using a URL as namespace...
because ICANN does control any URL i might use... and not me or people
who use the XML..


what would be the problem (which i don't see, yet) to use something like

xmlns:cms="http://localhost/cms/"; (i would prefer this VERY MUCH)

or, at least, this:


or this:

xmlns:cms=""; namespace url for my XML?

Regards, Dirk

forgot one option... the best option..


an md5 hash instead of a url as unique identifier..

-- Gerrit Imsieke Geschdftsf|hrer / Managing Director le-tex publishing services GmbH Weissenfelser Str. 84, 04229 Leipzig, Germany Phone +49 341 355356 110, Fax +49 341 355356 510 gerrit.imsieke@xxxxxxxxx,

Registergericht / Commercial Register: Amtsgericht Leipzig
Registernummer / Registration Number: HRB 24930

Geschdftsf|hrer: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard Vvckler

Current Thread