I have syntax errors when exclude multiple nodes in element like "Sources" and "Navigators" nodes. But it works if I exclude only one node but not combine before returning the documents.
[(fn:local-name() != ("Sources","Navigators")]
In Marklogic Qconsole:
for $x in $uris
let $doc := fn:doc($x)
let $copymeta := <meta:Metadata>
{ $doc//meta:Metadata/*[(fn:local-name() != ("Sources","Navigators")] }
</meta:Metadata>
let $newxml := <omd:record>
{ $copymeta }
</omd:record>
return $newxml