upgrade to fop 0.92 - image problem (no wrap)
Here should go questions about transforming XML with XSLT and FOP.
-
- 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:
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
-
- 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
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
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service