Bug 53532 - applying incorrect width if a table has a td with colspan
Summary: applying incorrect width if a table has a td with colspan
Status: RESOLVED INVALID
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: all
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-11 06:20 UTC by ramana1310
Modified: 2012-07-11 08:15 UTC (History)
1 user (show)



Attachments
It contains the xsl, As it is allowing only one attachment I copied xsl and xml which I have used in the same attachment (254.31 KB, text/xml)
2012-07-11 06:20 UTC, ramana1310
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ramana1310 2012-07-11 06:20:42 UTC
Created attachment 29046 [details]
It contains the xsl, As it is allowing only one attachment I copied xsl and xml which I have used in the same attachment

A table with 3 tds

first row has a td with width 3% and next td spanned 2 columns (colspan = 2, width = 97%)

second row has a td with width 3%, second td with width 3% and third td with width 94% but

the second td and third tds are not getting width as specified (in the present case 2nd td has to get width 3% and 3rd td has to get width 94%) not getting the width as mentioned.

      The 2nd td and 3td are getting 50% each from the above colspan with even we mention the width for those 2 tds.


What I am trying to say is when there a row which has colspan 
the sub sequent rows with individual tds with width they are not getting the correct width applyed to the rows.


example:

<table cellspacing='0' border='1' width='428' cellpadding='0'> 
	<tbody> 
		<tr>
			<td width='10%'>test</td>
			<td colspan='2' width='90%'>
				Here we have colspan as 2 and with as 90, the next will have 3 individual tds that is without colspan
			</td></tr>
		<tr>
		<td width='10%'> aaaa test</td>
		<td width='6%'>ssss</td>
		<td width='84%'>As we have 3 tds here the 2nd td and 3rd are not getting the width as 6% and 84% respcectively </td>
		</tr>
		</tbody>
		</table>
Comment 1 Pascal Sancho 2012-07-11 08:15:45 UTC
Hi,

this issue is related to XSLT transformation.
 - this thread is off topic here
 - you should ask 1st on a more relevant list: follow [1].

[1] http://www.mulberrytech.com/xsl/xsl-list