camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karts <kartiksan...@gmail.com>
Subject Camel XQuery 3.0
Date Sat, 23 May 2015 00:28:11 GMT
Hi,

I would like to use the group by functionality provided with XQuery 3.0,
along with some other features.

Even though Camel 2.15.2 seems to be using Saxon 9.5.1-5 HE which supports
XQuery 3.0, I'm getting this exception:
	
Caused by: net.sf.saxon.trans.XPathException: 'group by' is not supported in
XQuery 1.0
	at net.sf.saxon.query.QueryParser.grumble(QueryParser.java:453)
	at
net.sf.saxon.expr.parser.ExpressionParser.grumble(ExpressionParser.java:226)
	at
net.sf.saxon.expr.parser.ExpressionParser.grumble(ExpressionParser.java:213)
	at net.sf.saxon.query.QueryParser.parseGroupByClause(QueryParser.java:2389)
	at
net.sf.saxon.query.QueryParser.parseFLWORExpression(QueryParser.java:2091)
	at
net.sf.saxon.expr.parser.ExpressionParser.parseExprSingle(ExpressionParser.java:499)
	at
net.sf.saxon.expr.parser.ExpressionParser.parseExpression(ExpressionParser.java:464)
	at net.sf.saxon.query.QueryParser.parseQuery(QueryParser.java:365)
	at
net.sf.saxon.query.QueryParser.makeXQueryExpression(QueryParser.java:168)
	at
net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:526)
	at
org.apache.camel.component.xquery.XQueryBuilder$1.createQueryExpression(XQueryBuilder.java:242)
	at
org.apache.camel.component.xquery.XQueryBuilder.initialize(XQueryBuilder.java:660)
	at
org.apache.camel.component.xquery.XQueryBuilder.evaluateAsString(XQueryBuilder.java:198)
	at
org.apache.camel.component.xquery.XQueryBuilder.evaluate(XQueryBuilder.java:120)
	... 92 more

Digging further, it seems XQuery 3.0 needs to be explicitly enabled with
Saxon. 

Is there any way I can do this, or a possible workaround?

Thanks



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-XQuery-3-0-tp5767434.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message