Closed jfix closed 10 years ago
partially related to #9 and to #24 I guess.
The ML10 parser handles XQuery 3.0 syntax with all MarkLogic extension syntax, and so is the most general parser. There's no need to change the parser library.
Yeah, we need to work on adding annotation support to the parser. I think this is covered completely by #9 and #24, so I'm going to close this bug report.
I'm trying to make the pure xquery approach work for me but am encountering problems.
Basic 1.0 xquery works (but not as shown in README, I'm calling
xqdoc:parse
rather thanxqp:parse-XQuery
):I get the full xqdoc result XML for the input file.
I note that in
xquerydoc.xq
, line 30, the MarkLogic 1.0 parser is hard-coded:Now I add a couple of annotations (rxq-style) to a function in the input file and run it again, the result is 'incomplete':
So I try to use the
xqp:parse-XQuery
function directly (as indicated in the readme), and also include some other library modules:which returns the following error:
So, clearly, it doesn't like the annotations.
Now, let's use the 3.0 parser (I've also modified line 30 in the
xquerydoc.xq
file):This throws the following error:
Changing the xquery version to 3.0 doesn't make a difference.
Thanks for letting me know how to fix this.
By the way, this is using an old ML7 nightly (that expires today) on Mac, but I doubt this is a deal breaker (will update to latest version though).