fonto:document

Type: Function

Get the document node with the given remote document id if it is loaded. If this document is not loaded, an error will be thrown.

Arguments

# Name Type Description
1. remoteDocumentId String

The remote document id of said document

Example

if (fonto:is-document-loaded(@href)) then
    fonto:document(@href) => fonto:title-content() || " is loaded!"
else
    "Nope"

Returns

Type: Node

The document node of said document

Was this page helpful?