You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Berin Loritsch <bl...@infoplanning.com> on 2000/08/17 17:04:38 UTC

FATAL ERROR running attached file

It lists the following ids referenced but not found:

dedication
appendix
preface
chapter

It only fails when I run FOP like:
java org.apache.fop.apps.CommandLine chunk.fo chunk.pdf

If I use:
java org.apache.fop.apps.AWTCommandLine chunk.fo

everything is OK.

The file was generated using Norman Walsh's DocBook to FO
stylesheets, so I was pleased to find that the generated
XSL:FO file could be processed.

If this has been fixed in CVS, please let me know.

Re: FATAL ERROR running attached file

Posted by Jordan Naftolin <jo...@jtcsv.com>.
Berin,
The reason you are getting this error is because the id's that you are
referencing are defined as an attribute in a page-sequence.  Currently, FOP
does not support link references to page-sequences themsevles because it is
not completely clear where the link should actually jump to.  As a result,
FOP does not know where to send the link, and thus throws a fatal exception.
As a quick fix, you can move the id from the page-sequence tag to an empty
block tag in the fo:flow section of the page-sequence (i.e. <block
id="dedication"/>).  This will solve your problem until FOP decides how to
handle links to page-sequences and implements it.
I hope this helps.
Jordan

P.S.  I appologize for not being active in FOP for the past few weeks.  I
have been extremely busy at work with a new project which has been taking up
all of my time.  I finish my work term at the end of the month and head back
to school in September, so hopefully I'll have more time then to
participate.


----- Original Message -----
From: "Berin Loritsch" <bl...@infoplanning.com>
To: "FOP Dev List" <fo...@xml.apache.org>
Sent: Thursday, August 17, 2000 8:04 AM
Subject: FATAL ERROR running attached file


> It lists the following ids referenced but not found:
>
> dedication
> appendix
> preface
> chapter
>
> It only fails when I run FOP like:
> java org.apache.fop.apps.CommandLine chunk.fo chunk.pdf
>
> If I use:
> java org.apache.fop.apps.AWTCommandLine chunk.fo
>
> everything is OK.
>
> The file was generated using Norman Walsh's DocBook to FO
> stylesheets, so I was pleased to find that the generated
> XSL:FO file could be processed.
>
> If this has been fixed in CVS, please let me know.


----------------------------------------------------------------------------
----


