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?
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5779

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:
http://www.w3.org/TR/2002/WD-DOM-Level-3-Core-20021022/namespaces-algorithms.html#normalizeDocumentAlgo

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                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]

Reply via email to