Hi Ekaterina,
Here is an extract of the customised version of titlepage.xsl, I use:
<!-- Front Page to use with Logo -->
<xsl:template name="book.titlepage.recto">
<fo:block space-before='0mm' space-after='0mm'
padding='0mm' margin='0mm'>
<fo:table
inline-progression-dimension="100%" table-layout="fixed"
margin='0mm' padding='0mm'>
<fo:table-column column-width="100%"/>
<fo:table-body text-align="center"
display-align="before">
<fo:table-row height='35mm'><fo:table-cell border-style='none'
padding-top='4mm' padding-bottom='2mm'
padding-right='20mm' padding-left='25mm'>
<fo:block font-family='sans-serif' font-weight='bold' font-size='14pt'
color='rgb(0,36,125)'
text-align='right'>
<xsl:text>Release </xsl:text>
<xsl:value-of
select="ancestor-or-self::node()[self::book]/bookinfo/revhistory/revision[last()]/revnumber"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:template>
I have a number of fo:table-row entries, which I have had to omit, so you may
have to play around with the positioning, or most probably someone has a better
solution.
Regards
Nick
Nick Wood
NATO Communications and Information Agency
Air Command and Control Programme Office and Services | Chief Document
Engineering and Production Section
Thier Mathias 1b, B-4690 Bassenge (Glons), Belgium
T: +32 42 899215
E: [email protected] W: www.ncia.nato.int
From: Shikareva, Ekaterina [mailto:[email protected]]
Sent: 24 January 2017 11:38
To: [email protected]
Subject: [docbook-apps] Printing the last revision number on the title page
Hello,
These lines in one of the recent answers in this group:
<fo:block text-align="left" font-family="sans-serif"
font-size="8pt">
Revision: <xsl:apply-templates
mode="book.titlepage.recto.mode"
select="bookinfo/revhistory/revision[1]/revnumber"/>
</fo:block>
made me also think about printing the last revision number on the title page in
PDF output, but I cannot easily adapt this example to my situation.
As I understand, this example shows the .xsl title page customization. Could
you please give me a hint how to implement the same from the very beginning:
.xml title page customization, some corresponding element in docbook file
itself, some customization layer modification?
Thank you very much!
--
Best regards,
Ekaterina Shikareva
________________________________________
This e-mail and any attachment(s) are intended only for the recipient(s) named
above and others who have been specifically authorized to receive them. They
may contain confidential information. If you are not the intended recipient,
please do not read this email or its attachment(s). Furthermore, you are hereby
notified that any dissemination, distribution or copying of this e-mail and any
attachment(s) is strictly prohibited. If you have received this e-mail in
error, please immediately notify the sender by replying to this e-mail and then
delete this e-mail and any attachment(s) or copies thereof from your system.
Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]