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

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 occurring 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 ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:33:48 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.