rest/datatypes: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
Line 27: Line 27:


== References ==
== References ==
* [http://www.yaml.org/ YAML] format
* [http://www.crockford.com/JSON/ JSON] (JavaScript)
* [http://en.wikipedia.org/wiki/Datatype Datatypes] in Wikipedia
* [http://en.wikipedia.org/wiki/Datatype Datatypes] in Wikipedia
* Origional [http://microformats.org/discuss/mail/microformats-discuss/2005-September/001020.html datatype] discussion
* Origional [http://microformats.org/discuss/mail/microformats-discuss/2005-September/001020.html datatype] discussion
* Original [http://homepage.mac.com/drernie/plist.html plist] datatype mapping proposal
* Original [http://homepage.mac.com/drernie/plist.html plist] datatype mapping proposal
* Revised [http://opendarwin.org/~drernie/xoxo-datatypes.html xoxo datatype] proposal
* Revised [http://opendarwin.org/~drernie/xoxo-datatypes.html xoxo datatype] proposal

Revision as of 05:05, 7 January 2006

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
C char* float, double int, long, short byte void* N/A
JSON (JavaScript) string number number true, false object N/A

Proposals

  • TBD

References