[microformats-discuss] XHTML Property Lists (Mac OS X)

Dr.Ernie Prabhakar drernie at opendarwin.org
Fri Sep 23 20:16:19 PDT 2005


Hi all,

Many of you, I'm sure, know that Mac OS X uses Property Lists for  
generic data storage, often encoded in XML:

http://developer.apple.com/documentation/Cocoa/Conceptual/ 
PropertyLists/Concepts/XMLPListsConcept.html

As I think has been discussed before, these seem like a natural  
application for XOXO.  However, I don't believe anyone has actually  
worked out a mapping.  Here's my first cut at an XHTML equivalent of  
the XML Property List formant in Mac OS X:

<dl class="xoxo plist">
    <dt>NSDictionary</dt>
    <dd class="xs:string">Entries</dd>
    <dt>Key</dt>
    <dd class="xs:string">Value</dd>
    <dt>Array</dt>
    <dd>
      <ol>
        <li class="xs:string">Item #1</li>
        <li class="xs:string">Item #2</li>
      </ol>
    </dd>
    <dt>NSString</dt>
    <dd class="xs:string">abcd</dd>
    <dt>NSNumber (integer)</dt>
    <dd class="xs:integer">123</dd>
    <dt>NSNumber (floating-point)</dt>
    <dd class="xs:float">123.456</dd>
    <dt>NSDate</dt>
    <dd class="xs:date">1987-12-03</dd>
    <dt>NSNumber (BOOL YES)</dt>
    <dd class="xs:boolean">true</dd>
    <dt>NSNumber (BOOL NO)</dt>
    <dd class="xs:boolean">false</dd>
    <dt>NSData</dt>
    <dd class="xs:base64Binary">sdcfo2JTiXE=</dd>
</dl>

I realize that's a somewhat squirrely use of XML datatypes, but it  
seemed appropriate.  Would it be better (or worse) if I dropped the  
'xs' prefix?

I'm also attaching an HTML table showing the mapping -- apologies if  
that violates list etiquette:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://microformats.org/discuss/mail/microformats-discuss/attachments/20050923/70b8e9b0/plist.html
-------------- next part --------------

Please let me know if there's a better way to do this (or ask about  
this).

Thanks,
- Ernie P


More information about the microformats-discuss mailing list