Hi,
I have to display some graphics in a block and I want them to wrap. The
graphics are different sizes but I've handled that by applying a
content-height and a scaling="uniform". However I can't seem to be able
to get them to look as ideally spaced out as possible. I want to fit as
many as can possibly fit on one line, and then justify them.
The problem is that XEP does not wrap around external-graphic tags, and
you need to insert white-space ( ) for it to wrap. I'm not sure if
it's that white-space which is messing up but I'm not getting perfect
results.
I have this code:
<xsl:template match="test:awards">
<fo:block line-height="6mm" wrap-option="wrap"
text-align="justify" text-align-last="justify"
white-space-collapse="true" white-space-treatment="ignore">
<xsl:for-each select="test:award">
<xsl:if test="@highres_src">
<fo:external-graphic
content-height="15mm" scaling="uniform">
<xsl:attribute
name="src">url('<xsl:value-of select="@highres_src" />')</xsl:attribute>
</fo:external-graphic> 
</xsl:if>
</xsl:for-each>
</fo:block>
</xsl:template>
From my results and I have 3 images on one line and 3 others on the line
below it. But the rightmost one of the top line goes a bit further out
than the one in the line below it. It's a very tiny discrepancy but I'm
trying to get it as perfect as possible.
Also, can maybe anyone think of another way I can solve this problem?
This mail was checked for viruses by GFI MailSecurity.
GFI also develops anti-spam software (GFI MailEssentials), a fax server (GFI FAXmaker), and network security and management software (GFI LANguard) - www.gfi.com
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Tue, 20 Dec 2005 15:48:18 +0100
This archive was generated by hypermail 2.1.8 : Tue Dec 20 2005 - 07:18:09 PST