cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ross Gardler <rgard...@apache.org>
Subject Re: "Nice" HTML to Text serializer?
Date Sun, 24 Jul 2005 13:33:00 GMT
Jochen Kuhnle wrote:
> Hi,
> 
> is there a Serializer that can serialize HTML code to "nicely formatted" 
> ascii text, e.g. doing line breaks, replacing <ol>s and <ul>s with "1. 
> item" or "* item", etc.?
> 
> If not, does anybody know a component that does this, that I can use to 
> write a Serializer?

In Forrest we have a Test output plugin that does this. As you may know 
Forrest is a Cocoon based application so you will have no problem 
leveraging the XSLT's etc. from there.

See 
http://forrest.apache.org/pluginDocs/plugins_0_70/org.apache.forrest.plugin.output.Text/

and to see this page in text see:

http://forrest.apache.org/pluginDocs/plugins_0_70/org.apache.forrest.plugin.output.Text/index.txt

If you improve on the stylesheets please be sure to contribute patches 
to the Forrest project.

Ross

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message