question about attributes on the main document element

Is the following legal RDF/XML?  If so, is it a good idea to allow
arbitrary attributes in the top-level element?


<?xml version="1.0"?>

<http://www.w3.org/1999/02/22-rdf-syntax-ns#RDF foo="bar">

<http://www.w3.org/1999/02/22-rdf-syntax-ns#Description
 http://www.w3.org/1999/02/22-rdf-syntax-ns#about="http://foo.ex#baa">
  <http://foo.ex#bar>
    <http://www.w3.org/1999/02/22-rdf-syntax-ns#Description
	 http://www.w3.org/1999/02/22-rdf-syntax-ns#about="http://foo.ex#baz" />
  </http://foo.ex#bar>
</http://www.w3.org/1999/02/22-rdf-syntax-ns#Description>

</http://www.w3.org/1999/02/22-rdf-syntax-ns#RDF>


Peter F. Patel-Schneider
Bell Labs Research
Lucent Technologies

Received on Monday, 5 May 2003 15:57:25 UTC