Next in thread →
Next in month →
Re: [docbook-apps] [SPAM] Header not visible on each even page
Hmm, something strange is going on. I cut and pasted your template into a clean customization layer that imports the 1.70.1 version of the stylesheets, and I get the expected header on the even pages. Have you customized the page masters, by any chance? Bob Stayton Sagehill Enterprises DocBook Consulting ----- Original Message ----- From: "Darya Said-Akbari" <> To: <> Sent: Saturday, August 26, 2006 12:49 AM Subject: [docbook-apps] [SPAM] Re: [docbook-apps] [SPAM] Header not visible on each even page > Hi Bob, > > my header.content template is based on your example: > > <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 > = 'left'"> > <fo:block>Hello World!</fo:block> > </xsl:when> > > <xsl:when test="$sequence = 'odd' and $position > = 'right'"> > <fo:page-number/> > </xsl:when> > > <xsl:when test="$sequence = 'even' and $position > = 'left'"> > <fo:page-number/> > </xsl:when> > > <xsl:when test="$sequence = 'even' and $position > = 'right'"> > <fo:block>Hello World!</fo:block> > </xsl:when> > > <xsl:when test="$sequence = 'first' and > $position = 'left'"> > <fo:block>Hello World!</fo:block> > </xsl:when> > > <xsl:when test="$sequence = 'first' and > $position = 'right'"> > </xsl:when> > > <xsl:when test="$sequence = 'blank' and > $position = 'left'"> > <fo:page-number/> > </xsl:when> > > <xsl:when test="$sequence = 'blank' and > $position = 'right'"> > </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> > <!-- titlepages have no headers --> > <xsl:when test="$pageclass = 'titlepage'"> > <!-- no output --> > </xsl:when> > <xsl:otherwise> > <xsl:copy-of select="$candidate"/> > </xsl:otherwise> > </xsl:choose> > > </xsl:template> > > Regards, > Darya > > --- Bob Stayton <> schrieb: > >> Hi Darya, >> Can you show us the whole header.content template? >> It's possible that a >> xsl:when statement preceding that one is matching >> and preventing the >> output. Are you using double.sided=1? >> >> Bob Stayton >> Sagehill Enterprises >> DocBook Consulting >> >> >> >> ----- Original Message ----- >> From: "Darya Said-Akbari" <> >> To: <> >> Sent: Friday, August 25, 2006 7:34 AM >> Subject: [docbook-apps] [SPAM] Header not visible on >> each even page >> >> >> > Hi, >> > >> > following Bob Stayton's description and example >> 12.11 >> > at >> > >> http://www.sagehill.net/docbookxsl/PrintHeaders.html >> > I am not able to get the header for every page. >> > >> > Below is my customization layer part for headers: >> > >> > <xsl:when test="$sequence = 'even' and $position = >> > 'left'"> >> > <fo:page-number/> >> > </xsl:when> >> > <xsl:when test="$sequence = 'even' and $position = >> > 'right'"> >> > <fo:block>Hello World!</fo:block> >> > </xsl:when> >> > >> > I would expect now that any even page has a "Hello >> > World!" on the right. But I get nothing :( >> > >> > Any hints? >> > >> > Regards, >> > Darya >> > >> > >> > >> > >> > ___________________________________________________________ >> > Telefonate ohne weitere Kosten vom PC zum PC: >> http://messenger.yahoo.de >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: >> >> > For additional commands, e-mail: >> >> > >> > >> > >> >> >> > > > > > ___________________________________________________________ > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > For additional commands, e-mail: > > >
Next in thread →
Next in month →