W3C home > Mailing lists > Public > www-rdf-comments@w3.org > April to June 2003

Re: strange treatment of namespaces in RDF/XML

From: Dave Beckett <dave.beckett@bristol.ac.uk>
Date: Fri, 6 Jun 2003 11:09:05 +0100
To: "Peter F. Patel-Schneider" <pfps@research.bell-labs.com>
Cc: b.fallenstein@gmx.de, www-rdf-comments@w3.org
Message-Id: <20030606110905.29328ae4.dave.beckett@bristol.ac.uk>

On Wed, 04 Jun 2003 18:59:56 -0400 (EDT)
"Peter F. Patel-Schneider" <pfps@research.bell-labs.com> wrote:

...
> The example should be
> 
> So
> 	... xmlns:xm = "http://www.w3.org/XML/1998/namesp"
> 	.. <xm:acehi ... /> ...
> is legal, as is

Yes - legal in any namespaced XML and RDF/XML.

> 	... xmlns:xmx = "http://www.w3.org/XML/1998/namespace"
> 	.. <xmx:hi ... /> ...

No.  Because if you use the xml namespace name (URI),
you must use the prefix 'xml' and you are not allowed to
declare any other prefix for that namespace name.
In addition, 'xml' is always predefined with this namespace name.

This is all in the XML and Namespaces in XML specifications
not in RDF/XML, you should read those documents fully.

> but 
> 	... xmlns:xmxx = "http://www.w3.org/XML/1998/namespaceh"
> 	.. <xmxx:i ... /> ...
> is not. 

I'll get back to you on this one.  I think (can't confirm now)
it is just unwise since it could look like creating new xml
reserved names if serialised badly.

However encoding such design advice may be over
strong and we could move that to the serializing section.
I will investigate further if this is the case.

Dave
Received on Friday, 6 June 2003 06:10:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 21 September 2012 14:16:32 GMT