Are you using XSLT 2.0? If so, you should verify that you have an XSLT
2.0 capable library in your classpath. Perhaps when you're using the
endpoint within JBI there is a 2.0 capable API in the classpath.

If you're using Maven, then add the following:

      <dependency>
        <groupId>net.sourceforge.saxon</groupId>
        <artifactId>saxon</artifactId>
        <version>9.1.0.8</version>
      </dependency>
      <dependency>
        <groupId>net.sourceforge.saxon</groupId>
        <artifactId>saxon</artifactId>
        <version>9.1.0.8</version>
        <classifier>dom</classifier>
      </dependency>

If not, then download a recent version of saxon and try it.


On Thu, Jan 6, 2011 at 7:39 AM, Kovacs Zsolt <[email protected]> wrote:
> Hi,
>
>  I have a camel endpoint .to("xslt:xslt/transformer.xsl") and in the
> transformer.xml file I try to use
>  <xsl:variable name="now" select="current-dateTime()"/>
>  but deployment failed  and get the "Error creating XSLT template.
> This is most likely be caused by a XML parse error. Please verify your
> XSLT file configured."
>  message.
>
>  I guess the problem is probably caused by the parser used by Camel
> because when I using as jbi endpoint there are no issues.
>  Can I change the Camel XML parser ?
>
> Thanks,
> Zsolt
>

Reply via email to