OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


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 <aoehler@instartlogic.com> wrote:
Bob, 

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

Alan


On Fri, Jun 28, 2013 at 12:37 PM, Bob Stayton <bobs@sagehill.net> 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:
 
 
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net

Sent: Wednesday, June 26, 2013 3:17 PM
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



--
Alan C. Oehler
Senior Technical Writer | Instart Logic



--
Alan C. Oehler
Senior Technical Writer | Instart Logic
M: 650.504.7003
www.instartlogic.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]