swirl
Guide to OmniMark 8   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
     
action  

suppress

 
 

Syntax

suppress condition?


Purpose

A parse continuation action. Like %c, it causes parsing to continue but suppresses any output. suppress is equivalent to:

  put #suppress "%zhc"

In the format string "%zhc",

See Parsed data: formatting for more details.

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

  down-translate
  
  element doc
     suppress
  
  element title
     put #main-output "%c%n"
  
  element #implied
     output "%c"

If there are subelements in the 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 "goes to the same place" 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 suppressed.

       
 

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

OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:33:48 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.