nicolaken    02/03/27 06:10:57

  Modified:    src/scratchpad/webapp/mount/linkstatus linkstatus.xsl
  Log:
  Differentiate between 404 errors (yellow) and other (red)
  
  Revision  Changes    Path
  1.3       +2 -1      
xml-cocoon2/src/scratchpad/webapp/mount/linkstatus/linkstatus.xsl
  
  Index: linkstatus.xsl
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/scratchpad/webapp/mount/linkstatus/linkstatus.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- linkstatus.xsl    27 Mar 2002 09:58:34 -0000      1.2
  +++ linkstatus.xsl    27 Mar 2002 14:10:57 -0000      1.3
  @@ -16,6 +16,7 @@
     <xsl:template match="linkstatus:link">
       <tr><xsl:attribute name = "bgcolor" ><xsl:choose>
                <xsl:when test="normalize-space(@status)='200'">#00ff00</xsl:when>
  +             <xsl:when test="normalize-space(@status)='404'">#ffff00</xsl:when>     
 
        <xsl:otherwise>#ff0000</xsl:otherwise></xsl:choose>
       </xsl:attribute>
       
  @@ -23,7 +24,7 @@
        <td><a><xsl:attribute name="href"><xsl:value-of 
select="@href"/></xsl:attribute>
               <xsl:value-of select="@href"/></a></td>
        <td><a><xsl:attribute name="href"><xsl:value-of 
select="@referrer"/></xsl:attribute>
  -            <xsl:value-of select="@referrer"/></a></td>
  +            referrer</a></td>
        <td><xsl:value-of select="@content"/></td> 
        <td><xsl:value-of select="@status"/></td> 
        <td><xsl:value-of select="@message"/></td>
  
  
  

----------------------------------------------------------------------
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