[MarkLogic Dev General] XQDoc in ML version 4?
Darin McBeath
ddmcbeath at yahoo.com
Thu Mar 4 05:57:17 PST 2010
I assume when you mention xqDoc demo code, you are referencing the 'scripts' from Jan 2007 v1.3 (http://xqdoc.org/source.html)
What version of the binary are you using? Are you using version 1.6 (http://xqdoc.org/binaries.html)?
Based on the error message below, it sounds like there is a mismatch between the version of the code/grammars parsing the XQuery file and the XQuery specification syntax version used in the XQuery file. In other words, if the syntax is 1.0 in the XQuery files, then only xqdoc version 1.6 will work. Hope this helps. If not, let m know and I will investigate further.
Darin.
________________________________
From: Karl Erisman <karl.erisman at gmail.com>
To: General Mark Logic Developer Discussion <general at developer.marklogic.com>
Sent: Wed, March 3, 2010 11:08:47 PM
Subject: Re: [MarkLogic Dev General] XQDoc in ML version 4?
$ java org.xqdoc.drivers.marklogic.MarkLogicFileDriver
/opt/MarkLogic/xqdoc localhost 8005 username password
... fails with:
org.xqdoc.conversion.XQDocException: line 1:24: unexpected token: ;
at org.xqdoc.conversion.XQDocController.parse(XQDocController.java:309)
at org.xqdoc.conversion.XQDocController.process(XQDocController.java:229)
at org.xqdoc.drivers.marklogic.MarkLogicFileDriver.main(MarkLogicFileDriver.java:84)
Caused by: line 1:24: unexpected token: ;
at org.xqdoc.xquery.parser.may2003.XQueryParser.exprSingle(XQueryParser.java:2023)
at org.xqdoc.xquery.parser.may2003.XQueryParser.expr(XQueryParser.java:1399)
at org.xqdoc.xquery.parser.may2003.XQueryParser.queryBody(XQueryParser.java:700)
at org.xqdoc.xquery.parser.may2003.XQueryParser.mainModule(XQueryParser.java:392)
at org.xqdoc.xquery.parser.may2003.XQueryParser.module(XQueryParser.java:290)
at org.xqdoc.xquery.parser.may2003.XQueryParser.xpath(XQueryParser.java:231)
at org.xqdoc.conversion.XQDocController.parse(XQDocController.java:302)
... 2 more
Note that this is the output when running xqDoc against the demo code
provided for verifying that things are working correctly. I get the
same result when running xqDoc against my own code.
Any ideas?
Thanks,
Karl
On Wed, Mar 3, 2010 at 2:56 PM, Darin McBeath <ddmcbeath at yahoo.com> wrote:
> What specific problem are you encountering? There is nothing specific to
> version 4 of ML that would prevent xqDoc from working. I use xqDoc on 4.1
> and it works fine.
>
> However, there are some other xqDoc limitations ... but, it really depends
> on the xquery code which you are trying to xqDoc.
>
> Let me know the specific error and if possible provide the XQuery code that
> is causing the problem.
>
> Darin.
>
> ________________________________
> From: Karl Erisman <karl.erisman at gmail.com>
> To: General Mark Logic Developer Discussion
> <general at developer.marklogic.com>
> Sent: Wed, March 3, 2010 3:42:30 PM
> Subject: [MarkLogic Dev General] XQDoc in ML version 4?
>
> What is the status of xqDoc support for MarkLogic? Does XQDoc work
> with ML version 4? It appears to me that it does not. Can anyone
> suggest any alternatives to xqDoc? I prefer keeping certain types of
> documentation inline with the source code for maintainability reasons.
>
> Thanks,
> Karl
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://xqzone.com/mailman/listinfo/general
>
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://xqzone.com/mailman/listinfo/general
>
>
_______________________________________________
General mailing list
General at developer.marklogic.com
http://xqzone.com/mailman/listinfo/general
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20100304/9787b50a/attachment-0001.html
More information about the General
mailing list