RSS1.0
今日は冷たい雨が降りました。
RSSにはさまざまな規格があるそうですね。
今後,スタンダードになり得るものでも,
- RSS1.0
- RSS2.0
- ATOM1.0
があるそうです。
RSS2.0とRSS1.0は系統が別。アクラニムとしても異なる。
素人が考えるに,どれにしても更新情報が書かれたXMLなんだから,
早くどれかに決めてよ
って思いました。
以下RSS1.0のサンプル
<?xml version="1.0" encoding="Shift-JIS" ?> <?xml-stylesheet type="text/xsl" href="RSS10.xsl"?> <rdf:RDF xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xml:lang="ja"> <channel rdf:about="RSSファイル(.xml)のURL"> <title>WebSiteのタイトル</title> <link>WebSiteのURL</link> <description> サイト全体についてのコメント </description> <items> <rdf:Seq> <rdf:li rdf:resource="WebSite内,紹介したいページ1のURL"/> <rdf:li rdf:resource="WebSite内,紹介したいページ2のURL"/> </rdf:Seq> </items> <image rdf:resource="./RSS10Sample.gif"/> </channel> <item rdf:about="WebSite内,紹介したいページ1のURL"> <title>紹介したいページ1のタイトル</title> <link>WebSite内,紹介したいページ1のURL</link> <description> 紹介したいページ1についてのコメント </description> </item> <item rdf:about="WebSite内,紹介したいページ2のURL"> <title>紹介したいページ2のタイトル</title> <link>WebSite内,紹介したいページ2のURL"</link> <description> 紹介したいページ2についてのコメント </description> </item> <image rdf:about="./RSS10Sample.gif"> <title>WebSiteの画像のタイトル</title> <link>WebSiteのURL</link> <url>./RSS10Sample.gif</url> </image> </rdf:RDF>
このXMLを見栄え良く表示できるxslも作りました。
link