Skip to content

Instantly share code, notes, and snippets.

@caschwartz
Created April 7, 2014 18:28
Show Gist options
  • Select an option

  • Save caschwartz/10027268 to your computer and use it in GitHub Desktop.

Select an option

Save caschwartz/10027268 to your computer and use it in GitHub Desktop.
xquery version "1.0-ml";
(: This query finds properties information :)
declare namespace ia = "http://my.namespace/ia";
declare namespace m = "http://www.loc.gov/MARC21/slim";
let $docs := xdmp:directory("/ia-xml/1/", "infinity")
for $doc in $docs
let $property := fn:QName("", "metadata-editor-reviewed-by")
return (fn:base-uri($doc), xdmp:document-properties(fn:base-uri($doc))/property::metadata-editor-reviewed-by)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment