No concrete solution to this at present. We did start designing features along these lines for one of our projects, but it never got to the implementation stage.
Consider whether it is possible and worthwhile to create a generic data structure which is used as the target for your database query and source for your create document.
To make manipulation of the contents of this generic data structure easier, consider using a combination of Get Model (to find out which elements make up the data structure), Get Element and Set Element.
For best results, use the Firefox browser..