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

strange treatment of namespaces in RDF/XML

From: Peter F. Patel-Schneider <pfps@research.bell-labs.com>
Date: Wed, 04 Jun 2003 12:24:26 -0400 (EDT)
Message-Id: <20030604.122426.25303794.pfps@research.bell-labs.com>
To: www-rdf-comments@w3.org

From http://www.w3.org/TR/rdf-syntax-grammar/, Section 5.1

	Within RDF/XML documents it is not permitted to use XML namespaces
	whose namespace URI is either:
	- the RDF Namespace URI Reference concatenated with additional
 	  characters or 
	- the XML Namespace URI Reference concatenated with additional
	  characters. 


So
	... xmlns:xm = "http://www.w3.org/XML/1998/namesp"
	... rdf:about="ace#hi" ...
is legal, as is
	... xmlns:xmx = "http://www.w3.org/XML/1998/namespace"
	... rdf:about="#hi" ...
but 
	... xmlns:xmxx = "http://www.w3.org/XML/1998/namespace#h"
	... rdf:about="i" ...
is not. 

Also, 
	... xmlns:rd = "http://www.w3.org/1999/02/22-rdf-syntax-n"
	... rdf:about="s#hi" ...
is legal, as is
	... xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	... rdf:about="hi" ...
but 
	... xmlns:rdx = "http://www.w3.org/1999/02/22-rdf-syntax-ns#h"
	... rdf:about="i" ...
is not. 

Weird.


Is this desirable behaviour?

Peter F. Patel-Schneider
Bell Labs Research
Lucent Technologies
Received on Wednesday, 4 June 2003 12:24:37 GMT

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