
xdmp:node-uri( $node as node() ) as xs:string?
Returns the document-uri property of the parameter or its ancestor.
| Parameters | |
|---|---|
| node | The node whose URI is returned. |
xdmp:node-uri(doc("/some/document.xml"))
=> "/some/document.xml"
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.