cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <>
Subject Re: [C2] Using Java after the generation phase
Date Thu, 08 Feb 2001 20:09:31 GMT
On Thu, 8 Feb 2001, [ISO-8859-1] Stefan Lüttringhaus-Kappel wrote:

> Hi,
> in a Cocoon 2 pipeline similar to
>    <map:match pattern="xsp/*">
>     <map:generate type="serverpages" src="docs/samples/xsp/{1}.xsp"/>
>     <map:transform src="stylesheets/dynamic-page2html.xsl"/>
>     <!-- HERE -->
>     <map:serialize/>
>    </map:match>
> I would like to apply some java methods at the point marked 'HERE' or
> during the XSLT-Transform.
> The idea is, for example, that the generator gives me some raw data, which
> I format with a stylesheet. The various stylesheets (for different output
> types) add some links to the document. The URLs must be passed through
> response.encodeURL() for the session to work without cookies. Other uses of
> Java in the transformation phase will certainly occur.
> What is a good, or even the best way, to achieve this? Just a simple
> example would be great.

write your own transformer. the SQL transformer might be a simple example
from which to work. the linkencoder processor from c1 might be good
inspiration as well for this particular example.

- donald

View raw message