fo:块容器和FOP合规性

Mat*_*ler 6 xslt xsl-fo apache-fop

我想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>
Run Code Online (Sandbox Code Playgroud)

然后,我应用FOP并从XSL-FO生成PDF.

Apache的FOP遵守页面(http://xmlgraphics.apache.org/fop/compliance.html)说,FOP仅部分符合中的情况fo:block-container.有谁知道哪些属性不受支持或者这将如何影响生成的PDF?

ora*_*n g 1

我不太了解 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>
Run Code Online (Sandbox Code Playgroud)

在下面的链接中查找有关 fop 扩展的更多信息。

https://xmlgraphics.apache.org/fop/trunk/extensions.html