Re: [RT] Attribute Driven Templates

2004-12-08 Thread Daniel Fagerstrom
Sylvain Wallez wrote: Daniel Fagerstrom wrote: snip/ When I started working on a attribute template language (ATL) proposal, it was obvious to me that it should be attribute name driven. So why did I end up proposing a content driven one? While the attribute driven is atractive for very simple

Re: [RT] Attribute Driven Templates (Was: [RT] do me a favor, don't call them taglibs)

2004-12-07 Thread Leszek Gawron
Vadim Gritsenko wrote: for(var=name,begin=expr,end=expr,step=expr) --- Is it necessary? Current jxtg does not have it (IIRC). it does. -- Leszek Gawron [EMAIL PROTECTED] Project Manager

[Templates] Summary and Voting aspects (was: [RT] Attribute Driven Templates)

2004-12-07 Thread Daniel Fagerstrom
Vadim Gritsenko wrote: Daniel Fagerstrom wrote: Just a reminder; before you guys start implementing one or another template language, could we have [VOTE] for one of the variants, have [PROPOSAL], or at least [SUMMARY]? :) We are discussing several tasks: 1) Refactoring of JXTG so that that

Re: [RT] Attribute Driven Templates

2004-12-07 Thread Daniel Fagerstrom
Vadim Gritsenko wrote: Daniel Fagerstrom wrote: snip what=thing discussed in another mail/ Here, I just want to comment that I find way more intuitive and user friendly following constructs: if(test) -- example: div do=if(count(cart/item) == 0) div t:if=cart/item and div

Re: [RT] Attribute Driven Templates

2004-12-07 Thread Sylvain Wallez
Daniel Fagerstrom wrote: snip/ When I started working on a attribute template language (ATL) proposal, it was obvious to me that it should be attribute name driven. So why did I end up proposing a content driven one? While the attribute driven is atractive for very simple examples it IMO very

Re: [Templates] Summary and Voting aspects (was: [RT] Attribute Driven Templates)

2004-12-07 Thread Glen Ezkovich
On Dec 7, 2004, at 4:18 AM, Daniel Fagerstrom wrote: Refactoring JXTG I think everything starts here. Once this gets refactored the opportunities for further development should become apparent. There is nothing terribly wrong with JXTG, except that it is a monolithic class with

Re: [RT] Attribute Driven Templates

2004-12-07 Thread Leszek Gawron
Daniel Fagerstrom wrote: Leszek Gawron wrote: Daniel Fagerstrom wrote: Leszek Gawron wrote: snip/ We also need: - some script compiler directives i.e. for cache control (as in JXTG) Seem reasonable, sugest some mechanism. ignore do=processingInstruction( 'cache-key', $cacheKey )/ if we want the

Re: [RT] Attribute Driven Templates

2004-12-07 Thread Leszek Gawron
Leszek Gawron wrote: Daniel Fagerstrom wrote: Leszek Gawron wrote: Daniel Fagerstrom wrote: Leszek Gawron wrote: snip/ We also need: - some script compiler directives i.e. for cache control (as in JXTG) Seem reasonable, sugest some mechanism. ignore do=processingInstruction( 'cache-key',

RE: [RT] Attribute Driven Templates

2004-12-07 Thread Conal Tuohy
Le 7 déc. 04, à 18:54, Sylvain Wallez a écrit : ...(hearing Stefano coming behind me, ready to shout FS!!! in my ears...) Nahh...his detector exploded yesterday, don't worry. ...Now going back to the annotated-HTML-to-XSL compiler that we (Anyware) wrote many years ago, it allows

Re: [RT] Attribute Driven Templates (Was: [RT] do me a favor, don't call them taglibs)

2004-12-06 Thread Vadim Gritsenko
Daniel Fagerstrom wrote: Just a reminder; before you guys start implementing one or another template language, could we have [VOTE] for one of the variants, have [PROPOSAL], or at least [SUMMARY]? :) Here, I just want to comment that I find way more intuitive and user friendly following

Re: [RT] Attribute Driven Templates

2004-12-05 Thread Reinhard Poetz
Stefano Mazzocchi wrote: Daniel Fagerstrom wrote: I like this idea very much. It would be a shame if the quirks of Dreamweaver should force everyone to use an awkward syntax. The attribute driven synatax is new to me so I don't know if I find it awkward or not, I'll need to see some larger

Re: [RT] Attribute Driven Templates

2004-12-05 Thread Leszek Gawron
Reinhard Poetz wrote: But the Dreamweaver usecase is a valid one (It was me who started a discussion about this in May after attenting a Tapestry seminar at a conference) and so we should support it. Now, having them cohexist in the page smells like FS, though ;-) Can't agree more. What would

