Hi,

I'm trying to add an RSS feed to some simple blog software I've written, 
and I'm having trouble implementing the <content:encoded> tag. 
Specifically, I'm trying to include a raw <![CDATA[...]]> section in my 
XML document.

I've tried putting the CDATA in the template file, and it appears to be 
stripped out by Kid (which didn't surprise me all that much), and I've 
also tried putting it in a template variable and interpolating it using 
XML. This also appeared to strip out the CDATA declaration, and 
converted all the <'s to &lt;'s instead.

I had a hunt around and found a bug report about using CDATA with kid 
(http://www.kid-templating.org/trac/ticket/99) but the comments there 
seemed to indicate there was no need to include a CDATA section at all - 
if that's the case, can anybody suggest an alternate way to implement 
<content:encoded> tags?

In case it's relevant, my template is a complete XML document, and I'm 
rendering it with template.serialize(output="xml").

Any advice would be gratefully received!

Thanks,

     - Andy

PS - I've been very impressed with Kid so far, definitely the most 
convenient templating system I've tried for quite some time. Many thanks 
to everyone involved!

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
kid-template-discuss mailing list
kid-template-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kid-template-discuss

Reply via email to