Re: [Zope-dev] ZPT and 'else'

2002-05-13 Thread Marc Lindahl
on 5/10/02 1:18 PM, Jeffrey P Shell at [EMAIL PROTECTED] scrivened: Still, yuck. It's - for better or worse - not a valid XML way. Even XSLT does things like this: snip Well that makes this look palatable: You would at the very least need something like: condition if.../if

Re: [Zope-dev] ZPT and 'else'

2002-05-10 Thread Chris Withers
Tim Hoffman wrote: The big problem with the whole 'else' issue as I see it, is that non coders, using dreamweaver etc.. would no doubt end up with both bit's of html in their template. But that's exactly what you want! hey can then see what would happen in either case and will probabyl

Re: [Zope-dev] ZPT and 'else'

2002-05-10 Thread Marc Lindahl
on 5/10/02 12:47 AM, Jeffrey P Shell at [EMAIL PROTECTED] scrivened: You would need something to close off the 'if' statement, otherwise, a document full of 'if' statements and no 'else' ones could fill up a stack needlessly. What's so bad about that? The stack wouldn't carry over after

Re: [Zope-dev] ZPT and 'else'

2002-05-10 Thread Marc Lindahl
on 5/9/02 11:58 PM, Tim Hoffman at [EMAIL PROTECTED] scrivened: The big problem with the whole 'else' issue as I see it, is that non coders, using dreamweaver etc.. would no doubt end up with both bit's of html in their template. Don't you have that now with the kludgey 'not' construct?

Re: [Zope-dev] ZPT and 'else'

2002-05-10 Thread Jeffrey P Shell
On 5/10/02 9:25 AM, Marc Lindahl [EMAIL PROTECTED] wrote: on 5/10/02 12:47 AM, Jeffrey P Shell at [EMAIL PROTECTED] scrivened: You would need something to close off the 'if' statement, otherwise, a document full of 'if' statements and no 'else' ones could fill up a stack needlessly.

[Zope-dev] ZPT and 'else'

2002-05-09 Thread Jeffrey P Shell
On 5/9/02 7:07 PM, Tim Hoffman [EMAIL PROTECTED] wrote: Just my 2c worth, but I would like to defend order of execution of ZPT. What it does mean for me is I can guaruntee zpt commands will always be processed in a known order irrespective of where you put them in a tag, this I like ;-) Me

Re: [Zope-dev] ZPT and 'else'

2002-05-09 Thread Marc Lindahl
Yecch! Why not: if ... True stuff /if else False stuff /else If leaves around boolean result, else picks up the most recent one... It's like they push on a stack so you can nest them Something like that? on 5/9/02 11:10 PM, Jeffrey P Shell at [EMAIL PROTECTED] scrivened: 'else' is

Re: [Zope-dev] ZPT and 'else'

2002-05-09 Thread Tim Hoffman
The big problem with the whole 'else' issue as I see it, is that non coders, using dreamweaver etc.. would no doubt end up with both bit's of html in their template. T On Fri, 2002-05-10 at 11:39, Marc Lindahl wrote: Yecch! Why not: if ... True stuff /if else False stuff /else If

Re: [Zope-dev] ZPT and 'else'

2002-05-09 Thread Jeffrey P Shell
On 5/9/02 9:39 PM, Marc Lindahl [EMAIL PROTECTED] wrote: Yecch! Why not: if ... True stuff /if else False stuff /else If leaves around boolean result, else picks up the most recent one... It's like they push on a stack so you can nest them Something like that? You would need