problem with table header
hi, i got a little problem with table rendering. my problem: i have a table with a header row. as i dynamically generate the content of the headers i don't know how long the text for the header will be. so i sometimes get a very long header, which breaks into a second header row. now i would like to generally make the header 2 rows wide. how do i do this? i tried the attribute number-rows-spanned but it didn't work (could also be my mistake). is it supported by fop? if it is supported, could someone give a small example? thanx in advance. mk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with table header
Mihael Knezevic wrote: i have a table with a header row. as i dynamically generate the content of the headers i don't know how long the text for the header will be. so i sometimes get a very long header, which breaks into a second header row. now i would like to generally make the header 2 rows wide. how do i do this? i tried the attribute number-rows-spanned but it didn't work (could also be my mistake). is it supported by fop? I don't understand. Table rows have to be put into the table explicitely, therefore a long header (whatever you mean with this) will never break into a second header row. I guess you got a header table cell with two lines, which is something different. Row spanning is implemented, but you can't span more than one table row if there is only one. Can you reformulate your question and perhaps show a small snippet of your FO code demonstrating your current approach? J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with table header
sorry for my poor explanation of my problem. you are right with your assumption that i set explicitly the header and that it won't break into a second row but in a second line in the same cell. i wasn't that clear to me 'till now. but the problem remains: i got different table header height because it sometimes needs one and sometimes two lines for the header. is there a possibility to say that i want the header (table cell from header) as high as two lines (relativ or absolut value) so that there all will look alike? -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 2:08 PM To: [EMAIL PROTECTED] Subject: Re: problem with table header Mihael Knezevic wrote: i have a table with a header row. as i dynamically generate the content of the headers i don't know how long the text for the header will be. so i sometimes get a very long header, which breaks into a second header row. now i would like to generally make the header 2 rows wide. how do i do this? i tried the attribute number-rows-spanned but it didn't work (could also be my mistake). is it supported by fop? I don't understand. Table rows have to be put into the table explicitely, therefore a long header (whatever you mean with this) will never break into a second header row. I guess you got a header table cell with two lines, which is something different. Row spanning is implemented, but you can't span more than one table row if there is only one. Can you reformulate your question and perhaps show a small snippet of your FO code demonstrating your current approach? J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with table header
Mihael Knezevic wrote: but the problem remains: i got different table header height because it sometimes needs one and sometimes two lines for the header. is there a possibility to say that i want the header (table cell from header) as high as two lines (relativ or absolut value) so that there all will look alike? You can set the height property on the fo:table-row in the header. As a rule of thumb, use twice the font size, for example height=2*12pt. You can alos use one of the property functions to retrive the current font size, look it up in the XSL spec. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with table header
thanx. i'll try it. -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 07, 2003 3:11 PM To: [EMAIL PROTECTED] Subject: Re: problem with table header Mihael Knezevic wrote: but the problem remains: i got different table header height because it sometimes needs one and sometimes two lines for the header. is there a possibility to say that i want the header (table cell from header) as high as two lines (relativ or absolut value) so that there all will look alike? You can set the height property on the fo:table-row in the header. As a rule of thumb, use twice the font size, for example height=2*12pt. You can alos use one of the property functions to retrive the current font size, look it up in the XSL spec. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]