cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ulrich Mayring <u...@denic.de>
Subject Re: Site Design Issues
Date Tue, 28 Nov 2000 17:35:15 GMT
Maximilian Rehm wrote:
> 
> 2)  How many stylesheets does one typically have for one site.

<clever>
As few as possible and as many as necessary.
</clever>

Do it like you do your OO-Designs. What occurs on all pages? Put it in a
central stylesheet. What occurs on all pages in a directory? Put it in a
stylesheet for that directory and xsl:include or xsl:import the central
stylesheet. What occurs on only one page? Put it in a stylesheet of its
own and include the directory stylesheet.

The same goes for XSP. Make a central taglib that is used by all your
pages (navigation bars etc.). Make a directory taglib that is used by
all pages in that directory. And don't make a lone taglib for just one
page, put that stuff in <xsp:logic> sections, it just ain't worth it ;-)

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

Mime
View raw message