next up previous
Next: Conditions Up: Actions Previous: <apply-filter>

<style> and <style-extra>

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:

All these are empty elements. The attributes for each are detailed in the following table:
<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>


next up previous
Next: Conditions Up: Actions Previous: <apply-filter>
Malcolm D. Hyman 2003-10-09