camel-saxon will create a input stream to load the xquery file.
I think it's more like saxon issue, saxon should support to load the
file from class path.
On 7/29/11 1:04 AM, jmandawg wrote:
Hi all,
I'm trying to use an XQuery endpoint which looks like this:
<camel:to uri="xquery:com/test/xquery/manual.xq"/>
Where "com/test/xquery/manual.xq" is located in my "src/main/resources"
folder.
When i try to put an import inside the manual.xq file like this:
import module namespace utils = "myutils" at "utils.xq";
It cannot resolve the file. If i give it a absolute uri to the file it can
resolve it. But the files need to live in my package.
I'm running this inside servicemix.
Thanks.
--
View this message in context:
http://camel.465427.n5.nabble.com/Xquery-endpoing-with-Import-Module-tp4643385p4643385.html
Sent from the Camel - Users mailing list archive at Nabble.com.
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang