dleslie     01/01/02 14:22:19

  Modified:    java/xdocs/style/stylesheets bugs.xsl
  Log:
  Added handling for 0 open bugs!
  
  Revision  Changes    Path
  1.2       +11 -6     xml-xalan/java/xdocs/style/stylesheets/bugs.xsl
  
  Index: bugs.xsl
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/xdocs/style/stylesheets/bugs.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- bugs.xsl  2000/12/21 13:14:18     1.1
  +++ bugs.xsl  2001/01/02 22:22:13     1.2
  @@ -11,12 +11,17 @@
   
     <xsl:template match="Sprs">
     <xsl:comment>This XML fragment contains a list of open bugs to be included 
in an &lt;s3&gt; section of readme.xml</xsl:comment>
  -  <p>Open bugs:</p>
  -    <ul>
  -    <xsl:for-each select="Spr[string(State)='Open'] 
[string(Subsystem)!='Other']">
  -      <li><xsl:apply-templates 
select="Name|DateCreated|TestDesc"/><br/><br/></li>
  -    </xsl:for-each>
  -    </ul>
  +    <xsl:if test="count(Spr[string(State)='Open'] 
[string(Subsystem)!='Other'])>0">
  +      <p>Open bugs:</p>
  +      <ul>
  +      <xsl:for-each select="Spr[string(State)='Open'] 
[string(Subsystem)!='Other']">
  +        <li><xsl:apply-templates 
select="Name|DateCreated|TestDesc"/><br/><br/></li>
  +      </xsl:for-each>
  +      </ul>
  +    </xsl:if>
  +    <xsl:if test="count(Spr[string(State)='Open'] 
[string(Subsystem)!='Other'])=0">
  +      <note>No open bugs are currently listed.</note>
  +    </xsl:if>
     </xsl:template>
   
     <xsl:template match="Name">
  
  
  

Reply via email to