Hi Henk,
For generate running header, Please have a look at fo:marker and
fo:retrieve-marker in XSL-FO spec.
For you case, I think you can do something like the following when you
generate fo:maker (Since I do not know your exact XML data, so it is
pseudocode):
<template match="artical">
<fo:block>
<fo:marker marker-class-name="header">
<xsl:choose>
<xsl:when test="count(parent::artical)=1">
<!-- Only generate start art here-->
</xsl:when>
<xsl:otherwise>
<!-- Generate start art and end art-->
</xsl:otherwise>
</xsl:choose>
</fo:marker>
</fo:block>
</template>
Hope this helps
JingJun
Henk Rutten 写道:
> Hi,
> In the running header of a page, we want to display the first-starting
> article number and the last-ending article number on that page.
> Only if the numbers are not the same:
> Art.1 - Art. 3
> If the numbers are the same:
> Art.1 (instead of Art.1 - Art. 1)
>
> Any suggestions how we can achieve this? Thanks!
>
> kind regards,
>
> Henk Rutten
>
> ICT Specialist
> GrafiData Deventer
>
> Keulenstraat 16, 7418 ET Deventer
> Postbus 2014, 7420 AA Deventer
> T. 0570-609797
> _www.grafidata.nl_ <http://www.grafidata.nl/>
>
> De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is
> uitsluitend bestemd voor de geadresseerde. Indien u dit bericht
> onterecht ontvangt, wordt u verzocht de inhoud niet te printen, te
> kopiëren, te verspreiden of op welke andere manier dan ook te
> gebruiken en de afzender direct te informeren door het bericht te
> retourneren.
>
> The information in this message may be confidential and is intended to
> be exclusively for the addressee. Should you receive this message
> unintentionally, please do not print, copy, distribute or in any other
> way use the content and notify the sender by return e-mail.
>
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Sun Jul 15 22:08:40 2007
This archive was generated by hypermail 2.1.8 : Sun Jul 15 2007 - 22:08:41 PDT