| Syntax 
   markup-error condition?
     log?
     local-declaration*
     action*
 Purpose
 
 The markup-errorrule is triggered when a parsing error is found by the current parser. Note that themarkup-errorrule is a replacement for the deprecatedsgml-errorrule.markup-errorperforms the same functions and has the same behavior assgml-errorbut can be used when processing XML as well as SGML documents. The OmniMark program can do a number of things in amarkup-errorrule: 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 logkeyword 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-errorrule in an OmniMark program, the firstmarkup-errorrule which has no condition, or which has a condition that is true, is performed. If there are no markup-errorrules which can be performed, the conventional error reporting is done. |