MarkLogic XQuery Support

Issues related to W3C XQuery.
Posts: 23

MarkLogic XQuery Support

Thu Jul 31, 2014 12:40 pm

Does the Enterprise version of oXygen support 1.0-ml XQuery? Currently I get a Saxon Error:

It is a static error if an expression is not a valid instance of the grammar defined in A.1 EBNF.
Posts: 23

Re: MarkLogic XQuery Support

Thu Jul 31, 2014 12:56 pm

Apologies, I copied the incorrect error:

 XQST0031: Unsupported XQuery version 1.0-ml

is the correct one.
Posts: 2326

Re: MarkLogic XQuery Support

Thu Jul 31, 2014 1:21 pm


Saxon XQuery in general does not support XQuery 1.0-ml (XQuery 1.0 MarkLogic) syntax. You have to run that XQuery with the MarkLogic engine (only available in the Enterprise edition of Oxygen).
Assuming you have already configured a MarkLogic data source and connection in Oxygen, you have to also configure an XQuery transformation scenario that uses the MarkLogic connection as the XQuery engine:
1. With the XQuery as the current editor, use Document > Transformation > "Configure Transformation Scenario(s)" (there's a corresponding button in the toolbar)
2. In the "Configure Transformation Scenario(s)" dialog press "New" and select "XQuery transformation" to create a new scenario.
3. Give it an appropriate name, e.g. MarkLogic XQuery
4. You can leave the XML and XQuery URL fields to the default values proposed (${currentFileURL} for the XQuery).
5. From the Transformer combo box pick the MarkLogic connection.
6. Press OK to accept the changes and Apply associated to run it.
You can reuse this generic scenario for any other 1.0-ml XQuery scripts.

Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Return to “XQuery”

Who is online

Users browsing this forum: No registered users and 1 guest