Re: [docbook-apps] Footer background color for pront output

From
Bob Stayton <>
Date
2013-07-25T16:48:30+00:00
ID
8ADFD61C576F410386F1E2C1AA216FE0@totoro
Thread
Re: [docbook-apps] Footer background color for pront output
Hi Alan,

That template looks like it should work.  Can you peak in your .fo file to see if the new page master is being 
referenced?  For a body page-sequence, you should see:

 

<fo:page-sequence  master-reference="instart-body" 
...>

 

If you see "body", then the selection process is not 
working.  If you see "instart-body", then the custom page-master is not 
working.

 

Bob Stayton
Sagehill Enterprises


From: Alan Oehler 

Sent: Wednesday, July 24, 2013 4:05 PM

To: docbook-apps 

Subject: Re: [docbook-apps] Footer background color for pront 
output

Took me a while to get back to this.  

Bob, I followed the documentation that you referred to, and added a 
background-color attribute to the fo:region-after elements. It doesn't seem to 
do a thing. 

Here's the logic I put in to decide whether to use the default or the 
custom page-masters:

<xsl:template 
name="select.user.pagemaster">

  <xsl:param 
name="element"/>

  <xsl:param 
name="pageclass"/>

  <xsl:param 
name="default-pagemaster"/>

  <!-- Return my customized 
title page master name if for body,

       otherwise 
return the default -->

  <xsl:choose>

    <xsl:when 
test="$default-pagemaster = 'body'">

      <xsl:value-of 
select="'instart-body'" />

    
</xsl:when>

    
<xsl:otherwise>

      <xsl:value-of 
select="$default-pagemaster"/>

    
</xsl:otherwise>

  </xsl:choose>

  
</xsl:template>

I suspect I am not selecting my custom one properly and it's using the 
default - but I can't see why. Any ideas?

Alan

On Fri, Jun 28, 2013 at 1:04 PM, Alan Oehler <> wrote:

  
Bob,  
  

  
Thanks! I'll give it a look-over.

  

  
Alan

  

  

  

  
On Fri, Jun 28, 2013 at 12:37 PM, Bob Stayton <> wrote:

  
    

    
Hi Alan,

    
That area is defined by the fo:region-after in the 
    fo:simple-page-masters in fo:pagesetup.xsl.  There is no attribute-set 
    for that region, but you can create your own custom page-masters, and add 
    the background-color to that fo:region-after element.  Customing 
    page-masters is described here:

    
 

    
http://www.sagehill.net/docbookxsl/PageDesign.html#DeclarePageMasters

    
 

    
Bob Stayton
Sagehill Enterprises


    

    

    

    
From: Alan Oehler 

    
Sent: Wednesday, June 26, 2013 3:17 PM

    
To:  

    
Subject: [docbook-apps] Footer background color for pront 
    output

    

    

    

    
Hi, 
    

    
I'm having some trouble trying to figure out how to set up my footer 
    for print output to have its background color set. I can add it to the 
    footer.content.properties attribute set, but that only sets the background 
    color of the displayed text - kind of like in HTML setting the background 
    color attribute for the text in a div rather than for the div itself. 
     In other words, I want the entire lower 15% or so of the printed page 
    to have a different background color than the rest of the page.

    

    
Any hints?

    

    
Thanks!
    

-- 

    
Alan C. Oehler 
    
Senior Technical Writer | Instart Logic

    
M: 650.504.7003
www.instartlogic.com

  

-- 

  
Alan C. Oehler 
  
Senior Technical Writer | Instart Logic

  
M: 650.504.7003
www.instartlogic.com

-- 

Alan C. Oehler 

Senior Technical Writer | Instart Logic

M: 650.504.7003
www.instartlogic.com