[uf-discuss] hCard multiple locations

Jason Karns karns.17 at gmail.com
Fri Aug 24 08:38:42 PDT 2007


I'm having an issue with an hcard that has multiple locations.  Since
having multiple locations nested in the hcard would result in only one
location being exported (others ignored/overwritten) I'm trying to use
the include pattern to make each location its own hcard and then
include the fn/org properties.  However, this seems to be resulting in
a lot of extraneous wrapper elements (2 wrappers and an 'include' link
for *each* location). Suggestions?

Original markup:

<div class="vcard">
 <span>Copyright 2007 by <span class="fn org">ORG</span></span>
 <span id="cities" class="adr">
   <abbr class="locality geo" title="39.202130;-84.372071">Cincinnati</abbr> |
   <abbr class="locality geo" title="39.969873;-83.003934">Columbus</abbr> |
   <abbr class="locality geo" title="35.230437;-80.838467">Charlotte</abbr>
 </span>
</div>

Proposed revision:

<div>
 <span>Copyright 2007 by <span class="fn org" id="fn-org">ORG</span></span>
 <span id="cities">
   <span class="vcard"><span class="adr">
     <a class="include" href="#fn-org"></a>
     <abbr class="locality geo"
title="39.202130;-84.372071">Cincinnati</abbr> |
   </span></span>
   <span class="vcard"><span class="adr">
     <a class="include" href="#fn-org"></a>
     <abbr class="locality geo" title="39.969873;-83.003934">Columbus</abbr> |
   </span></span>
   <span class="vcard"><span class="adr">
     <a class="include" href="#fn-org"></a>
     <abbr class="locality geo" title="35.230437;-80.838467">Charlotte</abbr>
   </span></span>
 </span>
</div>


More information about the microformats-discuss mailing list