Re: Attributes and Namespaces.

Hart, Lewis <lhart@grci.com> wrote:

> 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"/>

Yes, it does. In the second example, no triples should result.

> If not, why not?

I don't know the exact reasoning, but I've gathered that there were
applications that required this to work this way. Perhaps someone with more
history than I can explain what those were.

-- 
[ Aaron Swartz | me@aaronsw.com | http://www.aaronsw.com ]

Received on Thursday, 29 March 2001 00:10:27 UTC