Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@orbeon
Created May 18, 2010 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orbeon/405635 to your computer and use it in GitHub Desktop.
Save orbeon/405635 to your computer and use it in GitHub Desktop.
xquery version "1.0";
declare namespace text="http://exist-db.org/xquery/text";
let $count := count(for $resource in collection() let $resource-uri := document-uri($resource)
where (text:match-any($resource, 'gaga'))
return 1)
return
<foobar/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment