cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject RE: XML/HTML serializers buffering everything and using threads.
Date Mon, 24 Feb 2003 11:47:15 GMT
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
bruno@outerthought.org


Mime
View raw message