xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Awadhoot Aphale <awadhoot.aph...@broadcom.com.INVALID>
Subject Apache FOP 2.3
Date Thu, 24 Jan 2019 15:08:32 GMT

I have upgraded the FOP library in the legacy application from 0.94 to 2.3.
I am using JDK 1.6.

I have made necessary changes in the source code to work with FOP 2.3.

After the upgrade, XML to PDF conversion has stopped working. I am using
xsl to convert to pdf.

Following is the section of xsl where error is reported,

<xsl:when test="@id = 'fourthForm'">
<fo:block background-image="{$imgPath}" border-style="solid"
text-align="left" font-size="8pt"
font-weight="bold" color="white" padding-top="1pt"
<xsl:value-of select="tr/td/span" />

imgPath is defined as shown below,

<xsl:variable name="imgPath1" select="html/body/input/@value" />
<xsl:variable name="imgPath2"
select="'/images/table_header_center.png'" />

<xsl:variable name="imgPath" select="concat($imgPath1,$imgPath2)" />

Error reported is,

SystemId Unknown; Line #106; Column #41; java.lang.NullPointerException

If I remove background-image="{$imgPath}" from fo:block, it works fine.

Not sure what is wrong here. Any help would be appreciated.

Thank you.

View raw message