<kbd> 键盘输入通常以稍大的等宽字体来表示键盘输入(在 HTML 中,用 <kbd> 元素表示键盘输入)。下面是 HTML 样本:
1
2
3
4
<p>
An easy way to delete a directory and all its contents (including
all subdirectories) is with the <kbd>rd /s</kbd> command.
</p>
可以用如下的 XSL-FO 元素来表示该样本:
1
2
3
4
5
6
<fo:block>
An easy way to delete a directory and all its contents (including
all subdirectories) is with the
<fo:inline font-family="monospace" font-size="110%">rd /s</fo:inline>
command.
</fo:block>
<p>
On the Windows 2000 command line, you can use the ampersand (&) to
combine several commands into one statement.
<nobr>
pushd d:\\projects\\xslfo & del *.fo & rebuild.bat & popd
</nobr>
is an example of this technique.
</p>
<fo:block>
On the Windows 2000 command line, you can use the ampersand (&)
to combine several commands into one statement.
<fo:inline wrap-option="no-wrap">pushd d:\\projects\\xslfo &
del *.fo & rebuild.bat & popd </fo:inline> is an
example of this technique.
</fo:block>
<ol> 有序列表XSL-FO 词汇所具有的特征是:有专门用于列表(包括有序列表)的元素。以下是样本 HTML 列表:
1
2
3
4
5
6
7
8
<p>A few of my favorite albums</p>
<ol>
<li>A Love Supreme</li>
<li>Remain in Light</li>
<li>London Calling</li>
<li>The Indestructible Beat of Soweto</li>
<li>The Joshua Tree</li>
</ol>
<fo:block>A few of my favorite albums</fo:block>
<fo:list-block provisional-distance-between-starts="0.75cm"
provisional-label-separation="0.5cm" space-after="12pt"
start-indent="1cm">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>1. </fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
A Love Supreme
</fo:block>
</fo:list-item-body>
</fo:list-item>
...
<!-- other list items appear here -->
...
</fo:list-block>