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

RE: [XSL-FO] Fop NULL errors

Expand Messages
  • Andrew Syomkin
    Hi! Your xml doesn t conform the DTD spec. http://www.renderx.com/Tests/validator/fo2000.dtd.html. Try to play with the following xml:
    Message 1 of 1 , May 13 9:56 AM
    • 0 Attachment
      Hi!
      Your xml doesn't conform the DTD spec.
      http://www.renderx.com/Tests/validator/fo2000.dtd.html.

      Try to play with the following xml:
      <?xml version="1.0" encoding="UTF-8"?>
      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

      <fo:layout-master-set>
      <fo:simple-page-master master-name="first-sheet"
      page-height="8.5in" page-width="11in" margin-top=".5in"
      margin-bottom=".5in" margin-left=".5in" margin-right=".5in">
      <fo:region-before extent="2in" />
      <fo:region-body margin-top="2.01in"
      region-name="first-body-region"/>
      </fo:simple-page-master>

      <fo:simple-page-master master-name="sheet"
      page-height="8.5in" page-width="11in" margin-top=".5in"
      margin-bottom=".5in" margin-left=".5in" margin-right=".5in">
      <fo:region-before extent=".5in" />
      <fo:region-body margin-top=".501in"
      region-name="body-region"/>
      </fo:simple-page-master>

      </fo:layout-master-set>

      <fo:page-sequence master-name="first-sheet">
      <fo:flow flow-name="first-body-region">
      <fo:block>
      Testing
      </fo:block>
      </fo:flow>
      </fo:page-sequence>

      <fo:page-sequence master-name="sheet">
      <fo:flow flow-name="body-region">
      <fo:block>
      Testing
      </fo:block>
      </fo:flow>
      </fo:page-sequence>
      </fo:root>


      Andrew

      -----Original Message-----
      From: gaidaigoji [mailto:djp49@...]
      Sent: Friday, May 10, 2002 3:38 PM
      To: XSL-FO@yahoogroups.com
      Subject: [XSL-FO] Fop NULL errors

      each time I attempt to render the document I'm working on i get the
      following error:

      [INFO]: FOP 0.20.3rc
      [INFO]: building formatting object tree
      [ERROR]: null

      From what I can gather everything is in order. The code is as follows:

      <?xml version="1.0" encoding="UTF-8"?>
      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

      <fo:layout-master-set>
      <fo:simple-page-master master-name="first-sheet" page-
      height="8.5in" page-width="11in" margin-top=".5in" margin-
      bottom=".5in" margin-left=".5in" margin-right=".5in">
      <fo:region-before extent="2in" />
      <fo:region-body margin-top="2.01in" />
      </fo:simple-page-master>

      <fo:simple-page-master master-name="sheet" page-
      height="8.5in" page-width="11in" margin-top=".5in" margin-
      bottom=".5in" margin-left=".5in" margin-right=".5in">
      <fo:region-before extent=".5in" />
      <fo:region-body margin-top=".501in" />
      </fo:simple-page-master>

      <fo:page-sequence-master master-name="bench-sheet">

      <fo:repeatable-page-master-alternatives>
      <fo:conditional-page-master-reference
      master-reference="first-sheet" page-position="first" />
      <fo:conditional-page-master-reference
      master-reference="sheet" page-position="rest" odd-or-even="any" />
      </fo:repeatable-page-master-alternatives>

      </fo:page-sequence-master>

      </fo:layout-master-set>

      <fo:page-sequence master-reference="first-sheet">
      <fo:flow>
      <fo:block>
      Testing
      </fo:block>
      </fo:flow>
      </fo:page-sequence>

      <fo:page-sequence master-reference="sheet">
      <fo:flow>
      <fo:block>
      Testing
      </fo:block>
      </fo:flow>
      </fo:page-sequence>
      </fo:root>



      To unsubscribe from this group, send an email to:
      XSL-FO-unsubscribe@egroups.com



      Your use of Yahoo! Groups is subject to
      http://docs.yahoo.com/info/terms/
    Your message has been successfully submitted and would be delivered to recipients shortly.