user6276653
user6276653

Reputation: 140

How to use Xquery 3.1 (new features like Maps and Arrays) in JAVA (in XQJ or in any other way)?

What I already tried :-

  1. Saxon XQJ
  2. XQJ with BaseX
  3. XQJ with Sedna
  4. XQJ with eXist

I was not able to use XQuery 3.1 in any one of them. Any clues ?

Upvotes: 0

Views: 271

Answers (1)

Michael Kay
Michael Kay

Reputation: 163262

You need to say in detail what you did and how it failed, and then we can tell you what you did wrong. In Saxon 9.8, XQuery 3.1 is supported by default: try -qs:"map{1:2}(1)" from the command line. XQJ itself has no support for the new XQuery 3.1 data types, and in Saxon I would recommend using the s9api API in preference: but XQJ will run queries using 3.1 syntax provided you don't need to use the new data types in the query's input or output.

You've tagged the question with xquery-update but your question gives no clue as to why.

Upvotes: 1

Related Questions