Syntax
namecase general (yes | no)
Purpose
By default, OmniMark treats SGML names (other than entity names, name tokens and number tokens that appear in the program) according to the SGML Reference Concrete Syntax. In other words, a lowercase letter is interpreted as though the corresponding uppercase letter had been used in its place.
In SGML, the characteristics specified in the Reference Concrete Syntax can be changed in the SGML Declaration. OmniMark, in order to have its programs more closely match the SGML Declaration, can do the same thing. In order to avoid confusion, the OmniMark namecase general declaration should agree with the SGML NAMECASE GENERAL declaration.
When namecase general yes is specified, lowercase characters will be interpreted as if they were uppercase.
When namecase general no is specified, lowercase letters are interpreted as different characters.
The default is namecase general yes .
Remember that the namecase general declaration pertains only to letters within SGML names and tokens, and not to any data content within the SGML document.
Non-CDATA attribute values are returned to the OmniMark program in uppercase when namecase general yes is specified in the SGML declaration. However, string expressions being compared to attribute values are not affected by the namecase general declaration in OmniMark. It is the OmniMark programmer's responsibility to ensure that values compared to non-CDATA attribute values are entered in uppercase when appropriate.
The namecase general declaration in the OmniMark program does not affect OmniMark's treatment of the name of OmniMark objects such as counters or switches, or of OmniMark keywords. Capitalization is never significant in OmniMark-specific names; they are always treated as if the uppercase version was entered. The namecase general declaration must follow the translation type and precede all other declarations and rules in the program.
The namecase declarations can only occur in the preamble.
|