xsl-list
[Top] [All Lists]

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

2011-08-25 08:30:53
great answer!

thanks,

Dirk


On 08/25/11 07:31, Imsieke, Gerrit, le-tex wrote:
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 don’t 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 3986’s rules. So your MD5 hash may be accepted, too.

If you do use URLs, it doesn’t matter by whom they are controlled,
whether the host name part DNS-resolves, whether the resource they point
to exists, etc. For practical purposes it’s just important to know that
http://my.domain.net is a different identifier than
http://my.domain.net/ or http://my.domain.net/index.html, or, as in the
example given on http://www.w3.org/TR/xml-names/#NSNameComparison,
http://www.example.org/~wilbur is different from
http://www.example.org/%7ewilbur is different from
http://www.example.org/%7Ewilbur

Gerrit

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

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..

so...

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

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

or, at least, this:

xmlns:cms="http://www.example.com/cms/";

or this:

xmlns:cms="http://www.google.com/cms/";


...as namespace url for my XML?


Regards,
Dirk

forgot one option... the best option..

xmlns:cms="f6eeea3b9c793fb2b42e45ab5a1815eb"

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

--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--