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

Need help with Page layout

Expand Messages
  • Jignesh Shah
    IHi, I copied this code from http://www.dpawson.co.uk/xsl/sect3/headers.html#d9100e73 to see if different page headers work or not. I have noted the error it
    Message 1 of 1 , Jun 5, 2003
    View Source
    • 0 Attachment
      IHi,

      I copied this code from
      http://www.dpawson.co.uk/xsl/sect3/headers.html#d9100e73 to see if
      different page headers work or not.

      I have noted the error it gives me in <fo:page-sequence>

      Thanks

      Jigs


      <fo:layout-master-set>

      <fo:simple-page-master master-name="first"
      xsl:use-attribute-sets="page.attrib">
      <fo:region-body margin-top ="3cm" margin-bottom="2cm"/>
      <fo:region-before region-name="header-first" extent="3cm"/>
      <fo:region-after extent ="1cm"/>
      </fo:simple-page-master>

      <fo:simple-page-master master-name="rest"
      xsl:use-attribute-sets="page.attrib">
      <fo:region-body margin-top ="3cm" margin-bottom="2cm"/>
      <fo:region-before region-name="header-rest" extent="3cm"/>
      <fo:region-after extent ="1cm"/>
      </fo:simple-page-master>

      <fo:page-sequence-master master-name="firstAndRest">
      <fo:repeatable-page-master-alternatives>
      <fo:conditional-page-master-reference master-name="first"
      page-position="first"/>
      <fo:conditional-page-master-reference master-name="rest"
      page-position="rest"/>
      </fo:repeatable-page-master-alternatives>
      </fo:page-sequence-master>

      </fo:layout-master-set>

      <fo:page-sequence master-name="firstAndRest"
      master-reference="firstAndRest">
      <! -- Its giving me a NullPointer Exception when I use
      master-reference and no matches for master_reference in
      simple-page-master OR page-sequence-master when I use master-name -->

      <fo:static-content flow-name="header-first">
      <fo:block>
      FIRST FIRST FIRST
      </fo:block>
      </fo:static-content>

      <fo:static-content flow-name="header-rest">
      <fo:block>
      REST REST REST
      </fo:block>
      </fo:static-content>
      </fo:page-sequence>


      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.