Re: Fixing the table height
Hi, Here is the xsl i used - xsl_updated.txt http://apache-fop.1065347.n5.nabble.com/file/n41742/xsl_updated.txt -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Re-Fixing-the-table-height-tp41699p41742.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fixing the table height
The suggestion given was to keep the row height fixed. Obviously the table height will be a multiple then of the number of rows. You have not explained well what you are trying to achieve. You want a fixed table height regardless of the number of rows and their height? Can you provide a drawing of what you expect, or maybe a document generated with the older FOP version you were using? On 2/12/15 10:26 AM, fop_ag wrote: Hi Luis Bernardo, Even having block-container inside the table cell didnt give the expected result.. Still the height is growing depending on total no of rows in table. Here is the xsl snippet which i used - fo:table-row height=3mm fo:table-cell padding=1mm padding-top=0.5mm padding-bottom=0.5mm fo:block-container border=solid red 1pt block-progression-dimension.minimum=1cm inline-progression-dimension=100% fo:block hyphenate=true wrap-option=wrap white-space-collapse=false white-space-treatment=preserve linefeed-treatment=preserve xsl:value-of select=B.4.k.2.1//fo:block /fo:block-container /fo:table-cell /fo:table-row -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Re-Fixing-the-table-height-tp41699p41744.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fixing the table height
Hi Luis Bernardo, Even having block-container inside the table cell didnt give the expected result.. Still the height is growing depending on total no of rows in table. Here is the xsl snippet which i used - fo:table-row height=3mm fo:table-cell padding=1mm padding-top=0.5mm padding-bottom=0.5mm fo:block-container border=solid red 1pt block-progression-dimension.minimum=1cm inline-progression-dimension=100% fo:block hyphenate=true wrap-option=wrap white-space-collapse=false white-space-treatment=preserve linefeed-treatment=preserve xsl:value-of select=B.4.k.2.1//fo:block /fo:block-container /fo:table-cell /fo:table-row -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Re-Fixing-the-table-height-tp41699p41744.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fixing the table height
Hi Luis, Yes i wanted to have a table of fixed height, so that irrespective of no of rows that is present within that table the height should be same. If a table has capacity to accomadate 10 rows of data, with old fop if there were only 5 rows existed table height would remain constant, but with newer fop the table height is not constant, entire table looks like collapsed. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Re-Fixing-the-table-height-tp41699p41746.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fixing the table height
I think the desired behavior is to have rows of fixed height. Having a block-container with fixed height inside a table-cell should achieve the desired result. On 2/10/15 5:20 PM, Pascal Sancho wrote: Hi, FOP 1.1 only accepts value auto for fo:table@height. Other values are replaced with 'auto'. If you want a frame with a fixed (or minimal) height, then embed your table in an fo:block-containter: fo:block-container border=solid red 1pt block-progression-dimension.minimum=1cm inline-progression-dimension=100% fo:table table-layout=fixed width=100% ... /fo:table /fo:block-container 2015-02-10 13:05 GMT+01:00 fop_ag nithinurs.venugopalraj...@arisglobal.com: Hi, I'm trying to use the fo:block-container like u mentioned, but still the table height is not constant.. It grows or shrinks depending on total no of rows in the table. THis is the xsl i used xsl_updated.txt http://apache-fop.1065347.n5.nabble.com/file/n41706/xsl_updated.txt -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Re-Fixing-the-table-height-tp41699p41706.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Fixing the table height
My mistake, I was talking about space-before and space-after properties, with are composite too (.minimum, .maximum, and .optimum) 2015-02-12 13:58 GMT+01:00 Pascal Sancho psancho@gmail.com: that can be achieved playing with block-progression-dimension.minimum, b-p-d.optimum, and b-p-d.maximum properties. -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org