home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2006 May / PCpro_2006_05.ISO / files / free_security / languard / languardnss7.exe / Tools.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2005-11-25  |  8.7 KB  |  246 lines

  1. <?xml version="1.0" encoding="windows-1252"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:z="#RowsetSchema">
  3.     <xsl:output method="html" indent="yes" encoding="UTF-8"/>
  4.     <xsl:param name="ParamGroup">General</xsl:param>
  5.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  6.     <xsl:template match="/">
  7.         <html>
  8.             <head>
  9.                 <title>Group details</title>
  10.                 <style>
  11.                     <xsl:value-of select="document('css.xml')/stylesheets/style[@id='default']"/>
  12.                 </style>
  13.                 <!--
  14.                 <script language="VBScript"><![CDATA[
  15.                         function toggle( obj, img )
  16.                             set oImg = document.all.item(img)
  17.                             set oObj = document.all.item(obj)
  18.  
  19.                             if oObj.style.display = "none" then
  20.                                 oObj.style.display = ""
  21.                                 OImg.src = "]]>-->
  22.                 <!--<xsl:value-of select="$GraphicsPath"/>-->
  23.                 <!--<![CDATA[minus.gif"
  24.                             else
  25.                                 oObj.style.display = "none"
  26.                                 oImg.src = "]]>-->
  27.                 <!--<xsl:value-of select="$GraphicsPath"/>-->
  28.                 <!--<![CDATA[plus.gif"
  29.                             end if
  30.                         end function
  31.                     ]]></script>-->
  32.             </head>
  33.             <!-- body begins -->
  34.             <body bgcolor="#ffffff" topmargin="0" leftmargin="0" rightmargin="0">
  35.                 <!-- top bar -->
  36.                 <!--
  37.                 <table width="100%" border="0" cellpadding="0" cellspacing="0" height="0">
  38.                     <tr>
  39.                         <td>
  40.                             <div align="left">
  41.                                 <img src="top_menu_left.gif" border="0" hspace="10" alt="GFI"/>
  42.                             </div>
  43.                         </td>
  44.                         <td>
  45.                             <div align="right">
  46.                                 <img src="top_menu_right.jpg" border="0"/>
  47.                             </div>
  48.                         </td>
  49.                     </tr>
  50.                     <tr>
  51.                         <td bgcolor="#000000" colspan="2" height="2"/>
  52.                     </tr>
  53.                 </table>
  54.                 -->
  55.                 <!-- Table that encapsulates all other details -->
  56.                 <table cellpadding="0" cellspacing="0" style="border-collapse: collapse" border="0" width="98%" align="center">
  57.                     <tr>
  58.                         <td>
  59.                             <!-- report title -->
  60.                             <!--<div align="center">
  61.                                 <table cellpadding="0" cellspacing="0" border="0" width="100%" style="border-collapse: collapse">
  62.                                     <tr>
  63.                                         <td class="MainHeading">
  64.                                             <xsl:value-of select="$ParamGroup"/>
  65.                                         </td>
  66.                                     </tr>
  67.                                     <tr>
  68.                                         <td class="normal">
  69.                                             <xsl:value-of select="description"/>
  70.                                         </td>
  71.                                     </tr>
  72.                                 </table>
  73.                             </div>-->
  74.                             <xsl:for-each select="MainFrameworkConfigurationNode/Configuration">
  75.                                 <xsl:if test="@section='NavBarConfig'">
  76.                                     <xsl:for-each select="NavBarTools/group[@name=$ParamGroup]">
  77.                                         <div align="center">
  78.                                             <table cellpadding="0" cellspacing="0" border="0" width="100%" style="border-collapse: collapse">
  79.                                                 <tr>
  80.                                                     <td colspan="2" height="20"/>
  81.                                                 </tr>
  82.                                                 <tr>
  83.                                                     <td style="font-family:arial; font-size:14pt; font-weight:bold">
  84.                                                         <xsl:value-of select="@name"/>
  85.                                                     </td>
  86.                                                 </tr>
  87.                                                 <xsl:if test="tool[position()=1]/description != ''">
  88.                                                     <tr class="TableItem1">
  89.                                                         <td style="font-family:arial; font-size:8pt; padding-left:2px">
  90.                                                             <xsl:value-of select="tool[position()=1]/description"/>
  91.                                                         </td>
  92.                                                     </tr>
  93.                                                 </xsl:if>
  94.                                                 <!--<xsl:if test="@description != ''">
  95.                                                     <tr class="TableItem1">
  96.                                                         <td style="font-family:arial; font-size:8pt; padding-left:2px">
  97.                                                             <xsl:value-of select="@description"/>
  98.                                                         </td>
  99.                                                     </tr>
  100.                                                 </xsl:if>-->
  101.                                             </table>
  102.                                         </div>
  103.                                         <hr/>
  104.                                         <!--<br/>-->
  105.                                         <xsl:call-template name="Group"/>
  106.                                     </xsl:for-each>
  107.                                 </xsl:if>
  108.                             </xsl:for-each>
  109.                         </td>
  110.                     </tr>
  111.                 </table>
  112.                 <!--
  113.                 <table width="100%" border="0" cellpadding="0" cellspacing="0" height="0">
  114.                     <tr>
  115.                         <td bgcolor="#000000" width="10"/>
  116.                         <td bgcolor="#000000" align="left" valign="center" height="20" class="normal" style="color:white">⌐ 2005. All rights reserved. GFI Software Ltd.</td>
  117.                     </tr>
  118.                 </table>
  119.                 -->
  120.             </body>
  121.         </html>
  122.     </xsl:template>
  123.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  124.     <!-- created to override default template -->
  125.     <xsl:template match="text() | @*">
  126.         <!-- do nothing -->
  127.     </xsl:template>
  128.     <!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  129.     <xsl:template name="Group">
  130.         <xsl:variable name="CreateDate" select="@CreatedOn"/>
  131.         <xsl:variable name="position" select="position()"/>
  132.         <div align="right">
  133.             <table cellpadding="0" cellspacing="1" border="0" style="border-collapse: collapse;" width="99%">
  134.                 <!--<tr>
  135.                     <td height="7" colspan="2"/>
  136.                 </tr>-->
  137.                 <!-- spacer -->
  138.                 <!--<tr>
  139.                         <td class="TableHeader" width="10">
  140.                             <div style="cursor: hand;" onclick="toggle 'Details{$position}', 'Details{$position}Img'">
  141.                                 <img id="Details{$position}Img" src="plus.gif" title="Comparison Details" alt="Comparison Details" height="12" width="12"/>
  142.                             </div>
  143.                         </td>
  144.                         <td class="TableHeader">Comparison Details</td>
  145.                     </tr>-->
  146.                 <tr id="Details{$position}">
  147.                     <!--style="display:none;"-->
  148.                     <!--<td/>-->
  149.                     <td style="padding-left:3px;">
  150.                         <table cellpadding="0" cellspacing="1" border="0" style="border-collapse: collapse;" width="100%">
  151.                             <tr>
  152.                                 <td colspan="2" height="15"/>
  153.                             </tr>
  154.                             <!-- spacer -->
  155.                             <!-- Version Breakdown -->
  156.                             <xsl:for-each select="*">
  157.                                 <xsl:if test="local-name()='tool' and position()!=1">
  158.                                     <xsl:if test="description !=''">
  159.                                         <tr>
  160.                                             <td colspan="2" style="border-bottom:0px solid #7799bb; letter-spacing:2px; font-family:arial; font-size:10pt; padding-bottom:2px; background-color: e7e7e7; color:ffffff">
  161.                                                 <b>
  162.                                                     <xsl:variable name="hrefval">http://LINK_ID_<xsl:value-of select="name"/></xsl:variable>
  163.                                                     <a style="color:000000;text-decoration:none " href="{$hrefval}">
  164.                                                         <xsl:value-of select="name"/>
  165.                                                     </a>
  166.                                                 </b>
  167.                                             </td>
  168.                                         </tr>
  169.                                         <!--<tr>
  170.                                         <td colspan="2" height="7"/>
  171.                                     </tr>-->
  172.                                         <!-- spacer -->
  173.                                         <tr>
  174.                                             <td colspan="2" height="0"/>
  175.                                         </tr>
  176.                                         <tr class="TableItem1">
  177.                                             <!--<td width="10"/>-->
  178.                                             <td>
  179.                                                 <table cellpadding="0" cellspacing="1" border="0" style="border-collapse: collapse; padding-bottom: 0px">
  180.                                                     <tr>
  181.                                                         <td style="font-family:arial; font-size:8pt;">
  182.                                                             <xsl:value-of select="description"/>
  183.                                                         </td>
  184.                                                     </tr>
  185.                                                 </table>
  186.                                             </td>
  187.                                         </tr>
  188.                                         <tr>
  189.                                             <td colspan="2" height="15"/>
  190.                                         </tr>
  191.                                         <!-- spacer -->
  192.                                     </xsl:if>
  193.                                 </xsl:if>
  194.                                 <xsl:if test="local-name()='group'">
  195.                                     <xsl:variable name="vID" select="@group_id"/>
  196.                                     <xsl:for-each select="../../group[@group_id=$vID]">
  197.                                         <xsl:for-each select="tool[position()=1]">
  198.                                             <xsl:if test="description !=''">
  199.                                                 <tr>
  200.                                                     <td colspan="2" style="border-bottom:0px solid #7799bb; letter-spacing:2px; font-family:arial; font-size:10pt; padding-bottom:2px; background-color: e7e7e7; color:ffffff">
  201.                                                         <b>
  202.                                                             <xsl:variable name="hrefval">http://LINK_ID_<xsl:value-of select="name"/></xsl:variable>
  203.                                                             <a style="color:000000;text-decoration:none " href="{$hrefval}">
  204.                                                                 <xsl:value-of select="name"/>
  205.                                                             </a>
  206.                                                         </b>
  207.                                                     </td>
  208.                                                 </tr>
  209.                                                 <!--<tr>
  210.                                                 <td colspan="2" height="7"/>
  211.                                             </tr>-->
  212.                                                 <!-- spacer -->
  213.                                                 <tr>
  214.                                                     <td colspan="2" height="0"/>
  215.                                                 </tr>
  216.                                                 <tr class="TableItem1">
  217.                                                     <!--<td width="10"/>-->
  218.                                                     <td>
  219.                                                         <table cellpadding="0" cellspacing="1" border="0" style="border-collapse: collapse; padding-bottom: 0px">
  220.                                                             <tr>
  221.                                                                 <td style="font-family:arial; font-size:8pt;">
  222.                                                                     <xsl:value-of select="description"/>
  223.                                                                 </td>
  224.                                                             </tr>
  225.                                                         </table>
  226.                                                     </td>
  227.                                                 </tr>
  228.                                                 <tr>
  229.                                                     <td colspan="2" height="15"/>
  230.                                                 </tr>
  231.                                                 <!-- spacer -->
  232.                                             </xsl:if>
  233.                                         </xsl:for-each>
  234.                                     </xsl:for-each>
  235.                                 </xsl:if>
  236.                             </xsl:for-each>
  237.                         </table>
  238.                     </td>
  239.                 </tr>
  240.             </table>
  241.         </div>
  242.         <!--<hr/>
  243.         <br/>-->
  244.     </xsl:template>
  245. </xsl:stylesheet>
  246.