camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Groote (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CAMEL-7348) XPath & javax.xml.transform.Source
Date Mon, 07 Apr 2014 11:30:16 GMT

     [ 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)

Mime
View raw message