到目前为止,我希望你们都度过了愉快的假期!
我目前正在研究从 DocBook 到 apache fo(然后再到 PDF)的 XSLT 转换,但我在一张桌子上苦苦挣扎。
这是我的样式表的相关部分。
<fo:block>
<fo:table border-style="none" border-width="0pt">
<fo:table-column column-width="20%"/>
<fo:table-column column-width="80%"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell border-style="solid" border-width="1pt" text-align="start" padding-left="0cm">
<fo:block font-weight="bold">First Column <xsl:text> </xsl:text> <xsl:number level="multiple" count="d:appnote" format="1"/>
</fo:block>
</fo:table-cell>
<fo:table-cell border-style="solid" border-width="1pt" text-align="start">
<fo:block><xsl:value-of select="d:description" /></fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
不幸的是,生成的表格在表格的左边框和文本的开头之间显示了一些相当大的边距(即使我设置了 padding-left="0cm")
我尝试了十几种不同的属性和选项,但我无法摆脱这个空白。
有人给我小费吗?