[uf-discuss] input microformats for auto-filling forms

Toby Inkster mail at tobyinkster.co.uk
Thu Feb 24 02:05:03 PST 2011


On Tue, 22 Feb 2011 08:26:13 -0000
"Glenn Jones" <glenn.jones at madgex.com> wrote:

> Could you point me to the documentation for grouping syntax in RFC
> 2425, Google it with not much luck.

http://tools.ietf.org/html/rfc2425#section-5.8.2

See the ABNF production for 'contentline'. 

The grouping construct allows you to say that certain lines within a
vCard (or indeed any text/directory-based format) belong together. e.g.

BEGIN:VCARD
VERSION:3.0
FN:Prince Charles
N:Windsor;Charles;Philip,Arthur,George;Prince;KG,KT,GCB,OM,AK,QSO,CD,SOM,
 GCL,PC,AdC(P),FRS
CON.TITLE=Duke of Cornwall
CON.NOTE=The prince has been Duke of Cornwall since 6 February 1952.
WAL.TITLE=Prince of Wales
WAL.NOTE=The prince has been Prince of Wales since 26 July 1958.
END:VCARD

vCard 3.0 (RFC 2426) uses text/directory syntax, thus this is allowed.
However, as none of the examples in RFC 2426 use it, it's not
especially well-supported in vCard 3.0 implementations. vCard 4.0
mentions the construct explicitly; some drafts have included examples
of it in use, but the latest does not; consumers that don't care about
grouping are just advised to strip /^([^\.\:]*\.)/ off the front of
each property.

-- 
Toby A Inkster
<mailto:mail at tobyinkster.co.uk>
<http://tobyinkster.co.uk>



More information about the microformats-discuss mailing list