[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Titlepage Header and Footer
You have encountered one of the bits of hardcodedness in the stylesheets that really should be fixed. The template that defines the header table (in which the header.content is placed) also has a conditional in it, and it turns off the header for the front titlepage. You'll have to copy and change the template named header.table from fo/pagesetup.xsl. The same with footer.table. Bob Stayton Sagehill Enterprises bobs@sagehill.net ----- Original Message ----- From: "Dave Cushman" <dave@cushmanroad.com> To: <docbook-apps@lists.oasis-open.org> Sent: Monday, December 10, 2007 5:56 PM Subject: [docbook-apps] Titlepage Header and Footer >I cannot get the first title page to produce a header and footer in PDF >output. All other pages contain the header and footer desired. Is there >another setting that is causing this behavior? > > I'm using Xalan and FOP 0.94. I also tried FOP 0.92beta with the same > results. > > Here is my customization: (I'm passing in $headertext elsewhere) > > <xsl:template name="header.content"> <xsl:param name="pageclass" > select="''"/> > <xsl:param name="sequence" select="''"/> > <xsl:param name="position" select="''"/> > <xsl:param name="gentext-key" select="''"/> > > <xsl:variable name="candidate"> > <!-- sequence can be odd, even, first, blank --> > <!-- position can be left, center, right --> > <xsl:choose> > > <xsl:when test="$sequence = 'odd' and $position = 'center'"> > <fo:block> > <xsl:copy-of select = "$headertext"/> > </fo:block> > </xsl:when> > > <xsl:when test="$sequence = 'even' and $position = 'center'"> > <fo:block> > <xsl:copy-of select="$headertext"/> > </fo:block> > </xsl:when> > > <xsl:when test="$sequence = 'first' and $position = 'center'"> > <fo:block> > <xsl:copy-of select="$headertext"/> > </fo:block> > </xsl:when> > > </xsl:choose> > </xsl:variable> > > <!-- Does runtime parameter turn off blank page headers? --> > <xsl:choose> > <xsl:when test="$sequence='blank' and $headers.on.blank.pages=0"> > <!-- no output --> > </xsl:when> > > <xsl:otherwise> > <xsl:copy-of select="$candidate"/> > </xsl:otherwise> > </xsl:choose> > > </xsl:template> > > > Thanks, > Dave > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]