How to display Atom/RSS feeds in browser with custom XSLT?

前端 未结 3 955
梦谈多话
梦谈多话 2021-01-06 16:43

Back in about 2006, I wrote a nice XSLT that transformed my RSS feeds into custom HTML. That way if a user clicked from a browser it would display as a simple page rather th

3条回答
  •  天涯浪人
    2021-01-06 17:27

    Chrome appears to only apply the XSLT processing instruction if the Content-Type for the feed response is set to XML, not Atom.

    This displays XSLT in Chrome:

    Content-Type: application/xml
    

    This does not display any styling (which is technically the more correct type):

    Content-Type: application/atom+xml
    

提交回复
热议问题