camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smilin <>
Subject Xquery Transform using camel
Date Wed, 25 Mar 2015 05:33:55 GMT
When i try to do
it give the expected result <Name>Giada De Laurentiis</Name>

But when i try with  loop condition as below

        .transform(xquery("<BookList>{for $x at $i in /bookstore/book return

I throw error on line 1 column 73 
  XPST0003 XQuery syntax error near #...turn <book>'{bookstore/book[{$#:
    Unexpected token "{" in path expression
org.apache.camel.CamelExecutionException: Exception occurred during
execution on the exchange: Exchange[Message: <?xml version="1.0"

If i remove braces print reponse as

Is there a way i can execute this for condition "{for $x at $i in
/bookstore/book return <book>{bookstore/book[{$i}]/title/text()}</book>}"
through camel xquery API

Thank you!


View this message in context:
Sent from the Camel Development mailing list archive at

View raw message