cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Robertson <>
Subject Re: A Gzipped XML Serializer component for Cocoon
Date Mon, 24 Mar 2003 14:26:28 GMT
Quoting Joerg Heinicke <>:

> There were some threads about on the developers list. IIRC they came to the
> conclusion to add such things to the pipeline. But after 2.1 release. One 
> point in the discussion was, whether this is the task of Cocoon and not of 
> Tomcat or Apache (mod_gzip).
> Joerg
> Michael Riedel wrote:
> > Hi Bruce!
> > 
> > 
> >>I'm pretty sure this is something that eventually should be rolled into
> >>Cocoon itself, but as I note in the page, my code is a hack on the
> >>XMLSerializer, and shouldn't be ci'd as-is.
> > 
> > 
> > Though I don't need it at this time, I agree, that gzip compression is a
> > quite usefull. It should be included in the cocoon distribution.
> > 
> > But I'm not sure, if compression should be handled by a serializer. What,
> if
> > someone wants to compress something else than XML data. Then he'd have to
> > rewrite another serializer to support gzip...

Michael, Joerg:

On the issue of if this being handled by mod_gzip or mod_deflate, Apache's own
Batik Squiggle does not, in my experience, receive compressed SVG if compression
is handled this way. Nor do I see why it should send a "Accept-Encoding: gzip"
header to get *.svgz, since they are not a compressed form of the original (like
html that has been gzipped by the above), but rather a proper manifestation of
the document, like jpg compression. Secondly, there is the issue of sparing your
cache. See the introduction to my
(I would post this to the dev group, but I never seem to be able to get
subscribed to that.)

I can see Michael's argument for a reader-based implementation, but efficient
caching is a sine qua non for me. Could something be done with a view?

I'm glad to hear this is on the radar of the developers', for whose hard work I
am most grateful.

Bruce Robertson, 
Dept. of Classics, Mount Allison University

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message