Re: [WSG] Semantic markup for a person's name or business name

2008-03-26 Thread Thomas Thomassen
Semantic markup for a person's name or business nameThe ADDRESS element is 
intended to provide contact information for the author of the HTML document, 
not any address.
http://www.w3.org/TR/html401/struct/global.html#h-7.5.6

-Thom
  - Original Message - 
  From: Cole Kuryakin 
  To: wsg@webstandardsgroup.org 
  Sent: Wednesday, March 26, 2008 5:56 AM
  Subject: [WSG] Semantic markup for a person's name or business name


  Hello All -

  I've been reading a book by Andy Clarke which has a few pages related to 
micro-formats.

  He uses the example of marking up an address tag similar to the below using 
classes (note that br's are mine for formatting):


  address

  span class=street101 Some Street, /span

  span class=subdivisionSome Sub division/spanbr /

  span class=cityAlameda, /span

  span class=stateCalifornia, /span

  span class=postal94501/spanbr /

  span class=countryUnited States of America/span

  /address

  But. what if you want to include a person's name (or a business name) ABOVE 
the address tag? The only thing that comes immediately to mind would be 
citeJohn Smith/cite but that doesn't seem correct. Or, should one use an 
additional span above the address block like this: span 
class=contactNameJohn Smith/span?


  So the whole thing might look like this:


  span class=contactNameJohn Smith/span

  address

  span class=street101 Some Street, /span

  span class=subdivisionSome Sub division/spanbr /

  span class=cityAlameda, /span

  span class=stateCalifornia, /span

  span class=postal94501/spanbr /

  span class=countryUnited States of America/span

  /address



  Interested in all opinions as well as if there is any current standard 
which addresses this particular issue. 


  Cole



  ***
  List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
  Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
  Help: [EMAIL PROTECTED]
  *** 

***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***


Re: [WSG] Semantic markup for a person's name or business name

2008-03-26 Thread Michael MD
Semantic markup for a person's name or business nameI think the address tag 
is specifically intended for the author contact for the page itself (and 
only used once on a page).


for hCard markup see this page: http://microformats.org/wiki/hCard

If you want tools that use microformats (such as the Operator Firefox 
plugin) to see it you should use hCard property names for the classnames

and enclose the whole thing in an element with the class vcard.

fn
post-office-box
extended-address
street-address
locality
region
postal-code
country-name
tel

use fn for the person's name  (fn is required for a valid hCard)

eg: span class=fnJohn Smith/span

street-address instead of street
...etc...

If you need to put something outside the vcard container that needs to be 
seen as part of that hCard (eg for something that is repeated), you can use 
include-pattern - http://microformats.org/wiki/include-pattern.
(only if you really need to - this does rely on parsers having DOM-like 
functions)


If you just want to mark up an address rather than a contact with a name 
there is also adr - http://microformats.org/wiki/adr












***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



RE: [WSG] Semantic markup for a person's name or business name

2008-03-26 Thread Cole Kuryakin
Thanks to all for their input on this issue.

The hCard link within microformats.org was very helpful.

Two follow-on question though:

1. What does the v and h stand for in regards to vCard and hCard,
and:

2. Aside from it's semantic nature, is there really any functional use for
formatting data using microformats? I mean, if your format various content
using microformat standards - as they currently exist - is this
information then usable/parse-able on different devices? Or is the use of
microformats simply an effort to make specific content blocks (content
details, calendars, etc.) semantically coherent in html documents?

Thanks to all again.

Cole



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Semantic markup for a person's name or business name

2008-03-26 Thread Rob Crowther

Cole Kuryakin wrote:

2. Aside from it's semantic nature, is there really any functional use for
formatting data using microformats? 


For some practical examples of doing stuff with hCard:

Online service to translate hCard into vCard (ie. put directly into your 
contacts application:


http://suda.co.uk/projects/X2V/

Operator Firefox Add-on to make use of microformatted content from 
directly within the browser:


https://addons.mozilla.org/en-US/firefox/addon/4106

Example code for using hCards to fill in forms:

http://lib.omnia-computing.de/hcardmapper

Also, Technorati make heavy use of microformats (they were the 
originators of several of them):


http://kitchen.technorati.com/search

Rob


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



RE: [WSG] Semantic markup for a person's name or business name

2008-03-26 Thread Michael MD

2. Aside from it's semantic nature, is there really any functional use  
 for
 formatting data using microformats? I mean, if your format various content
 using microformat standards - as they currently exist - is this
 information then usable/parse-able on different devices? Or is the use of
 microformats simply an effort to make specific content blocks (content
 details, calendars, etc.) semantically coherent in html documents?


Check out the Firefox plugins 
Operator - https://addons.mozilla.org/en-US/firefox/addon/4106
and Tails - https://addons.mozilla.org/en-US/firefox/addon/2240


It looks like some native support for microformats may be coming soon to
Firefox
http://developer.mozilla.org/en/docs/Using_microformats

and also IE8,
though they seem to be creating their own variation - Webslices which
appears to be a wrapper around hAtom -
http://www.microsoft.com/windows/products/winfamily/ie/ie8/webslices.mspx 

There are also some online services to do conversions
(such as X2V - http://suda.co.uk/projects/X2V/ )

Check out the implementations pages on the microformats.org wiki for other
implementations - eg: http://microformats.org/wiki/hcard-implementations









***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***