You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Uli Mayring <ul...@denic.de> on 2000/09/01 22:45:57 UTC

RE: clean-page model (was: 64K Limit)

On Fri, 1 Sep 2000, Ed Staub wrote:

> What's the "clean-page" model?  Does it mean scrupulously pushing logic
> back
> into taglibs?

No, that would be the taglib-model. Look at the clean-page.xml and
lib-page.xml in the xsp samples. Basically, they look like this:

clean-page:
<myfunctionality/>

lib-page:
<mytaglib:myfunctionality/>


I am not entirely sure which model is "better" or if that perhaps depends
on the scenario. The main difference is that the clean pages are pure XML,
whereas the lib pages are always XSP pages. So the lib-page model mixes
logic and content like in ASP or ColdFusion - but at least you have the
source (i.e. you write your own taglibs). The clean-page model is pure
content, functionality comes into it in its stylesheet, which can generate
a dynamic XSP page.

Now, the difference may be esoteric in the real world. After all, when you
look at the above examples it seems the only difference is in syntax. But
there are some subtle consequences stemming from the use of either model.

Ulrich

-- 
Ulrich Mayring
DENIC eG, Softwareentwicklung