W3C home > Mailing lists > Public > www-rdf-interest@w3.org > February 2003

RE: query regarding validity of RDF file

From: Jon Hanna <jon@spin.ie>
Date: Wed, 12 Feb 2003 13:05:03 -0000
To: <www-rdf-interest@w3.org>

> Is a tag like this permissible in RDF?
> <rdf:RDF
>     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>     xmlns:lib="http://www.zvon.org/library">
> The formal grammar for RDF would seem to say no:
> RDF     ::= ['<rdf:RDF>'] obj* ['</rdf:RDF>']
> ie you can't declare namespaces as attributes of the root element
> of an RDF document.

RDF/XML works at the level of the infoset rather than a textual level. Hence
the namespace nodes aren't considered except insofar as they inform the
infoset of the elements they are on.

Hence not only is
allowed, but also one may use:


or any other variation on prefixing.
Received on Wednesday, 12 February 2003 08:04:20 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:07:44 UTC