Re: hCard, GRDDL, and microformats

Le 25 juil. 2005, à 17:41, Dan Connolly a écrit :
> One of the reasons I started hacking on xhtml2vcard.xsl was
> to adapt it to produce RDF output. I haven't done that
> yet.

Just an idea, which came to my mind.
Another output that could be done as well would be

 From Microformats

Requirement:
	<head
		profile="@@here URI list of profiles@@">

<span class="vevent">
  <a class="url" href="http://www.web2con.com/">
   <span class="summary">Web 2.0 Conference</span>:
   <abbr class="dtstart" title="2005-10-05">October 5</abbr>-
   <abbr class="dtend" title="2005-10-07">7</abbr>,
  at the <span class="location">Argent Hotel, San Francisco, CA</span>
  </a>
</span>



To XHTML 2.0 WD syntax

Requirement:
	<html
		xmlns:cal="@@here URI of namespace@@"… >


Markup:

<span role="cal:vevent">
  <a role="cal:url" href="http://www.web2con.com/">
   <span role="cal:summary">Web 2.0 Conference</span>:
   <abbr role="cal:dtstart" title="2005-10-05">October 5</abbr>-
   <abbr role="cal:dtend" title="2005-10-07">7</abbr>,
  at the <span role="cal:location">Argent Hotel, San Francisco, CA</span>
  </a>
</span>


Benefits:
	- Avoid name clash when mixing vocabularies.
	- Maybe easier to write when multiple profile URIs

	<head
		profile="http://example.org/uri1 http://example.org/uri2 
http://example.org/uri3">

compared to

	<html
		xmlns="http://www.w3.org/2002/06/xhtml2/"
		...
		xmlns:ns1="http://example.org/uri1"
		xmlns:ns2="http://example.org/uri2"
		xmlns:ns3="http://example.org/uri3">



-- 
Karl Dubost - http://www.w3.org/People/karl/
W3C Conformance Manager
*** Be Strict To Be Cool ***

Received on Tuesday, 26 July 2005 13:41:30 UTC