I have a deep object content tree that I transform into a XML using JAXB and a small self written API on top.
But now I want to create a static HTML site that has basically the same content (and structure) as the XML, but with tables, parts that can be collapsed, images and so on.
How can I approach this?
- Using XSLT seems a bit "redundant" since it depends heavily on the XML and if the XML changes the XSLT will have to change as well.
- Some kind of template engine is over the top because I only need one static site.
- Building the HTML with a simple library like j2html hardcoding the structure and small methods for elements that are repeating.
I'm currently in favor of the last option simply because it seems the easiest and fastest way, but I'm worried that I'm shooting myself in the foot with it down the road.