Skip to content

Instantly share code, notes, and snippets.

@AdamSteffanick
Forked from CliffordAnderson/eval.xqy
Created November 13, 2015 21:44
Show Gist options
  • Save AdamSteffanick/fdb558fc19d62c70f7cc to your computer and use it in GitHub Desktop.
Save AdamSteffanick/fdb558fc19d62c70f7cc to your computer and use it in GitHub Desktop.
Eval example
xquery version "3.1";
declare namespace functx = "http://www.functx.com";
for $title in fn:collection("books")/record/Title
let $string-fun := "fn:upper-case"
return xquery:eval(
"declare variable $title external;" ||
$string-fun || "($title)",
map { 'title': $title } )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment