I'm using REXX on a PC to convert a tab delimited table to HTML. The REXX code identifies rows, cells and columns that vary in location from one table to the next but which require rotation, bold highlighting, and either light blue, light gray or no filler. All of this is working, but the size of the tables could be reduced if there is a way to indicate a count of duplicate <td></td>
entries in a given row.
The output has predefined XML code which defines an Excel sheet and is followed by the table. The table is two-dimensional. By this I mean the top row lists attributes and the left column lists entities which may have some, but not necessarily all, of the attributes. At the intersection of an attribute column and entity row the cell may contain one of several values, including a space. Some rows may be 50 or more cells long and contain a value only in the 48th column.
In this example, when I build that row, I have 50 combinations of <td></td>
. In the case of empty columns from 2 through 47 I need to repeat that empty <td></td>
46 times to assure the cell with a value is shown under the correct attribute. Some tables may have 10,000 rows.
Does HTML have a repeat counter? Perhaps something like this:
<r c=46><td></td></r>
where <r
indicates a need to repeat and must contain "c=" for the repeat count of <td></td>
and of course a closing </r>
.
A repeat counter would reduce load and transmit time as well as the size of the HTML file.