Re: [RT] Attribute Driven Templates (Was: [RT] do me a favor, don't call them taglibs)

2004-12-05 Thread Leszek Gawron
Roy G. Biv wrote: Any prohibition on (non-HTML) namespaced tags would imply to me that arbitrary namespaced attributes would be a no-no in Dreamweaver as well. Stefano, as I haven't ever used Dreamweaver for more than ten minutes, is this limitation a rendering issue or data entry issue? I

Re: [RT] Attribute Driven Templates

2004-12-05 Thread Reinhard Poetz
Leszek Gawron wrote: Reinhard Poetz wrote: But the Dreamweaver usecase is a valid one (It was me who started a discussion about this in May after attenting a Tapestry seminar at a conference) and so we should support it. Now, having them cohexist in the page smells like FS, though ;-) Can't

Re: [RT] Attribute Driven Templates

2004-12-05 Thread Leszek Gawron
Reinhard Poetz wrote: Leszek Gawron wrote: Reinhard Poetz wrote: But the Dreamweaver usecase is a valid one (It was me who started a discussion about this in May after attenting a Tapestry seminar at a conference) and so we should support it. Now, having them cohexist in the page smells like

Re: [RT] Attribute Driven Templates

2004-12-05 Thread Reinhard Poetz
Leszek Gawron wrote: Reinhard Poetz wrote: Leszek Gawron wrote: Reinhard Poetz wrote: But the Dreamweaver usecase is a valid one (It was me who started a discussion about this in May after attenting a Tapestry seminar at a conference) and so we should support it. Now, having them cohexist in

Re: [RT] Attribute Driven Templates

2004-12-05 Thread Leszek Gawron
Daniel Fagerstrom wrote: Leszek Gawron wrote: Daniel Fagerstrom wrote: macro(name,param-name,...,param-name) --- example: table do=macro(mytable,list,td-class) tr do=forEach($list) td class=${$class}${item}/td /tr /table We also need an evalBody as

Re: [RT] Attribute Driven Templates

2004-12-05 Thread Daniel Fagerstrom
Stefano Mazzocchi wrote: Daniel Fagerstrom wrote: I like this idea very much. It would be a shame if the quirks of Dreamweaver should force everyone to use an awkward syntax. The attribute driven synatax is new to me so I don't know if I find it awkward or not, I'll need to see some larger

Re: [RT] Attribute Driven Templates

2004-12-05 Thread Daniel Fagerstrom
Leszek Gawron wrote: Daniel Fagerstrom wrote: Leszek Gawron wrote: snip/ We also need: - some script compiler directives i.e. for cache control (as in JXTG) Seem reasonable, sugest some mechanism. ignore do=processingInstruction( 'cache-key', $cacheKey )/ if we want the directive to remove

Re: [RT] Attribute Driven Templates

2004-12-05 Thread Glen Ezkovich
On Dec 5, 2004, at 8:04 AM, Leszek Gawron wrote: Fine by me. The only concern is the performance here. Macro would have to be played, output recorded and after that omitTag invoked. I'd rather do it otherwise. As is usually, my advice is that unless you know what the performance hit will be in

Re: [RT] Attribute Driven Templates

2004-12-05 Thread Glen Ezkovich
On Dec 5, 2004, at 10:02 AM, Daniel Fagerstrom wrote: Your alarm might have been desensitized by our continuos stream of FS ;) Actually it would be boring if you were easy to predict. I really think that it makes sense to have two different syntaxes, one that uses elements and another one that

Re: [RT] Attribute Driven Templates

2004-12-05 Thread Stefano Mazzocchi
Leszek Gawron wrote: Reinhard Poetz wrote: But the Dreamweaver usecase is a valid one (It was me who started a discussion about this in May after attenting a Tapestry seminar at a conference) and so we should support it. Now, having them cohexist in the page smells like FS, though ;-) Can't

Re: [RT] Attribute Driven Templates

2004-12-05 Thread Stefano Mazzocchi
Daniel Fagerstrom wrote: Stefano Mazzocchi wrote: Daniel Fagerstrom wrote: I like this idea very much. It would be a shame if the quirks of Dreamweaver should force everyone to use an awkward syntax. The attribute driven synatax is new to me so I don't know if I find it awkward or not, I'll need

Re: [RT] Attribute Driven Templates

2004-12-05 Thread Stefano Mazzocchi
Glen Ezkovich wrote: On Dec 5, 2004, at 10:02 AM, Daniel Fagerstrom wrote: Your alarm might have been desensitized by our continuos stream of FS ;) Actually it would be boring if you were easy to predict. I really think that it makes sense to have two different syntaxes, one that uses elements

Re: [RT] Attribute Driven Templates

2004-12-05 Thread Glen Ezkovich
On Dec 5, 2004, at 11:59 AM, Stefano Mazzocchi wrote: Glen Ezkovich wrote: On Dec 5, 2004, at 10:02 AM, Daniel Fagerstrom wrote: Your alarm might have been desensitized by our continuos stream of FS ;) Actually it would be boring if you were easy to predict. I really think that it makes sense to

