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/stylesheets changes2document.xsl
Date Thu, 07 Aug 2003 10:22:15 GMT
cheche      2003/08/07 03:22:15

  Modified:    .        status.xml
               src/resources/stylesheets changes2document.xsl
  Log:
  Added support for coma separate bugs
  
  Submitted by:	joerg.heinicke@gmx.de
  
  Revision  Changes    Path
  1.187     +4 -0      xml-forrest/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/status.xml,v
  retrieving revision 1.186
  retrieving revision 1.187
  diff -u -r1.186 -r1.187
  --- status.xml	31 Jul 2003 16:17:56 -0000	1.186
  +++ status.xml	7 Aug 2003 10:22:15 -0000	1.187
  @@ -25,6 +25,10 @@
   
     <changes>
       <release version="0.5-dev" date="unreleased">
  +      <action dev="JJP" type="add" context="core"
  +        due-to="Joerg Heinicke"  due-to-email="joerg.heinicke@gmx.de" >
  +        Comma separated bugs have a link to bugzilla systems.
  +      </action>    
         <action dev="JJP" type="fix" context="core"
           due-to="Ringo de Smet"  due-to-email="DeSmet_Ringo@emc.com" >
           Docbook table header is shifted one column.
  
  
  
  1.13      +15 -4     xml-forrest/src/resources/stylesheets/changes2document.xsl
  
  Index: changes2document.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/stylesheets/changes2document.xsl,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- changes2document.xsl	12 Feb 2003 04:58:14 -0000	1.12
  +++ changes2document.xsl	7 Aug 2003 10:22:15 -0000	1.13
  @@ -6,7 +6,9 @@
   
    <xsl:import href="copyover.xsl"/>
   
  - <xsl:variable name="bugzilla">http://nagoya.apache.org/bugzilla/show_bug.cgi?id=</xsl:variable>
  + <xsl:variable name="bugzilla" select="'http://nagoya.apache.org/bugzilla/'"/>
  + <xsl:variable name="singleBug" select="concat($bugzilla, 'show_bug.cgi?id=')"/>
  + <xsl:variable name="buglist" select="concat($bugzilla, 'buglist.cgi?bug_id=')"/>
   
    <xsl:template match="/">
     <xsl:apply-templates select="//changes"/>
  @@ -56,9 +58,18 @@
   
      <xsl:if test="@fixes-bug">
       <xsl:text> Fixes </xsl:text>
  -    <link href="{$bugzilla}{@fixes-bug}">
  -     <xsl:text>bug </xsl:text><xsl:value-of select="@fixes-bug"/>
  -    </link>
  +    <xsl:choose>
  +     <xsl:when test="contains(@fixes-bug, ',')">
  +      <link href="{$buglist}{@fixes-bug}">
  +       <xsl:text>bugs </xsl:text><xsl:value-of select="@fixes-bug"/>
  +      </link>
  +     </xsl:when>
  +     <xsl:otherwise>
  +      <link href="{$singleBug}{@fixes-bug}">
  +       <xsl:text>bug </xsl:text><xsl:value-of select="@fixes-bug"/>
  +      </link>
  +     </xsl:otherwise>
  +    </xsl:choose>
       <xsl:text>.</xsl:text>
      </xsl:if>
     </li>
  
  
  

Mime
View raw message