W3C home > Mailing lists > Public > www-rdf-interest@w3.org > April 2001

Re: Attributes and Namespaces.

From: Brian McBride <bwm@hplb.hpl.hp.com>
Date: Mon, 16 Apr 2001 16:50:35 +0100
Message-ID: <3ADB14CB.5ABF9BF6@hplb.hpl.hp.com>
To: "Hart, Lewis" <lhart@grci.com>
CC: www-rdf-interest@w3.org
Lewis,

I have added a reference to this thread in the RDF Issues list under:

  http://www.w3.org/2000/03/rdf-tracking/#rdf-ns-prefix-confusion

Brian


"Hart, Lewis" wrote:
> 
> I will apologize in advance for starting a topic that most likely has been
> discussed before, but I could not seem to find the concise answers I sought.
> 
> The RDF specification says that, in an RDF document:
> 
>   <rdf:Description about="http://www.w3.org">
>       <s:Publisher>World Wide Web Consortium</s:Publisher>
>       <s:Title>W3C Home Page</s:Title>
>       <s:Date>1998-10-03T02:27</s:Date>
>     </rdf:Description>
> 
> can be equivalently expressed using abbreviated syntax as:
> 
>   <rdf:Description about="http://www.w3.org">
>          s:Publisher="World Wide Web Consortium"
>          s:Title="W3C Home Page"
>          s:Date="1998-10-03T02:27"/>
> 
> This loosely allows attributes to be treated as elements. Now the rub... The
> XML Namespace specification states that "default namespaces do not apply
> directly to attributes". What does that mean? Does it mean that this:
> 
>   <rdf:Description about="http://www.w3.org">
>       <Publisher>World Wide Web Consortium</Publisher>
>       <Title>W3C Home Page</Title>
>       <Date>1998-10-03T02:27</Date>
>     </rdf:Description>
> 
> is NOT equivalent to this:
> 
>   <rdf:Description about="http://www.w3.org">
>          Publisher="World Wide Web Consortium"
>          Title="W3C Home Page"
>          Date="1998-10-03T02:27"/>
> 
> If not, why not?
> 
> Thanks - Lewis
> 
> ___________________________________________
> Lewis L Hart
> GRC International                 lhart@grci.com
> 1900 Gallows Rd.                  Voice (703)506-5938
> Vienna, Va 22182                    Fax (703)556-4261
Received on Monday, 16 April 2001 11:50:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:48 GMT