Thanks Geert ;-) Well, I didn't ask for the whole context, just how to set the context item. The reason is because I have some queries (I cannot change) which expect a document as their context item, set by the caller. Let say they look like:
xquery version "1.0"; count(*) So the context item itself must be a specific document (or element), but not the database. Those queries have to be run by a piece of XQuery code in MarkLogic, which is why I thought about xdmp:invoke(). Unfortunately, you guys look like confirming what I was afraid of: this is not possible... Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ > Geert Josten wrote: > >T o return to the original topic: why do you ask, Florent? > > :-) > >> -----Oorspronkelijk bericht----- >> Van: general-boun...@developer.marklogic.com [mailto:general- >> boun...@developer.marklogic.com] Namens Florent Georges >> Verzonden: dinsdag 16 oktober 2012 21:04 >> Aan: MarkLogic General ML >> Onderwerp: [MarkLogic Dev General] Eval and invoke: set the context > item? >> >> Hi, >> >> I did not find any way to set the context item of the target >> query when using xdmp:eval() and xdmp:invoke(). Did I miss >> anything? >> >> Regards, >> >> -- >> Florent Georges >> http://fgeorges.org/ >> http://h2oconsulting.be/ _______________________________________________ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general