Next Previous Up Top Contents Index

WebMaker User Guide

12.6.3 Conversion actions of a paragraph rule

Specify the actions, using combinations of predefined functions and user-defined variables, to be taken when encountering a paragraph of the declared format tag. If only default actions are desired, then no rules are specified other than the paragraph type declaration and, possibly, the setting of attribute values.

Below are three examples:

PARAGRAPH "1Heading" TYPE Heading
  {
    NEWNODE BasicSection
    LEVEL 1
    ACTIONS
      {
        write(*,heading(1,text()));
        write(*,hrule());
      }
  }
PARAGRAPH "Step" TYPE List
  {
    LEVEL 2
    KIND Number
    ACTIONS
      {
        write(*,listitem(paragraph(text())));
      }
  }
PARAGRAPH "Warning" TYPE Normal
  {
    ACTIONS
      {
        write(*,hrule());
        write(*,paragraph(concatenate(
                           image("warning.gif",top),
                           bold(text()))));
        write(*,hrule());
      }
}