[uf-discuss] Re: Exporting Hcard data

Frances Berriman fberriman at gmail.com
Fri Nov 17 09:26:46 PST 2006


On 11/17/06, Michelle Tarby <tarbymm at lemoyne.edu> wrote:
> OK, I'm making progress - I wasn't passing any kind of ID, so that's why X2V would just spin away.
>
> What I have noticed is that it looks like the vCard that's generated adds a bunch of extra commas, so I'm guessing I don't have my page formatted correctly.
>
> <div  class="vcard">
> <span class="n" style="display:none">
> <span class="family-name"><%=rs("LastName") %></span>
> <span class="given-name"><%=rs("FirstName") %></span>
> </span>
> <div class="fn"><%= rs("FirstName") %>&nbsp; <%= rs("LastName") %></div>
> <div class="title"><%= rs("Title") %></div>
> <div class="org"><%= rs("Department") %></div>
> <div class="adr">
> <div class="street-address"><%= rs("Street1") %>&nbsp; <%= rs("Street2") %></div></div>
> <div class="tel"><%= rs("Phone") %></div>
>  <a class="email" href="mailto:<%= rs("SchoolEmail") %>"><%= rs("SchoolEmail") %></a>
> </div>
>
> I'm wondering if I'm confusing where to use div vs. span or if that makes a difference.  Any information would be appreciated!

It makes no real difference.  Infact, in the examples in the spec,
divs and spans are simply used for demonstrational purposes.
Generally, you should be making every effort to mark up the
information as semantically as possible and this is often done without
using any divs or spans at all (and instead using lists, paragraphs,
etc. and putting the classes on these).  So - yeah.  That shouldn't be
your issue.

I can't spot anything out of the oridinary above.  I'd have done the address as:

<div class="adr">
<span class="street-address"><%= rs("Street1") %>&nbsp; <%=
rs("Street2") %></span></div>

but that's about it.  Sorry :(

What's does your result look like (with the extra commas)?

-- 
Frances Berriman
http://fberriman.com


More information about the microformats-discuss mailing list