我想用 fo:block-container
在我的 XSLT 表和生成的 XSL-FO 中。例如,要更改表格的方向:
<fo:block-container
reference-orientation="90"
break-before="page"
break-after="page">
<fo:table>
<!--Table content-->
</fo:table>
</fo:block-container>
然后,我应用 FOP 并从 XSL-FO 生成 PDF。
Apache FOP 合规性页面 ( http://xmlgraphics.apache.org/fop/compliance.html ) 说 FOP 只是 部分合规 在
fo:block-container
的情况下.有谁知道不支持哪些属性或者这将如何影响生成的 PDF?
最佳答案
我不太了解 fop 合规性,但前段时间我使用 fop-extensions 来旋转容器:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" version="2.0">
<fo:block-container position="absolute" fox:transform="rotate(90)">
...
</fo:block-container>
</xsl:stylesheet>
在下面的链接中找到有关 fop 扩展的更多信息。
https://xmlgraphics.apache.org/fop/trunk/extensions.html
关于xslt - 佛 :block-container and FOP compliance,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19981314/