从 xsl+xml 中编写 xslt -fo 的最佳方法是什么

发布于 2024-08-31 04:59:36 字数 64 浏览 2 评论 0原文

我有复杂的 xslt 将 xml 格式化为 html 现在我需要能够从中创建 xsl fo 最好的方法是什么?

i have complex xslt that formats xml to html
now i need to be able to create xsl fo out of it
what is the best way to do it ?

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

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

发布评论

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

评论(2

输什么也不输骨气 2024-09-07 04:59:36

这是一些有趣的文章给你
http://www-128.ibm.com/developerworks/library/x -xslfo2app/

你也可以尝试下一个库(我不记得了,可能它可以从 xslt+xml 创建 fo 文件):
http://www.codeproject.com/KB/dotnet/nfop.aspx

Here is some ineresting article for you
http://www-128.ibm.com/developerworks/library/x-xslfo2app/

Also you can try next library (I dont't remember, probably it can creat fo files from xslt+xml):
http://www.codeproject.com/KB/dotnet/nfop.aspx

夜无邪 2024-09-07 04:59:36

我有类似的要求,我做了一些研究,但没有找到可靠的 XHTML 到 FO 转换器。也许有一个,但在某些网络搜索中,到了某个时刻,您必须放弃并推出自己的搜索。

相反,我采用了已经编写的 XML 到 HTML 转换器,并将其更改为输出 FO。

这是一个比完整的 XHTML 到 FO 转换器简单得多的命题。

虽然您的详细信息会有所不同,但 HTML 中的大多数结构在 FO 中都有类似物,因此您通常可以相当轻松地决定使用什么 FO 结构来替换转换中的 HTML。

我是逐步这样做的。如果您从生成 FO 文档轮廓的转换开始,并且大部分 XML 在转换中被忽略,那么您就可以以测量的方式构建输出。

I had a similar requirement, and I did some research, but didn't find a reliable XHTML to FO transformer. There may be one, but there comes a point in some web searches when you have to give up and roll your own.

Instead I took the XML to HTML transformer I had already written and changed it to output FO.

This is a much simpler proposition that a full blown XHTML to FO transformer.

Whilst your details will differ, most structures in HTML have analogues in FO, so you can normally decide what FO construct to use in replacing HTML in your transform fairly easily.

I did this incrementally. If you start with the transform producing the outline of an FO document, and most of your XML being ignored in the transform, you can then build up the output in a measured fashion.

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