suda.co.uk

X2V

Introduction

This is a BETA implementation of an XSLT file to transform and hCa* encoded XHTML file into the corresponding vCard/iCalendar file. The DRAFT specification for hCa* encodings can be found at the Technorati Developer Wiki.

As the specification become less of a moving target the XSLT file will solidify and a proper html profile created.

hCalendar-2-iCalendar

Extract iCal from URL

hCard-2-vCard

Extract vCard from URL

Tools

These are a few tools for anyone who wants to decode hCa* data.

hCalendar

If you want to create buttons or links to signal that a page is hCal encoded, you can link to the X2V transformation by using the following: http://suda.co.uk/projects/microformats/hcalendar/get-cal.php?uri=<COMPLETE-URL-TO-YOUR-SITE>

Drag this bookmarklet to the bookmarks bar so you can grab iCal data from any hCal participating URL.
Extract iCal data (Drag link to the Bookmarks Bar).

The XSLT file used to transform the data is available at:

hCard

If you want to create buttons or links to signal that a page is hCard encoded, you can link to the X2V transformation by using the following: http://suda.co.uk/projects/microformats/hcard/get-contact.php?uri=<COMPLETE-URL-TO-YOUR-SITE>

Drag this bookmarklet to the bookmarks bar so you can grab vCard data from any hCard participating URL.
Extract vCard data (Drag link to the Bookmarks Bar)

The XSLT file used to transform the data is available at:

Implementations

Technorati uses these files in two of their feed services. They are using slightly older, stable versions of the XSLT files, but their servers are faster and more reliable than my site. Feel free to use either of our web services.

Download

All of the PHP code and XSLT files are available for download through our Hg versioning system, http://hg.microformats.org/

The XSLT files have been relicensed and are available for download under the W3C Open Source License.

Last modified: October 11, 2009 17:15:03 UTC

Copyright 2002-©-2014 Brian Suda
http://suda.co.uk/projects/X2V/
Creating symbol fonts Follow Me on Twitter Sign-up for the mailing list Long Form Writing
Designing With Data By Brian Suda