Arbortext Command Language > Hooks > htmldoccompletehook
  
htmldoccompletehook
htmldoccompletehook
Function prototype:
hook=(htmldocid, srcdocid)
Synopsis
Use with:
add_hook(hookname, func)
remove_hook(hookname, func)
where hookname is htmldoccompletehook.
Arbortext Editor calls this hook before returning a virtual HTML document generated from htmldoc function. The hook passes the document's virtual HTML document ID and the associated source document ID to the function func. You can perform any type of supported Arbortext Editor action on the document while it's in memory, such as finding and replacing text. The function is especially useful for changing markup in HTML elements or adding new tags.
Arguments
htmldocid is the document identifier of the virtual HTML document returned by htmldoc.
srcdocid is the document identifier of the source document.
The hook function should perform actions that conform to valid standardized HTML markup.