markup-comment condition? action+
A rule that is performed whenever an SGML or XML comment is found in an SGML or XML document and the condition (if any) is met.
The following statements apply to
markup-commentrule is performed for an SGML or XML comment, then the comment text is discarded.
markup-commentrules, then all comments are discarded.
markup-commentrule may be selected for an SGML or XML comment. That is, either there must be only one
markup-commentrule or, if there is more than one, each rule must have a condition so that only one rule applies to any given comment. It is an error for more than one
markup-commentrule to be selected for an SGML or XML comment.
%coperator captures the text of a comment. Either
suppressmust be used exactly once in a
zformat modifiers can be used on a
%coperator in a
--) and including any record ends or white space within the comment.
markup-commentrules in the OmniMark program. All comments in the document prolog (containing the DTD) and document instance are available for processing.
markup-commentrules affects how
translaterules match text around a comment in the following fashion:
translaterules in progress when the SGML or XML comment is encountered are terminated, and
translaterule processing is suspended until the comment is processed.
markup-commentrules apply to the comment (that is, there is a rule in the currently active groups either with no condition or a condition that succeeds).
translaterule processing is resumed.
It is an error for more than one
markup-comment rule to be selected for an SGML or XML comment.
This means that:
This is an example of
markup-comment rules with conditions: