From Microformats Wiki
Revision as of 07:25, 25 June 2009 by Singpolyma (talk | contribs) (fragment url resolution issue)
Jump to navigation Jump to search

x2v is one of the main microformats implementations. The code is managed in an x2v hg repository. BrianSuda and DanC are starting to track issues here. See #microformats discussion 20 Dec.

See also: hCard tests, hCard issues, @@likewise for hCalendar, hAtom...


X2V's php does not correctly check for content-encodings


X2V failed trailing slash in rel-tag (this is now fixed)

FN ORG incomplete

FN == ORG (i don't think) is complete

XSLT case-conversion on Nodes

Firefox seems to convert nodes to uppercase when using local-name(.) and name(.). This can be solved by switching to self::

The downside is that then it will not extract the node name from ANY namespace, but a specific one.

language for X-WR-CALNAME

Fragments and Relative URLs

When transforming a URL with a fragment (ie: http://singpolyma.net/#profile) X2V correctly pulls out just the one hCard, but when resolving relative URLs it resolves them to, eg, http://singpolyma.net/#profile/resume/


The X-WR-CALNAME is a widely supported extension property of VCALENDAR that stores the calendar title. It does not currently have a LANGUAGE attribute. It's value is meant to be human readable, so maybe it should.


<html lang=en>
    <title>My calendar</title>
  <body class=vcalendar>...</body>

yields something like

X-WR-CALNAME:My calendar


The second line should read X-WR-CALNAME;LANGUAGE=en:My calendar

No support for AGENT

Doesn't seem to support agent at all -- either as a human-readable string nor as a nested hCard. E-mail addresses, phone numbers, etc which are part of the agent's vcard are treated as belonging to the main contact.

Test: http://examples.tobyinkster.co.uk/hcard

See also

  • vcard-implementations for how particular vCard implementations (e.g. clients) have problems with any standard vCard properties or values.
  • icalendar-implementations for how particular iCalendar implementations (e.g. clients) have problems with any standard iCalendar properties or values.