On Jan 11, 2005, at 11:38 AM, Luke Shannon wrote:
Hello;

I am looking for one column that only contains an image, next to it a column
with 2 cells stack on top of one another. What I get with the code below is
the image and only the first cell in the second row?


Any ideas?

Does anyone know a good online tutorial for figuring out tables?

I'd say check out the examples/ directory in the FOP distribution you downloaded.


Luke

<xsl:template name="s2_pdf">
<xsl:param name="imagename" select="concat(string('IMAGE'),number('1'))" />
<!-- text 1 -->
<fo:flow flow-name="xsl-region-body">
<fo:table inline-progression-dimension="100%" table-layout="fixed">
<fo:table-column column-width="50%" number-columns-repeated="2"/>

never saw the number-columns-repeated attribute. Try this (from [1]):

      <fo:table table-layout="fixed" width="100%">
        <fo:table-column column-width="proportional-column-width(1)"/>
        <fo:table-column column-width="proportional-column-width(1)"/>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell>
              <fo:block>foo</fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block>bar</fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
[1]
http://xml.apache.org/fop/fo.html#fo-center-table-horizon

<fo:table-body>
<fo:table-row>
<!-- image cell -->
<fo:table-cell number-rows-spanned="2">
<fo:block>
<xsl:call-template name="image_display_and_upload">
<xsl:with-param name="imagenode" select="." />
</xsl:call-template>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<!-- text number one cell -->
<fo:table-cell>
<fo:block font-family="Arial" font-size="12pt" font-weight="bold"
break-after="auto" space-after="10pt" text-align="left">
<xsl:call-template name="text_display_and_edit">
<xsl:with-param name="text_number" select="number('1')" />
</xsl:call-template>
</fo:block>
</fo:table-cell>
<!-- text number two cell -->
<fo:table-cell>
<fo:block font-family="Arial" font-size="12pt" font-weight="bold"
break-after="auto" space-after="10pt" text-align="left">
<xsl:call-template name="text_display_and_edit">
<xsl:with-param name="text_number" select="number('2')" />
</xsl:call-template>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:flow>
</xsl:template>


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Web Maestro Clay -- <[EMAIL PROTECTED]> - <http://homepage.mac.com/webmaestro/> My religion is simple. My religion is kindness. - HH The 14th Dalai Lama of Tibet


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to