Can I declare a global variable in xquery in Marklogic Server? -


i want global variable can use in different .xqy pages. can declare such variable in xquery in marklogic server ?

you can declare variable in module. instance config.xqy.

declare variable $precision xs:integer := 4; 

for using variable need import module in work module.

import module namespace conf = "http://your-namespace" @ "config.xqy"; 

and refer variable:

$config:precision 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -