home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 94 / CD-ROM 94.iso / util / weban / setup.msi / Cabs.w19.cab / errors.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2002-02-18  |  931 b   |  37 lines

  1. <?xml version="1.0"?> 
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.         
  4.     <xsl:template match="/">
  5.         <html>
  6.         <head>
  7.             <link REL="stylesheet" type="text/css" href="css/scanner.css" />
  8.         </head>
  9.         <body style="BORDER-RIGHT: 0px; MARGIN: 0px; OVERFLOW: auto">
  10.             <table border="0" cellpadding="0" cellspacing="0" width="100%">
  11.                 <xsl:for-each select="Errors">
  12.                     <xsl:apply-templates/>
  13.                 </xsl:for-each>
  14.             </table>
  15.         </body>
  16.         </html>
  17.     </xsl:template>
  18.     
  19.     <xsl:template match="Error">
  20.         <tr>
  21.             <td>
  22.              <xsl:choose>
  23.                 <xsl:when test="@Machine">
  24.                     <xsl:value-of select="@Domain"/>\<xsl:value-of select="@Machine"/>
  25.                 </xsl:when>
  26.              </xsl:choose>
  27.              <xsl:choose>
  28.              <xsl:when test="@IP">
  29.                 (<xsl:value-of select="@IP"/>)
  30.              </xsl:when>
  31.              </xsl:choose>    
  32.              <xsl:value-of select="."/><br />
  33.             </td>
  34.         </tr>
  35.     </xsl:template>
  36.     
  37. </xsl:stylesheet>