Peter,

Thanks for responding.  Sorry not to respond sooner but I haven't had a chance 
to look at this until now.



"It sounds like you're already customizing article.titlepage.recto to add your 
page break".  No I'm not - well, I suppose I am but I'm not doing so directly.  
I'm still using the titlepage customization system.  I've added the page break 
by adding <fo:block break-after="page"/> to t:titlepage-separator within the 
article titlepage template.



I haven't (yet) moved away from using the titlepage system.  What I'd like to 
find out is if I can insert fo:block elements while using the titlepage system. 
 Or whether that's the cue that it is time to change system and start 
generating the actual title-page directly.



Appreciatively,

Richard.








[Blue line]
Richard Kerry
BNCS Engineer
T: +44 (0)20 82259063[X]<thismessage:/Body.htm#>
M: +44 (0)7812 325518[X]<thismessage:/Body.htm#>
Room EBX 301, BBC Television Centre, Wood Lane, London, W12 7RJ
[email protected]<https://webmail.siemens-it-solutions.com/owa/redir.aspx?C=9fb20d019e3e4cb99344d708709a3177&URL=mailto%3arichard.kerry%40atos.net>
uk.atos.net<https://webmail.siemens-it-solutions.com/owa/redir.aspx?C=9fb20d019e3e4cb99344d708709a3177&URL=http%3a%2f%2fuk.atos.net%2fen-uk%2f>
[Atos logo]
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
________________________________
From: Peter Desjardins [[email protected]]
Sent: 14 June 2013 17:04
To: Kerry, Richard
Cc: DocBook Apps Mailing List [[email protected]]
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 
<[email protected]<mailto:[email protected]>> 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):



[cid:5b5b102b-1c41-45ab-b401-5b64b5e24601]



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<tel:%2B44%20%280%2920%2082259063>
M: +44 (0)7812 325518<tel:%2B44%20%280%297812%20325518>
Room EBX 301, BBC Television Centre, Wood Lane, London, W12 7RJ
[email protected]<mailto:[email protected]>
uk.atos.net<http://uk.atos.net/en-uk/>

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: 
[email protected]<mailto:[email protected]>
For additional commands, e-mail: 
[email protected]<mailto:[email protected]>

<<inline: sample title-page cover.png>>

Reply via email to