-
-
Save AdamSteffanick/fdb558fc19d62c70f7cc to your computer and use it in GitHub Desktop.
Eval example
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
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