是否有一个工具可以从 xsl 创建 xsl:fo 以便输出相同?
是否有任何工具可以获取 xsl 文件并将其转换为相同的 xsl:fo ? 我有从 xsl+xsl 转换而来的 html 文件,现在我喜欢采用 xsl 并创建 xsl:fo 对于 fop 我现在真的不想写 xsl:fo
Is there any tool that takes xsl file and converting it to the same xsl:fo ?
I have html file that is converted from xsl+xsl and now I like to take the xsl and to create xsl:fo
For fop and I really don’t want to write xsl:fo now
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您需要一个 fop 能够理解的转换,即仅 xsl:fo,或者换句话说,fop 无法打印 HTML。
恕我直言,研究一下 HTML 到 PDF 的转换,它更适合您的问题。
You need a transformation something fop understands, and that is xsl:fo only, or to put it differntly fop cannot print HTML.
Look into HTML to PDF conversion that, IMHO, is more suited for your problem.
AntennaHouse 有一组样式表用于将 XHTML 转换为 XSL-FO:
http://www.antennahouse.com/XSLsample/XSLsample.htm#HTMLtoFO
AntennaHouse has a set of stylesheets to convert XHTML to XSL-FO:
http://www.antennahouse.com/XSLsample/XSLsample.htm#HTMLtoFO
尝试 Ecrion 引擎;它应该适用于 HTML(格式不正确)和 XHTML;在这两种情况下都使用InputFormat.HTML。
Try the Ecrion engine; it should work with HTML (not well formed) and XHTML; in both cases use InputFormat.HTML.
您可以使用 RenderX Products ,它可以将 XSL/XSL+XML 格式化为 HTML、PDF、 PS...等等。
问候,格雷格
You can use RenderX Products , which can format XSL/XSL+XML to HTML, PDF, PS ... and so.
Regards, Greg