You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Hahn Kurt (CHA)" <ku...@etat.ge.ch> on 2002/05/31 12:08:00 UTC

fo:table-cell number-columns-spanned: Is this property working at all?

Are there any limitations to the "number-columns-spanned"-property?
I tried this to fill a 5-columns table with 2 cells, but it doesn't seem to
work:

 <xsl:template match="soustitre3">
        <fo:table-row>
           <fo:table-cell><fo:block>
            <xsl:value-of select="."/>
          </fo:block></fo:table-cell>
          <fo:table-cell number-colums-spanned="4"
text-align="center"><fo:block>
  	          <xsl:value-of select="../soustitre3_intitule"/>
          </fo:block></fo:table-cell>
        </fo:table-row>
  </xsl:template>

I'm using this same property in another rule in the same XSL-file, and it
does what I want (e.g. span several colums with just one cell). But in this
case, the text from <xsl:value-of select="../soustitre3_intitule"/>,. which
is actually rather long, is squeezed in the second cell, (with appr. 1 word
per line, since the second column is rather narrow).
Any ideas?

Kurt

Re: fo:table-cell number-columns-spanned: Is this property working at all?

Posted by Jeremias Maerki <je...@outline.ch>.
Again, you have a little spelling error in your code. 
It should be "number-columns-spanned".

>           <fo:table-cell number-colums-spanned="4"

Cheers,
Jeremias Märki

mailto:jeremias.maerki@outline.ch

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch