XSLT - XML (Word) 到 XSL-FO (PDF) [英] XSLT - XML (Word) to XSL-FO (PDF)

查看:62
本文介绍了XSLT - XML (Word) 到 XSL-FO (PDF)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找有关如何实现 XSLT 表以将我的 XML(Word 模板)转换为 XSL-FO (PDF) 模板的一些基本说明.我无法找到下载此类工作表的实际位置(或获取重新编码的示例),并且一旦找到它,我不完全确定如何实施.

I'm looking for some basic instructions on how to implement an XSLT sheet to transform my XML (Word Template) into an XSL-FO (PDF) template. I'm having trouble finding an actual place to download such a sheet (or get an example for re-coding), and I'm not entirely sure how to implement one once I find it.

请注意,我不能只是手动将这些转换为 PDF.该项目要求它们自动生成,因此需要 XSLT 表来转换它们.

Note that I cannot just convert these into PDFs manually. This project requires that they be automatically generated, and thus require the XSLT sheet to convert them.

先谢谢你.我知道这是一个非常笼统的问题,但我真的不知道我在用 XSLT 做什么.

Thank you in advance. I know this is a pretty generic question, but I really don't know what I'm doing with XSLT.

推荐答案

看看 WordML2FO 样式表 这里.页面摘录:

Take a look at WordML2FO stylesheets here. Excerpt from the page:

这些样式表由 RenderX 的开发团队和 Microsoft 准备,供一般使用.它们用于将 Microsoft 的 WordprocessingML XML 词汇表中的文档转换为 W3C 的 XSL FO (XSLFO) 词汇表中的文档.这些通用样式表生成适用于 RenderX XEP 引擎的 XSL FO (XSLFO).

These stylesheets were prepared by RenderX's development team and Microsoft for general use. They are used to convert documents in Microsoft's WordprocessingML XML vocabulary into documents in the W3C's XSL FO (XSLFO) vocabulary. These generic stylesheets produce XSL FO (XSLFO) suitable for RenderX XEP Engine.

下载链接

整体流程如下:

  1. 创建一个 Word 文档;
  2. 另存为...以 Microsoft XML 格式;
  3. 从上面的链接应用样式表并获得 XSL-FO 文档;
  4. 使用 RenderX XEP 或其他 XSL-FO 格式引擎将 XSL-FO 渲染为输出格式(PDF、PostScript、AFP 等).

MSDN:将 Word 文档转换为 XSL-FO 格式 提供提供更多详细信息.

MSDN: Transforming Word Documents into the XSL-FO Format provides with greater details.

这篇关于XSLT - XML (Word) 到 XSL-FO (PDF)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