If I may add a shameless plug to my humble selfwritten programm w3make...
It takes a tree of XML documents pushes them through an XSLT engine (currently saxon) and yields a whole site of html pages, can copy things around and call more shell commands. Of course it has it's flaws but it comes close to what I feel like maintaining a small- oder midscale site
It is my expression of what I felt about all the systems I looked at when it was -once again- time to relaunch the website of my employer: none of them fitted my visions.
I wrote this small because it is one of those shameless plugs...
you begin bashing the string with a +42 regexp of confusion