I used the EmailPlainPipe from the distribution:
byte[] bytes = (byte[]) parameters.get("input");
XMLGenerator generator = new XMLGenerator(bytes);
this.addComponent(generator);
byte[] xsl = (byte[]) parameters.get("xsl");
Source xslSource = new StreamSource(new ByteArrayInputStream(xsl));
XSLTTransformer transformer = new XSLTTransformer(
xslSource, new Date().getTime());
// pass all parameter to the xslTransformer
transformer.setParameters(parameters);
this.addComponent(transformer);
this.addComponent(TextSerializer.createPlainSerializer());
super.setup(outputStream, parameters);
where input is:
<?xml version="1.0" encoding="UTF-8"?>
<angebot>
<id>$name$$angebot.id$</id>
<anganz>$angebot.anganz$</anganz>
<angkurzbeschreibung>$angebot.angkurzbeschreibung$</angkurzbeschreibung>
</angebot>
xsl is the identity
angebot is a Hibernate Bean.
how do feed the pipeline with this Bean that it is used by Jexl to
resolve the input String.
Am 13.03.2014 12:55, schrieb gelo1234:
With servlet-sitemaps Jexl can be used within any pipeline as
{jexl:.....} value.
Please show example of your embedded pipeline ?
Greetings,
Greg
2014-03-13 11:09 GMT+01:00 Yahoo <hansheinrichbr...@yahoo.de
<mailto:hansheinrichbr...@yahoo.de>>:
How can I use Jexl in an embadded Pipline ?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
<mailto:users-unsubscr...@cocoon.apache.org>
For additional commands, e-mail: users-h...@cocoon.apache.org
<mailto:users-h...@cocoon.apache.org>