Hi Karl, The stacktrace seems to indicate it is using the may2003 syntax parser, while xquery 1.0 is dating from 2007. It sounds like it is not recognizing the xquery version properly. Do you have a Version Declaration at the top?
Kind regards, Geert > drs. G.P.H. (Geert) Josten Consultant Daidalos BV Hoekeindsehof 1-4 2665 JZ Bleiswijk T +31 (0)10 850 1200 F +31 (0)10 850 1199 mailto:[email protected] http://www.daidalos.nl/ KvK 27164984 P Please consider the environment before printing this mail. De informatie - verzonden in of met dit e-mailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. > From: [email protected] > [mailto:[email protected]] On Behalf Of > Karl Erisman > Sent: donderdag 4 maart 2010 5:09 > To: General Mark Logic Developer Discussion > 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(MarkLogic > FileDriver.java:84) > Caused by: line 1:24: unexpected token: ; > at > org.xqdoc.xquery.parser.may2003.XQueryParser.exprSingle(XQuery > Parser.java:2023) > at > org.xqdoc.xquery.parser.may2003.XQueryParser.expr(XQueryParser > .java:1399) > at > org.xqdoc.xquery.parser.may2003.XQueryParser.queryBody(XQueryP > arser.java:700) > at > org.xqdoc.xquery.parser.may2003.XQueryParser.mainModule(XQuery > Parser.java:392) > at > org.xqdoc.xquery.parser.may2003.XQueryParser.module(XQueryPars > er.java:290) > at > org.xqdoc.xquery.parser.may2003.XQueryParser.xpath(XQueryParse > r.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 > <[email protected]> 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 <[email protected]> > > To: General Mark Logic Developer Discussion > > <[email protected]> > > 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 > > [email protected] > > http://xqzone.com/mailman/listinfo/general > > > > _______________________________________________ > > General mailing list > > [email protected] > > http://xqzone.com/mailman/listinfo/general > > > > > _______________________________________________ > General mailing list > [email protected] > http://xqzone.com/mailman/listinfo/general > _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
