当前位置: 首页 > 网络学院 > XML相关教程 > XSL-FO > XSL-FO 表格
XSL-FO uses the <fo:table-and-caption> element to define tables.
XSL-FO 使用<fo:table-and-caption>元素定义表格。
The XSL-FO table model is not very different from the HTML table model.
XSL-FO 的表格模式和HTML表格模式相差不大。
There are nine XSL-FO objects used to create tables:
下面列举9个可以用于创建表格的XSL-FO对象:
XSL-FO uses the <fo:table-and-caption> element to define a table. It contains a <fo:table> and an optional <fo:caption> element.
XSL-FO使用<fo:table-and-caption>元素来定义一张表格。它包含了一个<fo:table>元素和一个可选择的<fo:caption>元素。
The <fo:table> element contains optional <fo:table-column> elements, an optional <fo:table-header> element, a <fo:table-body> element, and an optional <fo:table-footer> element. Each of these elements has one or more <fo:table-row> elements, with one or more <fo:table-cell> elements:
<fo:table>元素包含了几个可选择的<fo:table-column>元素,一个可选择的<fo:table-footer>元素。这些元素都包含一个或多个的<fo:table-row>元素以及一个或多个的<fo:table-cell>元素:
<fo:table-and-caption> |
The output from this code would something like this:
上述代码将输出如下结果:
Car | Price |
---|---|
Volvo | $50000 |
SAAB | $48000 |