Cocoon proposes a pyramid model for website development, which has four roles:
Cocoon tries to explicitly remove the need for a contract between Logic and Style. The others are all linked.
The pyramid structure drives some of the design decisions. For example the Cocoon Processing Instructions, and the W3C XML Stylesheet PI were both discarded because they mix content and style, i.e. the style is referred to from the content even if it's not explicitly styled. These associations are now made through the Sitemap.
Logic is developed in Cocoon using Logicsheets. These are XSP.