At 2005-08-18 15:41 +0200, Sander Pilon wrote:
>I'm trying to generate a table with a specific height, but it doesn't
>seem to do what I want. Here's the XSL:
>...
>I can change the height to about anything, but it will not change the
>height!
The construct I usually use to allocate space in the
block-progression direction is <block-container>. Using height= on
<table-cell> or <table-row> also works.
<flow flow-name="frame-body" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:block>This is a test</fo:block>
<fo:table width="130mm" border="2pt solid red"
background-color="rgb-icc(0,0,153,cmyk,1,0.79,0,0)">
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block-container height="25mm">
<fo:block font-family="verdana"
color="rgb-icc(255,255,255,cmyk,0,0,0,0)" font-size="31pt">
XX
</fo:block>
</fo:block-container>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:block>This is a test</fo:block>
<fo:table width="130mm" border="2pt solid red"
background-color="rgb-icc(0,0,153,cmyk,1,0.79,0,0)">
<fo:table-body>
<fo:table-row>
<fo:table-cell height="25mm">
<fo:block font-family="verdana"
color="rgb-icc(255,255,255,cmyk,0,0,0,0)" font-size="31pt">
XX
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:block>This is a test</fo:block>
<fo:table width="130mm" border="2pt solid red"
background-color="rgb-icc(0,0,153,cmyk,1,0.79,0,0)">
<fo:table-body>
<fo:table-row height="25mm">
<fo:table-cell>
<fo:block font-family="verdana"
color="rgb-icc(255,255,255,cmyk,0,0,0,0)" font-size="31pt">
XX
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:block>This is a test</fo:block>
<fo:table width="130mm" height="25mm" border="2pt solid red"
background-color="rgb-icc(0,0,153,cmyk,1,0.79,0,0)">
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block font-family="verdana"
color="rgb-icc(255,255,255,cmyk,0,0,0,0)" font-size="31pt">
XX
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:block>This is a test</fo:block>
<fo:table width="130mm" block-progression-dimension="25mm"
border="2pt solid red"
background-color="rgb-icc(0,0,153,cmyk,1,0.79,0,0)">
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block font-family="verdana"
color="rgb-icc(255,255,255,cmyk,0,0,0,0)" font-size="31pt">
XX
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:block>This is a test</fo:block>
Interestingly, I'm getting different background results from
different formatters when using height on <table>, but they agree
that the cell size is not the table size.
The XSL specification builds on the CSS2 specification but according
to a note in 6.7.3 "The CSS2 specification explicitly does not
specify what the behavior should be if there is a mismatch between an
explicitly specified table block-progression-dimension and the
block-progression-dimensions of the content." Probably why I'm
seeing different results in different processors.
Section 6.7.3 does explicitly say that the height is based on the
"block-progression-dimension" trait, which defaults to "auto", which
means the height is "auto". Reading 7.14.1 it would seem that
height= does not play into the table's height, yet I'm getting
identical results when I replace height= with
block-progression-dimension= so I'm not sure what is in play
here. My guess is that a table's height is always the height of its
content (though I don't see that in section 6.7.3).
I hope this helps.
. . . . . . Ken
-- World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@CraneSoftwrights.com Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/f/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal ------------------- (*) To unsubscribe, send a message with words 'unsubscribe xep-support' in the body of the message to majordomo@renderx.com from the address you are subscribed from. (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.htmlReceived on Thu Aug 18 07:42:26 2005
This archive was generated by hypermail 2.1.8 : Thu Aug 18 2005 - 07:42:26 PDT