I hate MICROSOFT

私が憎んでいるマイクロソフト社製品の便利小技集
悪い事は言わない、今すぐMS社製品をアンインストールしなさい

I hate MS-IE 7.0 Beta2 RSS feed 対応

2006-05-09 21:11:48 | I hate MS-IE
マイ・ホームページ
I hate MS-IE 7.0 Beta2 の RSS feed 検出に対応する。

まずは、index.htmlと同階層に rss.xmlを作成。
私はテキストエディタでがりがり書く。


<?xml version="1.0" ?>
<rss version="2.0">
<channel>
    <title>digital西行庵</title>
    <link>http://www.saigyo.org/</link>
    <description>saigyo database</description>
    <language>ja-JP</language>
    <copyright>Copyright 2000-2006, digital西行庵
</copyright>
    <managingEditor>***@saigyo.org ( Hiroaki Nitobe
)</managingEditor>
    <webMaster>***@saigyo.org ( Hiroaki Nitobe
)</webMaster>
    <pubDate>Mon, 24 Apr 2006 09:00
+0900</pubDate>
    <lastBuildDate>Mon, 24 Apr 2006 09:00
+0900</lastBuildDate>
    <generator>EmEditor Standard Ver.5.00 手入力
</generator>
<item>
    <title>仏説観普賢菩薩行法経</title>
    <link>http://www.saigyo.org/cgi-bin/cr.rb.cgi?fuge
n-txt</link>
    <description>仏説観普賢菩薩行法経 如是我聞一時仏
在</description>
    <guid>http://www.saigyo.org/cgi-bin/cr.rb.cgi?fuke
n-txt</guid>
    <pubDate>Sat, 6 May 2006 16:20
+0900</pubDate>
</item>
<item>
    <title>無量義経</title>
    <link>http://www.saigyo.org/cgi-bin/cr.rb.cgi?mury
ogi-txt</link>
    <description>無量義経 徳行品第一 如是我聞一時仏
在王舍城</description>
    <guid>http://www.saigyo.org/cgi-bin/cr.rb.cgi?mury
ogi-txt</guid>
    <pubDate>Wed, 3 May 2006 13:20
+0900</pubDate>
</item>
</channel>
</rss>


んでもって、index.htmlの head エレメントに link エレメントを追加する。
これもテキストエディタでがりがり書く。

<head>
    <TITLE>digital西行庵</TITLE>
    なんたらかんたら
    <META HTTP-EQUIV="Content-type" CONTENT="text/html;
charset=Shift_JIS">
    なんたらかんたら

    <link rel="alternate" type="application/rss+xml"
title="digital西行庵" href=http://www.saigyo.org/rss.xml>

</head>

なんちゃってRSSの出来上がり。
おらおらI hate MS-IE7.0でfeedの自動検出してくれるでしょう。


最新の画像もっと見る

コメントを投稿