[uf-discuss] Human and machine readable data format
Karl Dubost
karl at w3.org
Mon Jun 30 21:56:06 PDT 2008
Le 1 juil. 2008 à 12:50, Scott Reynen a écrit :
> If HTML offered us a @metadata attribute, I think we'd do something
> like this:
> <abbr title="June 30th, 2008" metadata="2008-06-30">6/30/08</abbr>
* HTML 5
<time datetime="2006-09-23"
title="June 30th, 2008">6/30/08</time>
* RDFa
<span property="cal:dtstart"
datatype="xsd:datetime"
content="2008-06-30"
title="June 30th, 2008">6/30/08</span>.
If you are using XHTML 1.1+RDFa (served as application/xhtml+xml)
and you want it to be valid.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd
">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:cal="http://www.w3.org/2002/12/cal/ical#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xml:lang="en">
or simply
<html version="XHTML+RDFa 1.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:cal="http://www.w3.org/2002/12/cal/ical#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xml:lang="en">
--
Karl Dubost - W3C
http://www.w3.org/QA/
Be Strict To Be Cool
More information about the microformats-discuss
mailing list