swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
  Related Syntax   Related Concepts  
action   halt, halt-everything    

Syntax

  halt (with numeric-expression)?
  halt-everything (with numeric-expression)?

Where:
numeric-expression



Purpose

The keyword halt terminates an OmniMark program. No further OmniMark rules or actions are performed. Processing of all output files is completed, including processing of referents. Any referent resolution errors that occur will be reported.

If you need to halt the OmniMark program without trying to finish writing to files or resolving referents, use halt-everything. halt-everything terminates the program in the same manner as halt, except that referents are not resolved and no errors indicating unresolved referents are issued. The following fragment ends the program if more than 50 SGML errors occur and returns the number of SGML errors encountered to the operating system:

  markup-error
  do when #markup-error-count > 50
     put #error "Terminating because more than 50 sgml errors occurred%n"
     halt with #markup-error-count
  done

    Related Syntax
   process
   process-end
   process-start
 
Related Concepts
   Halting an OmniMark program
 
----

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ OMX ] [ OMX ] [ ERRORS ]

Generated: August 11, 2000 at 3:07:19 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com

Copyright © OmniMark Technologies Corporation, 1988-2000.