XSLT - XML (Word) to XSL-FO (PDF)

后端 未结 2 1402
Happy的楠姐
Happy的楠姐 2021-01-03 12:08

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

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-03 12:48

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

    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.

    Download link

    The overall process is as follows:

    1. Create a Word document;
    2. Save As... it in Microsoft XML format;
    3. Apply stylesheets from link above and get an XSL-FO document;
    4. Render XSL-FO into the output formats (PDF, PostScript, AFP, and others) using RenderX XEP or another XSL-FO formatting engine.

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

提交回复
热议问题