Created
November 13, 2015 21:44
-
-
Save CliffordAnderson/fa3c3613a34b6955f929 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