【发布时间】:2016-01-28 17:15:44
【问题描述】:
我想删除这个估计的标题和下面的黑线。我试过删除
<fo:block text-align="center" padding-left="4pt" margin-left="4pt" margin-bottom="4pt" padding-bottom="4pt">
<xsl:attribute name="border-bottom-color">black</xsl:attribute>
<xsl:attribute name="border-bottom-width">0.7pt</xsl:attribute>
<xsl:attribute name="border-bottom-style">solid</xsl:attribute>
Estimated
</fo:block>
('Unable to generate PDF.',
b'Exception\norg.apache.fop.apps.FOPException: org.apache.fop.fo.ValidationException:
"fo:table-cell" is missing child elements. Required content model: marker* (%block;)+ (See position 8:104)
javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException:
"fo:table-cell" is missing child elements. Required content model: marker* (%block;)+ (See position 48:104)')
尝试只删除“估计”一词,
甚至尝试删除黑条:
<xsl:attribute name="border-bottom-color">black</xsl:attribute>
<xsl:attribute name="border-bottom-width">0.7pt</xsl:attribute>
<xsl:attribute name="border-bottom-style">solid</xsl:attribute>
('Unable to generate PDF.', b'Exception\norg.apache.fop.apps.FOPException: org.apache.fop.fo.ValidationException:
The column-number or number of cells in the row overflows the number of fo:table-columns specified for the table. (See position 25:15)
javax.xml.transform.TransformerException:
org.apache.fop.fo.ValidationException: The column-number or number of cells in the row overflows the number of fo:table-columns specified for the table. (See position 25:15)\n\n')
Unable to generate PDF 部分是自定义的
这 xsl-fo 的东西真的很挑剔,有谁知道为什么我连其中一个都不能在不爆炸的情况下移除?谢谢
【问题讨论】:
标签: python xml pdf xslt xsl-fo