Hi Dean,
The titlepage spec mechanism supports a t:predicate attribute on elements
in the titlepage specs. The predicate lets you use xpath syntax to
select graphics. For example:
<t:titlepage-content t:side="recto">
<mediaobject t:predicate="[@role =
'logo']"/>
<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}"/>
<mediaobject
t:predicate="[not(@role) or @role != 'logo']"/>
Now just add a role="logo" to the logo mediaobject, and it will appear
before the title. All other mediaobjects will appear after the
title.
----- Original Message -----
Sent: Thursday, March 26, 2009 3:49
PM
Subject: [docbook-apps] Titlepages
under HTML with multiple mediaobjects
All,
I am a bit stumped. I have two images in a <bookinfo>. One is
used for the company logo and the other is the product image. I would like
to have both of these on the titlepage in the following order
Logo
Title
Product Image
Since I am producing PDF and HTML, I am using mediaobjects. Under the
current stylesheets, it places the images before the Title:
Logo
Product Image
Title
The question is: How do I change the order? It looks like titlepage
template processing gets all of the mediaobjects and clumps them
together.
Any ideas?
Dean Nelson
Great
Deals on Dell 15" Laptops - Starting at $479