OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Footer on Title Page - PDF

My FO knowledge is a bit rubbish (but getting better ;o) ) - Can anyone see where I've gone wrong here?

I've added a new Parameter (docbooklogo) to my FO customisation layer to allow me to switch between adding an image to the Footer of my PDF's Title Page.

I've edited <xsl:template name="footer.table"> so my logic looks like:

  <!-- Really output a footer? -->
    <xsl:when test="$pageclass='titlepage' and $gentext-key='book' and $sequence='first'">
        <xsl:when test="$docbooklogo = '1'">  <!-- My New Parameter -->
          <xsl:copy-of select="$my.titlepage.candidate"/>
        <xsl:otherwise><!-- no, book titlepages have no footers at all --></xsl:otherwise>
    <xsl:when test="$sequence = 'blank' and $footers.on.blank.pages = 0"><!-- no output --></xsl:when>
    <xsl:otherwise><xsl:copy-of select="$candidate"/></xsl:otherwise>

The logic seems to work and outputs $my.titlepage.candidate into my FO. The variable is created using code stolen from the $candidate variable in the same template - And this is where I'm having trouble, the image doesn't appear in the PDF when requested. Here's the code:

  <xsl:variable name="my.titlepage.candidate">
    <fo:table table-layout="fixed" width="100%">
      <xsl:call-template name="foot.sep.rule">
        <xsl:with-param name="pageclass" select="$pageclass"/>
        <xsl:with-param name="sequence" select="$sequence"/>
        <xsl:with-param name="gentext-key" select="$gentext-key"/>
      <fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
        <fo:table-row height="14pt">
          <fo:table-cell text-align="center" display-align="after">
            <xsl:if test="$fop.extensions = 0">
              <xsl:attribute name="relative-align">baseline</xsl:attribute>
              <fo:external-graphic src="figures\cwdbdocbook.png"/>

The PNG exists.
FOP gives out a "[WARNING] Some static content could not fit in the area".
Replacing <fo:external-graphic... with plain text doesn't produce anything either :o(



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]