forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject cvs commit: xml-forrest/src/resources/library/xslt changes2document.xsl
Date Tue, 24 Dec 2002 01:54:58 GMT
crossley    2002/12/23 17:54:58

  Modified:    src/resources/library/xslt changes2document.xsl
  Log:
  Handle missing attributes for mailto hrefs.
  
  Revision  Changes    Path
  1.9       +11 -2     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.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- changes2document.xsl	24 Dec 2002 01:42:09 -0000	1.8
  +++ changes2document.xsl	24 Dec 2002 01:54:58 -0000	1.9
  @@ -41,9 +41,18 @@
      <xsl:apply-templates/>
      <xsl:text>(</xsl:text><xsl:value-of select="@dev"/><xsl:text>)</xsl:text>
   
  -   <xsl:if test="@due-to">
  +   <xsl:if test="@due-to and @due-to!=''">
       <xsl:text> Thanks to </xsl:text>
  -    <link href="mailto:{@due-to-email}"><xsl:value-of select="@due-to"/></link>
  +    <xsl:choose>
  +     <xsl:when test="@due-to-email and @due-to-email!=''">
  +      <link href="mailto:{@due-to-email}">
  +       <xsl:value-of select="@due-to"/>
  +      </link>
  +     </xsl:when>
  +     <xsl:otherwise>
  +      <xsl:value-of select="@due-to"/>
  +     </xsl:otherwise>
  +    </xsl:choose>
       <xsl:text>.</xsl:text>
      </xsl:if>
   
  
  
  

Mime
View raw message