[Zope] rss compliant blog

Martijn Pieters mj at zope.com
Fri Oct 31 12:09:47 EST 2003

On Thu, Oct 30, 2003 at 04:49:42PM -0500, Katie Legere wrote:
> Oops, sorry, I thought I'd cc'd the list.
> The file I ran through the validator was the xml file (entries xml  - below)
> The file I'm pointing to in my xml document is the one I want to aggregate
> 	<?xml version="1.0" encoding="ISO-8859-1" ?>
> 	 <rss version="2.0">
>  	<channel>
>  	  <title>KFPL on Zope</title>
>  	  <link></link>
> 	   <description>Kingston Frontenac Public Library Site</description>
>   	 <language>en-us</language>
>  	 <image>
>  	   <title>homepic.JPG</title>
>  	   <url></url>
>  	   <link></link>
>  	   <width>60</width>
>  	   <height>43</height>
>  	 </image>
> 	<dtml-in expr="objectValues('DTML Document')"
> sort="bobobase_modification_time" reverse>
> 	<item>
>  	 <title> Central Blog </title>
>  	 <link> </link>
>  	 <description><dtml-var document_src html_quote>  Submitted by:
>  	 <dtml-var staff_name html_quote null="Anonymous"> on:
>  	 <dtml-var bobobase_modification_time fmt=aCommon>
> 	</description>
> 	</item>
> 	</dtml-in>
> 	</channel>
> 	 </rss>
> I *thought* that I would be validating the xml file for rss compliance...
> Do I put the 'destination file' ( ) in
> the validator?

Again, this code snippet includes the uninterpreted DTML code; RSS
validators do not know what to do with it. This is where ZPT has it's
strengths; ZPT code is embedded as namespaced attributes, and most, if not
all, RSS parsers (including validators) will skip over the ZPT instructions.

Not so for DTML though. You XML code contains DTML instructions ('<dtml-in
...>), which is not considered valid RSS. Once Zope has processed the DTML
it'll output valid RSS (or so we hope). That *output* should be fed to a RSS

Martijn Pieters
| Software Engineer  mailto:mj at zope.com
| Zope Corporation   http://www.zope.com/
| Creators of Zope   http://www.zope.org/

More information about the Zope mailing list