markup-error
Full Description
swirl
Syntax
  markup-error condition?
     log?
     local-declaration*
     action*


Purpose

The markup-error rule is triggered when a parsing error is found by the current parser. Note that the markup-error rule is a replacement for the deprecated sgml-error rule. markup-error performs the same functions and has the same behavior as sgml-error but can be used when processing XML as well as SGML documents. The OmniMark program can do a number of things in a markup-error rule:

  • It can report the error in a manner suited to the task it is performing.
  • It can examine the error and determine whether or not the OmniMark program should continue processing.

If the log keyword is specified at the beginning of the rule body, then the conventional error reporting is done in addition to the actions that follow.

If there is more than one markup-error rule in an OmniMark program, the first markup-error rule which has no condition, or which has a condition that is true, is performed.

If there are no markup-error rules which can be performed, the conventional error reporting is done.

Copyright © OmniMark Technologies Corporation, 1988-1998.