W3C home > Mailing lists > Public > www-xsl-fo@w3.org > September 2003

Re: mail:to link

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Mon, 22 Sep 2003 06:34:42 -0400
Message-Id: <5.2.0.9.0.20030922062928.00b72d88@pop.storm.ca>
To: "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>

At 2003-09-22 11:45 +0530, Ashish Tibrewal wrote:
>How can I give a mail:to link in XSL FO.
>
>I want to give a link an email address in PDF, so that when a user clicks 
>on the email id, it opens his Outlook or any other Email Program

It happens I had to do this Saturday morning in a stylesheet ... it is the 
same as with any external link, but use the mailto protocol:

       ...
       <block>Please contact us at</block>
       <block>
         <basic-link
           external-destination='url("mailto:info@CraneSoftwrights.com")'>
           info@CraneSoftwrights.com
         </basic-link>
       </block>
       <block>for instructions on</block>
       ...

A single click on my Windows system first brings up a browser window and 
the browser sees the "mailto" and brings up the mail application.

I hope this helps.

................. Ken

--
Next public US delivery:        3-day XSLT/2-day XSL-FO 2003-10-13
Next public European delivery:  3-day XSLT/2-day XSL-FO 2003-11-??
Instructor-led on-site corporate, government & user group training
for XSLT and XSL-FO world-wide:  please contact us for the details

G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/f/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
ISBN 0-13-065196-6                       Definitive XSLT and XPath
ISBN 0-13-140374-5                               Definitive XSL-FO
ISBN 1-894049-08-X   Practical Transformation Using XSLT and XPath
ISBN 1-894049-11-X               Practical Formatting Using XSL-FO
Member of the XML Guild of Practitioners:     http://XMLGuild.info
Male Breast Cancer Awareness  http://www.CraneSoftwrights.com/f/bc
Received on Monday, 22 September 2003 06:41:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:11 GMT