It depends on what the primary source of your data is. If it is primarily XML I would use a servlet which does XSL transformations of the data.
If most of your data is not XML I would use JSP/JSTL and use the custom JSP tags to invoke styling XML using an external XSL stylesheet. I have done both. Its the same old answer, pick the best tool that fits the needs of your specific application and skill sets of your development team. Regards, Glenn Mazza, Glen R., ,CPMS wrote:
Hello,
For my web app I would like to have two different output formats for certain
requests: PDF and HTML. I've already done PDF (via FOP) but would like to
know the best way in generating HTML.
For example, given this document:
<person>
<name>
<firstName>...</firstName>
<lastName>...</lastName>
</name>
<address>...</address>
...
</person>
I see two possibilities:
1) Create an XSL stylesheet and run Xalan on the server to generate the
HTML.
2) Use the JSTL XML tags within a JSP to place the document elements.
I'm guessing (1) is faster, but (2) is more maintainable...I'm wondering
what the experiences of others on this list have been.
Thanks,
Glen
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
