W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > March 2006

GRDDL: meaning of "is associated with"

From: McBride, Brian <brian.mcbride@hp.com>
Date: Wed, 8 Mar 2006 14:50:14 -0000
Message-ID: <DE62D3D0BDEF184FBB5089C7D387C3748BDB53@sdcexc04.emea.cpqcorp.net>
To: <public-rdf-in-xhtml-tf@w3.org>

The GRDDL spec states [1]

[[
if
 o the root element of an XML document ?XD is associated with a
namespace name ?NS, and
 o ?NS identifies a document whose meaning includes the RDF statement {
?NS
    <http://www.w3.org/2003/g/data-view#namespaceTransformation> ?TX }
then ?TX is a transformation that preserves the meaning of ?XD.
]]

What does "... is associated with ..." mean?  It might mean that there
is a namespace declaration on the root element in which case the
following test cases would yield:

In which of the following cases does is there an association between the
namespace name "http://example.org/ns#" and the element <root>:

A) <root xmlns="http://example.org/ns#" />
Yes
B) <root xmlns:ns="http://example.org/ns#" />
Yes
C) <ns:root xmlns:ns="http://example.org/ns#" />
Yes
D) <root xmlns:ns="http://example.org/ns#" ns:attr="foo" />
Yes
E) <root attr="http://example.org/ns#" />
No
F) <root>http://example.org/ns#</root>
No
G) <root>
     <child xmlns="http://example.org/ns#" />
   </root>
No

Are there any other ways that that <root> element can be "associated
with" a namespace name?

Brian


[1] http://www.w3.org/2004/01/rdxh/spec#ns-bind
Received on Wednesday, 8 March 2006 14:50:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:15:01 GMT