|
|||||
built-in variable | #markup-parser | ||||
Related Syntax | Related Concepts |
Purpose
A built-in stream that identifies the input to the markup parser. Values written to it are passed to the active parser (SGML or XML), as specified at the beginning of the program. It is the current output destination in the following:
find
, find-start
, and find-end
rules that process the main input in context- and up-translations
external-text-entity
rules
do sgml-parse
You cannot open or close the #markup-parser
stream.
#markup-parser
is available in any function called from the above contexts, or in any find
rules performed as a result of submit
in any of the above contexts. It cannot be written to in any other contexts.
In earlier releases of OmniMark, #markup-parser
was identified as #sgml
. This form is still valid, but its use is deprecated. The name #markup-parser
is preferred because it writes to both supported parsers (the SGML parser and the XML parser). If other parsers are added to OmniMark in the future, the #markup-parser
stream will be used to write to them as well.
---- |