[RT] MVC Contexts (Was Re: [Design] JXTG 2.0 (generator and transformer, same template syntax?))

2004-12-08 Thread Roy G. Biv
This one is long folks. Sorry, can't be helped. Sylvain Wallez wrote: Stefano Mazzocchi wrote: Sure, but the question is: once the syntax starts to get ugly for both because of changes we made to the language that make sense only on transformation and not on generation, would it still be the

Re: [Design] JXTG 2.0 (generator and transformer, same template syntax?)

2004-12-07 Thread Bertrand Delacretaz
Le 7 déc. 04, à 00:41, Stefano Mazzocchi a écrit : Bertrand Delacretaz wrote: ... -oo- Advantages: A1) There's only one implementation of the template and expression evaluation mechanisms. Ok A2) Bob can ask Alice for help with the templates, she knows them in and out as that's what she's using

Re: [Design] JXTG 2.0 (generator and transformer, same template syntax?)

2004-12-07 Thread Sylvain Wallez
Stefano Mazzocchi wrote: Bertrand Delacretaz wrote: snip/ D4) Bob was initially confused about this generator/transformer thing, why both? Alice told him not to worry, generators are not his business anyway, he's only a Cocoon Transformer Template Designer (but a good one after only four weeks

Re: [Design] JXTG 2.0 (generator and transformer, same template syntax?)

2004-12-07 Thread Roy G. Biv
I'm almost afraid to bring this up since I'm coming from a point of view where I actually like XSLT. Yes, I'm one of *those* people. ;-) But when I saw this: Bertrand Delacretaz wrote: Then, Bob, who's in charge of the final presentation, writes another template to convert this logical

Re: [Design] JXTG 2.0 (generator and transformer, same template syntax?)

2004-12-07 Thread Stefano Mazzocchi
Roy G. Biv wrote: I'm almost afraid to bring this up since I'm coming from a point of view where I actually like XSLT. Yes, I'm one of *those* people. ;-) But when I saw this: Bertrand Delacretaz wrote: Then, Bob, who's in charge of the final presentation, writes another template to convert

Re: [Design] JXTG 2.0 (generator and transformer, same template syntax?)

2004-12-06 Thread Daniel Fagerstrom
Bertrand Delacretaz wrote: ... Advantages: ... I agree with your motivation. I would also like to add that when we have introduced a separate formating layer and enforced side effect free templates, the conceptual difference between transforming XML input in a transformer and reading from, e.g.

Re: [Design] JXTG 2.0 (generator and transformer, same template syntax?)

2004-12-06 Thread Bertrand Delacretaz
Le 6 déc. 04, à 10:10, Daniel Fagerstrom a écrit : big-snip cause=fully agree/ ...BTW: I'm becoming more and more worried about the attribute template sytax that you used in your examples ;) I hope the syntax in my examples is so bad that people just dismiss it and focus on the rest of the story

Re: [Design] JXTG 2.0 (generator and transformer, same template syntax?)

2004-12-06 Thread Stefano Mazzocchi
Bertrand Delacretaz wrote: Le 5 déc. 04, à 06:14, Stefano Mazzocchi a écrit : Bertrand Delacretaz wrote: ...That's what I mean - having a transformer that can use the same template syntax as used in the generator, so that the template language can be used for both the generation and

Re: [Design] JXTG 2.0 (generator and transformer, same template syntax?)

2004-12-05 Thread Bertrand Delacretaz
Le 5 déc. 04, à 06:14, Stefano Mazzocchi a écrit : Bertrand Delacretaz wrote: ...That's what I mean - having a transformer that can use the same template syntax as used in the generator, so that the template language can be used for both the generation and transformation steps. My FS detector