This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Customize header page


I think you want to customize the header.content template.  That template
determines what appears in each position in the header for the different
kind of pages.  See this reference for more information:

http://www.sagehill.net/docbookxsl/PrintHeaders.html#PrintHeadersText

You may need to increase the $page.margin.top parameter and the
$region.before.extent to make room for your graphic.  This reference has
more info about the margins:

http://www.sagehill.net/docbookxsl/PrintOutput.html#d0e6202

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Jacques" <jacques@foucry.net>
To: "docbook-apps" <docbook-apps@lists.oasis-open.org>
Sent: Monday, July 19, 2004 5:02 AM
Subject: [docbook-apps] Customize header page


Hello list,

I try to customize the header of each page my document (adding the
compagny logo).

I found in the faq and in the list archive how to change the titlepage,
but nothing about other pages.

In the faq there's this sample.

<xsl:template name="select.user.pagemaster">
  <xsl:param name="element"/>
  <xsl:param name="pageclass"/>
  <xsl:param name="default-pagemaster"/>

  <!-- Return my customized title page master name if for titlepage,
       otherwise return the default -->

  <xsl:choose>
    <xsl:when test="$default-pagemaster = 'titlepage'">
      <xsl:value-of select="'my-new-titlepage'" />
    </xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="$default-pagemaster"/>
    </xsl:otherwise>
  </xsl:choose>
  </xsl:template>

  If I intersttod a little, I have to test $default_pagemaster = odd or
even
If default_pagemaster is odd I call my_new_oddPage and in the other
case, I call my_new_evenPage.

I don't interstood how define my_new_xxxPage. How include a graphic in
the header ?

I not sure my question is really clear :-) But if someone can help me...

Thanks in advance,
Jacques
-- 
LANGUE : organe sexuel dont certains dégénérés se servent pour parler.
               P. Desproges

To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit
http://www.oasis-open.org/mlmanage/.





To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]