upgrade to fop 0.92 - image problem (no wrap)

Here should go questions about transforming XML with XSLT and FOP.
shmendrick
Posts: 1
Joined: Fri Apr 28, 2006 1:03 am

upgrade to fop 0.92 - image problem (no wrap)

Post by shmendrick »

I've juust upgraded to FOP 0.92 to take advantage of the keep-together support, but I've encountered a new problem.

First problem was image scaling/size, that was fixed from information at this link

next problem is that while images used to just be put on (wrap to) the next line when there to many to fit in the page, now they just run off the page. I haven't been able to cure this one.

My code for the xsl:

Code: Select all

<fo:block margin-left="2em" margin-right="2em">
<xsl:for-each select="pb/pic">
<xsl:choose>
<xsl:when test="@orientation='p'">
<fo:external-graphic width="3cm" height="4cm" content-height="scale-to-fit" content-width="scale-to-fit"
padding="0.3em"
src="url('./pics/t_{@src}')'"/>
<fo:leader leader-length="0.75em"
leader-pattern="space"/>
</xsl:when>
<xsl:otherwise>
<fo:external-graphic width="4cm" height="3cm" content-height="scale-to-fit" content-width="scale-to-fit"
padding="0.3em"
src="url('./pics/t_{@src}')"/>
<fo:leader leader-length="0.75em"
leader-pattern="space"/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</fo:block>
*~Jef
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

The issues are very specific to version 0.92 of Apache FOP and I think you could get more useful answers on a FOP support channel. Also you should take into account that version 0.92 is still a beta release.

I hope that helps,
Sorin
Post Reply