See http://xinha.python-hosting.com/ for the reason why HTMLArea and Xinha are 
look-alikes

> 
> 
> Jean-Baptiste Quenot wrote:
> > * Andre Juffer:
> > 
> > 
> >>Capturing XHTML content via forms is something I have never done
> >>before (and is of course  not specific to Cocoon).  Basically, I
> >>guess, one would have to parse the text and store the result for
> >>instance in a  DOM document which is subsequently  stored in the
> >>XML  database,  right? Or is  there  is  more simple  or  better
> >>solution, maybe cocoon can handle this already?
> > 
> > 
> > Integrated in Cocoon  there is the htmlarea  styling that displays
> > the  HTMLArea  editor, and  the  htmlarea  convertor in  forms  to
> > convert the text typed by the user to XHTML.  This is very similar
> > to what you intend to do, especially the convertor stuff.
> > 
> > See the HTMLArea forms samples at
> > 
> http://cocoon.zones.apache.org/demos/release/samples/blocks/fo
> rms/htmlarea
> 
> This looks very similar to the one that I currently use, Xinha:
> 
> http://xinha.gogo.co.nz/xinha-nightly/examples/full_example-body.html
> 
> As far as I could see this editor produces valid XHTML. That 
> is, after 
> capturing the textarea content, I actually replace all < 
> and > by 
> a '<' and '>' and put that in a java.lang.String containing also the 
> "<?xml version="1.0" ?>" and use a SAX parser to parse this String 
> (place it into a StringReader first). It appears entirely valid. It 
> should then be straightword to create a DOM document with cocoon's 
> org.apache.cocoon.xml.dom.DOMBuilder and place this Document into the 
> Session and ultimately it can be inserted into the pipeline with the 
> Read DOM Session Transformer (I have not tried this part yet).
> 
> I'll have a look at HTMLArea forms samples. Thanks.
> 
> Andre
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]