#error-code
Full Description
swirl
Syntax
  #error-code


Purpose

A built-in stream shelf that provides the SGML error code number. This stream shelf can be accessed only from the header and body of sgml-error rules.

Each SGML warning or error is assigned a unique error code number. These numbers are fixed for all future releases of OmniMark, although new ones may be added. These error code numbers provide a reliable way of identifying an error or warning since the message text can change, for example, as a result of user feedback.

#error-code also can be used as a pattern variable for compatibility with past releases. However, this use is deprecated. Unlike programmer-defined pattern variables, #error-code must always be heralded with the pattern keyword, even where heralding is usually optional.

The is specified test is always true for #error-code because the error code is present in all SGML error messages.

Copyright © OmniMark Technologies Corporation, 1988-1998.