xdmp:node-uri( $node as node() ) as xs:string?
Returns the document-uri property of the parameter or its ancestor.
xdmp:node-uri(doc("/some/document.xml")) => "/some/document.xml"