Search code examples
marklogic

What's the difference between xdmp:node-uri and fn:base-uri?


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?


Solution

  • 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.