, , , . ?
<table>
<tr><td colspan="2"/><td/></tr>
<tr><td/><td colspan="2"/></tr>
</table>
, 2 - , . , , , (, XHTML CALS), @Tim C a : count (td) (td/@colspan) + count (td [not (@colspan)]) < xsl: sort/ > < xsl: - > .
, . , 2 3:
<table>
<tr><td rowspan="2"/><td/></tr>
<tr><td/><td/></tr>
</table>
, . ( ).
One more thing. My karma is not enough to comment on @Tim C's answer, but I need to write this so that I don’t forget: the stylesheet is incorrect in that it sorts the number of cells lexically (that is, it thinks "120" <"19" <5 " ), so if you have a row with 5 cells and another with 10, you get a maximum of 5. This can be easily fixed by adding the data type = "number" to the <xsl: sort /> tag.
source
share