In the following example, rules allow up to two paragraphs in a topic, with up to one using each style. The rules are fixed so they must be used in this order, a paragraph with the Sub Heading style followed by a paragraph with Body Text. The attributes allow optional use of the rule, but define a maximum use of one paragraph based on each style.
The paragraph rules are defined as the number of occurrences, the location sequence, the allowed style: