[Zope] Getting an Error that I don't understand

Dieter Maurer dieter at handshake.de
Wed Apr 28 19:55:24 EDT 2004


Laura McCord wrote at 2004-4-28 10:53 -0500:
>Could someone tell me what this means and what is the resolution.
>
>Compilation failed
>TAL.TALDefs.TALError: empty HTML tags cannot use tal:content: 'input',
>at line 7, column 1
>
>I tried googling it but couldn't find an explaination or resolution.

Carefully reading the error message and applying common sense
will give you the explanation:

  An "empty HTML" element is (by definition) empty and therefore
  cannot have content. Examples of empty elements are
  "br", "image", "link".

  "tal:content" defines the content of an element.

  Consequence: "tal:content" is of no value for empty elements
  (it would create invalid HTML, unless the value were empty).
  ZPT, therefore, does not allow it (the error your observed).

Resolution: maybe you should use "tal:replace" instead of "tal:content"?
However, as you do not tell us, what you want to achieve, many
other resolutions are imaginable...

-- 
Dieter



More information about the Zope mailing list