> <?xml version="1.0" encoding="UTF-8"?>
> <fo:root text-align="justify" font-size="12pt" font-family="Times Roman"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
>     <fo:layout-master-set>
>         <fo:page-sequence-master master-name="pages">
>             <fo:repeatable-page-master-alternatives>
>                 <fo:conditional-page-master-reference master-name="right"
odd-or-even="odd"/>
>                 <fo:conditional-page-master-reference master-name="left"
odd-or-even="even"/>
>             </fo:repeatable-page-master-alternatives>
>         </fo:page-sequence-master>
>         <fo:simple-page-master margin-right="50pt" margin-left="100pt"
margin-bottom="25pt" margin-top="75pt" master-name="right">
>             <fo:region-body margin-bottom="50pt"/>
>             <fo:region-after extent="25pt"/>
>         </fo:simple-page-master>
>         <fo:simple-page-master margin-right="100pt" margin-left="50pt"
margin-bottom="25pt" margin-top="75pt" master-name="left">
>             <fo:region-body margin-bottom="50pt"/>
>             <fo:region-after extent="25pt"/>
>         </fo:simple-page-master>
>     </fo:layout-master-set>
>     <fo:page-sequence id="N9df" master-name="pages">
>         <fo:flow>
>             <fo:block>
>                 <fo:block space-before.optimum="8em" font-weight="bold"
font-size="20pt">Book Test Document Title</fo:block>
>                 <fo:block font-weight="bold" font-size="18pt">Book
Subtitle</fo:block>
>                 <fo:block font-weight="bold" font-size="14pt">Norman
Walsh</fo:block>
>             </fo:block>
>         </fo:flow>
>     </fo:page-sequence>
>     <fo:page-sequence id="dedication" master-name="pages">
>         <fo:static-content flow-name="xsl-after">
>             <fo:block font-size="10pt" text-align-last="center">
>                 <fo:page-number/>
>             </fo:block>
>         </fo:static-content>
>         <fo:flow>
>             <fo:block font-weight="bold" font-size="18pt">First
Dedication</fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">Just a
test.</fo:block>
>         </fo:flow>
>     </fo:page-sequence>
>     <fo:page-sequence id="N9ff" master-name="pages">
>         <fo:static-content flow-name="xsl-after">
>             <fo:block font-size="10pt" text-align-last="center">
>                 <fo:page-number/>
>             </fo:block>
>         </fo:static-content>
>         <fo:flow>
>             <fo:block font-weight="bold"
font-size="18pt">Dedication</fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">Just a
test.</fo:block>
>         </fo:flow>
>     </fo:page-sequence>
>     <fo:page-sequence id="preface" master-name="pages">
>         <fo:static-content flow-name="xsl-after">
>             <fo:block font-size="10pt" text-align-last="center">
>                 <fo:page-number/>
>             </fo:block>
>         </fo:static-content>
>         <fo:flow>
>             <fo:block font-weight="bold"
font-size="18pt">Foreword</fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">This is a test
paragraph. (<fo:simple-link
internal-destination="chapter">chapter</fo:simple-link>)</fo:block>
>         </fo:flow>
>     </fo:page-sequence>
>     <fo:page-sequence id="xreftest" master-name="pages">
>         <fo:static-content flow-name="xsl-after">
>             <fo:block font-size="10pt" text-align-last="center">
>                 <fo:page-number/>
>             </fo:block>
>         </fo:static-content>
>         <fo:flow>
>             <fo:block font-weight="bold" font-size="18pt">1. XRef
Tests</fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">
>                 <fo:simple-link
internal-destination="dedication">Dedication</fo:simple-link>
>             </fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">
>                 <fo:simple-link
internal-destination="preface">Preface</fo:simple-link>
>             </fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">
>                 <fo:simple-link
internal-destination="chapter">Chapter</fo:simple-link>
>             </fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">
>                 <fo:simple-link
internal-destination="appendix">Appendix</fo:simple-link>
>             </fo:block>
>             <fo:block id="Na39">
>                 <fo:block space-before.maximum="2em"
space-before.optimum="1.5em" space-before.minimum="1em" font-weight="bold"
font-size="16pt">First sect1</fo:block>
>                 <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">...</fo:block>
>             </fo:block>
>             <fo:block id="Na41">
>                 <fo:block space-before.maximum="2em"
space-before.optimum="1.5em" space-before.minimum="1em" font-weight="bold"
font-size="16pt">Second sect1</fo:block>
>                 <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">...</fo:block>
>             </fo:block>
>         </fo:flow>
>     </fo:page-sequence>
>     <fo:page-sequence id="chapter" master-name="pages">
>         <fo:static-content flow-name="xsl-after">
>             <fo:block font-size="10pt" text-align-last="center">
>                 <fo:page-number/>
>             </fo:block>
>         </fo:static-content>
>         <fo:flow>
>             <fo:block font-weight="bold" font-size="18pt">2. Second
Chapter</fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">This is a test
paragraph.</fo:block>
>         </fo:flow>
>     </fo:page-sequence>
>     <fo:page-sequence id="Na54" master-name="pages">
>         <fo:static-content flow-name="xsl-after">
>             <fo:block font-size="10pt" text-align-last="center">
>                 <fo:page-number/>
>             </fo:block>
>         </fo:static-content>
>         <fo:flow>
>             <fo:block font-weight="bold" font-size="18pt">3. Third
Chapter</fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">This is a test
paragraph.</fo:block>
>         </fo:flow>
>     </fo:page-sequence>
>     <fo:page-sequence id="appendix" master-name="pages">
>         <fo:static-content flow-name="xsl-after">
>             <fo:block font-size="10pt" text-align-last="center">
>                 <fo:page-number/>
>             </fo:block>
>         </fo:static-content>
>         <fo:flow>
>             <fo:block font-weight="bold" font-size="18pt">A. First
Appendix</fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">This is just a
test.</fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">This makes the
appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.</fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">This makes the
appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.</fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">This makes the
appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.</fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">This makes the
appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.</fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">This makes the
appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.</fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">This makes the
appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.</fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">This makes the
appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.</fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">This makes the
appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.</fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">This makes the
appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.</fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">This makes the
appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.
> This makes the appendix long. This makes the appendix long.</fo:block>
>         </fo:flow>
>     </fo:page-sequence>
>     <fo:page-sequence id="Na84" master-name="pages">
>         <fo:static-content flow-name="xsl-after">
>             <fo:block font-size="10pt" text-align-last="center">
>                 <fo:page-number/>
>             </fo:block>
>         </fo:static-content>
>         <fo:flow>
>             <fo:block font-weight="bold" font-size="18pt">B. Second
Appendix</fo:block>
>             <fo:block space-before.maximum="1.2em"
space-before.minimum="0.8em" space-before.optimum="1em">This is just a
test.</fo:block>
>         </fo:flow>
>     </fo:page-sequence>
> </fo:root>
>