rest/datatypes

From Microformats Wiki
Revision as of 04:51, 7 January 2006 by DrErnie (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Datatypes in HTML

One of the challenges of using HTML as a data transport is that everything, by default, is a string. This page explores ways to use microformats -- specifically, class names -- to encode data type information, e.g., for use with xoxo and rest/ahah.

Examples

Datatype usage in various languages
Language/format string float integer boolean data date/time
XML Schema string float, double decimal -> integer -> etc. boolean hexBinary, base64Binary duration, dateTime, date, time
Mac OS X plists string real integer true, false data date

Proposals

  • TBD

References

  • YAML format
  • JSON (JavaScript)
  • Datatypes in Wikipedia
  • Origional datatype [1]
  • Original [ plist] proposal