Re: [docbook-apps] Titlepages under HTML with multiple mediaobjects

From
Bob Stayton <>
Date
2009-03-26T23:09:44+00:00
ID
05f101c9ae67$ed662a50$6400a8c0@pazu
Thread
Re: [docbook-apps] Titlepages under HTML with multiple mediaobjects
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


 

 

  
----- Original Message ----- 

  
From: 
   

  
To:  
  

  
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