contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
Elements: the document element name
Prerequisite Concepts     Related Syntax  

name of doctype, will, within a document instance, return the name of the document element (that is, the topmost element of the instance). It is often of interest to know the name of the document element outside of the instance -- in particular, when processing the external identifier at the start of the DTD. For this purpose, the #doctype stream is provided. It contains the name of the document element, even outside of the document instance.

The #doctype stream is "attached" as soon as OmniMark encounters the document element name at the start of the DTD, following the doctype keyword. Prior to that point, the #doctype stream is "Unattached". The stream #doctype is attached test can be used to distinguish whether or not the document element name is available.

The #doctype stream is "read-only". Its value cannot be changed by an OmniMark program, nor can the #doctype "stream shelf" be cleared or added to (with new).

Prerequisite Concepts
     Elements
 
  Related Syntax
   element
   new, set new
 
----

Top [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:00:47 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.