I don't know what the input to your program looks like, I don't know anything about the output that you want except that it must contain a "combobox" (but that's not a concept I recognize in HTML), and you've shown me an XSLT file without telling me what it does or whether it works. Oh, and you mumbled something about JSP without explaining its relevance. And you haven't found the shift key on your keyboard.
Sometimes I just despair of this forum.
This kind of code is really bad:
<xsl:text disable-output-escaping="yes">
</TABLE>
</DIV>
</xsl:text>
It's the way beginners typically try to do grouping when they haven't understood the concept that XSLT is generating a result tree, not a chunk of text. The right way is along these lines:
<xsl:for-each select="input-element[position() mod 5 = 1]">
<div>
<table>
<xsl:apply-templates select=".|following-sibling::input-element[position() < 5]"/>
</table>
</div>
</xsl:for-each>
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference