On 20.7.2020 18:20, Tony Graham wrote:
> The 'mod 7' in Jirka's solution restarts the positioning after 7
> chapters.  Have you tried it?

Thanks Tony for further clarification. I have been in rush and haven't
time to comment much on my example. For positioning of thumb index the
following code is cruical:

<xsl:attribute name="top">
        <xsl:value-of select="(count(preceding::d:chapter |
preceding::d:appendix | preceding::d:preface |
preceding::d:bibliography) mod 7) * 28 + 18"/>
        <xsl:text>mm</xsl:text>
      </xsl:attribute>

mod 7 -- means that after each 7 chapters/appendices/... thumb index
will be moved back to the top of a page

28 -- is height of thumb index (in mm)

18 -- is intial offset (in mm)

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: ji...@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
     Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to