<p>
When she was little, my daughter loved it when I read
<cite>Goodnight Moon</cite> to her.
<i>But <cite>Harold and the Purple Crayon</cite>
was her favorite.</i>
</p>
要处理该标记,可使用 XSL-FO <fo:inline> 元素:
1
2
3
4
5
6
7
8
<fo:block>
When she was little, my daughter loved it when I read
<fo:inline font-style="italic">Goodnight Moon</fo:inline> to her.
<fo:inline font-style="italic">But
<fo:inline font-style="normal">Harold and the Purple Crayon</fo:inline>
was her favorite.
</fo:inline>
</fo:block>
<fo:block>If you're a Java programmer, an easy way to
break a string apart is with the
<fo:inline font-family="monospace">java.util.StringTokenizer</fo:inline>
class.
</fo:block>
<p>There are four valid values for the
<code>text-align</code> parameter:</p>
<dl>
<dt>start</dt>
<dd>
The text is aligned at the start of the paragraph, normally
the left side.
</dd>
<dt>middle</dt>
<dd>The text is aligned at the middle of the paragraph.</dd>
<dt>end</dt>
<dd>
The text is aligned at the end of the paragraph, normally
the right side.
</dd>
<dt>justify</dt>
<dd>The text is aligned at both the start and end of
the paragraph.</dd>
</dl>