Singpolyma

XOXO (A Semantic Weblog)

Datatypeing

Posted on

There is some work going on at the microformats site to provide a datatypeing mechanism for microformats. XOXO being the most flexible format, it stands to gain much from such a system. While the work is as yet not done, it has come a fair way since I first saw it. Here is a basic overview of the system as it applies to XOXO :

Add the class ‘typed’ to the root XOXO element to specify that this XOXO makes use of datatypeing. Then, to each ‘a’ or ‘dd’ tag add one of the following classes:

  • ‘string’ for strings (this is the default if you do not specify a datatype class)
  • ‘boolean’ for boolean values (should be in page as ‘1’ or ‘0’)
  • ‘int’ or ‘long’ for integer values
  • ‘double’ for decimal values
  • ‘datetime’ for dates and times (should be encoded using the datetime-design-pattern)
  • ‘binary’ for binary data (should be encoded using a data URI)
  • ‘nil’ for NULL values

Note that other field types (such as HREF and TITLE) will simply always be treated as strings and this can only be applied to the direct contents of ‘a’ or ‘dd’ field-tags.

4 Responses

Sam Sethi

Thanks for the site. Good work chap but are you colour blind? This has to be the worst colour scheme for online reading I have ever seen! All you need is some blinking text and naff graphics and I would have thought I was back in 1990 reading one of the first web pages.

replica louis vuitton handbags

Hello!Very nice, beautiful and interesting site!Respect you! This is my site: [url=http://siniy.net/replica-louis-vuitton-handbags/index.html]replica louis vuitton handbags[/url] [url=http://siniy.net/discount-louis-vuitton-handbags/index.html]discount louis vuitton handbags[/url] [url=http://siniy.net/louis-vuitton-knockoff-handbags/index.html]louis vuitton knockoff handbags[/url] [url=http://siniy.net/louis-vuitton-knockoff-handbags/authentic-louis-vuitton-handbags.html]authentic louis vuitton handbags[/url]

buy phentermine

Hello!Very nice, beautiful and interesting site!Respect you!My site: [url=http://siniy.net/buy-phentermine-without-a-prescription/index.html]buy phentermine without a prescription[/url] [url=http://siniy.net/buy-phentermine-without-a-prescription/buy-phentermine-in-the-uk.html]buy phentermine in the uk[/url] [url=http://siniy.net/buy-phentermine-online-with-paypal/index.html]buy phentermine online with paypal[/url]

replica chanel handbags

Excellent site, added to favorites!! This is my site: [url=http://www.freewebs.com/hochuvtop/]replica chanel handbags[/url] [url=http://www.freewebs.com/hochuvtop/cheap-chanel-handbags.html]cheap chanel handbags[/url] [url=http://www.freewebs.com/hochuvtop/authentic-chanel-handbags.html]authentic chanel handbags[/url] [url=http://www.freewebs.com/chunichuni2/]discounted gucci handbags[/url] [url=http://www.freewebs.com/chunichuni2/gucci-handbag.html]gucci handbag[/url]

Leave a Response