[ZDP] BackTalk to Document The Zope Book (2.6 Edition)/Appendix C: Zope Page Templates Reference

webmaster at zope.org webmaster at zope.org
Fri Jan 16 08:41:37 EST 2004


A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/AppendixC.stx#3-39

---------------

      If the expression associated with an attribute assignment evaluates
      to *nothing*, then that attribute is deleted from the statement
      element.  If the expression evaluates to *default*, then that
      attribute is left unchanged.  Each attribute assignment is
      independent, so attributes may be assigned in the same statement in
      which some attributes are deleted and others are left alone.

        % Anonymous User - Dec. 19, 2003 12:58 pm:
         This seems to contradict the Order of Operations, above, where it says that attribution takes place after
         replacement. That way seems better than ignoring the attribution altogether.

        % Anonymous User - Jan. 16, 2004 8:41 am:
         Performing attribution after replacement wouldn't make any sense; tal:replace completely replaces the
         element, where would the attribute changes be made then?



More information about the ZDP mailing list