A sub-classed DTMLDocument which has the ability to render itself via an XSLT stylesheet.
Both the nXMLDocument and the XSLT can have DTML in there to build up their contents.
This gives a very flexible way of creating the XML on the fly. You can build them from DB calls for instance.