xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chih-Hsiang Chou" <c...@jtcsv.com>
Subject Re: Namespaces Question...
Date Mon, 21 Feb 2000 22:00:49 GMT
In general, an attribute without a prefix has no namespace URI associated
with.  However, there is a special case.  According to the latest DOM Level
2 Core spec (CR-DOM-Level-2-20000121), the attribute xmlns="....." when
created by Document.createAttributeNS() must have a namespace URI equal to
"http://www.w3.org/2000/xmlns/".  This is the only attribute which has no
prefix but has an implied namespace URI.  I believe the XML Namespace spec
(about one year old) will be updated to reflect this change.

Chih-Hsiang Chou
IBM Center for Java Technology - Silicon Valley

----- Original Message -----
From: "Pierpaolo Fumagalli" <pier@apache.org>
To: <general@xml.apache.org>
Sent: Monday, February 21, 2000 3:26 AM
Subject: Re: Namespaces Question...

Tim Bray wrote:
> The attribute "value=" is not in any namespace.

Cool.. That's the answer I was looking for... I'm dealing with
DOM2-SAX1-SAX2 conversions, and those infos come handy :)
Thanks Tim...


-          P              I              E              R          -
stable structure erected over water to allow the docking of seacraft
<mailto:pier@betaversion.org>    <http://www.betaversion.org/~pier/>
- ApacheCON Y2K: Come to the official Apache developers conference -
-------------------- <http://www.apachecon.com> --------------------

View raw message