Title: RE: HTMLArea

Guido,
I'll grab the HTMLTransformer and see if I can squeeze it into 2.0.4 however a full time committment to 2.1 on my part seems imminent!!!

Thanks again,
Tony

-----Original Message-----
From: Guido Casper [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 24 July 2003 4:52 PM
To: [EMAIL PROTECTED]
Subject: Re: HTMLArea


Tony Edwards wrote:
> Hello again,
> I'm trying to integrate the nifty htmlArea widget from
> http://www.interactivetools.com with Cocoon 2.0.4 and I'm just trying
> to figure out if its best to use the StreamGenerator or the
> HTMLGenerator. If you're better off using the HTMLGenerator, what do
> you enter for the 'src' parameter?
> Anybody got any clues?

The way I did it with 2.1 CVS was using the RequestGenerator.
As the RequestGenerator escapes the submitted HTML (<html>) you have
to put the HTMLTransformer after it.

  <map:generate type="request"/>
  <map:transform src="">
  <map:transform type="html">
    <map:parameter name="tags" value="para"/>
  </map:transform>

The HTMLTransformer parses the content of the "para" tag then with JTidy and
generates SAX events further down the pipeline.

Unfortunately the HTMLTransformer is not available in 2.0.4 but you can grab
it from the 2.1 CVS
http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/html/java/org/apache/cocoon/transformation/

(not sure wether it works unchanged with 2.0.4 though)

HTH
Guido
--

Guido Casper
-------------------------------------------------
S&N AG, Competence Center Open Source
                    Tel.: +49-5251-1581-87
Klingenderstr. 5    mailto:[EMAIL PROTECTED]
D-33100 Paderborn   http://www.s-und-n.de
-------------------------------------------------


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

Reply via email to