Allow me to clarify what I said. Sorry for the re-post...

My problem was in fo:list-block:

<fo:list-block space-before="6pt" space-after="6pt" font-family="Times">
  <fo:list-item>
    <fo:list-item-label end-indent="label-end()">
      <fo:block font-family="ZapfDingbats">?</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="body-start()">
      <fo:block>
  This is the first entry
  in a plain unordered list.
  A check symbol is displayed in the bullet.
</fo:block>
    </fo:list-item-body>
  </fo:list-item>
  <fo:list-item>
    <fo:list-item-label end-indent="label-end()">
      <fo:block font-family="ZapfDingbats">?</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="body-start()">
      <fo:block></fo:block>
    </fo:list-item-body>
  </fo:list-item>
</fo:list-block>

I was missing content in 2nd <fo:list-item-body><fo:block>. The PDF file
rendered normally (I think FOP returned a warning), but an error was
given when the file was opened in Adobe Acrobat Reader. Unbeknownst to
me, my XML file did not include data where it was expected.

What did I do? I wrote this list and they recommended I output the FO
file using XALAN.BAT, and look for the problem. I found the problem by
searching all of the fo:list-block items...

Clay Leeds wrote:
> Ethan,
> 
> I suspect there's a problem in your XSL-FO file. I had similar things
> happen to me with fo:list-item, and one of the components turned out to
> be empty. This caused an error in the renderer. I processed my XML &
> XSL-FO using XALAN.BAT (included with 0.20.5rc), but set my output to -fo.
> 
> the command line would be (assume "c:\java\fop-0.20.5rc>" is command
> prompt):
> 
> c:\java\fop-0.20.5rc>xalan.bat -in c:\path\to\your\xmlfile.xml -xsl
> c:\path\to\your\xslfile.xsl -out c:\path\to\your\outputfofile.fo
> 
> Hope this helps!
> 
> Web Maestro Clay
> 
> (note to FOP-DEV: it'd be nice to add a "-fo" output option to FOP, for
> debugging--although xalan.bat does this, it'd be nice not have to learn
> one more thing ;-p)


-- 
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to