Rules Editor Home | Documentation Home | Stilo
Guide to
Migrate 3.2.0 Rules Editor
Stilo
Style Test
Style Tests

Migrate is typically used to convert documents from a highly-styled visual authoring environment to semantic XML. Documents therefore often have styles carefully applied to them such as Heading1, Heading2, Heading3 for titles at different levels. The style test is used to check the styling of an element.

simple style test
simple style test

style test with a pattern

A style test accepts a pattern as its argument. A simple text string, as shown in the previous example, is a very simple pattern, but more complex patterns are allowed. The following rule will match text styled anything from Heading1 to Heading99 and apply the appropriate topic annotation. For example, Heading3 text would be annotated as p.title.topic(3). See Patterns for more information on patterns.

style test with a pattern