W3C home > Mailing lists > Public > www-dom@w3.org > October to December 1999

namespace name for default attributes of prefix "xml:"

From: Takuki Kamiya <kamiya@rp.open.cs.fujitsu.co.jp>
Date: Mon, 6 Dec 1999 23:24:30 +0900
Message-ID: <017401bf3ff5$c48ee620$dbf5a8c0@246.ne.jp>
To: <www-dom@w3.org>
createElement method on L2 says in short that attribute nodes are automatically to
be created if any. Does this rule also apply to the new createElementNS method?

Next, I have the following issue.

What is the namespace name of the attribute which has been created auto by
DOM in cases where the prefix of the attribute's qualified name is "xml:" ?

Here is the example of DTD definition:

<!ATTLIST A xml:lang CDATA #FIXED "A LANGUAGE">

Will the attribute node gets created by DOM covertly as having
http://www.w3.org/XML/1998/namespace as its namespace?

Namespaces REC states that xml: is bound to http://www.w3.org/XML/1998/namespace.
Therefore naive users will assume that DOM is aware of it and creates the 
node properly.

In general, I know L2 makes namespace prefix and name independent by design.
However, the case shown above seems to me the one for which short description
should be added.

= Takuki Kamiya  Phone: (045)476-4586 Fax: (045)476-4749   =
= FUJITSU LIMITED (COINS:7128-4217 NIFTY:HHA01731)         =
Received on Monday, 6 December 1999 09:14:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT