Loading TOC...

MarkLogic 10 Product Documentation
fn.baseUri

fn.baseUri(
   [arg as Node?]
) as String?

Summary

Returns the value of the base-uri property for the specified node. If the node is part of a document and does not have a base-uri attribute explicitly set, fn:base-uri typically returns the URI of the document in which the node resides.

Parameters
arg The node whose base-uri is to be returned.

Example

var x = cts.doc("/bar.json");
fn.baseUri(x);

=> "/bar.json"

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.