swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
  Related Syntax   Related Concepts  
rule type   prolog-in-error    

Syntax

  prolog-in-error condition?
      action*


Purpose

If the XML or SGML parser encounters an error in the proglog of a document (the prolog is anything occuring before the start tag of the root element, such as the SGML or XML declaration or the DTD), it stops parsing at the end of the prolog and does not process the document. If you need to perform any actions at the end of the prolog when it is in error, you can write a prolog-in-error rule.

A prolog-in-error rule is an alternative to a prolog-end rule. A prolog-end rule is fired at the end of the prolog if no errors occur in the prolog. A prolog-in-error rule is fired if errors occurred in the prolog. Note that the prolog-in-error rule is not fired at the time that the error is detected. Errors in the prolog cause a markup-error rule to be fired. The prolog-in-error rule is fired at the end of the prolog if errors occurred in the prolog.

You can have more than one prolog-in-error-rule. Each rule will be performed in the order they occur in the program.

    Related Syntax
   prolog-end
   do sgml-parse
   do xml-parse
 
Related Concepts
   Errors, markup (XML or SGML)
 
----

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

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

Copyright © OmniMark Technologies Corporation, 1988-2000.