Set the maximum block height and trim level

I have a table in an XSL-FO document, and there is an article description in the cell that can easily overflow the page, so I want it to be simply cut after reaching a certain height with the cell. Is it possible? This is my example, I tried the installation:

height="4cm" 

and

 block-dimension-progression.maximum="4cm" 

but that will not work.

 <fo:table-row keep-together.within-page="always" height="2cm"> <fo:table-cell border-right="1.5pt solid black"> <fo:block text-align="center"> <xsl:value-of select="count"/> </fo:block> </fo:table-cell> <fo:table-cell border-right="1.5pt solid black" padding-left="2pt"> <fo:block> <xsl:value-of select="name"/> </fo:block> <fo:block font-size="10pt"><xsl:value-of select="manufacturer"/> / <xsl:value-of select="identifier"/></fo:block> <fo:block font-size="10pt"><xsl:value-of select="description"/></fo:block> </fo:table-cell> <fo:table-cell border-right="1.5pt solid black" padding-right="2pt"> <fo:block text-align="right"> <xsl:value-of select="unitprice"/> </fo:block> </fo:table-cell> <fo:table-cell> <fo:block text-align="right"> <xsl:value-of select="totalprice"/> </fo:block> </fo:table-cell> </fo:table-row> 
+4
source share
1 answer

Place the article description block in the block container with overflow="hidden" and the desired height. Like this:

 <fo:block-container overflow="hidden" height="2cm"> <fo:block font-size="10pt">Long description text goes here...</fo:block> </fo:block-container> 
+7
source

All Articles