Rules Editor Home | Documentation Home | Stilo
Guide to
Migrate 5.0.0 Rules Editor
Stilo
Hazard statement annotations
Syntax
p.hazard.typeof(type)
type
type of hazard; may be notice, caution, warning, or danger
p.hazard.consequence
p.hazard.avoid
Purpose

Hazard statements are used to warn the reader of possible problems and tell the reader how to avoid the issue. They usually also list consequences of ignoring the hazard statement. One or more safety symbols may also be included. The statements must be in the order type, consequence, avoid.

Here is a sample notice:

Sample hazard notice

Here is what your rules may look like:

Sample hazard notice rules

This is what your output may look like:

<hazardstatement type="notice"> <messagepanel> <typeofhazard>Shallow pipes</typeofhazard> <consequence>Pipes may freeze if cold water is not left running. Frozen pipes may burst.</consequence> <howtoavoid>Keep a cold water tap running through the freezing months with stream the size of a pencil.</howtoavoid> </messagepanel> </hazardstatement>