Earlier I talked about my vision. In that application there are pages like "More", "About" they are rendered from markup files(more.xml, about.xml, ..) found here. They are following markup.dtd rules. Surely you can create documents on fly and work on DOM.
Note that it is svn-branch, the trunk is always containing the updated features.
And there are application-switches making it possible to interact with user. Here are the responsible code doing the magic.
The markup is not rich in features. It was good to follow an existing markup rule. I am hoping to do that in future. And I am keeping eye on w3.org for that.