From: "Bert Van Kets" <[EMAIL PROTECTED]>

> 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,
I would not recommend you to use JTidy if not really necessary.
It builds a DOM, and this breaks one of the major Cocoon2 features, that is
using SAX.
The best solution IMHO is to have the XHTML created already according to the
rules, and normalizing all spaces and not using the indentation.

If you really want to go with JTidy, take a look at the JTidy Ant task in
the Cocoon tools for a hint, or the Cocoon HRML Generator.

--
Nicola Ken Barozzi                   [EMAIL PROTECTED]
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
---------------------------------------------------------------------



---------------------------------------------------------------------
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]>

Reply via email to