![]() |
mardi 14 décembre 2004 |
Christian Stocker and ZPT/XSLT cross-breedingThere's been some talk about Zope 3 and pipelines, XML rendering, XSLT, etc. Richard Volpato emailed me some links that show some interesting cross-breeding between XSLT. Specifically, Christian Stocker from Bitflux (a PHP-based CMS) has a "port" of ZPT to XSLT:This article discusses the activity in different places (Bitflux, Cocoon) for a simplified templating system that still uses modern, high-speed XSLT engines. Specifically, Christian has some working examples (1, 2). This is a working example:
...that is executed using an XSLT processor. Doesn't look like XSLT. [wink] Christian includes some extensions that optionally tap into XSLT-oriented functions (tal:match, tal:include).
The competing proposal from the Cocoon folks is similar in spirit to ZPT, but quite different in implementation. Instead of namespaced attributes for substitution, it uses brackets containing expressions. Hard to tell what would look more natural to a web designer. |