#from xml.sax.saxutils import escape #from urlparse import urljoin #from template import dehtml, bodyOrEncoded, iso8601 #set $soap = not ('noSoap' in $parent and $parent.noSoap) #set $rdf = ('addRdf' in $parent and $parent.addRdf) Content-Type: application/xml; charset=utf-8 #def namespaces() xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/"#slurp #end def #if $soap #if $rdf #else #end if #else #if $rdf #else #end if #end if $parent.title #if $parent.link $urljoin($channel.link,$parent.link) #end if $dehtml($parent.description) $bodyOrEncoded($parent.description) $iso8601($parent.mtime) #if $rdf #end if #if $soap #end if