crossley    2002/12/23 18:26:15

  Modified:    src/documentation/stylesheets Tag: cocoon_2_0_3_branch
                        changes2document.xsl
  Log:
  Better handling of attributes for mailto hrefs.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +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.1.2.1
  diff -u -r1.1 -r1.1.2.1
  --- changes2document.xsl      3 Jan 2002 12:31:01 -0000       1.1
  +++ changes2document.xsl      24 Dec 2002 02:26:15 -0000      1.1.2.1
  @@ -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:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to