[Mono-devel-list] [Fwd: Re: the patch status followup]

Atsushi Eno atsushi at ximian.com
Wed Mar 2 22:54:49 EST 2005


Andrew Skiba wrote:
> Atsushi Eno wrote:
> 
>>Hi Andrew,
>>
>>Thanks for forwarding it to public list as per my request.
>>
>>Well, can you please give me an "yes/no" answer that if this
>>question is related to your XmlTextWriter patch? (Of course it is
>>no problem if this Q is nothing to do with the patch though.)
>>
> 
> Yes.
> 
> What happens in my patch (attached for reference) is unified processing
> of namespace declarations, whether it's in form xmlns:prefix='url' or
> xmlns='url'. As I understood from your explanations, I should not treat
> xmlns='url' as namespace declarations when I process them in
> XmlTextWriter.WriteStartAttribute(). Yesterday you shown me a test case
> in which DOM API creates xmlns attribute, which does not declare a
> namespace. Is that a bug in both Mono/MS.NET, or a bug in the DOM API
> and ECMA standard, or was that done on purpose? If so, what was the

??  XmlTextWriter does treat that xmlns attribute as namespace
declaration internally.

> purpose of allowing such strange attribute name? I call it strange
> because you can not declare xmlns attribute in XML source text, it's a
> reserved word. Tell me as much as you know, so I can fix the patch the
> best way.

"xmlns" is reserved for namespace http://www.w3.org/2000/xmlns/

In general, giving empty string as a local name never makes sense.
If you don't understand why, read XML 1.0 specification and
Namespaces in XML specification.

Atsushi Eno



More information about the Mono-devel-list mailing list