|        | |||||
|  | |||||
| Translate rule boundaries | |||||
| Prerequisite Concepts | Related Syntax | ||||
In the absence of sgml-comment and marked-section rules, translate rules can match text on either side of SGML comments, IGNORE marked sections, and the start and end of INCLUDE, CDATA and RCDATA marked sections as if the intervening markup were not there.
If there is an sgml-comment rule in the OmniMark program, however, the translate rule will not match. In such a case, OmniMark:
translate rule processing when it sees the comment, terminating any translate rule in progress, then either
sgml-comment rules applies to the comment (that is, there is a rule in the currently active groups either with no condition or with a condition that succeeds), or
 
sgml-comment rule applies (that is there are no sgml-comment rules in the currently active groups or all of the rules in the currently active groups have conditions that fail), and then
translate rule processing.
In this case, the SGML comment forms a "boundary" to translate rule matching, over which a pattern cannot match.
In general, if an OmniMark program contains a rule for processing SGML comments or for processing a particular type of marked section, then SGML comments or that type of marked section cause translate rule boundaries in text. In particular:
sgml-comment rules, then any SGML comment in the document instance forms a translate rule matching boundary.
marked-section ignore rules, then any IGNORE marked section in the document instance forms a translate rule matching boundary.
marked-section cdata rules, then both the start and end of any CDATA marked section in the document instance form translate rule matching boundaries.
marked-section rcdata rules, then both the start and end of any RCDATA marked section in the document instance form translate rule matching boundaries.
marked-section include-start or marked-section include-end rules, then both the start and end of any INCLUDE marked section in the document instance form translate rule matching boundaries.
| Prerequisite Concepts Marked sections: IGNORE Marked sections: INCLUDE Marked sections: processing CDATA and RCDATA XML/SGML comments and marked sections | Related Syntax markup-comment sgml-comment translate | 
| ---- |