buffalob wrote: > > One possible approach I can think of is perhaps if the RSS 2.0 feed > could bring along a reference to an XSLT stylesheet which converts the > data to HTML then the browser would show it. > > But I don't know what I'd need to chance in TG code to accomplish > that. Anyone have any ideas about that?
In order to link a Atom feed - and probably feeds in other formats as long as they are a subset of XML - with XSL, unfortunately you will have to alter the corresponding templates. E.g., in 'turbogears/feed/atom1_0.kid', add this as new second line: <?xml-stylesheet type="text/xsl" href="/static/xsl/my.xsl"?> (In RSS, you will have to add a first line as follows as well [1]: <?xml version="1.0"?> ) Or, overwrite some methods of FeedController. Just copy lines such as 55 in 'turbogears/feed/feed.py'. (fc = FeedController(); fc.atom1_0 = tg.expose...) (I believe TG would benefit from having the FeedController and its templates being shipped already altered for supporting XSL as parameter.) -- W-Mark Kubacki
smime.p7s
Description: S/MIME Cryptographic Signature

