The <style> and <style-extra> actions allow text to be rendered in a particular style. <style> applies to the text content beneath an element, while <style-extra> applies to the text rendered by <render-before> and <render-after>, as well as any text rendered as the result of <if> conditions.
<style> and <style-extra> have the same content model. They allow any of the following children, in any order:
| <alignment> | value: left, right, centered, or justified |
| <bold> | no attributes |
| <foreground> | value: # + xxxxxx (a 6-digit hexadecimal number) |
| <italic> | no attributes |
| <left-indent> | value: indent in points |
| <right-indent> | value: indent in points |
| <subscript> | no attributes |
| <superscript> | no attributes |
| <underline> | no attributes |
Example 1: This rule will display the contents of <i> in italics:
<self>
<element name="i"/>
<style><italic/></style>
</self>
Example 2: This rule will indent text within <blockquote> on both sides:
<self>
<element name="blockquote"/>
<style>
<left-indent value="144"/>
<right-indent value="144"/>
</style>
</self>