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

Geir Bækholt lists at elvix.com
Fri Aug 8 18:28:03 EDT 2003


On  Fri, 8 Aug 2003 15:28:38 +0100 GMT (..16:28 where i live(GMT+2) )
Fergal Daly asked the ZPT mailinglist about the following:
  
> This just came up recently on the Petal list. The spec

> http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/AppendixC.stx#3-38

> says delete the attribute when the expression evaluates to "nothing", moreover 
> the spec

> http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/AppendixC.stx#3-3

> says that "nothing" is not a string the empty string should not delete 
> attributes and so it should be possible to produce

> <myTag needsToBeHere=""/>

I have just tested, and can confirm that when the content type is
text/xml, it does indeed produce <myTag needsToBeHere=""/> when the
expression evaulates to an empty string, and removes the attribute if
it evaulates to nothing.

So, everything acts as expected and by the spec as far as i can see
:)

--
Geir Bækholt




More information about the ZPT mailing list