You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2011/03/29 14:15:05 UTC

[jira] [Commented] (CAMEL-3818) Cannot do XQuery on file data

    [ https://issues.apache.org/jira/browse/CAMEL-3818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13012450#comment-13012450 ] 

Claus Ibsen commented on CAMEL-3818:
------------------------------------

Convert the payload to a type that Saxon works with such as a String
<convertBodyTo type="String"/>

> Cannot do XQuery on file data
> -----------------------------
>
>                 Key: CAMEL-3818
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3818
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-saxon
>    Affects Versions: 2.7.0
>            Reporter: Mikael Ståldal
>              Labels: file, xml, xquery
>
> It is not possible to do an XQuery filter on a file source:
> <route>
>    <from uri='ftp://username@localhost/?password=password'/>
>    <choice>
>    <when>
>      <xquery>/root[@name='James']</xquery>
>      <to uri="jmq:SomeQueue"/>
>    </when>
>    <otherwise>
>      <rollback/>
>    <otherwise>
>    </choice>
> </route>
> It works if you use <xpath> instead of <xquery> but I need the XPath 2.0 support available in <xquery> do to date/time processing.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira