home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 December / PCWorld_2003-12_cd.bin / Software / komercni / alc / ep2sr51csy.msi / Ep.CAB / instlic.xsl < prev    next >
Extensible Markup Language  |  2002-06-19  |  5KB  |  109 lines

  1. <?xml version='1.0' encoding="windows-1250" ?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  3.  
  4. <xsl:template match="language">
  5. (<xsl:value-of select="."/>)
  6. </xsl:template>
  7.  
  8. <xsl:template match="product">
  9.     <tr>
  10.         <td class="Frame" rowspan="3" bgcolor="#d8e4d8" align="center">
  11.         <img id="toggle" src="plus.gif" onclick="javascript:ToggleComplist(this)" style="cursor:hand" alt="Zobrazit/skr²t seznam poΦφtaΦ∙"/>
  12.         <xsl:value-of select="name"/><xsl:apply-templates select="language"/><br/>
  13.         <xsl:value-of select="producer"/></td>
  14.         <td class="Frame" colspan="2" bgcolor="#fdfcdf" align="center"><xsl:value-of select="inst/normal"/></td>
  15.         <td class="Frame" bgcolor="#e6e6f7" align="center"><xsl:value-of select="inst/oem"/></td>
  16.         <td class="Frame" bgcolor="#e5fae1" align="center"><xsl:value-of select="inst/trial"/></td>
  17.         <td class="Frame" bgcolor="#e5fae1" align="center"><xsl:value-of select="inst/notebook"/></td>
  18.         <td class="Frame" bgcolor="#c9ecbf" align="center"><xsl:value-of select="inst/total"/></td>
  19.     </tr>
  20.     <tr>
  21.         <td class="Frame" bgcolor="#fdfcdf" align="center"><xsl:value-of select="lic/normal"/></td>
  22.         <td class="Frame" bgcolor="#fdfcdf" align="center"><xsl:value-of select="lic/multi"/></td>
  23.         <td class="Frame" bgcolor="#e6e6f7" align="center"><xsl:value-of select="lic/oem"/></td>
  24.         <td class="Frame" bgcolor="white" align="center"> </td>
  25.         <td class="Frame" bgcolor="white" align="center"> </td>
  26.         <td class="Frame" bgcolor="white" align="center"> </td>
  27.     </tr>
  28.     <tr>
  29.         <td class="Frame" bgcolor="#fcf0c7" align="center"><xsl:value-of select="summary/over/normal"/></td>
  30.         <td class="Frame" bgcolor="white" align="center"> </td>
  31.         <td class="Frame" bgcolor="#d0d1ff" align="center"><xsl:value-of select="summary/over/oem"/></td>
  32.         <td class="Frame" bgcolor="white" align="center"> </td>
  33.         <td class="Frame" bgcolor="white" align="center"> </td>
  34.         <td class="Frame" bgcolor="#f4dabc" align="center"><xsl:value-of select="summary/under"/></td>
  35.     </tr>
  36.     <tr style="display:none">
  37.         <td colspan="7" bgcolor="white">
  38.             <xsl:apply-templates select="complist"/>
  39.         </td>
  40.     </tr>
  41. </xsl:template>
  42.  
  43. <xsl:template match="comp">
  44.     <tr>
  45.         <td align="center" bgcolor="#edf2ed"><xsl:value-of select="name"/></td>
  46.         <td align="center" bgcolor="#edf2ed"><xsl:value-of select="trial"/></td>
  47.         <td align="center" bgcolor="#edf2ed"><xsl:value-of select="liccomp"/></td>
  48.     </tr>
  49. </xsl:template>
  50.  
  51. <xsl:template match="complist">
  52.     <table bgcolor="gray" cellspacing="1" cellpadding="2" border="0" width="100%">
  53.         <tr>
  54.             <td align="center" bgcolor="#afd1af">PoΦφtaΦ</td>
  55.             <td align="center" bgcolor="#afd1af">ZkuÜebnφ instalace</td>
  56.             <td align="center" bgcolor="#afd1af">P°ebφrß licenci z poΦφtaΦe</td>
  57.         </tr>
  58.         <xsl:apply-templates select="comp"/>
  59.     </table>
  60. </xsl:template>
  61.  
  62. <xsl:template match="/">
  63.     <center><h1>Porovnßnφ instalacφ a licencφ</h1></center>
  64.     <table width="100%">
  65.         <tr>
  66.             <td valign="top"><b>Datum:</b> <xsl:eval language="vbscript">FormatDateTime(Date())</xsl:eval></td>
  67.         </tr>
  68.     </table>
  69.     <br/>
  70.  
  71.     <table class="Frame" bgcolor="black" cellspacing="0" cellpadding="2" width="100%">
  72.         <thead>
  73.         <tr>
  74.             <td class="Frame" rowspan="3" bgcolor="#d8e4d8" align="center">
  75.             <img id="toggle" src="plus.gif" onclick="javascript:ToggleAll(this)" style="cursor:hand" alt="Rozbalit/sbalit vÜechny polo₧ky"/>
  76.             <b>Produkt (jazyk)<br/>
  77.             V²robce</b></td>
  78.             <td class="Frame" colspan="2" bgcolor="#fdfcdf" align="center"><b>Normßlnφ<br/>instalace</b></td>
  79.             <td class="Frame" bgcolor="#e6e6f7" align="center"><b>OEM<br/>instalace</b></td>
  80.             <td class="Frame" bgcolor="#e5fae1" align="center"><b>ZkuÜebnφ<br/>instalace</b></td>
  81.             <td class="Frame" bgcolor="#e5fae1" align="center"><b>Instalace<br/>na notebook</b></td>
  82.             <td class="Frame" bgcolor="#c9ecbf" align="center"><b>Celkem<br/>instalacφ</b></td>
  83.         </tr>
  84.         <tr>
  85.             <td class="Frame" bgcolor="#fdfcdf" align="center"><b>Normßlnφ<br/>licence</b></td>
  86.             <td class="Frame" bgcolor="#fdfcdf" align="center"><b>Multi-<br/>licence</b></td>
  87.             <td class="Frame" bgcolor="#e6e6f7" align="center"><b>OEM<br/>licence</b></td>
  88.             <td class="Frame" bgcolor="white" align="center"> </td>
  89.             <td class="Frame" bgcolor="white" align="center"> </td>
  90.             <td class="Frame" bgcolor="white" align="center"> </td>
  91.         </tr>
  92.         <tr>
  93.             <td class="Frame" bgcolor="#fcf0c7" align="center"><b>P°eb²vß<br/>normßlnφch<br/>licencφ</b></td>
  94.             <td class="Frame" bgcolor="white" align="center"> </td>
  95.             <td class="Frame" bgcolor="#d0d1ff" align="center"><b>P°eb²vß<br/>OEM<br/>licencφ</b></td>
  96.             <td class="Frame" bgcolor="white" align="center"> </td>
  97.             <td class="Frame" bgcolor="white" align="center"> </td>
  98.             <td class="Frame" bgcolor="#f4dabc" align="center"><b>Celkem<br/>chybφ<br/>licencφ</b></td>
  99.         </tr>
  100.         </thead>
  101.  
  102.         <tbody>
  103.         <xsl:apply-templates select="//product" />
  104.         </tbody>
  105.  
  106.     </table>
  107. </xsl:template>
  108.  
  109. </xsl:stylesheet>