RSS creation using Page Templates - can't use link?
Hi, I'm trying to make a simple RSS feed using Page Templates. <div tal:omit-tag="" tal:repeat="rec python:here.objectValues(['Folder'])"> <item tal:condition="exists:rec/this_is_news"> <guid isPermaLink="false" tal:content="rec/getId">423455</guid> <link tal:content="rec/absolute_url"></link> </item> </div> The moment I add in the link tag above, it gives an error: Compilation failed TAL.HTMLTALParser.EmptyTagError: Close tag </link> should be removed, at line 12, column 42 I can name that tag as, say url and all works. Any thoughts? Zope Version (Zope 2.6.0 (binary release, python 2.1, win32-x86), python 2.1.3, win32) Python Version 2.1.3 (#35, Apr 8 2002, 17:47:50) [MSC 32 bit (Intel)] System Platform win32 Thanks in advance - Vattekkat S Babu http://vsbabu.org/
Satheesh Babu wrote:
I'm trying to make a simple RSS feed using Page Templates. <div tal:omit-tag="" tal:repeat="rec python:here.objectValues(['Folder'])"> <item tal:condition="exists:rec/this_is_news"> <guid isPermaLink="false" tal:content="rec/getId">423455</guid> <link tal:content="rec/absolute_url"></link> </item> </div>
The moment I add in the link tag above, it gives an error: Compilation failed TAL.HTMLTALParser.EmptyTagError: Close tag </link> should be removed, at line 12, column 42
link is a valid (empty) html-element. you may use <link tal:content="rec/absolute_url" /> or change your content/type to text/xml -- michael
participants (2)
-
Michael Haubenwallner -
Satheesh Babu