W3C home > Mailing lists > Public > xml-uri@w3.org > May 2000

Re: Are *relative* URIs as namespace nemes considered harmful?

From: David Carlisle <davidc@nag.co.uk>
Date: Tue, 23 May 2000 14:36:07 +0100 (BST)
Message-Id: <200005231336.OAA20098@nag.co.uk>
To: timbl@w3.org
CC: jjc@JCLARK.COM, xml-uri@w3.org

> If this is not a problem, please explain why not.

It's not a problem because it is just a case of a stylesheet not working
as the author intended (which is, as anyone reading xsl-list will know,
not at all an unusual situation:-)

If you replaced in that example the relative namespace with an absolute
one you would have exactly the same effect.

Either the namespace in question is for denoting employees in company A,
in which case company B ought to have used a different namespace.

Or the namespace is for employees in `the current company' in which case
the stylesheet ought have a parameter to tell it which company is

To see this, replace xmlns="foo/ns" in your example by 

You will see that given the current namesapce (rather than xpath)
interpretation of namespaces, an XSLT engine will do _exactly_ the same
thing, as it never need look at the internal structure of the namespace
name at all.

Received on Tuesday, 23 May 2000 09:36:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:13:58 UTC