Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Find which EXPath packages declare a particular dependency, in eXist-db
xquery version "3.1";
declare namespace pkg="";
array {
for $app in xmldb:get-child-collections("/db/apps")
let $package-metadata := doc("/db/apps/" || $app || "/expath-pkg.xml")
where $package-metadata//pkg:dependency[@package eq ""]
order by $app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment