Created
September 22, 2015 17:00
-
-
Save dmcassel/23566579e43b44d5c934 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(: | |
: Evaluate JavaScript from XQuery, passing in external variables and returning | |
: results as XQuery types. | |
:) | |
xdmp:javascript-eval( | |
"var result = []; for(var p in param) {result.push(p); result.push(param[p]);} result;", | |
(xs:QName("param"), object-node { "a": "A", "b": "B"}) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment