You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cr...@apache.org on 2002/12/24 03:26:11 UTC

cvs commit: xml-cocoon2/src/documentation/stylesheets changes2document.xsl

crossley    2002/12/23 18:26:11

  Modified:    src/documentation/stylesheets changes2document.xsl
  Log:
  Better handling of attributes for mailto hrefs.
  
  Revision  Changes    Path
  1.2       +11 -2     xml-cocoon2/src/documentation/stylesheets/changes2document.xsl
  
  Index: changes2document.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/documentation/stylesheets/changes2document.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- changes2document.xsl	3 Jan 2002 12:31:01 -0000	1.1
  +++ changes2document.xsl	24 Dec 2002 02:26:11 -0000	1.2
  @@ -35,9 +35,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>
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org