Check out the FormattedDataSet at
www.fdsapi.com (one of my open source projects). It can create dynamic text (html, xml, and more) from tabular data (ResultSets, arrays and more). You can point the same data at different formatting templates. The API comes with a few default templates (xml, html table and a few others), and you can easily create more.
Here is how the code would work:
It is simple and fast. There is a live demo at the sight that creates dynamic content. If you have any questions let me know.
[ January 30, 2006: Message edited by: steve souza ]