You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Richard Groote (JIRA)" <ji...@apache.org> on 2014/04/07 13:30:16 UTC

[jira] [Closed] (CAMEL-7348) XPath & javax.xml.transform.Source

     [ https://issues.apache.org/jira/browse/CAMEL-7348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Groote closed CAMEL-7348.
---------------------------------

    Resolution: Not a Problem

> XPath & javax.xml.transform.Source
> ----------------------------------
>
>                 Key: CAMEL-7348
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7348
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Richard Groote
>
> Following pseudo camel route gives a "end of file" exception when the bean call uses a javax.xml.transform.Source. The XPATH reads the body and applies the xpath. After the xpath call the source has been read and therefore the xslt will fail with the end of file exception.
> Is it not possible that the xpath resets of makes a copy of the source. Current alternative is use the convertBody(String) after the bean call
> <camel:to uri="bean:someBean" />
> <camel:choice>
> 	<camel:when>
> 		<camel:xpath>//xpath</camel:xpath>
> 		<camel:to uri="xslt:some.xslt" />
> 	</camel:when>	
> </camel:choice>  



--
This message was sent by Atlassian JIRA
(v6.2#6252)