swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax   Related Concepts  
rule  

prolog-in-error

 
 

Syntax

prolog-in-error condition?
        action*
    


Purpose

The prolog of a document is anything occurring before the start tag of its root element, such as the SGML or XML declaration or the DTD. If the prolog is erroneous, the XML or SGML parser may be unable to parse the rest of 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 fatal errors occur in the prolog, end the parsing can continue. A prolog-in-error rule is fired if fatal 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 the errors that occurred in the prolog prevent the markup parser from continuing.

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

    Related Syntax
 
Related Concepts
 
 

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

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:51:21 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.