This module defines all keywords used in SGML. Internal to the program, symbolic integer values are used for the keywords. These values are defined in the file ``types.h''. These functions turn a character string into the symbolic value for the corresponding keyword. If no keyword corresponds to the string, the value TOK_NOD is returned. The function mdo_keyword() converts all keywords that can follow the MDO delimiter (attlist, element, entity, doctype, etc...). Sgml_string_to_key() converts a keyword that may occur in an SGML declaration. String_to_key() converts all other SGML keywords.
This function converts a symbolic value into the corresponding character string. This is used for debugging and for error-reporting.
This function takes as parameters two symbolic values from status keywords for a marked section, which are INCLUDE, IGNORE, TEMP, CDATA and RCDATA. It returns the key with the greatest priority. See Standard 10.4.2, page 37.