Hi,

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

> -----Original Message-----
> From: Pier Fumagalli [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 03, 2003 3:03 PM
<snip/>
> 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.

<snip/>
> 
> 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/[EMAIL PROTECTED]/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...

Best,
-Rob

<snip/>


>     Pier
> 


Reply via email to