I've posted an update to my microformats CFC today. There are two bugfixes and several XSLT updates (thanks to Gideon Marken for bringing my attention to most of these issues.):
Bug fixes:
- microformat classes would not be found in a string if they were combined with other class declarations (i.e., the CFC would find <div class="hcard"> but not <div class="pagetitle hcard">). The regular expression to match classes was updated to fix this issue.
- the CFC would fail to recognize microformat strings as valid XML if they contained an unescaped ampersand ('&', often found in URLs, should be '&'). The CFC now automatically escapes all ampersands when parsing microformats out of a string.
Updates:
- xhtml2vcard.xsl was updated to the latest version as found on http://hg.microformats.org/x2v.
- xhtml2vcal.xsl was updated to the latest version as found on http://hg.microformats.org/x2v.
- mf-templates.xsl was updated to the latest version as found on http://hg.microformats.org/x2v.
- hAtom2Atom.xsl was updated to the latest version as found on http://hg.microformats.org/x2v.
You can download the CFC from my microformats CFC project page.

Post a comment