forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ritchie Young <>
Subject RE: How to put an @ in a mailto link
Date Fri, 21 Mar 2003 06:05:52 GMT
Thanks for that. The following seems to work for me:

  <xsl:template match="link">
    <xsl:apply-templates select="@id"/>

      <xsl:when test="starts-with(@href, 'actual-mailto:')">
        <xsl:variable name="mailto-address"
          <a href="mailto:{$mailto-address}">

      <xsl:when test="starts-with(@href, 'mailto:') and contains(@href,
        <xsl:variable name="mailto-1" select="substring-before(@href,'@')"/>
        <xsl:variable name="mailto-2" select="substring-after(@href,'@')"/>
          <a href="{$mailto-1}.at.{$mailto-2}">


That gives you the choice on a link by link basis which could be regarded as
good or bad.


-----Original Message-----
From: David Crossley [] 
Sent: Friday, 21 March 2003 8:41 AM
Subject: Re: How to put an @ in a mailto link

Ritchie Young wrote:
> Presumably, this behaviour is to foil spammers when generating Internet
> sites but can it be circumvented if you really do want to generate a real
> email address?

It is not yet configurable, but could/should be made so.
I have added your suggestion to the todo list.

You could disable this feature by making some modifications
to the src/resources/skins/common/xslt/html/document2html.xsl
at around line 204.


View raw message