in reply to Separation of content and code

Maybe you can generate XML with you cgis and filter the output with some XSLT filters... this work great =)
Take a look at XML::Sablotron for process details.
____________________
Hope this helps