Pushing the envelope [dive into mark]
Let's try pushing the envelope of what HTML is actually designed to do, before we get all hot and bothered trying to replace it, mmmkay?
Abso-glorious-loutely. That's why Traumtanks's p'tal uses HTML and not XML as basic form of storage. All I need to turn HTML into a flexible template markup-language is a few attributes in a new namespace <code ptal:content="$source"></code>
And the way Mark does that, not even any new namespaces are needed.