[
https://issues.apache.org/jira/browse/CAMEL-12994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16718775#comment-16718775
]
Dingjun commented on CAMEL-12994:
---------------------------------
If I use a syntax like below
{code:xml}
<to uri="xquery:xquery/myXquery.xq" />
{code}
and my Xquery return plain text, then I got error:
*HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not
permitted.*
When I use a syntax like:
{code:xml}
<transform>
<xquery type="String">"resource:classpath:xquery/myXquery.xq"</xquery>
</transform>
{code}
Then I got error:
*java.lang.IllegalArgumentException: Misdeclaration of xmlns namespace*
With inline xquery like this I also got the error: *Misdeclaration of xmlns
namespace*
{code:xml}
<transform>
<xquery>//*[text()]/text()</xquery>
</transofrm>
{code}
Did I something wrong here?
> xquery syntax problem in SpringDSL
> ----------------------------------
>
> Key: CAMEL-12994
> URL: https://issues.apache.org/jira/browse/CAMEL-12994
> Project: Camel
> Issue Type: Bug
> Components: camel-saxon
> Affects Versions: 2.21.0, 2.22.0
> Reporter: W.Y
> Priority: Minor
>
> this JAVADSL sytnax does not exist / supported in SpringDSL
> setHeader("myHeader").xquery("resource:classpath:myxquery.txt", String.class)
> It will cause the problem if return type is String instead of DomReulst or
> xmlString for xquery, when we use SpringDSL instead of JAVADSL
> we tried all version >= 2.22, same problem
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)