Re: [Moderator Action] [Moderator Action] <attribute ref="thisNamespace:foo"/> not worki ng?

chuck.han@autodesk.com writes:

<snip/>

> It seems to me that if the global element <root> is valid
> (qualified--as ht noted--without a prefix since it implies the
> default namespace), then by the same token, the global attribute
> "foo" should also be valid (qualified--this is where ht
> disagrees--again, without a prefix since it implies the default
> namespace).

The default NS declaration does not apply to unprefixed attributes [1],
only to unprefixed elements:

  "A default namespace is considered to apply to the element where it
  is declared (if that element has no namespace prefix), and to all
  elements with no prefix within the content of that element. If the
  URI reference in a default namespace declaration is empty, then
  unprefixed elements in the scope of the declaration are not
  considered to be in any namespace. _Note that default namespaces do_
  _not apply directly to attributes_. [emphasis added]"

ht

[1] http://www.w3.org/TR/REC-xml-names/#defaulting
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/

Received on Wednesday, 1 November 2000 03:27:39 UTC