xquerydoc icon indicating copy to clipboard operation
xquerydoc copied to clipboard

Support XQuery 3.1

Open rhdunn opened this issue 8 years ago • 0 comments

Running xquerydoc on a file that contains XQuery 3.1 constructs results in a lexical error when using the raw output, and an empty error module when using the xqdoc and html outputs. For example:

module  namespace array = "http://www.w3.org/2005/xpath-functions/array";
declare function array:sort($array as array(*)) as array(*) external;

This fails at:

declare function array:sort($array as array(*)) as array(*) external;
                                           ^

with:

lexical analysis failed while expecting '(:'
after successfully scanning 1 characters
at line 12, column 78 ...(*)) as array(*) ...

This is because it is missing the AnyArrayTest ebnf construct from the XQuery 3.1 grammar (and the other XQuery 3.1 constructs).

rhdunn avatar Dec 20 '16 11:12 rhdunn