Another choice would be to transfer data in xml and establish XSL based on (insert your list of variables here) to be implmented on the server or the browser (YMMV). This would allow the data to be in some generic form, and display functionality determined by content.