swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
    Related Concepts  
action  

suppress

 
 

Syntax

suppress
    


Purpose

suppress is equivalent to

  put #suppress "%zhc"
          

In the format string %zhc,

The following sample code demonstrates the use of suppress in a simple SGML program. The program prints all of the titles in a document whose doctype is doc.

  process
     do sgml-parse document scan #main-input
        output "%c"
     done
  
  
  element "doc"
     suppress
  
  
  element "title"
     put #main-output "%c%n"
  
  
  element #implied
     output "%c"
          

If there are subelements in title, they will be processed by the element #implied rule. output "%c" is used instead of suppress to process the content of these subelements. This ensures that the content of the subelement is sent to the same destination as the content of the parent element. If the subelement is within a title, its content will be sent to #main-output in its proper place within the title. Otherwise, it will be sent to #suppress.

      Related Concepts
 
 

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

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:51:21 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.