camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] Commented: (CAMEL-1605) Passing an xml fragment as a parameter to an xslt transformation fails
Date Fri, 15 May 2009 09:45:50 GMT


Claus Ibsen commented on CAMEL-1605:

Hi Gert

Thanks for the unit test. 

There could be bugs in the Xalan that is shipped with the JDK itself. Searching with google
hints a few problems but the culprint is hard to narrow down.
I do not think its a Camel problem per see but a general problem with Xerces, Xalan and SUN
JDK itself.

Can you try working with this without Camel and try to see if you can find a solution to the

> Passing an xml fragment as a parameter to an xslt transformation fails
> ----------------------------------------------------------------------
>                 Key: CAMEL-1605
>                 URL:
>             Project: Apache Camel
>          Issue Type: Bug
>    Affects Versions: 1.6.0, 2.0-M1
>            Reporter: Gert-Jan van de Streek
>            Assignee: Claus Ibsen
>             Fix For: 1.6.2, 2.0.0
>         Attachments: TestXmlFragment-context.xml,, transform.xsl
> I pass an xml fragment to an xslt. I have the following code where the queue holds xml
>        from("activemq:example.A")
>                .setHeader("", new XPathExpression("/"))
>                .process(new ReadLocalFile())
>                .to("xslt:transform.xsl")
> The xslt looks like:
>    ...
>    <xsl:param name="agent.xml"/>
> 	<xsl:template match="/">
> 		<xsl:value-of select="$agent.xml/agent/id" />
> I would expect the xml fragment to be available as a nodeset in the xsl, but I get the
following exception:
> javax.xml.transform.TransformerException: java.lang.RuntimeException: Invalid conversion
from '' to 'node-set'.
> 	at
> 	at
> 	at org.apache.camel.builder.xml.XsltBuilder.process(
>        ...

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message