Simple example for text-decoration
The "text-decoration"-property describes decorations that are added to the text of an element. If the property is specified for a block-level element, it should affect all inline-level descendants of the element (does not work yet!). If it is specified for (or affects) an inline-level element, it affects all boxes generated by the element.
Example: underline
<fo:inline text-decoration="underline">underline</fo:inline>
This is simple test of the text-decorationunderline.
This is simple test with a bigger font-size.
This is simple test with a monospaced font.

The following text decorations are defined in the CR:
•
none
•
underline
•
overline
•
line-through
•
blink
•
no-underline
•
no-overline
•
no-line-through
•
no-blink
Combination
of property values should also be possible, but does not work in FOP at the moment.
<fo:inline text-decoration="underline overline"> Combination</fo:inline>
And now more than a word...
This is a whole block wrapped in fo:inline with the property text-decoration="underline". Some more Text to get at least two lines.
This is simple test with a bigger font-size.
This is simple test with a monospaced font.
What about underlining of whitespace only ?