Tuesday, June 13, 2006

XHTML as a schema language?

Microformats is the philosophy of leveraging existing XHTML structures for markup, rather than defining completely new XML grammars.

As an example, the XML Friends Network (XFN) microformat builds on the XHTML <a> element and uses the "rel" attribute to express the nature of the relationship represented by the HTML link.

There definitely is something to be said for microformats as an end-of-line presentation format - everybody already has a viewer.

But, using XHTML Definition Lists (<DL> elements) to express constraints on the allowed values for the rel attribute (as is proposed here and explained here) seems a perversion.

No comments: