(s/<source>/<syntaxhighlight>/)
(292 intermediate revisions by 64 users not shown)
Line 1:
Line 1:
(削除) = (削除ここまで)hAtom (削除) = (削除ここまで)
(追記) {{DISPLAYTITLE: (追記ここまで)hAtom (追記) 0.1}} (追記ここまで)
(追記) {{latest|h-entry}} (追記ここまで)
(追記) {{Template:DraftSpecification}} (追記ここまで)
hAtom is a microformat for content that can be syndicated, primarily but not exclusively weblog postings. hAtom is (削除) a strongly (削除ここまで)based on a subset of the [http://www.atomenabled.org/ Atom] syndication format(削除) ; every concept in (削除ここまで)hAtom (削除) has a corresponding definition in Atom (削除ここまで).
hAtom is a microformat for content that can be syndicated, primarily but not exclusively weblog postings. hAtom is based on a subset of the [http://www.atomenabled.org/ Atom] syndication format(追記) . (追記ここまで)hAtom (追記) will be one of several [[microformats]] open standards (追記ここまで).
(追記) == Draft Specification == (追記ここまで)
(削除) This microformat is a draft (削除ここまで); (削除) please address your concerns (削除ここまで), (削除) issues, comments, etc (削除ここまで). (削除) in [[hatom-issues (削除ここまで)](削除) ]. (削除ここまで)
(追記) <div class="vcard"> (追記ここまで)
;(追記) <span class="role">Editor/Author</span> (追記ここまで)
(追記) :<span class="fn">[http://blogmatrix.blogmatrix.com/ David Janes]</span> <span class="org">([http://www.blogmatrix.com BlogMatrix (追記ここまで), (追記) Inc (追記ここまで).](追記) )</span> (追記ここまで)
(削除) __TOC__ (削除ここまで)
(追記) ;Contributors (追記ここまで)
(追記) :<span class="vcard"><span class="fn">[http://members.optusnet.com.au/benjamincarlyle/benjamin/blog/ Benjamin Carlyle]</span></span> (追記ここまで)
(追記) :<span class="vcard"><span class="fn">[[User:Tantek|Tantek Çelik]]</span> (<span class="url">http://tantek.com/</span> and before at [http://technorati.com Technorati, Inc.])</span> (追記ここまで)
(削除) == Draft Specification == (削除ここまで)
(追記) [[hatom#Copyright|copyright]] and [[hatom#Patents|patents]] statements apply. (追記ここまで)
==(削除) = Editor = (削除ここまで)==
== (追記) Status (追記ここまで)==
(削除) * (削除ここまで)[(削除) http://blogmatrix (削除ここまで).(削除) blogmatrix (削除ここまで).(削除) com/ David Janes] (削除ここまで), [http://(削除) www (削除ここまで).(削除) blogmatrix.com BlogMatrix, Inc (削除ここまで).(削除) ] (削除ここまで)
(追記) hAtom 0.1 is a microformats.org draft specification. Public discussion on hAtom takes place on [[hatom-feedback]], the #microformats (追記ここまで)[(追記) [irc]] channel on irc (追記ここまで).(追記) freenode (追記ここまで).(追記) net (追記ここまで), (追記) and (追記ここまで)[http://(追記) microformats (追記ここまで).(追記) org/discuss/mail/microformats-discuss/ microformats-discuss mailing list] (追記ここまで).
=== (削除) Authors (削除ここまで)===
=== (追記) Available languages (追記ここまで)===
(削除) * (削除ここまで)[(削除) http://blogmatrix.blogmatrix.com/ David Janes (削除ここまで)](削除) , [http://www.blogmatrix (削除ここまで).(削除) com BlogMatrix, Inc] (削除ここまで)
(追記) The English version of this specification is the only normative version. For translations of this document see the [ (追記ここまで)[(追記) #translations] (追記ここまで)] (追記) section (追記ここまで).
=== (削除) Copyright (削除ここまで)===
=== (追記) Errata and Updates (追記ここまで)===
(削除) {{MicroFormatCopyrightStatement2005}} (削除ここまで)
(追記) Known errors and issues in this specification are corrected in [[hatom-issues-resolved|resolved]] and [[hatom-issues-closed|closed]] issues. Please check there before reporting [[hatom-issues|issues]]. (追記ここまで)
(削除) === Patents === (削除ここまで)
(追記) The hAtom 0.2 update is currently under development and incorporates known errata corrections as well as the [[value-class-pattern]]. (追記ここまで)
(削除) {{MicroFormatPatentStatement}} (削除ここまで)
== Introduction ==
== Introduction ==
(追記) hAtom is a [[microformat]] for identifying semantic information in weblog posts and practically any other place [http://www.atomenabled.org/ Atom] may be used, such as news articles. hAtom content is easily added to most blogs by simple modifications to the blog's template definitions. (追記ここまで)
(追記) {{rfc-2119-intro}} (追記ここまで)
== (削除) Semantic XHTML Design Principles (削除ここまで)==
== (追記) Example (追記ここまで)==
(削除) {{semantic (削除ここまで)-(削除) xhtml (削除ここまで)-(削除) design (削除ここまで)-(削除) principles}} (削除ここまで)
(追記) Here is a simple blog post example: (追記ここまで)
(追記) <syntaxhighlight lang="html"> (追記ここまで)
(追記) <article class="hentry"> (追記ここまで)
(追記) <h1 class="entry-title">Microformats are amazing</h1> (追記ここまで)
(追記) <p>Published by <span class="author vcard"><span class="fn">W. Developer</span></span> (追記ここまで)
(追記) on <time class="published" datetime="2013年06月13日 12:00:00">13<sup>th</sup> June 2013</time></p> (追記ここまで)
(追記) <p class="entry-summary">In which I extoll the virtues of using microformats.</p> (追記ここまで)
(追記) <div class="entry-content"> (追記ここまで)
(追記) <p>Blah blah blah</p> (追記ここまで)
(追記) </syntaxhighlight> (追記ここまで)
(追記) === Get started === (追記ここまで)
(追記) The class '''<code>hentry</code>''' is a ''root class name'' that indicates the presence of an hAtom entry. (追記ここまで)
(追記) '''<code>entry (追記ここまで)-(追記) title</code>''', '''<code>author</code>''', '''<code>published</code>''', '''<code>entry (追記ここまで)-(追記) summary</code>''', '''<code>entry (追記ここまで)-(追記) content</code>''' and the other hAtom property classnames listed below define properties of the entry. (追記ここまで)
== Format ==
== Format ==
Line 30:
Line 60:
The [http://atomenabled.org/developers/syndication/#person Atom Syndication Format] provides the conceptual basis for this microformat, with the following caveats:
The [http://atomenabled.org/developers/syndication/#person Atom Syndication Format] provides the conceptual basis for this microformat, with the following caveats:
* Atom provides a lot more functionality (削除) that (削除ここまで)we need for a "blog post" microformat, so we've taken the minimal number of elements needed(削除) . This can (and probably should) be expanded (削除ここまで).
* Atom provides a lot more functionality (追記) than (追記ここまで)we need for a "blog post" microformat, so we've taken the minimal number of elements needed.
* the "logical" model of hAtom is that of Atom. If there is a conflict, Atom should be taken as correct.
* the "logical" model of hAtom is that of Atom. If there is a conflict, Atom should be taken as correct.
* the "physical" model of hAtom -- the actual writing of elements -- is a lot more varied than Atom provides for, due to the variety of ways weblogs are actually produced in the wild. The hAtom microformat provides a number of rules for "(削除) briding (削除ここまで)the gap"
* the "physical" model of hAtom -- the actual writing of elements -- is a lot more varied than Atom provides for, due to the variety of ways weblogs are actually produced in the wild. The hAtom microformat provides a number of rules for "(追記) bridging (追記ここまで)the gap"
(削除) :: ''for example, if an entry is missing an author (required by Atom), it is assumed to be that of the XHTML page'' (削除ここまで)
=== Schema ===
=== Schema ===
Schema elements are based on the Atom nomenclature and follow the microformat pattern of prefixing a unique identifier (in this case, <code>(削除) atom (削除ここまで)</code>) on the outermost container elements -- the Feed or Entry. The parts of this microformat are based on analysis of many weblog, bulletin board and media posts and can be read [[blog-post-brainstorming#Discovered_Elements]](削除) . Note the renaming of 'EntryGroup' to 'Feed' to be more consistent with Atom ternminology (削除ここまで).
Schema elements are based on the Atom nomenclature and follow the microformat pattern of prefixing a unique identifier (in this case, (追記) ' (追記ここまで)<code>(追記) h (追記ここまで)</code>(追記) ' (追記ここまで)) on the outermost container elements -- the Feed or Entry. The parts of this microformat are based on analysis of many weblog, bulletin board and media posts and can be read [[blog-post-brainstorming#Discovered_Elements]].
(削除) ==== Nomenclature ==== (削除ここまで)
(追記) The hAtom schema consists of the following: (追記ここまで)
(削除) {| width="100%" border="1" cellspacing="0" (削除ここまで)
(追記) * hfeed (''' (追記ここまで)<code>(追記) hfeed (追記ここまで)</code>(追記) '''). optional. (追記ここまで)
(削除) |- (削除ここまで)
(追記) ** ''' (追記ここまで)<code>feed (追記) category (追記ここまで)</code>''(追記) '. optional (追記ここまで). (追記) keywords or phrases, using ' (追記ここまで)''(追記) [[rel (追記ここまで)-(追記) tag]]'''. (追記ここまで)
(削除) ! width="150" | Concept (削除ここまで)
(追記) ** [[hentry]] (''' (追記ここまで)<code>(追記) hentry (追記ここまで)</code>''(追記) ') (追記ここまで).
(削除) ! Atom Identifier (削除ここまで)
(追記) *** ' (追記ここまで)''<code>entry-(追記) title (追記ここまで)</code>(追記) '''. required. text (追記ここまで).
(削除) ! hAtom Microformat Usage (削除ここまで)
(追記) *** ''' (追記ここまで)<code>(追記) entry (追記ここまで)-(追記) content (追記ここまで)</code>(追記) ''' (追記ここまで). (追記) optional (see field description) (追記ここまで). (追記) text (追記ここまで). (追記) [*] (追記ここまで)
(削除) |- (削除ここまで)
(追記) *** ''' (追記ここまで)<code>(追記) entry- (追記ここまで)summary</code>(追記) ''' (追記ここまで). (追記) optional (追記ここまで). (追記) text (追記ここまで).
(削除) | Feed (削除ここまで)
(追記) *** ''' (追記ここまで)<code>(追記) updated (追記ここまで)</code>(追記) ''' (追記ここまで). (追記) required using (追記ここまで)[[(追記) value (追記ここまで)-(追記) class (追記ここまで)-pattern(追記) #Date_and_time_parsing|value class pattern date and time (追記ここまで)]]. (追記) [*] (追記ここまで)
(削除) | (削除ここまで)<code>(削除) atom:feed (削除ここまで)</code>
(追記) *** ''' (追記ここまで)<code>(追記) published (追記ここまで)</code>(追記) ''' (追記ここまで). (追記) optional using (追記ここまで)[[(追記) value (追記ここまで)-(追記) class (追記ここまで)-pattern(追記) #Date_and_time_parsing|value class pattern date and time (追記ここまで)]].
(削除) | add (削除ここまで)<code>(削除) class=" (削除ここまで)feed(削除) " (削除ここまで)</code>
(追記) *** ''' (追記ここまで)<code>author</code>(追記) ''' (追記ここまで). (追記) required using ''' (追記ここまで)[[hcard|hCard]](追記) ''' (追記ここまで). (追記) [*] (追記ここまで)
(削除) |- (削除ここまで)
(追記) *** ''' (追記ここまで)<code>(追記) bookmark (追記ここまで)</code>(追記) ''' (permalink) (追記ここまで). (追記) optional, using '''[[rel-bookmark]]''' (追記ここまで).
(削除) | Feed Title (削除ここまで)
(追記) *** tags (追記ここまで). (追記) optional (追記ここまで). (追記) keywords or phrases, using ''' (追記ここまで)[[(追記) rel-tag (追記ここまで)]](追記) ''' (追記ここまで).
(削除) | <code>atom:title</code> (削除ここまで)
(削除) | (削除ここまで)''(削除) Not defined in the first iteration of this proposal (削除ここまで).''
(削除) | Feed Permalink (削除ここまで)
(削除) | (削除ここまで)<code>(削除) atom:link@rel=alternate (削除ここまで)</code>
(削除) | (削除ここまで)''(削除) Not defined in the first iteration of this proposal (削除ここまで).''
(削除) | <code>atom:entry</code> (削除ここまで)
(削除) | Add (削除ここまで)<code>(削除) class=" (削除ここまで)entry(削除) "</code>; if practical, also define <code>id="unique (削除ここまで)-(削除) identifier" (削除ここまで)</code> (削除) to the Entry (削除ここまで).
(削除) | Entry Title (削除ここまで)
(削除) | (削除ここまで)<code>(削除) atom:title</code> (削除ここまで)
(削除) | Use <code><h#></code> in block elements; OR non (削除ここまで)-(削除) preferentially add <code>class="title" (削除ここまで)</code> (削除) in inline elements (削除ここまで).
(削除) | Entry Content (削除ここまで)
(削除) | <code>atom:content</code> (削除ここまで)
(削除) | Add <code>class="content"</code> to all appropriate blocks (削除ここまで). (削除) Multiple Entry Content blocks are logically considered one concatenated <code>atom:content</code> equivalent (削除ここまで).
(削除) | Entry Summary (削除ここまで)
(削除) | (削除ここまで)<code>(削除) atom: (削除ここまで)summary</code>
(削除) | Add <code>class="summary"</code> to all appropriate blocks (削除ここまで). (削除) Multiple Entry Summary blocks are logically considered one concatenated <code>atom:summary</code> equivalent (削除ここまで).
(削除) | Entry Permalink (削除ここまで)
(削除) | <code>atom:link</code> (削除ここまで)
(削除) | Add <code>rel="bookmark"</code> (削除ここまで).
(削除) | Entry Published (削除ここまで)
(削除) | (削除ここまで)<code>(削除) atom:published (削除ここまで)</code>
(削除) | Use <code><abbr class="published" title="YYYYMMYYThh:mm:ss±ZZ:ZZ"></code>.. (削除ここまで).(削除) <code></abbr></code>, following the (削除ここまで)[[(削除) datetime (削除ここまで)-(削除) design (削除ここまで)-pattern]].
(削除) | Entry Updated (削除ここまで)
(削除) | (削除ここまで)<code>(削除) atom:updated</code> (削除ここまで)
(削除) | Use <code><abbr class="updated" title="YYYYMMYYThh:mm:ss±ZZ:ZZ"> (削除ここまで)</code>.(削除) ..<code></abbr></code>, following the (削除ここまで)[[(削除) datetime (削除ここまで)-(削除) design (削除ここまで)-pattern]].
(削除) | Entry Author (削除ここまで)
(削除) | (削除ここまで)<code>(削除) atom: (削除ここまで)author</code>
(削除) | Use <code><address></code> (削除ここまで).(削除) ..<code></address></code>. Adding <code>class="author"</code> is optional. Adding a (削除ここまで)[[hcard|hCard]] (削除) is highly recommended (削除ここまで).
(削除) | Entry Contributor (削除ここまで)
(削除) | (削除ここまで)<code>(削除) atom:contibutor</code> (削除ここまで)
(削除) | Use <code><address class="contributor"> (削除ここまで)</code>...(削除) <code></address></code> (削除ここまで). (削除) Adding a (削除ここまで)[[(削除) hcard|hCard (削除ここまで)]] (削除) is highly recommended (削除ここまで).
(削除) ==== Nesting Rules ==== (削除ここまで)
(追記) [*] Some required elements have defaults if missing, see below. (追記ここまで)
(削除) {| width (削除ここまで)=(削除) "100%" border (削除ここまで)=(削除) "1" cellspacing (削除ここまで)=(削除) "0" (削除ここまで)
=== (追記) Field and Element Details === (追記ここまで)
(削除) ! hAtom Opaque (削除ここまで)
(削除) ! Cardinality (削除ここまで)
(削除) ! Logical Cardinality (削除ここまで)
(削除) | HTML document (削除ここまで)
(削除) | Entry Title (削除ここまで)
(削除) | Entry<br />Entry Permalink (削除ここまで)
(削除) | Entry Content (削除ここまで)
(削除) | Entry Summary (削除ここまで)
(削除) | Entry Permalink (削除ここまで)
(削除) | Entry<br />Entry Title<br />Entry Published (削除ここまで)
(削除) | Entry Published (削除ここまで)
(削除) | Entry<br />Entry Permalink (削除ここまで)
(削除) | Entry Updated (削除ここまで)
(削除) | Entry<br />Entry Permalink (削除ここまで)
(削除) | Entry Author (削除ここまで)
(削除) | Entry Contibutor (削除ここまで)
===== (削除) hAtom Opaque (削除ここまで)=====
===== (追記) Feed (追記ここまで)=====
(追記) * a Feed element is identified by the class name <code>hfeed</code> (追記ここまで)
(追記) * a Feed element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.1.1 Atom feed] (追記ここまで)
(追記) * the Feed element is optional and, if missing, is assumed to be the page (追記ここまで)
(追記) * hAtom documents {{may}} have multiple Feed elements (追記ここまで)
(削除) "hAtom Opaque" specifies whether (削除ここまで)a (削除) hAtom parser should "look inside" the (削除ここまで)element (削除) for further hAtom content. If there are multiple rules applied to the same (削除ここまで)element (削除) take (削除ここまで)the (削除) OR (削除ここまで)of (削除) the two (i (削除ここまで).(削除) e (削除ここまで). (削除) "Yes" always wins) (削除ここまで)
(追記) ===== Feed Category ===== (追記ここまで)
(追記) * (追記ここまで)a (追記) Feed Category (追記ここまで)element (追記) is identified by [[rel-tag]] (追記ここまで)
(追記) * a Feed {{may}} have a Feed Category (追記ここまで)
(追記) * a Feed Category (追記ここまで)element (追記) represents (追記ここまで)the (追記) concept (追記ここまで)of (追記) an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.2 Atom category] inside a [http://www (追記ここまで).(追記) atomenabled (追記ここまで).(追記) org/developers/syndication/#optionalFeedElements feed] (追記ここまで)
(追記) * Feed Category elements {{must}} appear inside a Feed element but not inside an Entry element (追記ここまで)
(追記) * the [[rel-tag]] <code>href</code> encodes the atom <code>category:term</code>; the link text defines the atom <code>category:label</code> (追記ここまで)
(削除) : ''hAtom Opaque is designed to make parsing rules less ambiguous. In particular, it allows "quoted" hAtom elements (from another blog being blockquoted, for example) ti be ignored. It also allows 'embedded' hAtom to be potentially delivered within hAtom itself, and to prevent accidental 'leaking' of other microformat information up into the hAtom container.'' (削除ここまで)
===== (追記) Entry (追記ここまで)=====
(追記) * an Entry element is identified by class name <code>hentry</code> (追記ここまで)
===== (削除) Cardinality (削除ここまで)=====
(追記) * (追記ここまで)an (追記) Entry (追記ここまで)element (追記) represents the concept (追記ここまで)of (追記) an [http://www.atomenabled.org/developers/syndication (追記ここまで)/(追記) atom-format-spec.php#rfc.section.4.1 (追記ここまで).(追記) 2 Atom entry] (追記ここまで)
(追記) * any microformat content inside (追記ここまで)a (追記) <code><blockquote>< (追記ここまで)/(追記) code> or <code><q></code> element within (追記ここまで)the (追記) Entry should not be considered part (追記ここまで)of (追記) the Entry (追記ここまで).
(削除) How many times can (削除ここまで)an element of (削除) the given type appear in it's nesting (削除ここまで)/(削除) parent element (削除ここまで).
(追記) : ''This allows quoting other microformated data without worry of corrupting the model'' (追記ここまで)
(削除) ===== Logical Cardinality ===== (削除ここまで)
(削除) From (削除ここまで)a (削除) modeling (削除ここまで)/(削除) logical perspective, (削除ここまで)the (削除) number (削除ここまで)of (削除) times can an element appear (削除ここまで).
(削除) : ''This is all rule dependent, see below. For example, an Entry Permalink may appear 6 times, but each one must be the same value; an Entry Content element may appear 3 times, but they are all concatenated together to make a single logical element.'' (削除ここまで)
===== (追記) Entry Category (追記ここまで)=====
* an (追記) Entry Category (追記ここまで)element is identified by (追記) [[rel-tag]] (追記ここまで)
==== (削除) Rules and Definitions (削除ここまで)=(削除) === (削除ここまで)
(追記) * an Entry {{may}} have an Entry Category (追記ここまで)
(削除) See the [[#Nesting_Rules|Nesting Rules]] section above for placement of these elements. (削除ここまで)
* (追記) an Entry Category (追記ここまで)element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.(追記) 2 (追記ここまで).(追記) 2 Atom category (追記ここまで)] (追記) inside (追記ここまで)an [http://www.atomenabled.org/developers/syndication/#(追記) optionalEntryElements (追記ここまで)entry]
* (追記) the [[rel-tag]] <code>href</code> encodes the atom <code>category (追記ここまで):(追記) term</code>; (追記ここまで)the (追記) link text defines (追記ここまで)the (追記) atom <code>category:label</code> (追記ここまで)
(削除) ===== Feed (削除ここまで)=====
* an (削除) XHTML Feed (削除ここまで)element is identified by (削除) <code>class="feed"</code> (削除ここまで)
* (削除) a Feed (削除ここまで)element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.(削除) 1 (削除ここまで).(削除) 1 atom feed (削除ここまで)]
(削除) : ''In particular, as a container for Entrys.'' (削除ここまで)
(削除) * the Feed element is required, even if there is a single Entry (削除ここまで)
(削除) : ''This is for disambiguation'' (削除ここまで)
(削除) * hAtom documents MAY have multiple, non-nested Feed elements (削除ここまで)
(削除) : ''This may happen on news pages, or weblogs with "mini-blogs" on the sidebar.'' (削除ここまで)
(削除) ===== Entry ===== (削除ここまで)
(削除) * an Entry element is identified by <code>class="entry"</code> (削除ここまで)
(削除) * an Entry element represents the concept of (削除ここまで)an [http://www.atomenabled.org/developers/syndication/(削除) atom-format-spec.php (削除ここまで)#(削除) rfc.section.4.1.2 atom (削除ここまで)entry]
* (削除) a weblog entry MUST be enclosed in a single Entry element (削除ここまで)
: (削除) ''That's what it's for, after all.'' (削除ここまで)
(削除) * an Entry MUST have an enclosing Feed element (削除ここまで)
(削除) * ''This enclosing element can be (削除ここまで)the (削除) same as (削除ここまで)the (削除) Entry -- i.e. class="feed entry" is OK for feeds with a single entry.'' (削除ここまで)
===== Entry Title =====
===== Entry Title =====
* an Entry Title element is identified <code>(削除) <h#></code> in block elements OR non (削除ここまで)-(削除) preferentially <code>class=" (削除ここまで)title(削除) " (削除ここまで)</code> (削除) in inline elements (削除ここまで)
* an Entry Title element is identified (追記) by the class name (追記ここまで)<code>(追記) entry (追記ここまで)-title</code>
* an Entry Title element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.14 (削除) atom (削除ここまで)entry title]
(追記) * an Entry {{should}} have an Entry Title (追記ここまで)
* an Entry Title element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.14 (追記) Atom (追記ここまで)entry title]
(削除) ====== Disambiguation ====== (削除ここまで)
(追記) * if the Entry Title is missing, use (追記ここまで)
(追記) * (追記ここまで)* the first <code><h#></code> element in the Entry(追記) , or (追記ここまで)
* the first (削除) hAtom valid (削除ここまで)<code><h#></code> element (削除) to appear (削除ここまで)in (削除) an hAtom document is (削除ここまで)the Entry (削除) Title (削除ここまで)
*(追記) * (追記ここまで)the <code><(追記) title (追記ここまで)></code> (追記) of the page, if there is no enclosing Feed (追記ここまで)element, (追記) or (追記ここまで)
* (削除) otherwise, (削除ここまで)the (削除) first hAtom valid non- (削除ここまで)<code><(削除) abbr (削除ここまで)></code> element (削除) with a <code>class="title"</code> is the Entry Title (削除ここまで)
*(追記) * assume it (追記ここまで)is the empty string
(削除) : ''hAtom valid meaning somewhere where we expect it (like not inside Entry Content (削除ここまで), (削除) for example).'' (削除ここまで)
* (削除) otherwise, the Entry Title (削除ここまで)is the empty string
(削除) : ''Atom does not allow for an entry not to have a title.'' (削除ここまで)
===== Entry Content =====
===== Entry Content =====
* an Entry Content element is identified by <code>(削除) class=" (削除ここまで)content(削除) " (削除ここまで)</code>
* an Entry Content element is identified by (追記) class name (追記ここまで)<code>(追記) entry- (追記ここまで)content</code>
* an Entry Content element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#atomContent (削除) atom (削除ここまで)content]
(追記) * an Entry {{should}} have Entry Content (追記ここまで)
* an Entry (削除) MAY (削除ここまで)have 0 or more Entry Content elements
* an Entry Content element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#atomContent (追記) Atom (追記ここまで)content]
(削除) : ''We recognize this varies from the Atom spec: see the next rule (削除ここまで).(削除) '' (削除ここまで)
* an Entry (追記) {{may}} (追記ここまで)have 0 or more Entry Content elements. (追記) The (追記ここまで)"logical Entry Content" of an Entry is the concatenation, in order of appearance, of all the Entry Contents within the Entry
(削除) * the (削除ここまで)"logical Entry Content" of an Entry is the concatenation, in order of appearance, of all the Entry Contents within the Entry
: ''Many (追記) web logs (追記ここまで)split content into multiple sections with a "Read More" link and (追記) JavaScript (追記ここまで)tricks. This is also needed in cases where Entry Titles are coded (追記) in-line (追記ここまで)and are considered part of the content.''
: ''Many (削除) weblogs (削除ここまで)split content into multiple sections with a "Read More" link and (削除) javascript (削除ここまで)tricks. This is also needed in cases where Entry Titles are coded (削除) inline (削除ここまで)and are considered part of the content.''
* (追記) if (追記ここまで)the Entry Content is (追記) missing (追記ここまで), (追記) assume it is (追記ここまで)the (追記) empty string (追記ここまで)
* the (削除) "logical (削除ここまで)Entry Content(削除) " MUST be complete; that (削除ここまで)is, (削除) contain (削除ここまで)the (削除) entire content of the Entry (削除ここまで)
(削除) : ''Otherwise it should be marked as Entry Summary.'' (削除ここまで)
===== Entry Summary =====
===== Entry Summary =====
* an Entry Summary element is identified by <code>(削除) class=" (削除ここまで)summary(削除) " (削除ここまで)</code>
* an Entry Summary element is identified by (追記) class name (追記ここまで)<code>(追記) entry- (追記ここまで)summary</code>
* an Entry Summary element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.13 (削除) atom (削除ここまで)summary]
* an Entry Summary element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.13 (追記) Atom (追記ここまで)summary]
* an Entry (削除) MAY (削除ここまで)have 0 or more Entry Summary elements
* an Entry (追記) {{may}} (追記ここまで)have 0 or more Entry Summary elements. (追記) The (追記ここまで)"logical Entry Summary" of an Entry is the concatenation, in order of appearance, of all the Entry Summarys within the Entry
(削除) : ''We recognize this varies from the Atom spec: see the next rule (削除ここまで).(削除) '' (削除ここまで)
(削除) * the (削除ここまで)"logical Entry Summary" of an Entry is the concatenation, in order of appearance, of all the Entry Summarys within the Entry
(削除) * the "logical Entry Summary" may differ in different copies of the Entry (削除ここまで)
(削除) : ''There is the major difference with Entry Content. We can summarize an Entry in different way in different places with no requirement for consistency. There may be issues with this for modelers: if so, take it up in [[hatom-issues]].'' (削除ここまで)
===== Entry Permalink =====
===== Entry Permalink =====
(追記) * an Entry Permalink element is identified by [[rel-bookmark]] (追記ここまで)
(追記) * an Entry {{should}} have an Entry Permalink (追記ここまで)
(追記) * an Entry Permalink element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.7 Atom link in an entry] (追記ここまで)
(追記) * if the Entry Permalink is missing, use the URI of the page; if the Entry has an "id" attribute, add that as a fragment to the page URI to distinguish individual entries (追記ここまで)
* an Entry (削除) Permalink (削除ここまで)element is identified by <code>(削除) rel="bookmark" (削除ここまで)</code>
(追記) ===== Entry Updated ===== (追記ここまで)
(削除) : ''We recognize that we have broken from Atom terminology at this point. See [[hatom-issues]] for discussion.'' (削除ここまで)
* an Entry (追記) Updated (追記ここまで)element is identified by (追記) class name (追記ここまで)<code>(追記) updated (追記ここまで)</code>
(削除) : ''This may be a microformat in itself: [[rel-bookmark]].'' (削除ここまで)
* an Entry (追記) Updated (追記ここまで)element represents the concept of [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.(追記) 15 Atom updated (追記ここまで)]
* an Entry (削除) Permalink (削除ここまで)element represents the concept of (削除) an (削除ここまで)[http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.(削除) 7 atom link in an entry (削除ここまで)]
* (追記) an Entry {{should}} have an (追記ここまで)Entry (追記) Updated element (追記ここまで)
* Entry (削除) Permalinks MUST be absolute URIs (削除ここまで)
* (追記) use (追記ここまで)the (追記) [[value-class-pattern#Date_and_time_parsing|value class pattern date and time]] (追記ここまで)to (追記) encode (追記ここまで)the (追記) updated datetime (追記ここまで)
* (削除) Entry Permalinks MUST be (削除ここまで)the (削除) same as the <code>atom:link</code> (or <code>rss:link</code>) used in syndication feeds (削除ここまで)
(追記) * if (追記ここまで)there (追記) is no Entry Updated element, (追記ここまで)
(削除) : ''The intention of the previous two rules to gently force people (削除ここまで)to (削除) use strings that can be byte compared for equivalence. In general, (削除ここまで)the (削除) canonical URI should be the link used in an Atom entry.'' (削除ここまで)
*(追記) * use (追記ここまで)the Entry (追記) Published element (追記ここまで), (追記) if present (追記ここまで)
(削除) : ''Is (削除ここまで)there (削除) a problem with FeedBurner?'' (削除ここまで)
** (追記) otherwise (追記ここまで)the page is (追記) invalid hAtom (追記ここまで)
* (削除) if an Entry has multiple elements marked as (削除ここまで)the Entry (削除) Permalink (削除ここまで), (削除) they MUST have exactly the same URI (削除ここまで)
* (削除) an Entry SHOULD have an Entry Permalink (削除ここまで)
(削除) : ''There are circumstances (such as media pages) where this won't happen. See the next rule.'' (削除ここまで)
* (削除) there can be at most 1 Entry in an XHTML document without an Entry Permalink; the Entry Permalink of this Entry is the URI of (削除ここまで)the page
(削除) : ''This rule is needed for media pages (i.e. a news article on cnn.com). There (削除ここまで)is (削除) some ugliness of with this because the URI could be non-canonical.'' (削除ここまで)
(削除) ====== Disambiguation ====== (削除ここまで)
(削除) * The first valid element in an Entry marked as an Entry Permalink is the Entry Permalink (削除ここまで)
===== Entry Published =====
===== Entry Published =====
* an Entry Published element is identified by (追記) the class name (追記ここまで)<code>published</code>
* an Entry Published element is identified by <code>(削除) class=" (削除ここまで)published(削除) " (削除ここまで)</code>
* (追記) an (追記ここまで)Entry Published element represents the concept of [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.9 (追記) Atom (追記ここまで)published]
* (削除) a (削除ここまで)Entry Published element represents the concept of [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.9 (削除) atom (削除ここまで)published]
* (追記) use (追記ここまで)the [[(追記) value (追記ここまで)-(追記) class (追記ここまで)-pattern(追記) #Date_and_time_parsing|value (追記ここまで)class pattern (追記) date and time (追記ここまで)]] to (追記) encode (追記ここまで)the published (追記) datetime (追記ここまで)
* (削除) the machine readable datetime should be encoded with an <code><abbr></code> element using (削除ここまで)the [[(削除) datetime (削除ここまで)-(削除) design (削除ここまで)-pattern(削除) ]]; the machine readable datetime should be complete, that is, specified to the second with the timezone included (削除ここまで)
(削除) ====== Disambiguation ====== (削除ここまで)
(削除) * The first valid element in an Entry marked as an Entry Published is the Entry Published element (削除ここまで)
(削除) ===== Entry Updated ===== (削除ここまで)
(削除) * an Entry Updated element is identified by <code> (削除ここまで)class(削除) ="updated"</code> (削除ここまで)
(削除) * a Entry Updated element represents the concept of [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.15 atom updated] (削除ここまで)
(削除) * the machine readable datetime should be encoded with an <code><abbr></code> element using the [[datetime-design- (削除ここまで)pattern]](削除) ; the machine readable datetime should be complete, that is, specified (削除ここまで)to the (削除) second with the timezone included (削除ここまで)
(削除) * if there is no Entry Updated element, the value is assumed to be that of Entry Published (削除ここまで)
(削除) : ''Entry Published is more often available in weblog templates, so we're going with that.'' (削除ここまで)
(削除) * if there is no Entry Updated and Entry Published elements, transformation to Atom is problematic (削除ここまで)
(削除) : ''This is because a (削除ここまで)published (削除) element is required. Suggestions would be appreciated here.'' (削除ここまで)
(削除) ====== Disambiguation ====== (削除ここまで)
(削除) * The first valid element in an Entry marked as an Entry Updated is the Entry Updated element (削除ここまで)
===== Entry Author =====
===== Entry Author =====
* an Entry Author element is (追記) represented (追記ここまで)by (追記) class name (追記ここまで)<code>(追記) author (追記ここまで)</code>
* an Entry Author element is (削除) identified (削除ここまで)by (削除) an XHTML (削除ここまで)<code>(削除) <address> (削除ここまで)</code> (削除) element (削除ここまで)
* an Entry Author element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.1 (追記) Atom (追記ここまで)author]
* an Entry Author element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.1 (削除) atom (削除ここまで)author]
* an Entry Author element (追記) {{must}} be encoded in (追記ここまで)an [[hcard|hCard]]
* an Entry Author element (削除) SHOULD contain (削除ここまで)an [[hcard|hCard]]
* an Entry Author element (追記) {{should}} be encoded in an (追記ここまで)<code>(追記) <address> (追記ここまで)</code> (追記) element (追記ここまで)
* an Entry Author element (削除) MAY add (削除ここまで)<code>(削除) class="author" (削除ここまで)</code>
(追記) * an Entry {{should}} have at least one Entry Author element (追記ここまで)
(削除) : ''Atom defines other levels of "person", such as "contributor"'' (削除ここまで)
* an Entry (追記) {{may}} (追記ここまで)have more (追記) than one (追記ここまで)Entry Author elements
* an Entry (削除) MAY (削除ここまで)have (削除) 0 or (削除ここまで)more Entry Author elements
* if the Entry Author is (追記) missing (追記ここまで)
* if (削除) an Entry has 0 Entry Athor elements, (削除ここまで)the (削除) "logical (削除ここまで)Entry Author(削除) " (削除ここまで)is (削除) assumed to be the author of the XHTML page (削除ここまで)
*(追記) * find the [[algorithm-nearest-in-parent|Nearest In Parent]] (追記ここまで)<code><address></code> element(追記) (s) with class name <code>author< (追記ここまで)/(追記) code> and that is (追記ここまで)/(追記) are a valid (追記ここまで)[[hcard|hCard]]
(削除) : ''Atom requires at least one Author'' (削除ここまで)
*(追記) * otherwise the entry is invalid hAtom (追記ここまで)
(削除) ===== Entry Contibutor ===== (削除ここまで)
* (削除) an Entry Contibutor element is identified by an XHTML (削除ここまで)<code><address (削除) class="contributor" (削除ここまで)></code> element
(削除) * an Entry Contibutor element represents the concept of an [http: (削除ここまで)//(削除) www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.3 atom contributor] (削除ここまで)
(削除) * an Entry Contibutor element SHOULD contain an (削除ここまで)[[hcard|hCard]]
* (削除) an Entry MAY have 0 or more Entry Contibutor elements (削除ここまで)
=== XMDP Profile ===
=== XMDP Profile ===
(削除) <pre> (削除ここまで)
(追記) See [[hatom (追記ここまで)-profile(追記) ]] (追記ここまで).
(削除) <dl class="profile"> (削除ここまで)
(削除) <dt>class</dt> (削除ここまで)
(削除) <a rel="help" href="http://www.w3.org/TR/html401/struct/global.html#adef (削除ここまで)-(削除) class"> (削除ここまで)
(削除) HTML4 definition of the 'class' attribute.</a> (削除ここまで)
(削除) This meta data (削除ここまで)profile (削除) defines some 'class' attribute values (class names) (削除ここまで)
(削除) and their meanings as suggested by a (削除ここまで)
(削除) <a href="http://www.w3.org/TR/WD-htmllink-970328#profile"> (削除ここまで)
(削除) draft of "Hypertext Links in HTML"</a>. (削除ここまで)
(削除) <dt>feed</dt> (削除ここまで)
(削除) The concept of atom:feed from (削除ここまで)
(削除) <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, (削除ここまで)
(削除) constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>. (削除ここまで)
(削除) <dt>entry</dt> (削除ここまで)
(削除) The concept of atom:entry from (削除ここまで)
(削除) <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, (削除ここまで)
(削除) constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>. (削除ここまで)
(削除) <dt>content</dt> (削除ここまで)
(削除) The concept of atom:content from (削除ここまで)
(削除) <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, (削除ここまで)
(削除) constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>. (削除ここまで)
(削除) <dt>summary</dt> (削除ここまで)
(削除) The concept of atom:summary from (削除ここまで)
(削除) <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, (削除ここまで)
(削除) constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>. (削除ここまで)
(削除) <dt>bookmark</dt> (削除ここまで)
(削除) The concept of atom:link (without any "rel") with an atom:entry from (削除ここまで)
(削除) <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, (削除ここまで)
(削除) constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>. (削除ここまで)
(削除) <dt>published</dt> (削除ここまで)
(削除) The concept of atom:published from (削除ここまで)
(削除) <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, (削除ここまで)
(削除) constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>. (削除ここまで)
(削除) <dt>updated</dt> (削除ここまで)
(削除) The concept of atom:updatedfrom (削除ここまで)
(削除) <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, (削除ここまで)
(削除) constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>. (削除ここまで)
(削除) <dt>author</dt> (削除ここまで)
(削除) The concept of atom:author from (削除ここまで)
(削除) <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, (削除ここまで)
(削除) constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a> (削除ここまで).
(削除) === Parsing Details === (削除ここまで)
== Examples ==
== Examples ==
(削除) This section is informative (削除ここまで).
(追記) See [[hatom-examples]] (追記ここまで).
=== (削除) Transformation 1 (削除ここまで)===
=== (追記) Examples in the wild (追記ここまで)===
(削除) A well behaved weblog (削除ここまで).
(追記) See [[hatom-examples-in-wild]] (追記ここまで).
(削除) Original: (削除ここまで)
(追記) == Implementations == (追記ここまで)
(削除) <pre><nowiki> (削除ここまで)
(追記) See [[hatom (追記ここまで)-(追記) implementations]] (追記ここまで).
(削除) <div id="wrap"> (削除ここまで)
(削除) <div id="content"> (削除ここまで)
(削除) <div class="entry"> (削除ここまで)
(削除) <h3 id="post (削除ここまで)-(削除) 60"> (削除ここまで)
(削除) <a href="http://www.microformats.org/blog/..." rel="bookmark" title="...">Wiki Attack</a> (削除ここまで)
(削除) <p>We had a bit of trouble with ...</p> (削除ここまで)
(削除) <p>We’ve restored the wiki and ...</p> (削除ここまで)
(削除) <p>If anyone is working to combat said spammers .. (削除ここまで).(削除) </p> (削除ここまで)
(削除) <h4 class (削除ここまで)=(削除) "tags">Technorati Tags:</h4> (削除ここまで)
== (追記) Copyright (追記ここまで)==
(削除) <ul class (削除ここまで)=(削除) "tags"> (削除ここまで)
(追記) {{MicroFormatCopyrightStatement2005}} (追記ここまで)
(削除) <li><a href (削除ここまで)=(削除) "http://technorati.com/tag/mediawiki" rel (削除ここまで)=(削除) "tag">mediawiki</a></li> (削除ここまで)
(追記) * [[User:Tantek|Tantek]] (追記ここまで): (追記) I release all my contributions to this specification into the public domain and I encourage the other authors to do so as well (追記ここまで).
(削除) <li><a href="http (削除ここまで):(削除) //technorati (削除ここまで).(削除) com/tag/microformats" rel="tag">microformats</a></li> (削除ここまで)
(追記) ** When all authors (追記ここまで)/(追記) editors have done so, we can remove the MicroFormatCopyrightStatement template reference and replace it with the MicroFormatPublicDomainContributionStatement (追記ここまで).
(削除) <li><a href="http:/ (削除ここまで)/(削除) technorati (削除ここまで).(削除) com/tag/spam" rel="tag">spam</a></li> (削除ここまで)
(削除) <ul class (削除ここまで)=(削除) "post-info"> (削除ここまで)
== (追記) Patents (追記ここまで)==
(削除) <li> (削除ここまで)
(追記) {{MicroFormatPatentStatement}} (追記ここまで)
(削除) <a href="http://www.microformats.org/blog/..." rel="bookmark" title="...">October 10th, 2005</a> (削除ここまで)
(削除) <address class="vcard"><a class="url fn" href="http://theryanking.com">Ryan King</a></address> (削除ここまで)
(削除) <a href="http://www.microformats.org/blog/...">4 Comments</a> (削除ここまで)
(削除) <div class="entry"> (削除ここまで)
(削除) </nowiki></pre> (削除ここまで)
(削除) Transformed to hAtom compliant (shown in UPPER CASE for visibility only): (削除ここまで)
(削除) <pre><nowiki> (削除ここまで)
(削除) <div id="wrap"> (削除ここまで)
(削除) <div CLASS="FEED" id="content"> (削除ここまで)
(削除) <div class="entry" ID="post-60"> (削除ここまで)
(削除) <a href="http://www.microformats.org/blog/..." rel (削除ここまで)=(削除) "bookmark" title (削除ここまで)=(削除) "...">Wiki Attack</a> (削除ここまで)
(削除) <DIV CLASS (削除ここまで)=(削除) "CONTENT"> (削除ここまで)
(削除) <p>We had a bit of trouble with ...</p> (削除ここまで)
(削除) <p>We’ve restored the wiki and ...</p> (削除ここまで)
(削除) <p>If anyone is working to combat said spammers ...</p> (削除ここまで)
(削除) <h4 class="tags">Technorati Tags:</h4> (削除ここまで)
(削除) <ul class="tags"> (削除ここまで)
(削除) <li><a href="http://technorati.com/tag/mediawiki" rel="tag">mediawiki</a></li> (削除ここまで)
(削除) <li><a href="http://technorati.com/tag/microformats" rel="tag">microformats</a></li> (削除ここまで)
(削除) <li><a href="http://technorati.com/tag/spam" rel="tag">spam</a></li> (削除ここまで)
(削除) <ul class="post-info"> (削除ここまで)
(削除) <a href="http://www.microformats.org/blog/..." rel="bookmark" (削除ここまで)
(削除) title="..."><ABBR CLASS="PUBLISHED" TITLE="20051010T14:07:00-0700">October 10th, 2005</ABBR></a> (削除ここまで)
(削除) <address class="vcard"><a class="url fn" href="http://theryanking.com">Ryan King</a></address> (削除ここまで)
(削除) <a href="http://www.microformats.org/blog/...">4 Comments</a> (削除ここまで)
(削除) <div class="entry" ID="post-59"> (削除ここまで)
(削除) </nowiki></pre> (削除ここまで)
(削除) * Added <code>class="feed"</code> to Feed (削除ここまで)
(削除) * Moved <code>id="###"</code> from <code><h3></code> to Entry (削除ここまで)
(削除) * Added <code><div class="content"></code>...<code></div></code> around the Entry Content (削除ここまで)
(削除) * Added <code><abbr class="PUBLISHED" title="YYYYMMDDThh:mm:ss+ZZZZ"></code>...<code></abbr></code> around the Entry Datetime (削除ここまで)
(削除) * We did not need to add a <code>class="entry"</code> to each Entry (削除ここまで)
(削除) * We did not need to add a <code><address></code> element (削除ここまで)
(削除) * We did not need to add a <code><h#></code> element (削除ここまで)
(削除) * We did not need to add a <code>rel="bookmark"</code> to Entry Permalinks (削除ここまで)
=== (削除) Transformation 2 === (削除ここまで)
== (追記) Semantic HTML Design Principles (追記ここまで)==
<div id="(追記) Semantic_XHTML_Design_Principles (追記ここまで)">(追記) {{semantic (追記ここまで)-html-(追記) design (追記ここまで)-(追記) principles}} (追記ここまで)</div>
(削除) A not-so well behaved weblog (an older blogspot weblog) (削除ここまで)
(削除) <pre><nowiki> (削除ここまで)
(削除) <body bgcolor="..."> (削除ここまで)
(削除) <div class="posts"> (削除ここまで)
(削除) <a name="112993192128302715"> </a><br> (削除ここまで)
(削除) <div style="clear:both;"></div><strong>Nelson's final prayer</strong> (削除ここまで)
(削除) written on the night before Trafalgar:<blockquote>May the Great God, ... heart. (削除ここまで)
(削除) <div style="clear:both; padding-bottom: 0.25em;"></div> (削除ここまで)
(削除) <span class="byline"> (削除ここまで)
(削除) posted by Natalie at (削除ここまで)
(削除) <a href="2005_10_16_nataliesolent_archive.html#112993192128302715">9:49 PM</a> (削除ここまで)
(削除) <div class="posts"> (削除ここまで)
(削除) <a name="112993022840118939"> </a> (削除ここまで)
(削除) <div style="clear:both;"></div><strong>I really, truly </strong>didn't go ... view. (削除ここまで)
(削除) <div style="clear:both; padding-bottom: 0.25em;"></div> (削除ここまで)
(削除) <span class="byline"> (削除ここまで)
(削除) posted by Natalie at (削除ここまで)
(削除) <a href="2005_10_16_nataliesolent_archive.html#112993022840118939">9:28 PM</a> (削除ここまで)
(削除) </nowiki></pre> (削除ここまで)
(削除) Transformed to hAtom compliant (shown in UPPER CASE for visibility only): (削除ここまで)
(削除) <pre><nowiki> (削除ここまで)
(削除) <body bgcolor="..."> (削除ここまで)
(削除) <DIV CLASS="FEED"> (削除ここまで)
(削除) <div class="ENTRY posts" ID="112993192128302715"> (削除ここまで)
(削除) <strong CLASS="TITLE CONTENT"> (削除ここまで)
(削除) Nelson's final prayer (削除ここまで)
(削除) <SPAN CLASS="CONTENT"> (削除ここまで)
(削除) written on the night before Trafalgar:<blockquote>May the Great God, ... heart. (削除ここまで)
(削除) <span class="byline">posted by <address>Natalie</address> at (削除ここまで)
(削除) <a REL="BOOKMARK" href="HTTP://NATALIESOLENT.BLOGSPOT.COM/2005_10_16_nataliesolent_archive.html#112993192128302715"> (削除ここまで)
(削除) <ABBR CLASS="POSTED" TITLE="20051024T094900-0000">9:49 PM</ABBR></a> (削除ここまで)
(削除) <div class="ENTRY posts" ID="112993022840118939"> (削除ここまで)
(削除) <strong CLASS="TITLE CONTENT">I really, truly </strong> (削除ここまで)
(削除) <SPAN CLASS="CONTENT"> (削除ここまで)
(削除) didn't go ... view. (削除ここまで)
(削除) <span class="byline"> (削除ここまで)
(削除) posted by <address>Natalie</address> at (削除ここまで)
(削除) <a REL="BOOKMARK" href="HTTP://NATALIESOLENT.BLOGSPOT.COM/2005_10_16_nataliesolent_archive.html#112993022840118939"> (削除ここまで)
(削除) <ABBR CLASS="POSTED" TITLE (削除ここまで)=(削除) "20051024T094900-0000">9:28 PM</ABBR></a> (削除ここまで)
(削除) (削除ここまで)<(削除) /span> (削除ここまで)
(削除) </ (削除ここまで)div(削除) > (削除ここまで)
(削除) </nowiki></pre> (削除ここまで)
(削除) * Added <code>class="feed"</code> to Feed (削除ここまで)
(削除) * Added <code>class="entry"</code> to each Entry (削除ここまで)
(削除) * Moved <code> (削除ここまで)id="(削除) ### (削除ここまで)"(削除) </code> up to the Entry (and deleted the empty anchor block) (削除ここまで)
(削除) * Added <code>rel="bookmark"</code (削除ここまで)> (削除) to the Entry Permalinks (削除ここまで)
(削除) * Made the Entry Permalink non (削除ここまで)-(削除) relative (削除ここまで)
(削除) * Added <code><span class="title"></code>...<code></div></code> around the Entry Title (削除ここまで)
(削除) * Added <code><span class="content"></code>...<code></div></code> around the Entry Title (!) (削除ここまで)
(削除) * Added <code><span class="content"></code>...<code></div></code> around the Entry Content (削除ここまで)
(削除) * Added <code><abbr class="posted" title="YYYYMMDDThh:mm:ss+ZZZZ"></code>...<code></abbr></code> around the Entry Datetime (削除ここまで)
(削除) * Added <code><address></code> to the poster's name (削除ここまで)
(削除) * there are multiple content blocks, because Natalie Solent embeds the title in the content (削除ここまで)
(削除) * cleaned up lots of crap HTML presentation stuff, with the assumption it would be fixed in the stylesheet (削除ここまで)
(削除) * this is one of the uglier transformations you're likely to see (削除ここまで)
(削除) * we've respected the poster's poster apparent wish for anonimity by not adding an hCard (削除ここまで)
(削除) === Transformation 3 === (削除ここまで)
(削除) A media page (from [http://www.cbc.ca/story/world/national/2005/11/22/birdlfu051122.html CBC Newsworld]). (削除ここまで)
(削除) <pre><nowiki> (削除ここまで)
(削除) <div class="news"> (削除ここまで)
(削除) <div class="story"> (削除ここまで)
(削除) <h1>China confirms new bird flu outbreaks</h1> (削除ここまで)
(削除) <span class="byline">Last Updated 2005年11月22日 23:26:18 EST</span> (削除ここまで)
(削除) <div class="text"><a href="/news/credit.html">CBC News</a></div> (削除ここまで)
(削除) <div class="text"> (削除ここまで)
(削除) China has confirmed three new outbreaks of bird flu, ... (削除ここまで)
(削除) <li><font SIZE="1">INDEPTH: </font><font SIZE="2"> (削除ここまで)
(削除) <a href="http://www.cbc.ca/news/background/avianflu/">Avian Flu</a></font> (削除ここまで)
(削除) <table align="right" cellpadding="0" cellspacing="4" hspace="4" width="220"> (削除ここまで)
(削除) <td align="center"> (削除ここまで)
(削除) <img src="http://www.cbc.ca/gfx/pix/birdflu_china_cp_7707271.jpg" width="220" height="223" hspace="3" border="0"> (削除ここまで)
(削除) <td align="center"> (削除ここまで)
(削除) <div class="caption"> (削除ここまで)
(削除) <font size="1" face="verdana,arial"><i></i></font> (削除ここまで)
(削除) <p>State media says the new outbreaks are in...</p> (削除ここまで)
(削除) <p>The news comes a day after China announced the ...</p> (削除ここまで)
(削除) <p>In China's eastern Anhui province, authorities have ...</p> (削除ここまで)
(削除) <p>The province says the measure will prevent domestic ...</p> (削除ここまで)
(削除) <p>Vietnamese health officials have confirmed that a ...</p> (削除ここまで)
(削除) <p>Doctors from the health department in the northern ...</p> (削除ここまで)
(削除) <p>Bird flu has killed 42 people in Vietnam since December ...</p> (削除ここまで)
(削除) <p>The World Health Organization fears the H5N1 strain of ...</p> (削除ここまで)
(削除) <p><font face="Verdana,Arial" size="1">with files from the Australian Broadcasting Corporation</font></p> (削除ここまで)
(削除) </nowiki></pre> (削除ここまで)
(削除) Transformed to hAtom compliant (shown in UPPER CASE for visibility only): (削除ここまで)
(削除) <pre><nowiki> (削除ここまで)
(削除) <div class="news"> (削除ここまで)
(削除) <div class="FEED ENTRY story"> (削除ここまで)
(削除) <h1>China confirms new bird flu outbreaks</h1> (削除ここまで)
(削除) <span class="byline">Last Updated (削除ここまで)
(削除) <ABBR CLASS="POSTED" TITLE="20051123T042618Z">2005年11月22日 23:26:18 EST</ABBR> (削除ここまで)
(削除) <ADDRESS CLASS="VCARD"><div class="text"><a CLASS="URL" href="/news/credit. (削除ここまで)html(削除) ">CBC News</a></div></ADDRESS> (削除ここまで)
(削除) <div class="text"> (削除ここまで)
(削除) <p CLASS="CONTENT"> (削除ここまで)
(削除) China has confirmed three new outbreaks of bird flu, ... (削除ここまで)
(削除) <li><font SIZE="1">INDEPTH: </font><font SIZE="2"> (削除ここまで)
(削除) <a href="http://www.cbc.ca/news/background/avianflu/">Avian Flu</a></font> (削除ここまで)
(削除) <table align="right" cellpadding="0" cellspacing="4" hspace="4" width="220"> (削除ここまで)
(削除) <td align="center"> (削除ここまで)
(削除) <img src="http://www.cbc.ca/gfx/pix/birdflu_china_cp_7707271.jpg" width="220" height="223" hspace="3" border="0"> (削除ここまで)
(削除) <td align="center"> (削除ここまで)
(削除) <div class="caption"> (削除ここまで)
(削除) <font size="1" face="verdana,arial"><i></i></font> (削除ここまで)
(削除) <p CLASS="CONTENT">State media says the new outbreaks are in...</p> (削除ここまで)
(削除) <p CLASS="CONTENT">The news comes a day after China announced the ...</p> (削除ここまで)
(削除) <p CLASS="CONTENT">In China's eastern Anhui province, authorities have ...</p> (削除ここまで)
(削除) <p CLASS="CONTENT">The province says the measure will prevent domestic ...</p> (削除ここまで)
(削除) <p CLASS="CONTENT">Vietnamese health officials have confirmed that a ...</p> (削除ここまで)
(削除) <p CLASS="CONTENT">Doctors from the health department in the northern ...</p> (削除ここまで)
(削除) <p CLASS="CONTENT">Bird flu has killed 42 people in Vietnam since December ...</p> (削除ここまで)
(削除) <p CLASS="CONTENT">The World Health Organization fears the H5N1 strain of ...</p> (削除ここまで)
(削除) <p><font face="Verdana,Arial" size="1">with files from the <ADDRESS CLASS="CONTRIBUTOR">Australian Broadcasting Corporation</ADDRESS></font></p> (削除ここまで)
(削除) </nowiki></pre> (削除ここまで)
(削除) * Added <code><div class="feed entry"></code> around the single entry on the page (削除ここまで)
(削除) : ''We have to make sure the nesting rules reflect nesting at the same level'' (削除ここまで)
(削除) * Added <code><span class="content"></code>...<code></div></code> around every single paragraph -- this looks pathological but it may be the way this would need be produced from a template. The latter part of the document could be enclosed in a single "content" div but note that we did this so the "INDEPTH" part would not be marked as content, (削除ここまで)
(削除) * Added <code><abbr class="posted" title="YYYYMMDDThh:mm:ss+ZZZZ"></code>...<code></abbr></code> around the Entry Datetime (削除ここまで)
(削除) * Added <code><address></code> to the CBC Newsroom (削除ここまで)
(削除) * Added <code><address class="contributor"></code> to a contributor's name (削除ここまで)
(削除) * We may the document more XHTML compliant (削除ここまで)
(削除) * There is no <code>rel="bookmark"</code> so it is assumed to be the URI of the page (削除ここまで)
(削除) * The Entry Title was correctly marked with a <code><h1></code> element (削除ここまで)
(削除) === Transformation 4 === (削除ここまで)
(削除) A bulletin board ([http://forums.punbb.org/viewtopic.php?id=9135 PunBB]) (削除ここまで)
(削除) <pre><nowiki> (削除ここまで)
(削除) <div id="punwrap"> (削除ここまで)
(削除) <div id="punviewtopic" class="pun"> (削除ここまで)
(削除) <div id="brdheader" class="block"> (削除ここまで)
(削除) ... header stuff ... (削除ここまで)
(削除) <div id="announce" class="block"> (削除ここまで)
(削除) ... announcement stuff ... (削除ここまで)
(削除) <div class="linkst"> (削除ここまで)
(削除) ... controls for the blog (削除ここまで)
(削除) <div id="p54390" class="blockpost rowodd firstpost"> (削除ここまで)
(削除) <span><span class="conr">#1 </span> (削除ここまで)
(削除) <a href="viewtopic.php?pid=54390#p54390">2005年10月16日 10:36:24</a></span> (削除ここまで)
(削除) <div class="box"> (削除ここまで)
(削除) <div class="inbox"> (削除ここまで)
(削除) <div class="postleft"> (削除ここまで)
(削除) <dt><strong><a href="profile.php?id=2">Rickard</a></strong></dt> (削除ここまで)
(削除) <dd class="usertitle"><strong>PunBB Developer</strong></dd> (削除ここまで)
(削除) <dd class="postavatar"><img src="img/avatars/2.png" width="60" height="60" alt="" /></dd> (削除ここまで)
(削除) <dd>From: 127.0.0.1</dd> (削除ここまで)
(削除) <dd>Registered: 2001年11月02日</dd> (削除ここまで)
(削除) <dd>Posts: 7806</dd> (削除ここまで)
(削除) <dd class="usercontacts"><a href="http://www.punbb.org/">Website</a></dd> (削除ここまで)
(削除) <div class="postright"> (削除ここまで)
(削除) <h3>PunBB 1.2.9</h3> (削除ここまで)
(削除) <div class="postmsg"> (削除ここまで)
(削除) <p>Just a quick note this time....</p> (削除ここまで)
(削除) <div class="postsignature"><hr />"Programming is like sex: ...</div> (削除ここまで)
(削除) <div class="clearer"></div> (削除ここまで)
(削除) <div class="postfootleft"><p>Offline</p></div> (削除ここまで)
(削除) <div class="postfootright"><div> </div></div> (削除ここまで)
(削除) <div id="p54392" class="blockpost roweven"> (削除ここまで)
(削除) <h2><span><span class="conr">#2 </span><a href="viewtopic.php?pid=54392#p54392">2005年10月16日 10:54:41</a></span></h2> (削除ここまで)
(削除) <div class="box"> (削除ここまで)
(削除) <div class="inbox"> (削除ここまで)
(削除) <div class="postleft"> (削除ここまで)
(削除) <dt><strong><a href="profile.php?id=5298">IdleFire</a></strong></dt> (削除ここまで)
(削除) <dd class="usertitle"><strong>Member</strong></dd> (削除ここまで)
(削除) <dd class="postavatar"></dd> (削除ここまで)
(削除) <dd>Registered: 2005年10月14日</dd> (削除ここまで)
(削除) <dd>Posts: 27</dd> (削除ここまで)
(削除) <div class="postright"> (削除ここまで)
(削除) <h3> Re: PunBB 1.2.9</h3> (削除ここまで)
(削除) <div class="postmsg"> (削除ここまで)
(削除) <div class="clearer"></div> (削除ここまで)
(削除) <div class="postfootleft"><p>Offline</p></div> (削除ここまで)
(削除) <div class="postfootright"><div> </div></div> (削除ここまで)
(削除) ... more entries ... (削除ここまで)
(削除) <div id="brdfooter" class="block"> (削除ここまで)
(削除) ... footer stuff ... (削除ここまで)
(削除) </nowiki></pre> (削除ここまで)
(削除) Transformed to hAtom compliant (changes shown in UPPER CASE for visibility only): (削除ここまで)
(削除) <pre><nowiki> (削除ここまで)
(削除) <div id="punwrap"> (削除ここまで)
(削除) <div id="punviewtopic" class="pun"> (削除ここまで)
(削除) <div id="brdheader" class="block"> (削除ここまで)
(削除) ... header stuff ... (削除ここまで)
(削除) <div id="announce" class="block"> (削除ここまで)
(削除) ... announcement stuff ... (削除ここまで)
(削除) <div class="linkst"> (削除ここまで)
(削除) ... controls for the blog (削除ここまで)
(削除) <DIV CLASS="FEED"> (削除ここまで)
(削除) <div id="p54390" class="ENTRY blockpost rowodd firstpost"> (削除ここまで)
(削除) <span><span class="conr">#1 </span> (削除ここまで)
(削除) <a REL="BOOKMARK" href="HTTP://FORUMS.PUNBB.ORG/viewtopic.php?pid=54390#p54390"> (削除ここまで)
(削除) <ABBR CLASS="POSTED" TITLE="20051016T103624-0500">2005年10月16日 10:36:24</ABBR> (削除ここまで)
(削除) </a></span> (削除ここまで)
(削除) <div class="box"> (削除ここまで)
(削除) <div class="inbox"> (削除ここまで)
(削除) <div class="postleft"> (削除ここまで)
(削除) <dt><strong><ADDRESS><a href="profile.php?id=2">Rickard</a></ADDRESS></strong></dt> (削除ここまで)
(削除) <dd class="usertitle"><strong>PunBB Developer</strong></dd> (削除ここまで)
(削除) <dd class="postavatar"><img src="img/avatars/2.png" width="60" height="60" alt="" /></dd> (削除ここまで)
(削除) <dd>From: 127.0.0.1</dd> (削除ここまで)
(削除) <dd>Registered: 2001年11月02日</dd> (削除ここまで)
(削除) <dd>Posts: 7806</dd> (削除ここまで)
(削除) <dd class="usercontacts"><a href="http://www.punbb.org/">Website</a></dd> (削除ここまで)
(削除) <div class="postright"> (削除ここまで)
(削除) <h3>PunBB 1.2.9</h3> (削除ここまで)
(削除) <div class="CONTENT postmsg"> (削除ここまで)
(削除) <p>Just a quick note this time....</p> (削除ここまで)
(削除) <div class="postsignature"><hr />"Programming is like sex: ...</div> (削除ここまで)
(削除) <div class="clearer"></div> (削除ここまで)
(削除) <div class="postfootleft"><p>Offline</p></div> (削除ここまで)
(削除) <div class="postfootright"><div> </div></div> (削除ここまで)
(削除) <div id="p54392" class="ENTRY blockpost roweven"> (削除ここまで)
(削除) <span><span class="conr">#2 </span> (削除ここまで)
(削除) <a REL="BOOKMARK" href="HTTP://FORUMS.PUNBB.ORG/viewtopic.php?pid=54392#p54392"> (削除ここまで)
(削除) <ABBR CLASS="POSTED" TITLE="20051016T1105441-0500">2005年10月16日 10:54:41</ABBR> (削除ここまで)
(削除) </a></span> (削除ここまで)
(削除) <div class="box"> (削除ここまで)
(削除) <div class="inbox"> (削除ここまで)
(削除) <div class="postleft"> (削除ここまで)
(削除) <dt><strong><ADDRESS CLASS="VCARD"><a CLASS="URL" href="profile.php?id=5298">IdleFire</a></ADDRESS></strong></dt> (削除ここまで)
(削除) <dd class="usertitle"><strong>Member</strong></dd> (削除ここまで)
(削除) <dd class="postavatar"></dd> (削除ここまで)
(削除) <dd>Registered: 2005 (削除ここまで)-(削除) 10 (削除ここまで)-(削除) 14</dd> (削除ここまで)
(削除) <dd>Posts: 27</dd> (削除ここまで)
(削除) <div class="postright"> (削除ここまで)
(削除) <h3> Re: PunBB 1.2.9</h3> (削除ここまで)
(削除) <div class="CONTENT postmsg"> (削除ここまで)
(削除) <div class="clearer"></div> (削除ここまで)
(削除) <div class="postfootleft"><p>Offline</p></div> (削除ここまで)
(削除) <div class="postfootright"><div> </div></div> (削除ここまで)
(削除) ... more entries ... (削除ここまで)
(削除) <div id="brdfooter" class="block"> (削除ここまで)
(削除) ... footer stuff ... (削除ここまで)
(削除) </nowiki></pre> (削除ここまで)
(削除) * Added <code><div class="feed"></code> around the entries (as opposed to an existing <code><div</code> that enclosed more than entries. (削除ここまで)
(削除) * Added <code>class="entry"</code> to each Entry (削除ここまで)
(削除) * Added <code>rel="bookmark"</code> to the Entry Permalinks (削除ここまで)
(削除) * Made the Entry Permalink non-relative (削除ここまで)
(削除) * Added <code><span class="title"></code>...<code></div></code> around the Entry Title (削除ここまで)
(削除) * Added <code><span class="content"></code>...<code></div></code> around the Entry Content (削除ここまで)
(削除) * Added <code><abbr class="posted" title="YYYYMMDDThh:mm:ss+ZZZZ"></code>...<code></abbr></code> around the Entry Datetime (削除ここまで)
(削除) * Added <code><address></code> to the poster's name (削除ここまで)
(削除) * We did not need to add <code>id="###"</code> to the Entry (削除ここまで)
(削除) === More Examples === (削除ここまで)
(削除) See [[hatom-examples]]. (削除ここまで)
(削除) == Examples in the wild == (削除ここまで)
(削除) This section is '''informative'''. (削除ここまで)
(削除) == Implementations == (削除ここまで)
(削除) This section is '''informative'''. (削除ここまで)
(削除) * An [http://lukearno.com/projects/hAtom/ hAtom-2-Atom] XSLT is available (削除ここまで)
== References ==
== References ==
=== Normative References ===
=== Normative References ===
* [http://www.w3.org/TR/2002/REC-xhtml1-20020801/ XHTML 1.0 SE]
* [http://www.w3.org/TR/2002/REC-xhtml1-20020801/ XHTML 1.0 SE]
* [http://www.(削除) atomenabled (削除ここまで).org/ Atom]
* [http://www.(追記) ietf (追記ここまで).org/(追記) rfc/rfc4287 RFC4287: The (追記ここまで)Atom (追記) Syndication Format] (追記ここまで)
(追記) * [[hcard-parsing]] (追記ここまで)
(追記) * [[rfc-2119|RFC 2119]] (追記ここまで)
(追記) * [[iso-8601|ISO8601] (追記ここまで)]
=== Informative References ===
=== Informative References ===
(追記) * [http://www.atomenabled.org/ atomenabled.org] (追記ここまで)
==(削除) == Specifications That Use hAtom == (削除ここまで)==
== (追記) Further Reading (追記ここまで)==
* [http://(追記) www (追記ここまで).(追記) ablognotlimited.com (追記ここまで)/(追記) articles (追記ここまで)/(追記) getting (追記ここまで)-(追記) semantic-with-microformats-part-5-hatom/ Getting Semantic With Microformats, Part 5: hAtom] by [http://www.ablognotlimited.com/ Emily Lewis (追記ここまで)]
(削除) ==== Similar Work ==== (削除ここまで)
* [http://(削除) rdfs (削除ここまで).(削除) org (削除ここまで)/(削除) sioc (削除ここまで)/ (削除) Semantically (削除ここまで)-(削除) Interlinked Online Communities (SIOC) RDF Ontology (削除ここまで)]
== Work in progress ==
== Work in progress ==
Line 932:
Line 208:
* [[blog-post-brainstorming|blog-post Brainstorming]]
* [[blog-post-brainstorming|blog-post Brainstorming]]
=(削除) = Hints and Tips == (削除ここまで)
=== (追記) Version 0.1 (追記ここまで)===
=== (削除) CSS tips (削除ここまで)==(削除) = (削除ここまで)
(削除) HTML typically styles <code>address</code> as a block level element in an italic font. This will make it inline and plain: (削除ここまで)
(削除) <pre><nowiki> (削除ここまで)
(追記) Version 0.1 was released 28 February 2006. (追記ここまで)
(削除) display: inline; (削除ここまで)
(削除) font-weight: normal; (削除ここまで)
(削除) font-style: normal; (削除ここまで)
(削除) </nowiki></pre> (削除ここまで)
== Discussions ==
== Discussions ==
Line 956:
Line 223:
==See Also==
==See Also==
(削除) * [[hatom|hAtom]] - the draft proposal (削除ここまで)
(追記) {{ (追記ここまで)hatom-(追記) related (追記ここまで)-(追記) pages}} (追記ここまで)
(削除) * [[ (削除ここまで)hatom-(削除) issues]] (削除ここまで)- (削除) problems? complaints? ideas? Put them here (削除ここまで)
* [[(追記) rel (追記ここまで)-(追記) enclosure (追記ここまで)]] - (追記) how to semantically reference enclosures (e.g. podcasts) in hAtom (追記ここまで)
* [[(削除) hatom (削除ここまで)-(削除) faq (削除ここまで)]] - (削除) knowledge base (削除ここまで)
* [[blog-post-brainstorming]]
* [[blog-post-brainstorming]]
* [[blog-post-formats]]
* [[blog-post-formats]]
* [[blog-post-examples]]
* [[blog-post-examples]]
(追記) * [[blog-post-feed-equivalence]] (追記ここまで)
* [[blog-description-format]] - how to describe a blog (as opposed to the individual entries, which is what we're doing here)
* [[blog-description-format]] - how to describe a blog (as opposed to the individual entries, which is what we're doing here)
(追記) * [[xhtml-syndication]] (追記ここまで)
(追記) [[Category:Draft Specifications]] (追記ここまで)
(追記) [[Category:hAtom]] (追記ここまで)
(追記) == Translations == (追記ここまで)
(追記) Read the hAtom draft specification in additional <span id="languages">languages</span>: (追記ここまで)
(追記) * [[hatom-fr|français]] (追記ここまで)
Latest revision as of 23:32, 20 June 2024
This document represents a draft microformat specification. Although drafts are somewhat mature in the development process, the stability of this document cannot be guaranteed, and implementers should be prepared to keep abreast of future developments and changes. Watch this wiki page, or follow discussions on the #microformats IRC channel to stay up-to-date.
hAtom is a microformat for content that can be syndicated, primarily but not exclusively weblog postings. hAtom is based on a subset of the Atom syndication format. hAtom will be one of several microformats open standards.
Draft Specification
- Contributors
- Benjamin Carlyle
- Tantek Çelik (http://tantek.com/ and before at Technorati, Inc.)
copyright and patents statements apply.
Status
hAtom 0.1 is a microformats.org draft specification. Public discussion on hAtom takes place on hatom-feedback, the #microformats irc channel on irc.freenode.net, and microformats-discuss mailing list.
Available languages
The English version of this specification is the only normative version. For translations of this document see the #translations section.
Errata and Updates
Known errors and issues in this specification are corrected in resolved and closed issues. Please check there before reporting issues.
The hAtom 0.2 update is currently under development and incorporates known errata corrections as well as the value-class-pattern.
Introduction
hAtom is a microformat for identifying semantic information in weblog posts and practically any other place Atom may be used, such as news articles. hAtom content is easily added to most blogs by simple modifications to the blog's template definitions.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
Example
Here is a simple blog post example:
<article class="hentry">
<h1 class="entry-title">Microformats are amazing</h1>
<p>Published by <span class="author vcard"><span class="fn">W. Developer</span></span>
on <time class="published" datetime="2013年06月13日 12:00:00">13<sup>th</sup> June 2013</time></p>
<p class="entry-summary">In which I extoll the virtues of using microformats.</p>
<div class="entry-content">
<p>Blah blah blah</p>
</div>
</article>
Get started
The class hentry is a root class name that indicates the presence of an hAtom entry.
entry-title, author, published, entry-summary, entry-content and the other hAtom property classnames listed below define properties of the entry.
Format
In General
The Atom Syndication Format provides the conceptual basis for this microformat, with the following caveats:
- Atom provides a lot more functionality than we need for a "blog post" microformat, so we've taken the minimal number of elements needed.
- the "logical" model of hAtom is that of Atom. If there is a conflict, Atom should be taken as correct.
- the "physical" model of hAtom -- the actual writing of elements -- is a lot more varied than Atom provides for, due to the variety of ways weblogs are actually produced in the wild. The hAtom microformat provides a number of rules for "bridging the gap"
Schema
Schema elements are based on the Atom nomenclature and follow the microformat pattern of prefixing a unique identifier (in this case, 'h') on the outermost container elements -- the Feed or Entry. The parts of this microformat are based on analysis of many weblog, bulletin board and media posts and can be read blog-post-brainstorming#Discovered_Elements.
The hAtom schema consists of the following:
- hfeed (
hfeed). optional.
feed category. optional. keywords or phrases, using rel-tag .
- hentry (
hentry).
[*] Some required elements have defaults if missing, see below.
Field and Element Details
Feed
- a Feed element is identified by the class name
hfeed
- a Feed element represents the concept of an Atom feed
- the Feed element is optional and, if missing, is assumed to be the page
- hAtom documents MAY have multiple Feed elements
Feed Category
- a Feed Category element is identified by rel-tag
- a Feed MAY have a Feed Category
- a Feed Category element represents the concept of an Atom category inside a feed
- Feed Category elements MUST appear inside a Feed element but not inside an Entry element
- the rel-tag
href encodes the atom category:term; the link text defines the atom category:label
Entry
- an Entry element is identified by class name
hentry
- an Entry element represents the concept of an Atom entry
- any microformat content inside a
<blockquote> or <q> element within the Entry should not be considered part of the Entry.
- This allows quoting other microformated data without worry of corrupting the model
Entry Category
- an Entry Category element is identified by rel-tag
- an Entry MAY have an Entry Category
- an Entry Category element represents the concept of an Atom category inside an entry
- the rel-tag
href encodes the atom category:term; the link text defines the atom category:label
Entry Title
- an Entry Title element is identified by the class name
entry-title
- an Entry SHOULD have an Entry Title
- an Entry Title element represents the concept of an Atom entry title
- if the Entry Title is missing, use
- the first
<h#> element in the Entry, or
- the
<title> of the page, if there is no enclosing Feed element, or
- assume it is the empty string
Entry Content
- an Entry Content element is identified by class name
entry-content
- an Entry SHOULD have Entry Content
- an Entry Content element represents the concept of an Atom content
- an Entry MAY have 0 or more Entry Content elements. The "logical Entry Content" of an Entry is the concatenation, in order of appearance, of all the Entry Contents within the Entry
- Many web logs split content into multiple sections with a "Read More" link and JavaScript tricks. This is also needed in cases where Entry Titles are coded in-line and are considered part of the content.
- if the Entry Content is missing, assume it is the empty string
Entry Summary
- an Entry Summary element is identified by class name
entry-summary
- an Entry Summary element represents the concept of an Atom summary
- an Entry MAY have 0 or more Entry Summary elements. The "logical Entry Summary" of an Entry is the concatenation, in order of appearance, of all the Entry Summarys within the Entry
Entry Permalink
- an Entry Permalink element is identified by rel-bookmark
- an Entry SHOULD have an Entry Permalink
- an Entry Permalink element represents the concept of an Atom link in an entry
- if the Entry Permalink is missing, use the URI of the page; if the Entry has an "id" attribute, add that as a fragment to the page URI to distinguish individual entries
Entry Updated
- an Entry Updated element is identified by class name
updated
- an Entry Updated element represents the concept of Atom updated
- an Entry SHOULD have an Entry Updated element
- use the value class pattern date and time to encode the updated datetime
- if there is no Entry Updated element,
- use the Entry Published element, if present
- otherwise the page is invalid hAtom
Entry Published
Entry Author
- an Entry Author element is represented by class name
author
- an Entry Author element represents the concept of an Atom author
- an Entry Author element MUST be encoded in an hCard
- an Entry Author element SHOULD be encoded in an
<address> element
- an Entry SHOULD have at least one Entry Author element
- an Entry MAY have more than one Entry Author elements
- if the Entry Author is missing
- find the Nearest In Parent
<address> element(s) with class name author and that is/are a valid hCard
- otherwise the entry is invalid hAtom
XMDP Profile
See hatom-profile.
Examples
See hatom-examples.
Examples in the wild
See hatom-examples-in-wild.
Implementations
See hatom-implementations.
Copyright
This specification is (C) 2005-2025 by the authors. However, the authors intend to submit (or already have submitted, see details in the spec) this specification to a standards body with a liberal copyright/licensing policy such as the GMPG, IETF, and/or W3C. Anyone wishing to contribute should read their copyright principles, policies and licenses (e.g. the GMPG Principles) and agree to them, including licensing of all contributions under all required licenses (e.g. CC-by 1.0 and later), before contributing.
- Tantek: I release all my contributions to this specification into the public domain and I encourage the other authors to do so as well.
- When all authors/editors have done so, we can remove the MicroFormatCopyrightStatement template reference and replace it with the MicroFormatPublicDomainContributionStatement.
Patents
This specification is subject to a royalty free patent policy, e.g. per the W3C Patent Policy, and IETF RFC3667 & RFC3668.
Semantic HTML Design Principles
- Reuse the schema (names, objects, properties, values, types, hierarchies, constraints) as much as possible from pre-existing, established, well-supported microformats.
- When new schema are needed, reuse the schema (names, objects, properties, values, types, hierarchies, constraints) as much as possible from pre-existing, established, well-supported other formats/standards by incorporation, following the microformats naming-principles. Re-do constraints expressed in the source standard from the perspective of microformats design principles and designed primarily for web authoring. Informatively mention source standard for reference purposes.
- For types with multiple components, use nested elements with class names equivalent to the names of the components.
- Plural components are made singular, and thus multiple nested elements are used to represent multiple text values that are comma-delimited.
- Use the most accurately precise semantic HTML building block for each object etc.
- Otherwise use a generic structural element (e.g.
<span> or <div>), or the appropriate contextual element (e.g. an <li> inside a <ul> or <ol>).
- Use class names based on names from the original schema, unless the semantic HTML building block precisely represents that part of the original schema. If names in the source schema are case-insensitive, then use an all lowercase equivalent. Components names implicit in prose (rather than explicit in the defined schema) should also use lowercase equivalents for ease of use. Spaces in component names become dash '-' characters.
- Finally, if the format of the data according to the original schema is too long but still human readable/listenable, use
<abbr> instead of a generic structural element, and place the literal longer data into the 'title' attribute (where abbr expansions go), and the briefer equivalent into the contents of the element itself. If however, the format of the literal longer data data is not human-friendly, instead of <abbr>, use the value-class-pattern or HTML5 <time>/<data> elements as most semantically appropriate.
References
Normative References
Informative References
Further Reading
Work in progress
This specification is a work in progress. As additional aspects are discussed, understood, and written, they will be added. There is a separate document where we are keeping our brainstorms and other explorations relating to hAtom:
Version 0.1
Version 0.1 was released 28 February 2006.
Discussions
Q&A
- If you have any questions about hAtom, check the hAtom FAQ, and if you don't find answers, add your questions!
Issues
- Please add any issues with the specification to the separate hAtom issues document.
See Also
Translations
Read the hAtom draft specification in additional languages: