You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by sathiyaraja <sa...@hotmail.com> on 2014/12/01 02:44:30 UTC

Dynamic routing to a XSL file

Hi,

  In my implementation i have some 30 to 40 xsl files. So i have to route
the input message to any one of the xsl based on the input element.

This is my input message.,
<xml><value>ABCD</value><name>Sathiya</name></xml>

I have a xsl file with name., ABCD-Req.xsl

My current Implementation.,

<route>
<from uri="inputlocation">
<setProperty name="value">
<xpath>/xml/value/text()</xpath>
</setProperty>

<to uri="xslt:.../${property.value}-Req.xsl/>
</route>

This is not working. as the file language does not supports simple language.

Thanks in advance..
Sathiyaraja P



--
View this message in context: http://camel.465427.n5.nabble.com/Dynamic-routing-to-a-XSL-file-tp5759833.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: Dynamic routing to a XSL file

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Use the @user mailing list for this kind of question.

On Mon, Dec 1, 2014 at 2:44 AM, sathiyaraja <sa...@hotmail.com> wrote:
> Hi,
>
>   In my implementation i have some 30 to 40 xsl files. So i have to route
> the input message to any one of the xsl based on the input element.
>
> This is my input message.,
> <xml><value>ABCD</value><name>Sathiya</name></xml>
>
> I have a xsl file with name., ABCD-Req.xsl
>
> My current Implementation.,
>
> <route>
> <from uri="inputlocation">
> <setProperty name="value">
> <xpath>/xml/value/text()</xpath>
> </setProperty>
>
> <to uri="xslt:.../${property.value}-Req.xsl/>
> </route>
>
> This is not working. as the file language does not supports simple language.
>
> Thanks in advance..
> Sathiyaraja P
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Dynamic-routing-to-a-XSL-file-tp5759833.html
> Sent from the Camel Development mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/