home *** CD-ROM | disk | FTP | other *** search
/ Clickx 75 / Clickx 75.iso / software / expressionweb / expressionwebv3 / ExpressionWeb_en.exe / Setup / WeLocen.cab / xWeb.msointl.dll.en / HTML / SMARTARTGRAPHICSLOG.XSLT < prev    next >
Encoding:
Extensible Markup Language  |  2009-07-15  |  3.9 KB  |  130 lines

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!-- _lcid="1033" _version="" -->
  3. <!-- _LocalBinding -->
  4. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  5.     <xsl:variable name="xsltPath" select="substring-before(substring-after(/processing-instruction()[name()='xml-stylesheet'], 'href="'), 'SMARTARTGRAPHICSLOG.XSLT')" />
  6.     <xsl:template match="entry">
  7.         <xsl:element name="tr">
  8.             <xsl:choose>
  9.                 <xsl:when test="position() mod 2">
  10.                     <xsl:attribute name="bgColor">palegreen</xsl:attribute>
  11.                 </xsl:when>
  12.                 <xsl:otherwise>
  13.                     <xsl:attribute name="bgColor">white</xsl:attribute>
  14.                 </xsl:otherwise>
  15.             </xsl:choose>
  16.             <td bgColor="white">
  17.                 <xsl:element name="img">
  18.                     <xsl:attribute name="src">
  19.                         <xsl:choose>
  20.                             <xsl:when test="sev='err'">
  21.                                 <xsl:value-of select="concat($xsltPath, 'ERR.PNG')" />
  22.                             </xsl:when>
  23.                             <xsl:when test="sev='info'">
  24.                                 <xsl:value-of select="concat($xsltPath, 'INFO.PNG')" />
  25.                             </xsl:when>
  26.                             <xsl:otherwise>
  27.                                 <xsl:value-of select="concat($xsltPath, 'WARN.PNG')" />
  28.                             </xsl:otherwise>
  29.                         </xsl:choose>
  30.                     </xsl:attribute>
  31.                     <xsl:attribute name="width">16</xsl:attribute>
  32.                     <xsl:attribute name="height">16</xsl:attribute>
  33.                 </xsl:element>
  34.             </td>
  35.             <td style="text-align: right;">
  36.                 <xsl:number />
  37.             </td>
  38.             <td>
  39.                 <xsl:value-of select="substring-before(time, 'T')" />
  40.                 <xsl:text> </xsl:text>
  41.                 <xsl:value-of select="substring-after(time, 'T')" />
  42.             </td>
  43.             <td>
  44.                 <xsl:value-of select="host" />
  45.             </td>
  46.             <td>
  47.                 <xsl:value-of select="file" />
  48.             </td>
  49.             <td>
  50.                 <xsl:value-of select="uniqueId" />
  51.             </td>
  52.             <td>
  53.                 <xsl:value-of select="type" />
  54.             </td>
  55.             <td>
  56.                 <xsl:value-of select="desc" />
  57.             </td>
  58.             <td>
  59.                 <xsl:value-of select="context" />
  60.             </td>
  61.             <td>
  62.                 <xsl:value-of select="line" />
  63.             </td>
  64.             <td>
  65.                 <xsl:value-of select="col" />
  66.             </td>
  67.         </xsl:element>
  68.     </xsl:template>
  69.     <xsl:template match="/log">
  70.         <html>
  71.             <head>
  72.                 <title><!-- _locID_text="Title" _locComment="{StringCategory=TXT}" -->Microsoft Office SmartArt Graphics Log File</title>
  73.                 <style type="text/css">
  74.                     body
  75.                     {
  76.                     font-family: verdana, arial, helvetica, sans-serif;
  77.                     background: white;
  78.                     color: black;
  79.                     }
  80.                     table
  81.                     {
  82.                     border: 1px solid #95b7f3;
  83.                     }
  84.                     th
  85.                     {
  86.                     color: #003399;
  87.                     font-size: 8pt;
  88.                     font-weight:normal;
  89.                     text-align: left;
  90.                     vertical-align: middle;
  91.                     border: 0;
  92.                     }
  93.                     td
  94.                     {
  95.                     font-size: 8pt;
  96.                     text-align: left;
  97.                     vertical-align: middle;
  98.                     border: 0;
  99.                     }
  100.                 </style>
  101.             </head>
  102.             <body>
  103.                 <h3><!-- _locID_text="Heading" _locComment="{StringCategory=TXT}" -->Microsoft Office SmartArt Graphics Log File</h3>
  104.                 <p>
  105.                     <table border="1">
  106.                         <thead>
  107.                             <tr>
  108.                                 <th></th>
  109.                                 <th></th>
  110.                                 <th><!-- _locID_text="DateTime" _locComment="{StringCategory=TXT}" -->Date/Time</th>
  111.                                 <th><!-- _locID_text="Host" _locComment="{StringCategory=TXT}" -->Host</th>
  112.                                 <th><!-- _locID_text="File" _locComment="{StringCategory=TXT}" -->File</th>
  113.                                 <th><!-- _locID_text="UniqueId" _locComment="{StringCategory=TXT}" -->Unique Id</th>
  114.                                 <th><!-- _locID_text="Type" _locComment="{StringCategory=TXT}" -->Type</th>
  115.                                 <th><!-- _locID_text="Description" _locComment="{StringCategory=TXT}" -->Description</th>
  116.                                 <th><!-- _locID_text="Context" _locComment="{StringCategory=TXT}" -->Context</th>
  117.                                 <th><!-- _locID_text="Line" _locComment="{StringCategory=TXT}" -->Line</th>
  118.                                 <th><!-- _locID_text="Col" _locComment="{StringCategory=TXT}" -->Col</th>
  119.                             </tr>
  120.                         </thead>
  121.                         <xsl:apply-templates select="entry">
  122.                             <xsl:sort select="time" order="descending" />
  123.                         </xsl:apply-templates>
  124.                     </table>
  125.                 </p>
  126.             </body>
  127.         </html>
  128.     </xsl:template>
  129. </xsl:stylesheet>
  130.