
Document.baseURI as String
This is inherited from the Node object.
Returns a string representing the base URI of the node.For XML documents, the base URI may be affected by an xml:base attribute on any ancestor of the current node.
let uris = [];
for (const hit of cts.search("frightening")) {
uris.push(hit.baseURI);
}
uris;
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.