This script uses changing colspan attribute for generation of table with dynamic column count depending on input data.