【发布时间】:2021-05-07 17:13:36
【问题描述】:
我们正在使用 xsl-fo 创建 PDF。
我尝试使用
<xsl:attribute-set name="myBorder">
<xsl:attribute name="border-bottom">0.0254cm solid black</xsl:attribute>
<xsl:attribute name="border-right">0.0254cm solid black</xsl:attribute>
<xsl:attribute name="border-left">0.0254cm solid black</xsl:attribute>
<xsl:attribute name="border-top">0.0254cm solid black</xsl:attribute>
</xsl:attribute-set>
<fo:block xsl:use-attribute-sets="myBorder" height="225mm" width="195.0mm">
生成一个边框直到区域主体结束,但它没有按照我想要的方式生成。
它希望它是这样的:
但边框只生成到内容而不是区域主体结束,输出如下所示:
我怎样才能产生所需的输出?
【问题讨论】: