forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest/src/resources/library/xslt changes2document.xsl
Date Thu, 19 Sep 2002 10:39:15 GMT
jefft       2002/09/19 03:39:15

  Modified:    src/resources/library/xslt changes2document.xsl
  Log:
  Obfuscate contributor emails to the form 'foo.at.bar.org'.
  
  Revision  Changes    Path
  1.5       +3 -1      xml-forrest/src/resources/library/xslt/changes2document.xsl
  
  Index: changes2document.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/library/xslt/changes2document.xsl,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- changes2document.xsl	13 Jun 2002 06:30:35 -0000	1.4
  +++ changes2document.xsl	19 Sep 2002 10:39:15 -0000	1.5
  @@ -40,7 +40,9 @@
   
      <xsl:if test="@due-to">
       <xsl:text> Thanks to </xsl:text>
  -    <link href="mailto:{@due-to-email}"><xsl:value-of select="@due-to"/></link>
  +    <xsl:variable name="email-name" select="substring-before(@due-to-email, '@')"/>
  +    <xsl:variable name="email-domain" select="substring-after(@due-to-email, '@')"/>
  +    <link href="mailto:{$email-name}.at.{$email-domain}"><xsl:value-of select="@due-to"/></link>
       <xsl:text>.</xsl:text>
      </xsl:if>
   
  
  
  

Mime
View raw message