[oXygen-user] document nodes as external parameters
    Florent Georges 
    
       
    Wed Jan 19 07:36:38 CST 2011
    
    
  
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,
-- 
Florent Georges
http://fgeorges.org/
      
    
    
More information about the oXygen-user
mailing list