Adding existing documents from the DOM document store
To add a document from the DOM document store, you can use the dom.existing.document.add
function. This function has this syntax:
Syntax:
function long dom.existing.document.add(
string i.doctype,
string i.doc.company,
[string i.keyword1,
string i.value1,
string i.keyword2,
string i.value2,
string i.keyword3,
string i.value3,
string i.keyword4,
string i.value4])
Description:
This function retrieves an existing document from the Document Store, including
overlays and adds this to the document currently processed.
Arguments:
string i.doctype
The document type of the existing document.
string i.doc.company
The company of the existing document.
string i.keyword1, i.value1, i.keyword2, i.value2, i.keyword3, i.value3, i.keyword4, i.value4
The (optional) string pairs for the keywords and their values,
to search the document.
Return value:
This function returns an XML node, which contains the existing document.
You can use the dom.add.part()
function to add an overlay
to the document. This function has this syntax:
Syntax:
function dom.add.part(
long i.document,
long i.sequence)
Description:
This function adds an extra overlay to the existing document.
Arguments:
long i.document
The xml node which contains the existing document.
long i.sequence
The sequence of the overlay to set