Getting an Error that I don't understand
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. Thanks, Laura
This is easy in Plone (in /portal_properties/site_properties): can it be done in bare Zope, and if so how? Thanks -- Mark Barratt
Mark Barratt wrote:
This is easy in Plone (in /portal_properties/site_properties): can it be done in bare Zope, and if so how?
Place at top level of your virtual server folder DTML method that contain single line: <dtml-var "_['index.html']"> Regards, -- Jaroslav Luke -- Tento e-mail nemu*e obsahovat VIRY jeliko nepocházi z virózního systému M$ Windows!
Jaroslav Lukesh wrote:
Mark Barratt wrote:
This is easy in Plone (in /portal_properties/site_properties): can it be done in bare Zope, and if so how?
Place at top level of your virtual server folder DTML method that contain single line:
<dtml-var "_['index.html']">
Thanks Does the method have to have a particular name? -- Mark Barratt
Mark Barratt wrote:
Jaroslav Lukesh wrote:
Mark Barratt wrote:
This is easy in Plone (in /portal_properties/site_properties): can it be done in bare Zope, and if so how?
Place at top level of your virtual server folder DTML method that contain single line:
<dtml-var "_['index.html']">
Thanks
Does the method have to have a particular name?
Yes of course, sorry: index_html Regards, -- Jaroslav Luke -- Tento e-mail nemu*e obsahovat VIRY jeliko nepocházi z virózního systému M$ Windows!
Jaroslav Lukesh wrote:
Place at top level of your virtual server folder DTML method that contain single line:
<dtml-var "_['index.html']">
Does the method have to have a particular name?
Yes of course, sorry: index_html
It should be the other way: DTML-Medthod Id: 'index.html' <dtml-var index_html> :) Tonico
Tonico Strasser wrote:
Jaroslav Lukesh wrote:
Place at top level of your virtual server folder DTML method that contain single line:
<dtml-var "_['index.html']">
Does the method have to have a particular name?
Yes of course, sorry: index_html
It should be the other way: ^^^^^^ Sorry, it /could/ be the other way.
Tonico
Laura McCord wrote:
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
The error message is pretty clear. You used thomething like: <input tal:content="whatever" /> With tal:content you can modify the content between the start and end tag. <b tal:content="string:hello world">dummy content</b> will render: <b>hello world</b> But <input></input> is no valid XHTML ... Andreas Heckel http://www.easyleading.org
I'm only guessing - an empty html tag would be somthing like a <br> or <hr>. Putting a tal:content within such a tag doesn't make any sense, becuase these tags don't surround content. If this doesn't help, post the source of the page template that's producing this error. Mark Laura McCord wrote:
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.
Thanks, Laura
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
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
participants (7)
-
Andreas Heckel -
Dieter Maurer -
Jaroslav Lukesh -
Laura McCord -
Mark Barratt -
Mark Gibson -
Tonico Strasser