[xep-support] WG: Graphic with text before and after the graphic on one page

From: <uwe.goersch@lhsystems.com>
Date: Fri Nov 11 2005 - 00:19:59 PST

I FORWARD THE FOLLOWING EMAIL ON BEHALF OF MY COLLEAGUE MR. MARC AGGEN, 'marc.aggen@lhsystems.com'. REGARDS, UWE GOERSCH

 

Hello, I would like to insert on one page a graphic with a text part above the graphic and a text part under the graphic. All text parts and the graphic must be on one page. Depending on how much text exists, the size of the graphic must be adapted accordingly. The size of the graphic and the text passages can be differently big.

 

At the moment I use this XSL Fragment, but the text under the graphic will always appear on the next page. I have used different instructions but I have had no success.

 

 

  <xsl:template match="sheet">

    <fo:block id="{@key}" keep-with-next="always">

      <xsl:if test="preceding-sibling::sheet">

        <xsl:attribute name="break-before">

          <xsl:value-of select="'page'"/>

        </xsl:attribute>

      </xsl:if>

      <xsl:apply-templates select="title"/>

      <fo:block>Other text above the graphic</fo:block>

      <fo:block>

        <fo:external-graphic src="url({@gnbr})" scaling="uniform"

            content-width="scale-to-fit" content-height="scale-to-fit" height="19cm" width="17cm"/>

        </fo:external-graphic>

      </fo:block>

      <xsl:apply-templates select="gdesc"/>

      <fo:block>Other text under the graphic</fo:block>

    </fo:block>

  </xsl:template>

 

 

Thanks in advance,

Marc

-------------------
(*) 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 Fri Nov 11 00:48:36 2005

This archive was generated by hypermail 2.1.8 : Fri Nov 11 2005 - 00:48:36 PST