[ZPT] Re: [Zope] Using ZPT with options/radio/checkboxes

Chris Withers chrisw at nipltd.com
Mon Aug 11 08:03:08 EDT 2003


Fred L. Drake, Jr. wrote:
> 
> For XML mode, it doesn't make sense to do this since it would prevent
> including '' as an attribute value;

Hence the example I gave...
I thought the empty attribute value was an edge case. I still thinkit 
is, but I have an inkling some people on here may whinge if the default 
handling supports what I see as the more common use case ;-)

> it's not TAL's place to decide
> what attribute values make sense in the particular XML being
> generated.  (If attribute ommission and attribute == '' were
> equivalent, tal:omit-tag='' and i18n:translate='' would suffer!)

How so? They're different commands AFAIK...
OK, maybe i18n: would be a problem, is it evaluated before or after tal?

cheers,

Chris




More information about the ZPT mailing list