| Syntax 
   external-text-entity #document
 
 Purpose
 
 A rule that establishes a framework for explicitly providing an entire "SGML document entity" to the SGML parser.
 If a context-translateorup-translateprogram contains anexternal-text-entity #documentrule, there is no automaticsubmitof either the files named on the command line or by#process-input. Theexternal-text-entity #documentrule is used for processing the SGML document entity. If it needs to access files named on the command line, it can examine the#command line-namesbuilt-in stream. The external-text-entity #documentrule is different from other kinds ofexternal-text-entityrules: The name #documentcan't be mixed with entity names or with the keywords#dtd,#charset,#capacity, or#syntaxin the header of the rule.If there are any external-text-entity #documentrules in the program,   one must be selected to provide the SGML document. (Having more than one or none that is selectable causes an error.)A program that contains an external-text-entity #documentrule must not contain anyfind-startorfind-endrules, because there is no reason for them ever to be performed.An external-text-entity #documentrule only applies to the main SGML document, and not to documents whose parsing was initiated by ado sgml-parse. Thus, the#current-outputinherited by anexternal-text-entity #documentrule is always the#sgmlstream created bycontext-translate,down-translate, orup-translate.The "%q" format item cannot be used in an external-text-entity #documentrule because such a text entity does not have a name.
 |