« Sugakiya duex 角煮ラーメン | トップページ | 4文字熟語(違) »
2006.05.01
TypePad 1.6 純正の Atom 1.0
3月28日メンテナンスに伴いココログベーシック/プラス/プロのATOMバージョンが0.3から1.0へと上がりました。
うわ、事前予告なしで、Atom 1.0 になっていたんですね。2006年3月28日以前に生成(変換)したココログプロの上級テンプレートの Atom Template は 0.3 のままなので、1.0 にしたい場合は、自力でやるしかありません。あるいは、新しいテンプレートを用意して、上級テンプレートに変換し、生成された Atom Template を、従来のテンプレートセットに持ってくることになります。
当「観測気球」では以前から、Atom 1.0 のテンプレートを自前で用意して配信する実験をしていましたが、ココログが正式に Atom 1.0 のテンプレートを吐くようになったということで、取り込んでみることにしました。そのまま使えるようならそのまま使うし、あるいは、そのまま全部は使わずに、めぼしいところだけでも今の自前テンプレートに取り込もうという方針。
自前の Atom 1.0 テンプレート
今まで使っていた Atom 1.0 テンプレートは、以下の通り。
<?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="<$MTBlogLanguage ietf="1"$>"> <title type="text"><$MTBlogName remove_html="1" encode_xml="1"$></title> <subtitle type="text"><$MTBlogDescription remove_html="1" encode_xml="1"$></subtitle> <id>tag:cocolog-nifty.com,2003:weblog-<$MTBlogID$></id> <link rel="alternate" type="application/xhtml+xml" href="<$MTBlogURL$>" /> <link rel="self" type="application/atom+xml" href="<$MTBlogURL$>index.atom" /> <author> <MTEntries lastn="1"><name><$MTEntryAuthor encode_xml="1"$></name></MTEntries> </author> <rights><MTEntries lastn="1">Copyright (c) <$MTEntryDate format="%Y"$>, tsupo</MTEntries></rights> <generator uri="http://www.typepad.com/" version="<$MTVersion$>">TypePad</generator> <updated><MTEntries lastn="1"><$MTEntryDateModified timezone="UTC" format_name="W3CDTF"$></MTEntries></updated> <MTEntries lastn="15"> <entry> <title type="text"><$MTEntryTitle remove_html="1" encode_xml="1"$></title> <summary type="text" xml:lang="<$MTBlogLanguage ietf="1"$>"><$MTEntryExcerpt encode_xml="1"$></summary> <content type="html" xml:lang="<$MTBlogLanguage ietf="1"$>"><$MTEntryBody encode_xml="1"$><$MTEntryMore encode_xml="1"$></content> <category term="/<MTEntryCategories glue="/"><MTCategoryID></MTEntryCategories>" scheme="<$MTBlogURL$>archives/" label="<MTEntryCategories glue="/"><$MTCategoryLabel encode_xml="1"$></MTEntryCategories>" /> <id>tag:cocolog-nifty.com,<$MTEntryDate timezone="UTC" format="%Y"$>:post-<$MTEntryID$></id> <link rel="alternate" href="<$MTEntryPermalink encode_xml="1"$>" type="application/xhtml+xml" hreflang="<$MTBlogLanguage ietf="1"$>" /> <published><$MTEntryDate timezone="UTC" format_name="W3CDTF"$></published> <updated><$MTEntryDateModified timezone="UTC" format_name="W3CDTF"$></updated> </entry></MTEntries> </feed>
ココログ(TypePad1.6 純正)の Atom 1.0 テンプレート
今回、ココログが吐き出すようになった Atom 1.0 テンプレートは、以下の通り。
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title><$MTBlogName remove_html="1" encode_xml="1"$></title>
<link rel="alternate" type="text/html" href="<$MTBlogURL encode_xml="1"$>" />
<link rel="service.post" type="application/x.atom+xml" href="<$MTCGIPath$>atom/weblog/blog_id=<$MTBlogID$>" title="<$MTBlogName encode_html="1"$>" />
<id>tag:<$MTAtomFeedIDBase$>:weblog-<$MTBlogID$></id>
<updated><MTEntries lastn="1"><$MTEntryDate timezone="UTC" format_name="W3CDTF"$></MTEntries></updated>
<MTBlogIfDescription>
<subtitle><$MTBlogDescription remove_html="1" encode_xml="1"$></subtitle>
</MTBlogIfDescription>
<generator uri="http://www.typepad.com/">TypePad</generator>
<MTEntries>
<entry>
<title><$MTEntryTitle remove_html="1" encode_xml="1"$></title>
<link rel="alternate" type="text/html" href="<$MTEntryPermalink encode_xml="1"$>" />
<link rel="service.edit" type="application/x.atom+xml" href="<$MTCGIPath$>atom/weblog/blog_id=<$MTBlogID$>/entry_id=<$MTEntryID$>" title="<$MTEntryTitle encode_html="1"$>" />
<id>tag:<$MTAtomFeedIDBase$>:post-<$MTEntryID$></id>
<published><$MTEntryDate format_name="W3CDTF"$></published>
<updated><$MTEntryDateModified timezone="UTC" format_name="W3CDTF"$></updated>
<summary><$MTEntryExcerpt remove_html="1" encode_xml="1"$></summary>
<author>
<name><$MTEntryAuthor encode_xml="1"$></name>
</author>
<MTEntryCategories>
<category term="<$MTCategoryLabel encode_xml="1"$>" />
</MTEntryCategories>
<MTWeblogOwnerHas field="feeds_full_content">
<MTWeblogIfFullRSSContent>
<$MTEntryAtomContent$>
</MTWeblogIfFullRSSContent>
</MTWeblogOwnerHas>
</entry>
</MTEntries>
</feed>
「観測気球」の新しい Atom 1.0 テンプレート
そんなこんなで、Atom 1.0 テンプレートを以下のようにしてみました。Bloglines や FreshReader では問題なく読めている。livedoor Reader は、テンプレート入れ替え前から Atom をちゃんと拾ってくれてないという現象が起きていまして、最終更新 442ヶ月前 とかあり得ない表示になります。今回、Atom 1.0 テンプレートを入れ替えても、症状が変わらず。ですので、livedoor で当 blog の feed を購読する場合は、Atom じゃなくて RSS の方を購読してください。
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title><$MTBlogName remove_html="1" encode_xml="1"$></title>
<link rel="alternate" type="text/html" href="<$MTBlogURL encode_xml="1"$>" />
<link rel="service.post" type="application/x.atom+xml" href="<$MTCGIPath$>atom/weblog/blog_id=<$MTBlogID$>" title="<$MTBlogName encode_html="1"$>" />
<id>tag:<$MTAtomFeedIDBase$>:weblog-<$MTBlogID$></id>
<updated><MTEntries lastn="1"><$MTEntryDate timezone="UTC" format_name="W3CDTF"$></MTEntries></updated>
<MTBlogIfDescription>
<subtitle><$MTBlogDescription remove_html="1" encode_xml="1"$></subtitle>
</MTBlogIfDescription>
<rights><MTEntries lastn="1">Copyright (c) <$MTEntryDate format="%Y"$>, tsupo</MTEntries></rights>
<generator uri="http://www.typepad.com/">TypePad</generator>
<MTEntries lastn="15">
<entry>
<title><$MTEntryTitle remove_html="1" encode_xml="1"$></title>
<link rel="alternate" type="text/html" href="<$MTEntryPermalink encode_xml="1"$>" />
<link rel="service.edit" type="application/x.atom+xml" href="<$MTCGIPath$>atom/weblog/blog_id=<$MTBlogID$>/entry_id=<$MTEntryID$>" title="<$MTEntryTitle encode_html="1"$>" />
<id>tag:app.cocolog-nifty.com,<$MTEntryDate timezone="UTC" format="%Y"$>:post-<$MTEntryID$></id>
<published><$MTEntryDate timezone="UTC" format_name="W3CDTF"$></published>
<updated><$MTEntryDateModified timezone="UTC" format_name="W3CDTF"$></updated>
<summary><$MTEntryExcerpt remove_html="1" encode_xml="1"$></summary>
<author>
<name><$MTEntryAuthor encode_xml="1"$></name>
</author>
<MTEntryCategories>
<category term="<$MTCategoryLabel encode_xml="1"$>" />
</MTEntryCategories>
<MTWeblogOwnerHas field="feeds_full_content">
<MTWeblogIfFullRSSContent>
<$MTEntryAtomContent$>
</MTWeblogIfFullRSSContent>
</MTWeblogOwnerHas>
</entry>
</MTEntries>
</feed>
ちなみに
<rights><MTEntries lastn="1">Copyright (c) <$MTEntryDate format="%Y"$>, <$MTEntryAuthor encode_xml="1"$></MTEntries></rights>
ではなく、
<rights><MTEntries lastn="1">Copyright (c) <$MTEntryDate format="%Y"$>, tsupo</MTEntries></rights>
のように tsupo と直書き(ハードコーディング)しているのは、この blog はときどき BlogPet が投稿するので、こうしないと BlogPet の投稿直後しばらくの間は「Copyright (c) BlogPet の名前」という風になってしまうからです。(笑)
関連記事
- TypePad 1.5 用 Atom 1.0 テンプレート (試作)
- Atom 0.3 から Atom 1.0 への移行
- 「観測気球」のRSS/Atomフィードを一本化しました
- ココログが TypePad 1.6 ベースに移行したのに伴って当方が実施した措置
投稿者: tsupo 2006.05.01 午後 06:35
| 固定リンク
|
|
| ![]()
|
|
アマゾンわくわく探検隊
トラックバック
この記事のトラックバックURL:
この記事へのトラックバック一覧です: TypePad 1.6 純正の Atom 1.0:
» livedoor Reader の「442ヶ月」問題 from 観測気球
Atom 1.0 なフィードを livedoor Reader で購読すると、「最終更新日」が442ヶ月前と表示され、新着記事が全く読めない件について。 続きを読む



