
19 Jan
2011
19 Jan
'11
2:44 p.m.
Hello, Only string values can be passed as parameter in the current version. We have on our to-do list an improvement to allow also other types of values. Please follow Florent's suggestion. Regards, Sorin Florent Georges wrote:
Lee, David wrote:
Hi,
Is there any way to pass document nodes directly (not by name) to XQuery within Oxygen ?
oXygen uses (AFAIK) XCC in order to connect to MarkLogic. And XCC supports only (AFAIK) strings for query parameters (a.k.a. external variables).
The usual trick is either: 1/ to pass a string with the lexical representation of the document and use xdmp:unquote(), or 2/ to pass the URI of the document to open and use doc().
Regards,