Summary: FOP cannot handle background images in <fo:block> when
                    creating RTF.
           Product: Fop
           Version: 0.95
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: rtf

Using XSLT + Docbook stylesheets + FOP 0.95:

I have a document (in A5 format) that can be flawlessly compiled in PDF format,
but fails in RTF. It seems that FOP cannot handle background images in
<fo:block> elements when creating an RTF file. The following API in my
print.xsl has caused this problem:

<xsl:param name="chap.label.path"

<xsl:attribute-set name="">
  <xsl:attribute name="background-image">
    <xsl:call-template name="fo-external-image">
      <xsl:with-param name="filename" select="$chap.label.path"/>
  <xsl:attribute name="background-attachment">fixed</xsl:attribute>
  <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>

FOP fails to place the chapter number on top of a background
icon. As I said, in PDF it works fine.

When compiling RTF, I get the following error message:

WARNING: Ignored deferred event for[@id=null]
May 27, 2009 4:11:44 PM org.apache.fop.render.rtf.RTFHandler startBlock
SEVERE: startBlock: null
May 27, 2009 4:11:44 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
java.lang.RuntimeException: Exception: java.lang.NullPointerException
        at org.apache.fop.cli.InputHandler.transformTo(
        at org.apache.fop.cli.InputHandler.renderTo(
        at org.apache.fop.cli.Main.startFOP(
        at org.apache.fop.cli.Main.main(


Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to