I've worked seven years with Cocoon and one of the weakness I had found in this valid web developing framework is linked to the steep learning curve associated with the xslt language.
What I have discovered is that you can use XSLT in a very simple way:
- Hiding the complexity of the xsl:template and the xsl:apply-templates concepts
- Reducing the verbosity of the stylesheet (no more xsl:stylesheet tag required)
- Giving meaning to the xsl:for-each and xsl:value-of (that using the xsl:template method are mostly useless)
So is a question of simple against powerful and I don't want to suggest to anyone what to choose because:
- Each situation may have different ideal solutions
- Probably the right approach is incremental
When what you have to do is complex and you want to do it in a nice and synthetic form you can approach the traditional way of writing xslt stylesheets.
I write this article because over the years I've seen articles and post on templating with xslt and Cocoon and they were done in a complex way:
- Style-free XSLT Style Sheets Is one of the most famous
- Templating with Cocoon
I didn't for sure and it surprised me a lot. I wouldn't swear they did... What do you think??