【发布时间】:2020-08-10 18:32:14
【问题描述】:
我想让这张桌子也有 100% 的高度。
XSLT 片段:
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<!-- defines the layout master -->
<fo:layout-master-set>
<fo:simple-page-master master-name="simpleA4" page-height="29.7cm" page-width="21cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm" margin-right="2cm">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<!-- starts actual layout -->
<fo:page-sequence master-reference="simpleA4">
<fo:flow flow-name="xsl-region-body">
<fo:table width="110mm" border-style="outset" border-width="1pt">
<fo:table-column column-number="1" column-width="80%" border-style="solid" border-width="1pt"/>
<fo:table-column column-number="2" column-width="80%" border-style="solid" border-width="1pt"/>
<fo:table-body>
<xsl:apply-templates select="etiqueta"/>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root>
【问题讨论】:
标签: xslt xslt-1.0 xslt-2.0 xsl-fo