OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: Default Namespaces - why don't they apply to attributes?

[ Lists Home | Date Index | Thread Index ]
  • From: Jonathan Borden <jborden@mediaone.net>
  • To: Ronald Bourret <rpbourret@hotmail.com>, xml-dev@lists.xml.org
  • Date: Fri, 21 Jul 2000 08:12:26 -0400

Ronald Bourret wrote:
> Jonathan Borden wrote:
> >Ronald Bourret wrote:
> > >
> > > By the way, I would be really curious to see any applications for
> > > knowing of an attribute is "in" a namespace -- as opposed simply
> > >identifying
> > > the attribute -- is important. I can't think of any, but maybe I'm
> > > unimaginative.
> >
> >A counter example would be the use of attributes in shorthand RDF
> >serializations.
> Could you clarify that a bit? My knowledge of RDF is sketchy at best.
> RDF assume that unprefixed attributes are RDF-specific rather than
> to the shorthand elements?)

 Clarify RDF? :-))) I've been getting into this recently because I decided
to design our next version healthcare repository around RDF, which I am
using to represent HL7 models.

    The point is that RDF syntax associates namespaces with RDF schemas. The
properties defined by elements or attributes of a particular namespace are
used to define the semantics of such properties. This is easiest to
understand if the properties described by elements, but RDF shorthand allows
such properties to be ascribed using attributes. So, if membership in a
namespace associates semantics, lack of membership in a namespace means that
no semantics are associated with such nodes.

    In fact, the RDF syntax spec makes (IHMO)  the erroneous assumption that
attributes inherit the namespace of the enclosing element (witness the use
of <rdf:y about="..."> rather than <rdf:y rdf:about="...">

To show equivalent uses of element and attribute nodes I will quote an
example from http://www.w3.org/TR/1999/REC-rdf-syntax-19990222/

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

is equivalent for RDF purposes to

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


Jonathan Borden


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS