[PHPTAL] RSS Feed <link> attribute
Nick Pack
nick at carbidefinger.net
Tue Feb 26 10:26:05 CET 2008
I've built a template/associated code for generating an RSS feed from a
recordset, im having some trouble with the link attribute and I wondered
if anyone could shed some light on a workaround.
In my template I have tried both:
<link><span tal:content="article/articlelink"
tal:omit-tag="">http://www.carbidefinger.net/</span></link
<http://www.carbidefinger.net/%3c/span%3e%3c/link> >
<link
tal:content="article/articlelink">http://www.carbidefinger.net</link
<http://www.carbidefinger.net%3c/link> >
Both methods result in the following output after the template is parsed
(The dataset definitely contains article/articelink as the same function
is used with a different template for xhtml output):
<link/>
For an RSS feed to be valid, it must have both <link> and </link> so
using tal:attributes is a no go.
Does anyone have a workaround for this? Or am I better off coding
something else to build the RSS structure?
The project is heavily based on PHPTAL so it would be nice to use it for
everywhere that repeatable regions are needed.
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/phptal/attachments/20080226/462644b6/attachment.htm
More information about the PHPTAL
mailing list