You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Marco Westermann <Ma...@gmx.de> on 2012/05/25 08:58:36 UTC
xslt error with document('')
Hi,
I have a route which uses an xslt transformation. When I run the
transformation within eclipse everything works fine. But when I use that
transformation within my camel route, I get a TransformationException
with message: included href is empty.
within the xslt I have a
<xsl:for-each select="document('')/*/abbr:attributesToSelect/">
which causes the error. Any ideas how I can solve that problem.
regards, Marco
Re: xslt error with document('')
Posted by Marco Westermann <Ma...@gmx.de>.
Hi Yogesh,
thank you for your suggestion. I will try that.
regards, Marco
Am 25.05.2012 20:42, schrieb ychawla:
> Hi Marco,
> Are you using the same XSLT processors in eclipse and in Camel? I like
> using Saxon and you can customize your XSLT processor like this:
>
> <bean id="sFactory" class="net.sf.saxon.TransformerFactoryImpl" />
>
> <camel:to uri="xslt:my.xsl?transformerFactory=sFactory"/>
>
> Thanks,
> Yogesh
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/xslt-error-with-document-tp5713535p5713572.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Re: xslt error with document('')
Posted by ychawla <pr...@yahoo.com>.
Hi Marco,
Are you using the same XSLT processors in eclipse and in Camel? I like
using Saxon and you can customize your XSLT processor like this:
<bean id="sFactory" class="net.sf.saxon.TransformerFactoryImpl" />
<camel:to uri="xslt:my.xsl?transformerFactory=sFactory"/>
Thanks,
Yogesh
--
View this message in context: http://camel.465427.n5.nabble.com/xslt-error-with-document-tp5713535p5713572.html
Sent from the Camel - Users mailing list archive at Nabble.com.