Hello Claus, Thank you for the feedback.
I searched in the xslt test files and found the org.apache.camel.component.xslt.XsltTransformingExceptionTest.java in combination with org.apache.camel.component.xslt.MyEcho.java and org/apache/camel/component/xslt/transformCallEcho.xsl. The xsl file declares xmlns:echo="xalan://org.apache.camel.component.xslt.MyEcho" and later on the <xsl:value-of select="echo:echoString(string(name))"></xsl:value-of> statement is called to activate the java code. As far as I known, this approach is only possible with static methods (in the java code) and therefore it does not seem possible with camel out of the box. I will try to work something. -- Kind regards, Ronny Aerts - Intris nv - Wapenstilstandlaan 47, 2600 Berchem, Belgium R&D Integration Architect Prince II certified Tel: +32-3-326.50.75 -----Original Message----- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: maandag 3 februari 2014 19:00 To: users@camel.apache.org Subject: Re: can I set a message header or exchange property inside an xslt? Hi You likely can. Though I can remember how that is possible. Try look at the unit tests https://github.com/apache/camel/tree/master/camel-core/src/test/java/org/apache/camel/component/xslt And we love contributions. People is welcome to add details on the xslt docs how to do this http://camel.apache.org/contributing On Mon, Feb 3, 2014 at 3:16 PM, Ronny Aerts <ronny.ae...@intris.be> wrote: > Hello camel community, > > I'm working on a project where it would be very handy to me if I can set a > message header or exchange property inside the execution of an xslt producer. > Is this possible? > > I know that the "exchange" and "in" are passed as parameter to the > transformation. > > -- > Kind regards, > Ronny Aerts<mailto:ronny.ae...@intris.be> - Intris nv - > Wapenstilstandlaan 47, 2600 Berchem, Belgium R&D Integration Architect > Prince II certified > Tel: +32-3-326.50.75 > > > Intris nv > Wapenstilstandlaan 47 > B-2600 Berchem > Tel. +32 3 326 50 75 > Fax +32 3 326 42 23 > www.intris.be<http://www.intris.be/> > > DISCLAIMER > This is an e-mail from Intris. The information contained in this > communication is intended solely for use by the individual or entity to whom > it is addressed. > Use of this communication by others is prohibited. If the e-mail message was > sent to you by mistake, please notify > supp...@intris.be<mailto:supp...@intris.be>, destroy it without reading, > using, copying or disclosing its contents to any other person. > We accept no liability for damage related to data and/or documents which are > communicated by electronic mail. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io Intris nv Wapenstilstandlaan 47 B-2600 Berchem Tel. +32 3 326 50 75 Fax +32 3 326 42 23 www.intris.be<http://www.intris.be/> DISCLAIMER This is an e-mail from Intris. The information contained in this communication is intended solely for use by the individual or entity to whom it is addressed. Use of this communication by others is prohibited. If the e-mail message was sent to you by mistake, please notify supp...@intris.be<mailto:supp...@intris.be>, destroy it without reading, using, copying or disclosing its contents to any other person. We accept no liability for damage related to data and/or documents which are communicated by electronic mail.