[uf-dev] geo syntax details

Dan Connolly connolly at w3.org
Tue Mar 21 21:19:52 PST 2006


I got curious about geo syntax tonight,
inspired by http://austin.adactio.com/ .

I think I found an X2V bug; if I run this
thru it:

  <li class="vevent">
    testing event
    <div class="vcard">
      <span class="geo">
	<span class="latitude">20</span>
	<span class="longitude">24</span>
      </span>
    </div>
  </li>

I get a trailing semicolon:

GEO:20;24;

My read of the spec is that's no good.
http://www.w3.org/2002/12/cal/rfc2426#sec3.4.2

version info:

$ HEAD http://suda.co.uk/projects/X2V/xhtml2vcard.xsl
Last-Modified: Sat, 04 Mar 2006 19:08:31 GMT
Content-Length: 53779

I would have thought that a trailing delimiter
is harmless, but I know I had to cut off a trailing ,
in BYDAY thusly in order to get Apple's iCal to grok:

  <em class="byday">
    <!-- cut off final , -->
    <xsl:value-of select="substring($byday, 1,
string-length($byday)-1)" />
  </em>

I'd sure like to see more GEO examples in the specs;
I couldn't figure out how it was supposed to work from
the spec; I had to look at the X2V code.

http://microformats.org/wiki/hcard
http://microformats.org/wiki/hcard-parsing

I suppose I should add this to 
 http://microformats.org/wiki/hcard-tests
if not
 http://microformats.org/wiki/hcard-issues

-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E



More information about the microformats-dev mailing list