The best solution would be to add JTidy in the HTML serializer. This way the HTML is optimized in a decent fashion, according to the W3C rules. Since JTidy is already included in Cocoon for the HTML file generator, can someone, with a little more programming experience than m,e set me in the right direction to accomplish this? Bert
At 21:53 10/03/2002 +0100, you wrote: >Alex, > >thanks for your help... but I'm using IIS (which have a similar ISAPI >filter, anyway) and I wanted something to trim the fat before reaching the >web-server. > >Anyway, setting indent to "no" for the HTMLSerializer and normalizing spaces >in XSL I went a long way toward a slimmer HTML. > >I'm thinking about batch-processing my static Javascript files with a >comment-and-blanks-stripper (like HTMLCompress) and serve them using the >web-server... this should be the fastest way, I guess. > >Best regards, > >--------------------------------------------- > Luca Morandini > GIS Consultant > [EMAIL PROTECTED] >http://utenti.tripod.it/lmorandini/index.html >--------------------------------------------- > > > > -----Original Message----- > > From: Alex McLintock [mailto:[EMAIL PROTECTED]] > > Sent: Sunday, March 10, 2002 9:26 PM > > To: [EMAIL PROTECTED] > > Subject: Re: AW: Compression in HTML Serializer ? > > > > > > Someone asked about removing superfluous spaces in generated html > > > > At 13:51 09/03/02, Jörn Heid wrote: > > >You can remove most of those whitespaces (those between tags) > > with xslt und > > >some configurations within the sitemap. > > > > > >This won't work for JavaScript or CSS as it's plain text. > > > > > > If you are using Apache server as the front end webserver and using > > something like the mod_web_app to talk to your servlet engine, you might > > consider using mod_gzip on the Apache box to compress the traffic between > > the web server and the client. > > > > Sorry for coming up with a non-Cocoon answer :-) > > > > Alex > > > > > > > > --------------------------------------------------------------------- > > Please check that your question has not already been answered in the > > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> > > > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > > For additional commands, e-mail: <[EMAIL PROTECTED]> > > > > >--------------------------------------------------------------------- >Please check that your question has not already been answered in the >FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> > >To unsubscribe, e-mail: <[EMAIL PROTECTED]> >For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>