Created
January 10, 2020 12:41
-
-
Save ableasdale/4adde6a41e7af5abb2eafb9bdc271614 to your computer and use it in GitHub Desktop.
MarkLogic - XQuery fn:filter example
This file contains hidden or 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
(: 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