Re: startPrefixMapping with redundant namespace declarations

"Karl Waclawek" <[email protected]>
Newsgroups gmane.text.xml.sax.devel
Message-ID <002e01c25f14$c3488690$9e539696@citkwaclaww2k>
----- Original Message ----- 
From: "Rob Lugt" <[email protected]>
To: <[email protected]>
Sent: Wednesday, September 18, 2002 6:50 AM
Subject: [Sax-devel] startPrefixMapping with redundant namespace declarations


> Hi all
> 
> What do you all think should be the correct behaviour with respect to
> startPrefixMapping/endPrefixMapping when an XML document contains redundant
> namespace declarations?
> 
> For example:
> 
> <a:doc xmlns:a="http://www.elcel.com/ns">
>  <a:element xmlns:a="http://www.elcel.com/ns"/>
> </a:doc>
> 
> In this case, we (ElCel) decided that the second (redundant) namespace
> declaration was NOT starting a new prefix mapping, and therefore
> startPrefixMapping should be called only once (prior to the startElement
> event for the <a:doc> element).

I would say: As long as the spec doesn't treat redundant NS
declarations differently, then neither should the implementation.

Karl



-------------------------------------------------------
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source & Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab
_______________________________________________
List: sax-devel, [email protected]
See:  http://www.saxproject.org/
https://lists.sourceforge.net/lists/listinfo/sax-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.