[MarkLogic Dev General] How to effectively pass variables by reference to an xquery function?

Geert Josten geert.josten at daidalos.nl
Thu Sep 15 07:03:19 PDT 2011


Hi Tim,

Can you elaborate a bit more on the use case?

Kind regards,
Geert

-----Oorspronkelijk bericht-----
Van: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] Namens Tim Meagher
Verzonden: donderdag 15 september 2011 15:46
Aan: 'General MarkLogic Developer Discussion'
Onderwerp: [MarkLogic Dev General] How to effectively pass variables by reference to an xquery function?

Hi Folks,

I am calling a function that returns a value but I also want the function to
set a status as well.  I'm wondering what is the best way to pass by
reference?  I can return an xml structure that contains the return value and
a status, but I'm also wondering about just using xdmp:set() to set a global
variable in a function.

Thanks!

Tim Meagher


_______________________________________________
General mailing list
General at developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


More information about the General mailing list