xsl-list
[Top] [All Lists]

[xsl] problem with table cell-width

2007-06-19 01:52:32
Hello list,

I have a problem trying to format my table cells using numeric values. As a formatter I use fop-0.93.

The problem:

When I use numeric values for table cells all cells will be the same width. But I want to use a different cell-width for each cell. The layout of the table is fixed.

==XML-Example==

<tr><tag>Do</tag><datum>12.06.07</datum><uhrzeit>15:00 - 16:30 Uhr</uhrzeit><kursnr>Kurs-Nr.: </kursnr><nr>10</nr><beitrag></beitrag></tr>

==XSL-Example==

<xsl:template match="tag">
 <xsl:param name="pos_tr" />
 <xsl:variable name="pos_tag" select="position()" />
<fo:table-cell column-number="{$pos_tag}" xsl:use-attribute-sets="table.contents">
 <xsl:attribute name="width">7mm</xsl:attribute>
 <fo:block>
 <xsl:attribute name="text-align">left</xsl:attribute>
 <fo:inline font-weight="bold"><xsl:value-of select="."/></fo:inline>
 </fo:block>
 </fo:table-cell>
</xsl:template>

I can enter several values for width and none of them work. Inside the FO-File the values are at the right position but the formatter does not include them.
Any idea so far?

Thanks so much,

Andreas


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>
  • [xsl] problem with table cell-width, Andreas Peter <=