HXTABLETRANS(1) | HTML-XML-utils | HXTABLETRANS(1) |
hxtabletrans - transpose an HTML or XHTML table
hxtabletrans [ -c ] [ -x ] [ -v ] [ file-or-URL ]
hxtabletrans reads an HTML or XHTML file (or fragment), finds the first <table> element and outputs that element with the rows and columns transposed. I.e., rows become columns and columns become rows.
Any grouping of rows with <thead>, <tbody> or <tfoot> is lost. Also, any comments outside the cells are lost.
The following options are supported:
hxtabletrans should check for rows that have fewer cells than the longest row (taking into account the effect of the colspan and rowspan attributes) and create the omitted cells, but it currently doesn't. Tables with rows of unequal length may thus not be transposed correctly.
Nested tables are not transposed.
10 Jul 2011 | 7.x |