Hi Lars,
Actually, adding an image to the part title page is possible with the titlepage spec
file. If you add <mediaobject/> to the spec file like this:
<t:titlepage t:element="part" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:named-template="division.title"
...
<subtitle
...
<mediaobject/>
</t:titlepage-content>
Processing this will add a template matching on info/mediaobject to
part.titlepage.recto:
<xsl:apply-templates mode="part.titlepage.recto.auto.mode"
select="info/mediaobject"/>
If you then add a mediaobject element to the part/info of your document, then it will
be rendered on the part title page.
Bob Stayton
Sagehill Enterprises
b...@sagehill.net
----- Original Message -----
From: "Lars Vogel" <lars.vo...@googlemail.com>
To: "Richard Hamilton" <hamil...@xmlpress.net>
Cc: "DocBook Apps" <docbook-apps@lists.oasis-open.org>
Sent: Tuesday, June 26, 2012 1:54 PM
Subject: Re: [docbook-apps] <part> Titlepage
Hi Richard,
thanks. I give part.titlepage.recto a try. I also have plans to add a
image to the part titlepage (in the future) and as far as I know this
is not supported with the template.
Best regards, Lars
2012/6/26 Richard Hamilton <hamil...@xmlpress.net>:
Hi Lars,
I think it's just part.titlepage.recto.
However, for what you want to do, I think the title spec process is easier than you
may think it is.
I think that all you need to do is copy titlepage.templates.xml to your
customization, find the <title> element inside <t:titlepage t:element="book" > and
add a space-before attribute (and any other attributes you need; you can change the
font characteristics, align it in various ways, and move it up or down on the page
using attributes).
Then use saxon or xsltproc to build your own titlepage.templates.xsl file from
titlepage.templates.xml using the stylesheet named titlepage.xsl, which is in the
template stylesheet folder in the standard stylesheet distribution (same level as
the fo stylesheet folder). Then, import the result at the top of your customization.
While the title spec process can look daunting, it is designed to make it easy to do
easy things. The complications come in when you want to do something outside the
ordinary. So, you can ignore a fair amount of the recto/verso/auto stuff and just
play with attribute values in the titlepage.templates.xml file. I'll bet that gives
you all you need.
Good Luck,
Dick
-------
XML Press
XML for Technical Communicators
http://xmlpress.net
hamil...@xmlpress.net
On Jun 25, 2012, at 4:07 PM, Lars Vogel wrote:
Hi Dick,
I would prefer to changing the template instead of creating the spec
file. I did this for the titlepage of the book (book.titlepage.recto)
and it was relatively simple. I think the title spec approach is to
scare people away (just kidding).
Any pointers which template is used for the titlepage of <part>?
Best regards, Lars
2012/6/26 Richard Hamilton <hamil...@xmlpress.net>:
Lars,
The part titlepage (and the other title pages) are handled in a titlepage spec
file.
There is an excellent description of that facility and how to customize it in Bob
Stayton's book, DocBook XSL: The Complete Guide.
You can find this section in the online version at:
http://www.sagehill.net/docbookxsl/HTMLTitlePage.html
Best Regards,
Dick Hamilton
-------
XML Press
New from XML Press:
The Content Pool
http://xmlpress.net/publications/the-content-pool
On Jun 25, 2012, at 3:54 PM, Lars Vogel wrote:
Hello,
which template is called for the <part> Titlepage? I would like to
increase the "magin-top" value until the text is horizontally
centered.
Currently it starts at the top of the page.
Best regards, Lars
--
Lars
http://www.vogella.com - Eclipse, Android and Java Tutorials
http://www.twitter.com/vogella - Lars on Twitter
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
--
Lars
http://www.vogella.com - Eclipse, Android and Java Tutorials
http://www.twitter.com/vogella - Lars on Twitter
--
Lars
http://www.vogella.com - Eclipse, Android and Java Tutorials
http://www.twitter.com/vogella - Lars on Twitter
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org