| Syntax 
   find-end condition?
     local-declaration*
     action*
 Purpose
 
 Actions to be taken at the end of processing an input document are entered in a find-endrule. find-endrules are automatically invoked on the main input of a cross-translation, up-translation, or context-translation. Wherefind-startrules can be used for initialization,find-endrules can be used for termination.
 Several find-endrules can be selected at the end of an OmniMark run. If multiple rules apply, the actions of those whose conditions succeed are performed in the order the rules appear in the OmniMark program. In a context-translation, find-endrules are performed before anydocument-endrules. This order allowsfind-endrules to output SGML or XML markup that is processed byelementrules before thedocument-endrules are processed. A find-endrule is not allowed in a down-translation or in a process program. |