Does setting text-align-last="justify" on the fo:block help?
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Mark Cilia Vincenti" <mark@gfi.com>
To: <xep-support@renderx.com>
Sent: Tuesday, December 20, 2005 6:48 AM
Subject: [xep-support] Spacing out graphics inside a block
> 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
>
>
-------------------
(*) 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 Dec 20 09:50:38 2005
This archive was generated by hypermail 2.1.8 : Tue Dec 20 2005 - 09:50:38 PST