It seems to me that xdmp:node-uri
and fn:base-uri
are the same. Is there a difference? Why would you use one over the other?
The base-uri
function will honor the xml:base
attributes in the document. The xdmp:node-uri
just accesses the stored location. So the latter will be a wee bit faster but if you use base attributes, inappropriate.