找到你要的答案

Q:How to apply styles to .rss files or Atom feed files

Q:如何将样式应用于RSS文件或Atom feed文件。

I created an atom feed for my website.

test.rss is my file. I also created a test.xsl file for my feed. But it's not working.

If I change test.rss to test.xml then it works. Is there is any option to apply styles to Atom feed with a .rss extenstion.

我为我的网站创建了一个Atom提要。

test.rss是我的文件。我也创造了我的饲料test.xsl文件。但它不工作。

如果我改变test.rss到test.xml然后。是有选择应用样式与饲料原子RSS扩展。

answer1: 回答1:

Use the .htaccess file to associate .rss with text/xml:

AddType text/xml .rss

References

使用.htaccess文件关联的文本或XML,RSS:

AddType text/xml .rss

工具书类

php  xslt  rss  feed  atom