Skip to content

Instantly share code, notes, and snippets.

@orbeon

orbeon/gist:405635

Created May 18, 2010
Embed
What would you like to do?
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