Please have a look at [1] which shows it works.
Could you please remove "file:" and try it again.

[1]
https://svn.apache.org/repos/asf/camel/tags/camel-2.8.5/components/camel-spring/src/test/java/org/apache/camel/component/xslt/XsltFromFileExceptionTest.java

Best,
Christian

On Wed, Jan 2, 2013 at 5:36 PM, felixnutella <svend-ole.niel...@vehco.com>wrote:

> Hi all
>
> I'm quite new at Camel but have managed to get it up and running using a
> few
> custom components/converters...
>
> But..
>
> Is it true that you need to specify an absolute path for the XSL in the
> XSLT
> component? Whenever I try to specify an relative, it comes up with File not
> found.
>
> I'm specifying the xslt transformation as: <camel:to
>
> uri="xslt:file://xsl/customer.xsl?transformerFactoryClass=net.sf.saxon.TransformerFactoryImpl&amp;contentCache=false"/>
> - this does not work...
>
> If I'm doing it like: <camel:to
>
> uri="xslt:file://C:/Users/USERNAME/Desktop/apache-servicemix-4.4.2/xsl/customer.xsl?transformerFactoryClass=net.sf.saxon.TransformerFactoryImpl&amp;contentCache=false"/>
> it works perfectly.
>
> It should be said that Camel is running inside servicemix, which should be
> version 2.8.5 if that has any meaning.
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Relative-URL-for-XSL-in-XSLT-component-tp5724794.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



--

Reply via email to