Le 17 Aug 00, à 11:31, zope@zope.org a écrit :
I'm doing a method for getting vCards from a directory. It works fine, until i want to put some <dtml-var> with the x-vCard MIME type
I respond to my own post. It seems that vCard doesn't like a line WITH propertyname AND WITHOUT propertyvalue. So some <dtml-if> does the trick. Pay attention, the </dtml-if> needs to be on a separate line for line break reasons. -------------------------------- Content-type:text/x-vCard Content-Transfer-Encoding:8bit BEGIN:VCARD VERSION:2.1 N:<dtml-var name> EMAIL;INTERNET:<dtml-var email> <dtml-if "tel<>''">TEL;WORK:<dtml-var tel> </dtml-if> END:VCARD -- Didier Georgieff DDAF du Bas-Rhin - Cellule SIG 2, rue des Mineurs 67070 Strasbourg Cedex tél : 03.88.25.20.33 - fax : 03.88.25.20.01 email : didier.georgieff@agriculture.gouv.fr GéoWeb http://10.67.90.3 (Intranet Agriculture) GéoWeb http://sertit10.u-strasbg.fr (Internet)