vmassol     01/04/29 04:30:43

  Modified:    cactus/docs/framework/skins/jakarta.apache.org/stylesheets
                        changes2document.xsl
  Log:
  write "<no changes>" if no web pages have been modified instead of an empty table.
  
  Revision  Changes    Path
  1.3       +12 -5     
jakarta-commons/cactus/docs/framework/skins/jakarta.apache.org/stylesheets/changes2document.xsl
  
  Index: changes2document.xsl
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/cactus/docs/framework/skins/jakarta.apache.org/stylesheets/changes2document.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- changes2document.xsl      2001/04/28 11:54:16     1.2
  +++ changes2document.xsl      2001/04/29 11:30:43     1.3
  @@ -79,11 +79,18 @@
     </xsl:template>
   
     <xsl:template match="changelog">
  -    <table>
  -      <xsl:apply-templates select="entry">
  -        <xsl:sort select="date" order="descending"/>
  -      </xsl:apply-templates>
  -    </table>
  +    <xsl:choose>
  +      <xsl:when test="entry">
  +        <table>
  +          <xsl:apply-templates select="entry">
  +            <xsl:sort select="date" order="descending"/>
  +          </xsl:apply-templates>
  +        </table>
  +      </xsl:when>
  +      <xsl:otherwise>
  +        <xsl:text>&lt;no changes&gt;</xsl:text>
  +      </xsl:otherwise>
  +    </xsl:choose>
     </xsl:template>
   
     <xsl:template match="entry">
  
  
  

Reply via email to