Yes. That's the one route I took myself, at least :-) -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/
On 2 August 2016 at 11:52, Hans Hübner wrote: > Hi Florent, > > thank you for the pointers. REx looks really useful, and it took me only > a few minutes to generate a parser for XQuery that outputs XML which we can > easily inspect to determine external variable declarations. I take it that > that was kind of the route you were suggesting? > > Best, > Hans > > On Tue, Aug 2, 2016 at 11:36 AM, Florent Georges wrote: > >> Hi, >> >> If you are looking for an XQuery parser in XQuery, I recommand REx >> Parser Generator <http://www.bottlecaps.de/rex/>. You can find an >> example of use in the EXPath Console for MarkLogic on branch >> "feature/projects" in dir "src/project/" (look in "parser/lib/") >> < >> https://github.com/fgeorges/expath-ml-console/tree/feature/projects/src/project/parser/lib >> >. >> >> Regards, >> >> -- >> Florent Georges >> http://fgeorges.org/ >> http://h2oconsulting.be/ >> >> >> On 2 August 2016 at 11:29, Hans Hübner wrote: >> >>> Hi, >>> >>> is there an XCC or XQuery API that one can use to have MarkLogic parse >>> an XQuery and return a parsed representation for analysis? I am >>> particularly interested in figuring out what external variables a query >>> defines so that I can request the user to supply the parameters without >>> having to parse the XQuery myself. >>> >>> Thanks, >>> Hans >>> >>> -- >>> LambdaWerk GmbH >>> Oranienburger Straße 87/89 >>> 10178 Berlin >>> Phone: +49 30 555 7335 0 >>> Fax: +49 30 555 7335 99 >>> >>> HRB 169991 B Amtsgericht Charlottenburg >>> USt-ID: DE301399951 >>> Geschäftsführer: Hans Hübner >>> >>> http://lambdawerk.com/ >>> >>> >>> >>> _______________________________________________ >>> General mailing list >>> [email protected] >>> Manage your subscription at: >>> http://developer.marklogic.com/mailman/listinfo/general >>> >>> >> >> >> >> >> _______________________________________________ >> General mailing list >> [email protected] >> Manage your subscription at: >> http://developer.marklogic.com/mailman/listinfo/general >> >> > > > -- > LambdaWerk GmbH > Oranienburger Straße 87/89 > 10178 Berlin > Phone: +49 30 555 7335 0 > Fax: +49 30 555 7335 99 > > HRB 169991 B Amtsgericht Charlottenburg > USt-ID: DE301399951 > Geschäftsführer: Hans Hübner > > http://lambdawerk.com/ > > > > _______________________________________________ > General mailing list > [email protected] > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general > >
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
