[Home] [By Thread] [By Date] [Recent Entries]



W. E. Perry wrote:

> Tim Bray wrote:
> > [...] The
> > document's recommendation to "treat unqualified attributes as being in
> > the namespace of the element that contains them" is just wrong, will lead
> > to poor interoperability, and should not be followed.
>
> But what does it mean, really, for an attribute to be 'in a namespace',
> separate from that attribute appearing (or being declared in an ATTLIST as)
> within the scope of a particular element?

That's the traditional SGML notion of what it means
to be "in a namespace".  In "Namespaces in XML" however,
"X is in namespace Y" is completely equivalent to
"The namespace name of X is Y".


The definition in Section 1 of [XMLNS], "An _XML namespace_
is a collection of names, identified by a URI reference"
is a red herring.  The collection of names thus identified
is simply the set of names which have that URI as the namespace
name.  For instance, in

    <xsl:foo xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />

the 'xsl:foo' element is every bit as much "in" the XSL namespace
as 'xsl:stylesheet' and 'xsl:for-each' are.


--Joe English

  jenglish@f...

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member