使用XSLT页眉和页脚和页码 [英] Header and footer and page numbers using xslt

查看:477
本文介绍了使用XSLT页眉和页脚和页码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

香港专业教育学院创建了一个C#应用程序,它得到一个XML文件和XSLT文件,并创建一个Word文档。该Word文档有一个标题页脚和页码,但我无法弄清楚如何在XSLT格式化这个。

Ive created a c# application which gets an xml file and a xslt file and creates a word document. This word document is to have a header a footer and page numbers but I can't figure out how to format this in xslt.

感谢您的帮助。

推荐答案

如果你特别需要的东西在XSL使用,那么你可以在页脚区域的块(XSL-区域后), 。该块内,你可以有这个片段

If you specifically need something to be used in XSL, then you can have a block in the footer region (xsl-region-after) and within that block you can have this snippet.

<fo:block text-align="right"><fo:page-number format="1"/><fo:page-number-citation format="1" ref-id="last-page"/></fo:block>



心连心

HTH

这篇关于使用XSLT页眉和页脚和页码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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