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.
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
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.
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
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.
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).
发布评论
评论(8)
这可能不完全是您所需要的,但如果您只想拥有一些 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.
http://www.w3.org/TR/xsl/
http://www.renderx.com/tools/xep.html 有一些很好的例子
http://my.safaribooksonline.com/0596003552
http://www.w3.org/TR/xsl/
http://www.renderx.com/tools/xep.html has some good examples
http://my.safaribooksonline.com/0596003552
我认为要做好 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
我也认为 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.
对于 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
您还可以尝试可视化 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.
首先,在购买商业引擎之前,请检查 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.
我喜欢向人们推荐这篇 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).