cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Koberg" <>
Subject RE: [RT] the quest for the perfect template language
Date Fri, 04 Apr 2003 00:33:48 GMT

I going to snip alot because I wholeheartedly agree with most everything you

> -----Original Message-----
> From: Pier Fumagalli []
> Sent: Thursday, April 03, 2003 3:03 PM
> Again, my graphic team knows only HTML, they don't want to think about how
> the data is organized in the back, they could care less (as I could care
> less about their CSSes).

This is where I think developers make a big mistake (caring less about CSS).
As demonstrated by Stefano with his thumbnail XSLT, lack of thinking about
the larger picture in the 'design-space' makes things much more difficult. I
would bet that many cocooners could get rid of a great deal of their XSLT
line-count/complexity if they truly understood how XSLT co-exists with CSS.

You're right that designers won't be able to do it. That is why you have to
do it. They give you a Photoshop mockup and you take it from there.

> I could write something like:
> <HTML template:article="source:/article">
>   <HEAD>
>      <TITLE>{article:title}</TITLE>
>    </HEAD>
>    <BODY>
>      <H1>{article:title}</H1>
>      <P tmpl:author="{cocoon:/data/authors/{@author}}/author">
>        Author:
>        <A href="mailto:{author:email}">{author:name}</A>
>      </P>
>      {article:body}
>      <DL>
>        <DT>Other top news from us</DT>
>        <template:foreach context="topnews:/related/articleref">
>          <DL>
>            <A href="/news/{context:@id}">{context:title}</A>
>          </DL>
>        </template:foreach>
>    </BODY>
> </HTML>

This looks like a very simple XSLT, using the document function...



>     Pier

View raw message