[uf-discuss] Relationship between XFN and hCard

2006-05-15 Thread Dimitri Glazkov

I've been slowly chipping away at the implementation of XFN builder in
TinyMCE, which is the rich text editor for Wordpress and other
blogging/CMS tools.

Somewhere along the way an odd thought occured -- it seems that XFN
and hCard are closely related. XFN describes relationship of a person,
represented by the target page, and hCard declares that this link is
part of contact information.

I tried to search archives/wiki on the subject and found a couple of
things (http://microformats.org/wiki/hcard-examples#hCard_and_XFN, for
instance), but nothing definitive.

As a brainstorming idea, I implemented the XFN builder UI to also be
an implicit hCard builder.  The hCard is created by wrapping a span
around the link. Take a look at this screenshot:

http://flickr.com/photos/dglazkov/146838621/

The default selection is N/A, which means no XFN/hCard.

If the user selects Another Web site of mine, an hCard will be built
with an XFN = me

If the user selects Organization, an hCard will be built with no XFN
and fn org url class for the link.

If the user selects Person, the XFN builder is revealed:

http://flickr.com/photos/dglazkov/146834248/

The result of this choice will be an XFN and hCard.

Obviously, in all cases where hCard is created, it's rather barebones,
but somehow I like the fact that the author can explicitly mark a link
as contact information.

What do you guys think? Is this crazy? I remember Drew arguing about
the dangers of implicitly blessing links as hCards
(http://allinthehead.com/retro/287/the-dangers-of-automatically-generating-hcards),
but I can't remember where the discussion ended up.

Thoughts, discussion, critique on the UI are also welcome.

:DG
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


[uf-discuss] X2V hCard question

2006-05-15 Thread Faust

Hi,

I am trying to set up some Dreamweaver templates that will support 
microformats without making the user specify all of the classes and am 
running into a few parsing problems.


I have the following hCard 
http://prototype.luther.edu/men/football/season2005/coaches/:



!-- InstanceBeginRepeatEntry --
div class=vcard
h2 class=nspan class=fnspan class=given-name!-- 
InstanceBeginEditable name=given-name --Paul!-- 
InstanceEndEditable --/span span class=family-name!-- 
InstanceBeginEditable name=family-name --Hefty!-- 
InstanceEndEditable --/span/span/h2
!-- InstanceBeginEditable name=photo --img src=images/Hefty.jpg 
alt= width=100 height=150 class=photo /!-- 
InstanceEndEditable --
div class=title!-- InstanceBeginEditable name=title --Head 
Coach/Offensive Coordinator!-- InstanceEndEditable --/div
!-- InstanceBeginEditable name=email --a class=email 
href=mailto:[EMAIL PROTECTED][EMAIL PROTECTED]/a!-- 
InstanceEndEditable --
div class=description!-- InstanceBeginEditable name=description 
--

  ul
liBegins fourth season as head coach/li
liLed Norse to first back-to-back winning seasons since 1991-92 
seasons/li

li1986 graduate of Luther College/li
liOffensive coordinator at Aurora University from 1997-2001/li
liOffensive coordinator for the Norse from 1991-97/li
liThree-time all-conference quarterback for the Norse/li
liIowa Conference MVP 1986/li
liInducted into the Luther Athletic Hall of Fame in 2001/li
liHometown: Milledgeville, Ill./li
  /ul
  !-- InstanceEndEditable --/div
/div
!-- InstanceEndRepeatEntry --


and X2V gives me the following:


BEGIN:VCARD
PRODID:-//suda.co.uk//X2V 0.7.16 (BETA)//EN
SOURCE:http://prototype.luther.edu/men/football/season2005/coaches/
NAME:The Coaching Staff
VERSION:3.0
N;LANGUAGE=en;CHARSET=UTF-8:Hefty;Paul;;;
FN;LANGUAGE=en;CHARSET=UTF-8:\nPaul\n \nHefty\n
EMAIL:[EMAIL PROTECTED]
TITLE;LANGUAGE=en;CHARSET=UTF-8:InstanceBeginEditable name=title 
Head Coach/Offensive Coordinator InstanceEndEditable

PHOTO;VALUE=uri:http://prototype.luther.edu/men/football/season2005/coaches/images/Hefty.jpg
END:VCARD


How can I get rid of the \n in the FN?

Is the content of the HTML comments supposed to be picked up in TITLE?


Thanks in advance,

Faust


___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


RE: [uf-discuss] X2V hCard question

2006-05-15 Thread Eran
Here's a good article about whitespace in XSLT:
http://www.xml.com/pub/a/2001/11/07/whitespace.html basically you wanna do
something like

xsl:strip-space elements=*/ 

I think that should do the trick.
Eran.

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Faust
 Sent: Monday, May 15, 2006 9:22 AM
 To: Microformats Discuss
 Subject: [uf-discuss] X2V hCard question
 
 Hi,
 
 I am trying to set up some Dreamweaver templates that will 
 support microformats without making the user specify all of 
 the classes and am running into a few parsing problems.
 
 
[...snip...]
 How can I get rid of the \n in the FN?
 
 Is the content of the HTML comments supposed to be picked up in TITLE?
 
 
 Thanks in advance,
 
 Faust
 
 
 ___
 microformats-discuss mailing list
 microformats-discuss@microformats.org
 http://microformats.org/mailman/listinfo/microformats-discuss
 

___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


[uf-discuss] Microsummaries in Firefox redux

2006-05-15 Thread Chris Messina

Yuck.

http://wiki.mozilla.org/Microsummaries#Microsummary_Generators

Maybe I'm daft, but I don't get it. Nor do I see how most mortals will
grok microsummaries or how to create them
(http://www.flickr.com/photos/factoryjoe/147071018/).

Can someone please share with me what the big idea is and why this is
shipping in Firefox 2 by default?

Chris
___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss