Saw your thread on cocoon-dev. Have you ever checked out TAL [1] from the Zope project? It makes things a *lot* easier for page designers - they just add attributes to where the dynamic output goes, and their design can contain mock-ups of what it should look like. Works nicely with round-trip edits. We're going to add support for it in the next release of AxKit (there's a perl module that does TAL). The only downside is that the current implementation outputs a string rather than SAX/DOM, but I'm pretty sure I can fix that.
Anyway, just thought I'd mention it in case you hadn't seen it before.
[1] http://www.zope.org/Wikis/DevSite/Projects/ZPT/TAL
Thanks Matt, no, I didn't know about TAL and it's definately worth reading.
round-trip-friendly templating is definately a good thing and worth keep in mind.
Thanks for the headup.
Stefano.