[uf-dev] hCard locations in hCalendar

Ryan King ryan at technorati.com
Wed Apr 4 16:24:10 PDT 2007


On Apr 3, 2007, at 11:51 AM, Ryan King wrote:

> 2. How can we specify this in our test suite?
>
> ....
>  * putting the vCards in separate vcf files. (not sure if ALTREP  
> can take a relative URI, though. it should right?)

Ok, I've tried this, hg patch at the end. Reasonable?

-ryan

# HG changeset patch
# User Ryan King http://theryanking.com/
# Date 1175728852 25200
# Node ID 89ff35bbc020622723c57c5ad4240c6d62d55e14
# Parent  74ebe092d7a664245360684bb43db779bdacb74f
first cut at hcard-location test

diff -r 74ebe092d7a6 -r 89ff35bbc020 hcalendar/20-location-hcard.html
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/hcalendar/20-location-hcard.html  Wed Apr 04 16:20:52 2007 -0700
@@ -0,0 +1,22 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// 
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+    <meta http-equiv="Content-type" content="text/html;  
charset=utf-8" />
+    <title>20-location-hcard</title>
+</head>
+<body>
+    <div class="vevent">
+        <span class="summary">Yuri's Night Bay Area</span>
+        <abbr class="dtstart" title="">April 13, 2007, 4:30 pm</abbr>
+        <div class="location vcard" id="nasa-ames">
+            <span class="fn org">NASA Ames</span>
+            <span class="adr">
+                <span class="extended-address">Hangar 211 (Moffett  
Field)</span>
+                <span class="locality">Mountain View</span>,
+                <span class="region">California</span>,
+                <abbr class="country-name" title="United States of  
America">USA</abbr>
+            </span>
+        </div>
+    </div>
+</body>
+</html>
\ No newline at end of file
diff -r 74ebe092d7a6 -r 89ff35bbc020 hcalendar/20-location-hcard.ics
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/hcalendar/20-location-hcard.ics   Wed Apr 04 16:20:52 2007 -0700
@@ -0,0 +1,13 @@
+BEGIN:VCALENDAR
+PRODID:-//suda.co.uk//X2V 0.9.1 (BETA)//EN
+X-ORIGINAL-URL:(Best Practice: should be URL that this was ripped from)
+X-WR-CALNAME;CHARSET=UTF-8:20-location-hcard
+VERSION:2.0
+METHOD:PUBLISH
+BEGIN:VEVENT
+LOCATION;ALTREP=20-location-hcard.vcf;CHARSET=UTF-8:NASA Ames Hangar  
211 (Moffett Field) Mountain View\, California\, USA
+SUMMARY;CHARSET=UTF-8:Yuri's Night Bay Area
+DTSTART;VALUE=DATE-TIME:
+END:VEVENT
+
+END:VCALENDAR
\ No newline at end of file
diff -r 74ebe092d7a6 -r 89ff35bbc020 hcalendar/20-location-hcard.vcf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/hcalendar/20-location-hcard.vcf   Wed Apr 04 16:20:52 2007 -0700
@@ -0,0 +1,11 @@
+BEGIN:VCARD
+PRODID:-//suda.co.uk//X2V 0.10 (BETA)//EN
+SOURCE:(Best Practices states this should be the URL the vcard was  
transformed from)
+NAME:20-location-hcard
+VERSION:3.0
+N:;;;;
+ORG;CHARSET=UTF-8:NASA Ames
+FN;CHARSET=UTF-8:NASA Ames
+ADR;CHARSET=UTF-8:;Hangar 211 (Moffett Field);;Mountain  
View;California;;United States of America
+END:VCARD
+



--
Ryan King
ryan at technorati.com





More information about the microformats-dev mailing list