|
|||||
rule type | prolog-in-error | ||||
Related Syntax | Related Concepts |
Syntax
prolog-in-error condition? action*
A rule performed at the end of either the SGML declaration or the document prolog, if any SGML errors were encountered up to that point. Essentially, this is immediately prior to the point at which OmniMark gives up the current parse.
When SGML errors occur in the document prolog, OmniMark will terminate after processing the prolog. prolog-in-error
rules are designed to allow the program to process as many prolog errors as possible while still being able to do cleanup before terminating.
A prolog-in-error
rule is performed when it is in an active group, or in no group (the implied group), and has either no condition or a condition that succeeds. More than one prolog-in-error-rule
can be performed in the order in which they appeared in the OmniMark program.
prolog-in-error
provides you with the following choices:
halt
or a halt-everything
can be used to stop the OmniMark program.
prolog-in-error
"drops through" (there are no further actions to perform), OmniMark terminates the parsing of the current SGML document. Execution continues after the end of the current do sgml-parse
if one is active. If not, the program is terminated and no further processing of rules occurs.
Related Syntax halt, halt-everything do sgml-parse |
Related Concepts Errors: handling prolog errors XML/SGML errors: processing |
---- |