How do I create page numbers in XSLT?

女生的网名这么多〃 提交于 2019-12-08 05:44:35

问题


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

Anyone have any advice?


回答1:


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>

not to forget to include the following snippet in the

<

fo:block id="last-page"/> just before the  </fo:page-sequence>

HTH



来源:https://stackoverflow.com/questions/4838364/how-do-i-create-page-numbers-in-xslt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!