Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google chrome 将XSLT与Atom提要关联,以便在Chrome中呈现_Google Chrome_Xslt_Stylesheet_Atom Feed_Xsl Stylesheet - Fatal编程技术网

Google chrome 将XSLT与Atom提要关联,以便在Chrome中呈现

Google chrome 将XSLT与Atom提要关联,以便在Chrome中呈现,google-chrome,xslt,stylesheet,atom-feed,xsl-stylesheet,Google Chrome,Xslt,Stylesheet,Atom Feed,Xsl Stylesheet,我正在使用以下标题生成ATOM提要: <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="/atom2html.xsl"?> <feed xmlns="http://www.w3.org/2005/Atom"> 我认为这在Chrome中是有用的——访问URL显示了Atom提要的HTML呈现。然而,在过去几个月的某个时候(我认为),Chrome对Atom

我正在使用以下标题生成ATOM提要:

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/atom2html.xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom">

我认为这在Chrome中是有用的——访问URL显示了Atom提要的HTML呈现。然而,在过去几个月的某个时候(我认为),Chrome对Atom提要的处理发生了变化,因此如果不安装“提要意图查看器”之类的插件,你就看不到内容


是否仍然可以像这样使用XSLT转换Atom提要,以便在Chrome上呈现?我需要做什么?(或者我对过去的工作原理的假设是错误的?

这可能不是你的问题,但请注意,Chrome不会运行驻留在本地存储上的转换。是的,在这种情况下,这不是,但值得注意。你能提供一个示例输入XML文档,你的atom2html.xsl样式表,还有你正在使用的Chrome版本。我想你的问题已经在这里得到了回答:所以它可以归结为你的提要文档的MIME类型。将其更改为application/xml,您应该会做得很好。