| Syntax 
   external-text-entity #document
 
 Purpose
 
 Provides the framework for explicitly providing an entire "SGML document entity" to the SGML parser and is used to control where input comes from in a down-translation.
 The external-text-entity #documentrule differs from the otherexternal-text-entityrules in the following ways: The name #documentcannot be mixed with entity names or with#dtd,#charset,#capacity, or#syntaxin the header of the rule (for example,external-text-entity #document | #dtdis not allowed).If there are external-text-entity #documentrules in the program, one, and only one, must be selected to provide the SGML document entity. (An error will be issued if none or more than one is selected.)A program that contains an external-text-entity #documentrule must not contain anyfind-startorfind-endrules (there is no reason for them 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 by thecontext-translate,down-translate, orup-translatetranslation type.The "%q" format item cannot be used in an external-text-entity #documentbecause this type of text entity does not have a name.
 |