[RT] Attribute Driven Templates (Was: [RT] do me a favor, don't call them taglibs)

2004-12-04 Thread Daniel Fagerstrom
Stefano Mazzocchi wrote: All I ask from a template language: 1) something that HTML designers can edit with Dreamweaver 2) something that doesn't use namespaced tags to identify dynamic scopes (clashes with #1) 3) something that doesn't use the name taglib That's pretty much all you have to

Re: [RT] Attribute Driven Templates (Was: [RT] do me a favor, don't call them taglibs)

2004-12-04 Thread Jonas Ekstedt
On Sat, 4 Dec 2004, Daniel Fagerstrom wrote: snip... if(test) -- example: div do=if(count(cart/item) == 0) Your cart is empty div How would you implement choose/when? snip... Several directives -- So, how do we handle multiple directives for one

Re: [RT] Attribute Driven Templates (Was: [RT] do me a favor, don't call them taglibs)

2004-12-04 Thread Leszek Gawron
Daniel Fagerstrom wrote: macro(name,param-name,...,param-name) --- example: table do=macro(mytable,list,td-class) tr do=forEach($list) td class=${$class}${item}/td /tr /table We also need an evalBody as in JXTG. And maybe we should have a possibilty

Re: [RT] Attribute Driven Templates (Was: [RT] do me a favor, don't call them taglibs)

2004-12-04 Thread Leszek Gawron
Jonas Ekstedt wrote: Several directives -- So, how do we handle multiple directives for one element? We could handle the TAL example above like: p do=let(x=/a/long/path/from/the/root;if(x);content(x/txt);attributes(class=x/class) Ex Text /p Isn't there a risk that attribute

Re: [RT] Attribute Driven Templates

2004-12-04 Thread Daniel Fagerstrom
Leszek Gawron wrote: Daniel Fagerstrom wrote: macro(name,param-name,...,param-name) --- example: table do=macro(mytable,list,td-class) tr do=forEach($list) td class=${$class}${item}/td /tr /table We also need an evalBody as in JXTG. And maybe we

Re: [RT] Attribute Driven Templates (Was: [RT] do me a favor, don't call them taglibs)

2004-12-04 Thread Roy G. Biv
Daniel Fagerstrom wrote: Stefano Mazzocchi wrote: All I ask from a template language: 1) something that HTML designers can edit with Dreamweaver 2) something that doesn't use namespaced tags to identify dynamic scopes (clashes with #1) 3) something that doesn't use the name taglib That's

Re: [RT] Attribute Driven Templates (Was: [RT] do me a favor, don't call them taglibs)

2004-12-04 Thread Roy G. Biv
Roy G. Biv wrote: 2. Namespaced tag or attribute: may not be compatible with Dreamweaver (strikes me as a serious limitation that needs to be addressed by the Dreamweaver developers IMHO), but can guarantee well-formedness. Nevermind. Forget I said this. Dreamweaver supports namespaced

Re: [RT] Attribute Driven Templates

2004-12-04 Thread Daniel Fagerstrom
Roy G. Biv wrote: Daniel Fagerstrom wrote: snip/ I as well. In addition, I think that the optimum template language would be as close to the appearance of the output document as possible. (Yet another reason I don't personally care for explicit forEach, if and chose elements; they make it

Re: [RT] Attribute Driven Templates

2004-12-04 Thread Stefano Mazzocchi
Daniel Fagerstrom wrote: I like this idea very much. It would be a shame if the quirks of Dreamweaver should force everyone to use an awkward syntax. The attribute driven synatax is new to me so I don't know if I find it awkward or not, I'll need to see some larger examples. Anyway, we have a

Re: [RT] Attribute Driven Templates

2004-12-04 Thread Stefano Mazzocchi
Daniel Fagerstrom wrote: Stefano's focus seem to be on HTML. For the record: my focus is on having a template language for cocoon that is as powerful as XSP but avoids all the problems. Also, I think that XHTML markup offers the best possible usecase of how that template language should work.

Re: [RT] Attribute Driven Templates

2004-12-04 Thread Roy G. Biv
Stefano Mazzocchi wrote: For the record: my focus is on having a template language for cocoon that is as powerful as XSP but avoids all the problems. Is that realistic? I can see logicsheets, but XSP was arbitrary Java code. I find it hard to believe that *anything* will be as

Re: [RT] Attribute Driven Templates

2004-12-04 Thread Stefano Mazzocchi
Roy G. Biv wrote: Stefano Mazzocchi wrote: For the record: my focus is on having a template language for cocoon that is as powerful as XSP but avoids all the problems. Is that realistic? I can see logicsheets, but XSP was arbitrary Java code. I find it hard to believe that *anything* will be

Re: [RT] Attribute Driven Templates

2004-12-04 Thread Glen Ezkovich
On Dec 4, 2004, at 11:40 PM, Stefano Mazzocchi wrote: Daniel Fagerstrom wrote: Stefano's focus seem to be on HTML. For the record: my focus is on having a template language for cocoon that is as powerful as XSP but avoids all the problems. Then it won't be as powerful ;-) The power is not needed.