Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created January 10, 2020 12:41
Show Gist options
  • Save ableasdale/4adde6a41e7af5abb2eafb9bdc271614 to your computer and use it in GitHub Desktop.
Save ableasdale/4adde6a41e7af5abb2eafb9bdc271614 to your computer and use it in GitHub Desktop.
MarkLogic - XQuery fn:filter example
(: Given a sequence from a range lexicon (on the right), pass the sequence to fn:matches and return all instances containing "A7" :)
fn:filter(function($a) { fn:matches($a, "A7") }, cts:element-values(xs:QName("Template")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment