10.5 WML primary paragraph rules

10.5.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());
      }
}

WebMaker User Guide - 27 SEP 1995

Generated with Harlequin WebMaker