forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From che...@apache.org
Subject cvs commit: xml-forrest/src/resources/skins/common/xslt/html document2html.xsl
Date Thu, 04 Sep 2003 03:03:10 GMT
cheche      2003/09/03 20:03:10

  Modified:    .        status.xml
               src/resources/skins/common/xslt/html document2html.xsl
  Log:
  Added email template for html content in common skin.
  Relays on @name and @email attributes.
  Submitted by:	Dave Brondsema dave@brondsema.net
  
  Revision  Changes    Path
  1.199     +4 -0      xml-forrest/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/status.xml,v
  retrieving revision 1.198
  retrieving revision 1.199
  diff -u -r1.198 -r1.199
  --- status.xml	3 Sep 2003 11:01:41 -0000	1.198
  +++ status.xml	4 Sep 2003 03:03:10 -0000	1.199
  @@ -25,6 +25,10 @@
   
     <changes>
       <release version="0.5-dev" date="unreleased">
  +      <action dev="JJP" type="update" context="skins"
  +        due-to="Dave Brondsema" due-to-email="dave@brondsema.net" >
  +        Added email template for html content in common skin.
  +      </action>
         <action dev="JJP" type="fix" context="skins"
           due-to="Eirik Bjørsnøs"  due-to-email="bjorsnos@stud.ntnu.no" >
            Support for version, type and notice on html format.
  
  
  
  1.24      +19 -1     xml-forrest/src/resources/skins/common/xslt/html/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/common/xslt/html/document2html.xsl,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- document2html.xsl	3 Sep 2003 11:01:41 -0000	1.23
  +++ document2html.xsl	4 Sep 2003 03:03:10 -0000	1.24
  @@ -412,6 +412,24 @@
       </p>
     </xsl:template>
   
  +  <xsl:template name="email">
  +    <a>
  +    <xsl:attribute name="href">
  +      <xsl:choose>
  +      <xsl:when test="$obfuscate-mail-links='true'">
  +        <xsl:variable name="user" select="substring-before(@email,'@')"/>
  +	<xsl:variable name="host" select="substring-after(@email,'@')"/>
  +	<xsl:value-of select="concat('mailto:',$user,'.at.',$host)"/>
  +      </xsl:when>
  +      <xsl:otherwise>
  +        <xsl:value-of select="concat('mailto:',@email)"/>
  +      </xsl:otherwise>
  +      </xsl:choose>
  +    </xsl:attribute>
  +       <xsl:value-of select="@name"/>
  +    </a>
  +  </xsl:template>
  +
     <xsl:template match="node()|@*" priority="-1">
       <xsl:copy>
         <xsl:apply-templates select="@*"/>
  
  
  

Mime
View raw message