Hello again with a day after my first inital hCard test within Umbraco I have released an updated version of the XSLT.
To use this macro is the same as before, but please now use the updated XSLT code which you can download from this blog post.
I have updated the code to check for content within the macro parameters, the only required field the user needs to input is the company name as this has the FN (Formatted Name) class associated which is the requirment for hCards.
The look and feel of the hCard can be altered with CSS styles, but feel free to change the ordering of the content to suit your own needs. If you do change it around I recommend that you test your updated hCard by using suda.co.uk’s hCard to vCard convertor. If it does not format you will get a general error. So it is case of trial and error here I am afraid.
If you use this script at all, I would really appreciate any feedback as this will help me further improve this script and any future ideas.