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

Attributes and Namespaces.

From: Hart, Lewis <lhart@grci.com>
Date: Tue, 27 Mar 2001 12:30:38 -0500
Message-ID: <09A65DF294F8D311AAB000105A02DBAF026E5A86@thumper.va.grci.com>
To: www-rdf-interest@w3.org
Cc: "Hart, Lewis" <lhart@grci.com>
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>

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"

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>

is NOT equivalent to this:  

  <rdf:Description about="http://www.w3.org">
         Publisher="World Wide Web Consortium"
         Title="W3C Home Page"

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 Tuesday, 27 March 2001 12:30:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:29 UTC