Difference between revisions of "rest/datatypes"
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
|- | |- | ||
! [http://www.w3.org/TR/xmlschema-2/#built-in-datatypes XML Schema] | ! [http://www.w3.org/TR/xmlschema-2/#built-in-datatypes XML Schema] | ||
− | | string || float, double || decimal | + | | string || float, double || decimal, integer, etc. || boolean || hexBinary, base64Binary || duration, dateTime, date, time |
|- | |- | ||
! [http://developer.apple.com/documentation/Cocoa/Conceptual/PropertyLists/Concepts/XMLPListsConcept.html Mac OS X plists] | ! [http://developer.apple.com/documentation/Cocoa/Conceptual/PropertyLists/Concepts/XMLPListsConcept.html Mac OS X plists] | ||
Line 24: | Line 24: | ||
* [http://www.crockford.com/JSON/ JSON] (JavaScript) | * [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 | + | * Origional [http://microformats.org/discuss/mail/microformats-discuss/2005-September/001020.html datatype] discussion |
− | * Original [ plist] proposal | + | * Original [http://homepage.mac.com/drernie/plist.html plist] datatype mapping proposal |
+ | * Revised [http://opendarwin.org/~drernie/xoxo-datatypes.html xoxo datatype] proposal |
Revision as of 04:57, 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 1.0: Extensible Open XHTML Outlines and rest/ahah.
Examples
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