camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-3818) Cannot do XQuery on file data
Date Fri, 08 Apr 2011 09:51:05 GMT

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

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

Are you sure you are using Camel 2.7? 

I checked and we have type converters which convert from File -> Source which is used by
Saxon.

> Cannot do XQuery on file data
> -----------------------------
>
>                 Key: CAMEL-3818
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3818
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-saxon
>    Affects Versions: 2.7.0
>            Reporter: Mikael Ståldal
>            Assignee: Claus Ibsen
>            Priority: Minor
>              Labels: file, xml, xquery
>             Fix For: 2.8.0
>
>
> 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

Mime
View raw message