| Syntax 
   sgml-comment condition?
     action+
 Purpose
 
 A rule that is performed whenever an SGML comment is found in an SGML or XML document and the condition (if any) is met.  Note that this rule is deprecated, and the markup-commentrule has been introduced to replace it. The following statements apply to sgml-commentrules: If no sgml-commentrule is performed for an SGML comment, then the comment text is discarded.If an OmniMark program contains no sgml-commentrules, then all comments are discarded.Only one sgml-commentrule may be selected for an SGML comment. That is, either there must only be onesgml-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 onesgml-commentrule to be selected for an SGML comment.There may be zero, one, or more than one SGML comment in any declaration in an SGML document, including in a comment declaration.
The %coperator captures the text of a comment. Either%corsuppressmust be used exactly once in ansgml-commentrule. The "u", "l", "s", "h", and "z" format modifiers can be used on a%coperator in ansgml-commentrule.The text of a comment consists of all the characters between, but not including, the two comment delimiters ("--" and "--") and including any record ends or white space within the comment.
SGML comments in the SGML Declaration are always ignored, whether or not there are any sgml-commentrules in the OmniMark program. All comments in the document prolog (containing the DTD) and document instance are available for processing.The setting of the sgml-outaction determines what happens to record ends in comment text.The presence of sgml-commentrules affects howtranslaterules match text around a comment in the following fashion:Any translaterules in progress when the SGML comment is encountered are terminated, andtranslaterule processing is suspended until the comment is processed.The comment is processed if one of the sgml-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)The comment is ignored if no sgml-commentrules applytranslaterule processing is resumed.
 It is an error for more than one sgml-commentrule to be selected for an SGML comment. This means that: there must be only one rule, or
if there is more than one rule, each must have a condition or conditions that, when collectively evaluated, allow only one rule to be selected. 
 This is an example of sgml-commentrules with conditions:
   sgml-comment when element is p
     output " (note: %c)"
  sgml-comment when element isnt p
     output "   note: %c%n"
 |