On Mon, 2003-02-24 at 12:24, Carsten Ziegeler wrote:
[...]
> >
> I personally see this as the right solution... :) I tried to fix this
> bug in Xalan several month ago but failed :( (Ok, I only had three hours
> time to understand whats going on inside Xalan).
> So, best thing in my eyes is to build up some pressure on the xalan team,
> so that they will fix this annoying bug.
I assume it is this bug you're referring to?
I think that one is a bit in the grey zone: the DOM spec puts the
responsibility for creating correct namespace declaration attributes to
the creator of the document.
In DOM level 3 there's a method normalizeDocument() which can cleanup
namespace declarations, the algorithm is described here:
Putting this extra logic in Xalan's serializer would be unnecessary
overhead for cases where it's not needed. Maybe we could make an
equivalent of the normalizeDocument method that works on a dom level 2
document and call that before serializing the document?
--
Bruno Dumon
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org