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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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


Subject: Graphics in print title page


Hi,

I can't get the company logo on the title page of a book.
I have followed the guidelines from the Bob's book as well as the list archive but failed. There is no graphics on the title page in PDF.
My attempt is as follows:

source
book.xml
-------
<book>
    <bookinfo>
        <title><trademark>Product</trademark> Name</title>
        <subtitle>More</subtitle>
        <mediaobject> <!-- LOGO goes here -->
            <imageobject>
                <imagedata fileref="img/logo.png" format="PNG" width="5cm"/>
            </imageobject>
        </mediaobject>
        <authorgroup>
            <corpauthor>The company</corpauthor>
        </authorgroup>
        <legalnotice>...</legalnotice>
        <copyright>...</copyright>
    </bookinfo>
  <chapter>...</chapter>
</book>


customization layer:
book.xsl
------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:fo="http://www.w3.org/1999/XSL/Format">
  <xsl:import href=""file:///d:/docbook/xsl/fo/docbook.xsl"/>
  <xsl:import href=""file:///d:/public/docs/custom-titlepage.xml"/>
[other customizations]
</xsl:stylesheet>


titlepage spec file
custom-titlepage.xml (top portion)
------
[entity definitions]

  <t:titlepage t:element="book" t:wrapper="fo:block">
    <t:titlepage-content t:side="recto">
      <title
         t:named-template="division.title"
         param:node="ancestor-or-self::book[1]"
         text-align="center"
         font-size="&hsize5;"
         space-before="&hsize5space;"
         font-weight="bold"
         font-family="{$title.fontset}"/>
      <subtitle
        text-align="center"
        font-size="&hsize4;"
        space-before="&hsize4space;"
               font-family="{$title.fontset}"/>
      <mediaobject/>
      <corpauthor font-size="&hsize3;"
          keep-with-next.within-column="always"
          space-before="2in"/>
      <authorgroup space-before="2in"/>
      <author font-size="&hsize3;"
          space-before="&hsize2space;"
          keep-with-next.within-column="always"/>
    </t:titlepage-content>

[other templates]
</t:templates>

What is wrong with them? I have no idea what to fix. I have checked the FO output, there is no reference to the logo.png file. Should I customize anything else to get the image in the title page?

In addition, I have a problem with the font on the title and subtitle on recto and verso sides of the title page. I can't force the transformation to use, for example the font "Impact" in blue. I have examined the XSL-FO output and the font family for title and subtitle is "sans-serif" while trademark is "serif". Maybe it isn't a big issue but I would like them printed with the same font family and the same color.

Bob's book demonstrates many methods to customize the title page but none of them worked for me. Likely I'm still too new to XSL-FO and Docbook customization.

I use DocBook 4.4 DTD, XSL 1.68, XEP 4.3 on Windows 2000.

Any help appreciated.

Zbyszek


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