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: Re: [docbook-apps] A Complex Title Page - which method to use ?


I'm using a slightly complex title page for a book right now. I'm customizing the book.titlepage.recto template and adding FO elements as needed.

It sounds like you're already customizing article.titlepage.recto to add your page break. Can you add more FO to get the decoration you need?

Here's what I'm doing to the book titlepage. I was just playing around with FO blocks and attributes until it looked right. I used http://www.w3schools.com/xslfo/xslfo_reference.asp and a few other FO references that I found.

  <xsl:template name="book.titlepage.recto">
        <xsl:element name="fo:block">
            <xsl:attribute name="margin-top">.5in</xsl:attribute>
            <xsl:element name ="fo:external-graphic">
                <xsl:attribute name="content-height">1in</xsl:attribute>
                <xsl:attribute name="src">
                    <xsl:text>url(../mylogo.svg)</xsl:text>
                </xsl:attribute>
            </xsl:element>
        </xsl:element>
        <xsl:element name="fo:block">
            <xsl:attribute name="background-image">url(../mygraphic.png)</xsl:attribute>
            <xsl:attribute name="space-before">2.25in</xsl:attribute>
            <xsl:attribute name="margin-right">-1in</xsl:attribute>
            <xsl:attribute name="padding">10pt</xsl:attribute>
            <xsl:attribute name="color">white</xsl:attribute>
            <xsl:attribute name="text-align">left</xsl:attribute>
            <xsl:attribute name="font-size">20pt</xsl:attribute>
            <xsl:attribute name="font-family">DINComp</xsl:attribute>
            <xsl:attribute name="font-weight">600</xsl:attribute>
            <xsl:value-of select="//d:book/d:info/d:title" />
            <!-- <xsl:call-template name="stock.docbook.book.titlepage" /> -->
            <xsl:element name="fo:block">
                <xsl:attribute name="space-before">4.1in</xsl:attribute>
            </xsl:element>
        </xsl:element>
    </xsl:template>

Good luck!

Peter


On Fri, Jun 14, 2013 at 6:08 AM, Kerry, Richard <richard.kerry@atos.net> wrote:

 

For my project I want to produce a title page that is a little more complex than I think I can achieve using the standard title page customization system (as descried in http://www.sagehill.net/docbookxsl/HTMLTitlePage.html).

 

I've used title page customization and set margins to put the main title in the middle of the page and add a page-break after the title-page (it's an <article> so doesn't get one by default).

 

 

Now I'd like to add a bit more "decoration" :

    - A coloured block down the left side of the page

    - A header area with an outline, and containing some text and a logo or two.

 

It should look a lot like this ("sample title-page cover.png" - if you don't get it appearing here it's attached):

 


 

I can see from Table 13.3 http://www.sagehill.net/docbookxsl/TitlePagePrint.html#TitlePageCustomizationGuide that there may be a number of different ways of achieving this.

I'm not entirely clear which of these methods I need to follow.  I think it is too much to do with the titlepage customization system, but it is still a "title page" not a "book cover".

Can anyone advise which direction I should be going in.  I can't spend too much time doing this so don't want to start off on the wrong track.

 

 

 

 

 

 

Richard Kerry

BNCS Engineer

T: +44 (0)20 82259063

M: +44 (0)7812 325518

Room EBX 301, BBC Television Centre, Wood Lane, London, W12 7RJ

richard.kerry@atos.net

uk.atos.net

 

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable



---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org



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