[uf-discuss] XOXO Comments
Tantek Ç elik
tantek at cs.stanford.edu
Wed Dec 21 16:55:32 PST 2005
On 12/21/05 2:56 PM, "Dr. Ernie Prabhakar" <drernie at opendarwin.org> wrote:
> Hi Paul,
> On Dec 21, 2005, at 2:28 PM, Paul Bryson wrote:
>> The XOXO format doesn't seem to allow, or specify, the use of heading
>> elements for multi-level outlines, such as <h2>, <h3>, etc. Is
>> there a
>> reason for this?
> I don't think XOXO cares about "headers" -- everything is determined
> by the structure. So, I assume <h2> et al would be part of the text
> (or ignore) not part of the XOXO structure per se.
It would be ignored by a XOXO-only parser, per the FAQ:
See my blogroll for an example of combining <hn> tag structure with a XOXO
> However, the very existence of headers implies that one can NOT do
> trivial YAML-like serialization. Kevin, does your parser even try to
> deal with that?
Except that we can (and do) special case the common case of a single element
surrounding the "content" of a XOXO item. This is done in the XOXO parsing
Of course this is not required by XOXO at all, but is permitted.
>> Also, none of these examples seem to use class="xoxo" in them. Is
>> this a
>> required feature, or optional?
> Good question. I suspect the answer may be context-dependent. If
> you're writing a parser, you could try to grab any list, but there's
> always the risk that it wouldn't keep the "xoxo" contract implied by
> the class name.
This is also in the FAQ:
More information about the microformats-discuss