contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
rule type   find-start    
Sample Code   Related Syntax    

Syntax

  find-start condition?
     action*


Purpose

A find-start rule in an OmniMark program specifies actions to be performed at the beginning of processing an input document.

find-start rules are automatically invoked on the main input of a cross-translation, up-translation, or context-translation. A find-start rule is not allowed in a down-translation or in a process program.

The condition in the header of a find-start rule can depend on switches set on the command line, streams opened on the command line, and actions in previously performed find-start or document-start rules.

More than one find-start rule 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 a find-start rule if none is relevant.

In context-translations or up-translations, initialization actions analogous to those performed in a find-start rule can also be performed using document-start rules. All document-start rules are performed before find-start rules. This allows find-start rules to generate SGML markup which is processed by element rules, while still ensuring that document-start rules are processed before any markup.

Where find-end rules can be used for termination, find-start rules can be used for initialization.

Sample Code  
   Context translations: a simple example
   SGML to HTML conversions
   TeX to SGML conversions
 
Related Syntax
   document-start
   element
   find-end
 
 
----

Top [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:01:05 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.