I played with the above but didn't really like it.
I have flat files and you have to go tweak the XML for that.
I'll whip something up using PDF backgrounds and Perl - no big deal.