| Syntax 
   find-start condition?
     action*
 Purpose
 
 A find-startrule in an OmniMark program specifies actions to be performed at the beginning of processing an input document. find-startrules are automatically invoked on the main input of a cross-translation, up-translation, or context-translation. Afind-startrule is not allowed in a down-translation or in a process program.
 The condition in the header of a find-startrule can depend on switches set on the command line, streams opened on the command line, and actions in previously performedfind-startordocument-startrules. More than one find-startrule can appear in a program: those whose conditions succeed are performed in the order in which they appear in the OmniMark program. No condition need be specified for afind-startrule if none is relevant. In context-translations or up-translations, initialization actions analogous to those  performed in a find-startrule can also be performed usingdocument-startrules. Alldocument-startrules are performed beforefind-startrules. This allowsfind-startrules to generate SGML markup which is processed byelementrules, while still ensuring thatdocument-startrules are processed before any markup. Where find-endrules can be used for termination,find-startrules can be used for initialization. |