xfolk-profile

From Microformats Wiki
xfolk-profile /
Revision as of 13:20, 6 August 2009 by Tantek (talk | contribs) (→‎Profile: source instead of pre, note about inclusion of rel-tag profile in practice)
Jump to navigation Jump to search

<entry-title>xFolk meta data profile</entry-title> The following is an XMDP profile for the xFolk specification.

Authors

URLs

This profile is hosted as a separate XMDP file on microformats.org:

Usage

Profiles are referenced in (X)HTML files in the <HEAD> tag, e.g.:

<head profile='http://microformats.org/profile/xfolk'>

Profile

As described in HTML4 Meta data profiles and further elaborated on in XHTML Meta Data Profiles with specific reference to the XFN 1.1 relationships meta data profile and XOXO Profile.

The author Bud believes this profile provides a set of class attribute values sufficient to be used in working implementations of xFolk. The profile may be incomplete and is subject to change as xFolk evolves.

Note that in practice it makes sense to include the rel="tag" profile in any profile of xFolk, since xFolk makes critical use of rel-tag as a building block.

 <dl class="profile">
   <dt id="class">class</dt>
   <dd>
     <p>[http://www.w3.org/TR/html401/struct/global.html#adef-class HTML4 definition of the 'class' attribute].  This meta data profile defines some 'class' attribute values (class names) and their meanings as suggested by a [http://www.w3.org/TR/WD-htmllink-970328#profile" draft of "Hypertext Links in HTML"]:</p>
     <dl>
       <dt id="xfolkentry">xfolkentry</dt>
       <dd>Indicates a container element for an xFolk entry.  An xFolk entry indicates one bookmark with supporting metadata that the user wants to have aggregated into a folksonomy.  The xfolkentry class attribute value is usually applied to &lt;div>, &lt;ul>, &lt;ol>, &lt;dt>, &lt;p> or &lt;span> elements.  xFolk elements contained in an xfolkentry may be nested at an arbitrary depth.</dd>
       <dt id="taggedlink">taggedlink</dt>
       <dd>An &lt;a> tag of class taggedlink indicates the URL of the item the xFolk entry bookmarks.  One and only one &lt;a> element of class taggedlink must occur within each element of class xfolkentry.  The title of the bookmark is in order of availability: (1) the value of an optional title attribute; (2) The value of the &lt;a> element itself.</dd>
       <dt id="description">description</dt>
       <dd>A further description of the xFolk entry.  Typically applied to &lt;dd>, &lt;li>, &lt;p>, and &lt;span> elements.  Elements of class <code>description</code> are optional and may occur multiply.  When multiple elements of class <code>description</code> are present, they are assumed to be in document order.</dd>
       <dt id="extended">extended</dt>
       <dd>A deprecated class value that is equivalent to <code>description</code>.</dd>
     </dl>
   </dd>
 </dl>

Related pages