xslt - 佛 :block-container and FOP compliance

标签 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>

然后,我应用 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/

相关文章:

XSLT 1.0 添加命名空间 + xsi :type to element

xsl-fo - 如何使用 XSL 正确标记表格边框 :FO and Apache FOP

java - Apache FOP - Fop 类型的 getDefaultHandler() 方法未定义

Apache FOP - 不接受自定义字体

xslt - XSL 转换,选择命名空间

XSLT 分页

xslt - XSLT 是一种函数式编程语言吗?

html - 如何让xsl :fo allow table cell to take empty blocks and print mutiple lines

java - 如何将 Fop 配置文件加载到 FopFactory

xml - FOP 的好替代品?