- From: Niklas Lindström <lindstream@gmail.com>
- Date: Fri, 11 Nov 2011 16:55:12 +0100
- To: Ivan Herman <ivan@w3.org>
- Cc: Toby Inkster <tai@g5n.co.uk>, Gregg Kellogg <gregg@kellogg-assoc.com>, RDFa WG <public-rdfa-wg@w3.org>
On Fri, Nov 11, 2011 at 4:23 PM, Ivan Herman <ivan@w3.org> wrote: > > On Nov 11, 2011, at 16:09 , Toby Inkster wrote: > >> On Thu, 10 Nov 2011 09:52:04 -0500 >> Gregg Kellogg <gregg@kellogg-assoc.com> wrote: >> >>> In my version of the proposals, I perform lexical analysis of >>> @datetime against xsd:date, xsd:dateTime and xsd:time and choose the >>> datatype based on the match. It's quite simple. >> >> This is what I do for <time> handling in my Microdata parser (though >> IIRC I also support all of the xsd:gFoo types too). I'd support adding >> something like this to (X)HTML+RDFa 1.1, but I think it's too >> HTML-specific to be added to Core. >> >> Note that this should be trigger specifically by the <time> element, >> and should not apply to all elements with a @datetime attribute. This >> is because we probably wouldn't want to pick up @datetime on <ins> and >> <del>. >> > > Agree on all account! This should go to the HTML5 stuff. > > Note also Jeni's comment: it is not only the datetime attribute: if the attribute is not around, the content of the date element should also be considered. I fully agree. Note that we already have element awareness for RDFa in (X)HTML: the base element is treated (very) specially, as is head and body (implying @about). Thus special processing of the content of <time> in HTML should be quite ok. I also think we should consider whether xsd:gYear, xsd:gYearMonth and xsd:gMonthDay can be captured as well (since years less than 1000 must be padded with leading zeros [1]). Of course, xsd:gMonth and xsd:gDay are too ambiguous, as today's date so amply indicates. ;) Best regards, Niklas [1]: http://www.w3.org/TR/xmlschema11-2/#nt-gYearRep > Ivan > > >> -- >> Toby A Inkster >> <mailto:mail@tobyinkster.co.uk> >> <http://tobyinkster.co.uk> >> > > > ---- > Ivan Herman, W3C Semantic Web Activity Lead > Home: http://www.w3.org/People/Ivan/ > mobile: +31-641044153 > FOAF: http://www.ivan-herman.net/foaf.rdf > > > > > > >
Received on Friday, 11 November 2011 15:56:01 UTC