[uf-discuss] Automatic conversion of XML to microformat and vice versa; recommendation for handling XML attributes?

Brian Suda brian.suda at gmail.com
Sun Aug 27 08:15:03 PDT 2006

On 8/27/06, Costello, Roger L. <costello at mitre.org> wrote:

> Microformat newbie here, so please bear with me if my questions are
> misguided.

--- welcome Roger.

> Question #1
> Do you agree with using <dl> for XML leaf nodes?  If not, do you
> recommend something else?

while this might work in your case, trouble appears when you have
attibutes on those Element... how would you encode those?

The XOXO microformat (http://microformats.org/wiki/xoxo) allows for
this sort of encoding. You could tweak it slighty so you get class
attribute values which you could then style. XOXO uses OL lists, with
DL lists for attributes and should solve your problems, i would
suggest reading-up on that and if there are still problems let us

There are also several implementations of how to internalize a XOXO
list into a PHP, Python,Ruby,etc. array. Sort of an HTML JSON.


brian suda

More information about the microformats-discuss mailing list