List Info

Thread: Header not visible on each even page




Header not visible on each even page
user name
2006-08-26 07:49:12
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 <bobssagehill.net> 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
> bobssagehill.net
> 
> 
> ----- Original Message ----- 
> From: "Darya Said-Akbari"
<darya_akbariyahoo.com>
> To: <docbook-appslists.oasis-open.org>
> 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:
> docbook-apps-unsubscribelists.oasis-open.org
> > For additional commands, e-mail:
> docbook-apps-helplists.oasis-open.org
> >
> >
> > 
> 
> 
> 



		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )