Thanks Bob!
That worked.
In a message dated 3/26/2009 4:10:04 P.M. Pacific Daylight Time,
[email protected] writes:
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.
Bob Stayton
Sagehill Enterprises
[email protected]_ (mailto:[email protected])
----- Original Message -----
From: [email protected]_ (mailto:[email protected])
To: [email protected]_
(mailto:[email protected])
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_
(http://pr.atwola.com/promoclk/100126575x1219799606x1201361003/aol?redir=http://ad.doubleclick.net/clk
;213153745;34689725;o)
**************Great Deals on Dell 15" Laptops - Starting at $479
(http://pr.atwola.com/promoclk/100126575x1219799606x1201361003/aol?redir=http:%2F%2Fad.doub
leclick.net%2Fclk%3B213153745%3B34689725%3Bo)