我在哪里可以找到关于 XSL-FO(格式化/编辑对象)的优秀教程,XSL-FO 是一种提供给 fop 并获取 PDF 的东西?

发布于 2024-07-05 22:59:54 字数 1557 浏览 6 评论 0 原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

薄荷港 2024-07-12 22:59:54

这可能不完全是您所需要的,但如果您只想拥有一些 XSL-FO 测试模板,您可以使用 Word 中的此 转换以生成 XSL-FO。

我以前学的书是O'Reilly的(XSL-FO),因为坦白说那里有关于这个主题的资源很少。

This might not be exactly what you need, but if you just want to have some XSL-FO test templates, you can use this transformation in Word to generate XSL-FO.

The book that I used to learn is from O'Reilly (XSL-FO), because frankly there are very little resources on the subject.

难以启齿的温柔 2024-07-12 22:59:54

我认为要做好 xsl-fo,您需要牢牢掌握几种不同的技术。

首先是 XSLT 和 XPath,因为您将在 XSL-FO 中使用它们。 有一些工具可以让您直观地创建 xsl-fo,但我见过的工具非常昂贵,因此我倾向于推出自己的 xslt,因为它们最终比生成的 xsl-fo 简单得多。

然后你需要对 fop 有一个扎实的掌握,这似乎你已经掌握了,但对于其他人来说,如果你熟悉 css,那么你会熟悉最常见的样式,但对于特定的 fop 功能,做一些研究是有意义的。

进入它的最好方法是举一些基本的例子并使用它们。 Apache FOP 是一个很棒的开源处理器,如果您知道如何使用它,您可以将其用于专业目的。

像oxygen xml 这样的编辑器具有内置的fop 支持,这使得快速测试您的xsl-fo 变得容易,并且应该更容易学习xsl-fo,但您也可以从命令行和其他几个编辑器执行相同的操作。

我推荐 Michael Kays XSLT 书,因为它是一本很棒的 XSLT 参考书
“XSLT:程序员参考第 2 版”链接

也是 Dave Pawson 的 FOP 书籍是我所知道的最好的 XSL-FO 参考书,尽管不可否认,可用的书并不多。 它有点过时了,但它对于核心概念来说是一个很好的参考,对于刚开始的人来说可能会变得不那么复杂。 链接

他的网站是解决奇怪问题或提高一般水平的提示的重要来源理解xsl fo。 http://www.dpawson.co.uk/xsl/index.html

I think to be able to do xsl-fo well you need to get a solid grasp of several different technologies.

Firstly XSLT and XPath as you will be using these in the XSL-FO. There are some tools which allow you to visually create the xsl-fo but the ones I've seen are extremely expensive so I've tended to roll my own xslts as these end up much simpler than the generated xsl-fos.

Then you need a solid grasp of fop which it seems you already have but for anyone else if you are familiar with css most common stylings will be familiar to you but for the specific fop features it makes sense to do some research.

The best way to get into it is to take some basic examples amd play around with them. Here Apache FOP is a great open source processor which you can use for professional purposes if you know how to use it.

An editor like oxygen xml has in built fop support which makes it easy to quickly test your xsl-fo and should make it easier to learn xsl-fo but you can do the same thng from the command line and several other editors as well.

I'd recommend Michael Kays XSLT book as it's a great reference book for XSLT
"XSLT: Programmer's Reference 2nd Edition" link

Also the FOP book by Dave Pawson is the best available XSL-FO reference book I know of although there is admittedly not much available. It's a bit out of date but it's a good reference for the core concepts and for someone starting out may make it less complex. link

His website is a great source of tips for strange issues or improving your general understanding when it comes to xsl fo. http://www.dpawson.co.uk/xsl/index.html

顾冷 2024-07-12 22:59:54

我也认为 O'Reilly 的书将是唯一的一本,关于 XSL-FO 的内容并不多...坦率地说,我认为这是一项死技术,对于普通程序员来说太复杂了,无法学习,这需要几周的时间——而且市面上好的格式化程序也非常昂贵。

这不是您问题的答案,但如果有人问我,我建议您不要学习 XSL-FO。 在我看来,这是一个寻找问题的解决方案。

I think too that the O'Reilly book is going to be the only one, there isn't much about XSL-FO out there... Frankly I think it's a dead technology, it's just too complex for the average programmer to learn, it takes weeks - plus the good formatters out there are expensive as hell.

This is not an answer to your question, but if anyone would ask me, I'd advise against learning XSL-FO. It's a solutions searching for a problem IMO.

绝影如岚 2024-07-12 22:59:54

对于 XSL-FO 新手来说,这里也是一个很好的教程。本文档通过示例快速介绍了 XSL 格式化对象。 http://www.renderx.com/tutorial.html

Here is also a good tutorial for newbies in XSL-FO.This document gives a quick, learn-by-example introduction to XSL Formatting Objects. http://www.renderx.com/tutorial.html

旧街凉风 2024-07-12 22:59:54

您还可以尝试可视化 xsl-fo 设计器/编辑器。 如果您仍然想手动编写 XSL,请查看 XSL-FO 教程摘自 XML 1.1 圣经

You can also try a visual xsl-fo designer/editor. If you still want to write XSL by hand, take a look at XSL-FO tutorial from XML 1.1 Bible.

辞旧 2024-07-12 22:59:54

首先,在购买商业引擎之前,请检查 Apache FOP,它是一个非常可靠的 XSL-FO 引擎。 我广泛使用它来生成“政府”表格。

如果你刚刚开始。 W3schools 对于学习 XSL-FO 非常有用: http://www.w3schools.com/xslfo/default .asp

如果您是 XSL 新手,我强烈推荐列表 @ http://www.mulberrytech.com/xsl/xsl-list/index.html,甚至只是搜索常见问题的常见解决方案。

First, before you buy a commercial engine, check out Apache FOP it is a pretty solid XSL-FO engine. I've used it extensively for "government" form generation.

If you're just getting started. W3schools is invaluable in learning XSL-FO: http://www.w3schools.com/xslfo/default.asp

If you're new to XSL, I highly recommend the list @ http://www.mulberrytech.com/xsl/xsl-list/index.html, even for just searching for common solutions to common problems.

放我走吧 2024-07-12 22:59:54

我喜欢向人们推荐这篇 2003 年 IBM DeveloperWorks 文章: HTML to格式化对象 (FO) 转换指南

我不建议使用提供的 .xsl 将 HTML 转换为 FO,而是使用叙述来理解不同的 XSL-FO 构造以及它们与 HTML 的关系(我们都明白) )。

I like to refer people to this 2003 IBM developerWorks article: HTML to Formatting Objects (FO) conversion guide

I don't recommend using the provided .xsl to convert HTML to FO, but use the narrative to understand the different XSL-FO constructs and how they relate to HTML (which we all understand).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文