Loading ...
Sorry, an error occurred while loading the content.
 

Multiple page headers

Expand Messages
  • Carolyn Oliver
    Hello, I m having trouble with my page heads. I ve got the odd/even headers defined and the header pulls in the module title and places it as the header just
    Message 1 of 1 , Jan 27, 2005
      Hello,

      I'm having trouble with my page heads. I've got the odd/even headers
      defined and the header pulls in the module title and places it as the
      header just fine.

      The problem I'm having is after the first 2 modules, I want the
      remaining 3 modules to use the same page header. Where to I place a
      test to determine which header to use? I've tried testing about
      everywhere and it seems to be ignoring the test and just choosing the
      marker given to the module title.

      I'm using Antenna House.

      Thanks for any help you may be able to offer.

      Carolyn Oliver
      O'Neil & Associates, Inc.

      ________

      Here's the root portion of the FO that's working without taking the last
      3 modules into consideration.

      <xsl:template match="/">
      <fo:root>

      <fo:layout-master-set>
      <fo:simple-page-master master-name="frontpage" page-width="8.5in"
      page-height="5.5in" margin-top="0.25in" margin-bottom="0.25in"
      margin-left="0.6in" margin-right="0.4in">
      <fo:region-body column-count="2" column-gap="0.3322in"
      margin-top="1cm" margin-bottom="0.25in"/>
      <fo:region-before region-name="firstpageHeader" extent="10mm"
      display-align="before"/>
      <fo:region-after region-name="firstpageFooter" extent="24pt"
      display-align="after"/>
      </fo:simple-page-master>

      <fo:simple-page-master master-name="firstpage" page-width="8.5in"
      page-height="5.5in" margin-top="0.25in" margin-bottom="0.25in"
      margin-left="0.6in" margin-right="0.4in">
      <fo:region-body column-count="2" column-gap="0.3322in"
      margin-top="1cm" margin-bottom="0.25in"/>
      <fo:region-before region-name="firstpageHeader" extent="10mm"
      display-align="before"/>
      <fo:region-after region-name="firstpageFooter" extent="24pt"
      display-align="after"/>
      </fo:simple-page-master>

      <fo:simple-page-master master-name="oddpage" page-width="8.5in"
      page-height="5.5in" margin-top="0.25in" margin-bottom="0.25in"
      margin-left="0.6in" margin-right="0.4in">
      <fo:region-body column-count="2" column-gap="0.3322in"
      margin-top="1cm" margin-bottom="0.25in"/>
      <fo:region-before region-name="oddpageHeader" extent="10mm"
      display-align="before"/>
      <fo:region-after region-name="oddpageFooter" extent="29mm"
      display-align="after"/>
      </fo:simple-page-master>

      <fo:simple-page-master master-name="evenpage" page-width="8.5in"
      page-height="5.5in" margin-top="0.25in" margin-bottom="0.25in"
      margin-left="0.6in" margin-right="0.4in">
      <fo:region-body column-count="2" column-gap="0.3322in"
      margin-top="1cm" margin-bottom="0.25in"/>
      <fo:region-before region-name="evenpageHeader" extent="10mm"
      display-align="before"/>
      <fo:region-after region-name="evenpageFooter" extent="29mm"
      display-align="after"/>
      </fo:simple-page-master>

      <fo:simple-page-master master-name="lastpage" page-width="8.5in"
      page-height="5.5in" margin-top="0.25in" margin-bottom="0.25in"
      margin-left="0.6in" margin-right="0.4in">
      <fo:region-body column-count="2" column-gap="0.3322in"
      margin-top="1cm" margin-bottom="0.25in"/>
      <fo:region-before region-name="lastpageHeader" extent="10mm"
      display-align="before"/>
      <fo:region-after region-name="lastpageFooter" extent="29mm"
      display-align="after"/>
      </fo:simple-page-master>

      <fo:page-sequence-master master-name="document">
      <fo:repeatable-page-master-alternatives>
      <fo:conditional-page-master-reference page-position="first"
      master-reference="frontpage"/>
      <fo:conditional-page-master-reference page-position="last"
      master-reference="lastpage"/>
      <fo:conditional-page-master-reference page-position="first"
      master-reference="firstpage"/>
      <fo:conditional-page-master-reference master-reference="oddpage"
      odd-or-even="odd"/>
      <fo:conditional-page-master-reference master-reference="evenpage"
      odd-or-even="even"/>
      </fo:repeatable-page-master-alternatives>
      </fo:page-sequence-master>

      </fo:layout-master-set>


      <fo:page-sequence master-reference="document" language="en"
      line-height="1.15em" font-family="sans-serif" font-size="10pt"
      hyphenate="true">

      <fo:static-content flow-name="lastpageHeader">
      <fo:block font-weight="bold" font-size="14pt"
      text-transform="uppercase" text-align-last="justify">
      <xsl:choose>
      <xsl:when test="//front/@effectivity='Y000'">
      <fo:external-graphic content-width="1in"
      src="N:\Projects\nacco\Application\EPIC\Operator\graphics\yale.tif"/>
      </xsl:when>
      <xsl:otherwise>
      <fo:external-graphic content-width="1.25in"
      src="N:\Projects\nacco\Application\EPIC\Operator\graphics\hyster.tif"/>
      </xsl:otherwise>
      </xsl:choose>
      <fo:leader leader-pattern="space"/>
      <fo:retrieve-marker retrieve-class-name="module-title"/> <!--
      This is the module title -->
      </fo:block>
      <fo:block border-after-style="solid" border-after-width="1.5pt"
      space-before="1mm"/>
      </fo:static-content>

      <fo:static-content flow-name="oddpageHeader">
      <fo:block font-weight="bold" font-size="14pt"
      text-transform="uppercase" text-align-last="justify">
      <xsl:choose>
      <xsl:when test="//front/@effectivity='Y000'">
      <fo:external-graphic content-width="1in"
      src="N:\Projects\nacco\Application\EPIC\Operator\graphics\yale.tif"/>
      </xsl:when>
      <xsl:otherwise>
      <fo:external-graphic content-width="1.25in"
      src="N:\Projects\nacco\Application\EPIC\Operator\graphics\hyster.tif"/>
      </xsl:otherwise>
      </xsl:choose>
      <fo:leader leader-pattern="space"/>
      <fo:retrieve-marker retrieve-class-name="module-title"/> <!--
      This is the module title -->
      </fo:block>
      <fo:block border-after-style="solid" border-after-width="1.5pt"
      space-before="1mm"/>
      </fo:static-content>

      <fo:static-content flow-name="evenpageHeader">
      <fo:block font-weight="bold" font-size="14pt"
      text-transform="uppercase" text-align-last="justify">
      <fo:retrieve-marker retrieve-class-name="module-title"/> <!--
      This is the module title -->
      <fo:leader leader-pattern="space"/>
      <xsl:choose>
      <xsl:when test="//front/@effectivity='Y000'">
      <fo:external-graphic content-width="1in"
      src="N:\Projects\nacco\Application\EPIC\Operator\graphics\yale.tif"/>
      </xsl:when>
      <xsl:otherwise>
      <fo:external-graphic content-width="1.25in"
      src="N:\Projects\nacco\Application\EPIC\Operator\graphics\hyster.tif"/>
      </xsl:otherwise>
      </xsl:choose>
      </fo:block>
      <fo:block border-after-style="solid" border-after-width="1.5pt"
      space-before="1mm"/>
      </fo:static-content>

      <fo:static-content flow-name="lastpageFooter">
      <fo:block text-align="right"
      font-weight="bold"><fo:page-number/></fo:block>
      </fo:static-content>

      <fo:static-content flow-name="oddpageFooter" odd-or-even="odd">
      <fo:block text-align="right"
      font-weight="bold"><fo:page-number/></fo:block>
      </fo:static-content>

      <fo:static-content flow-name="evenpageFooter" odd-or-even="even">
      <fo:block text-align="left"
      font-weight="bold"><fo:page-number/></fo:block>
      </fo:static-content>

      <fo:flow flow-name="xsl-region-body">
      <fo:marker marker-class-name="issue-table-header"/>
      <xsl:apply-templates/>
      <fo:block span="all"><fo:leader leader-length="0pt"
      leader-pattern="space"/></fo:block>
      </fo:flow>
      </fo:page-sequence>


      </fo:root>
      </xsl:template>


      And here is my module template...

      <xsl:template match="module">
      <fo:block id="{generate-id(.)}" break-before="page" break-after="page">
      <fo:marker marker-class-name="module-title">
      <xsl:value-of select="title"/>
      </fo:marker>
      <xsl:apply-templates/>
      <fo:block span="all"><fo:leader leader-length="0pt"
      leader-pattern="space"/></fo:block> <!-- used to balance columns -->
      </fo:block>
      </xsl:template>




      Confidentiality Notice
      The information contained in this e-mail is confidential and intended for use only by the person(s) or organization listed in the address. If you have received this communication in error, please contact the sender at O'Neil & Associates, Inc., immediately. Any copying, dissemination, or distribution of this communication, other than by the intended recipient, is strictly prohibited.
    Your message has been successfully submitted and would be delivered to recipients shortly.