swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax    
rule type  

document-start

 
 

Syntax

  document-start condition?
     local-declaration*
     action+


Purpose

A rule that allows you to do processing and produce output before the beginning of an XML or SGML document. These rules are to be performed after any process-start rules. document-start rules are performed in the order they appear in the program.

document-start rules are allowed only in aided translation type programs that use up-translate, down-translate, or context-translate. They are equivalent to the processing done before the parse continuation operator (%c or suppress) in a do xml-parse or do sgml-parse.

The following are examples of document-start rules:

  document-start
     output "{\rtf1\mac %n"

  document-start when index isnt open
     open index as file "index.doc"

    Related Syntax
   include
   process-start
   processing-instruction
 
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACYLIBRARIES ] [ ERRORS ]

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:45:12 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.