RE: [xep-support] Using markers for headers

From: Ettinger, Christian <>
Date: Mon Sep 18 2006 - 06:41:22 PDT

Hi David,
in my Docbook customization layer I use <fo:retrieve-marker> for this purpose. Following is the template that prints chapter titles on the left and section titles on the right page header. The titles on the right hand side are always the title of the last section heading that occurred. Is this what you are trying to do?

<xsl:template name="header.content">
  <xsl:param name="pageclass" select="''"/>
  <xsl:param name="sequence" select="''"/>
  <xsl:param name="position" select="''"/>
  <xsl:param name="gentext-key" select="''"/>
  <!-- pageclass can be titlepage, lot, front, body, back, index -->
  <!-- sequence can be first, odd, even, blank -->
  <!-- position can be left, center, right -->
  <fo:block font-style="italic">
      <xsl:when test="$pageclass = 'titlepage'"/>
      <xsl:when test="$sequence = 'first' or $sequence = 'blank'"/>
      <xsl:when test="$position = 'center'">
          <xsl:when test="ancestor::book and ($double.sided != 0)
                          and $sequence = 'odd'">
            <fo:retrieve-marker retrieve-class-name="section.head.marker"
            <xsl:apply-templates select="." mode="titleabbrev.markup"/>
      <xsl:when test="$position='left' and $double.sided != 0
                      and $sequence = 'even'">
      <xsl:when test="$position='right' and $double.sided != 0
                      and $sequence = 'odd'">
      <xsl:when test="$position='right' and $double.sided = 0">

Hope this helps you, it works for me.


Dipl.-Ing. (FH) Christian Ettinger, Business Unit PD-36
3SOFT GmbH - Member of the Elektrobit Group,
Frauenweiherstraße 14, 91058 Erlangen, Germany
Phone: +49 (9131) 7701-249
Fax: +49 (9131) 7701-333
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
Received on Mon Sep 18 06:49:27 2006

This archive was generated by hypermail 2.1.8 : Mon Sep 18 2006 - 06:49:27 PDT