[Openvas-commits] r11685 - in trunk/gsa: . src/html

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Sep 26 10:11:00 CEST 2011


Author: hdoreau
Date: 2011-09-26 10:10:58 +0200 (Mon, 26 Sep 2011)
New Revision: 11685

Modified:
   trunk/gsa/ChangeLog
   trunk/gsa/src/html/omp.xsl
Log:
* src/html/omp.xsl (cve-details, nvt, host): Use one-liners to
transmit template parameters, to improve readability.


Modified: trunk/gsa/ChangeLog
===================================================================
--- trunk/gsa/ChangeLog	2011-09-26 08:00:46 UTC (rev 11684)
+++ trunk/gsa/ChangeLog	2011-09-26 08:10:58 UTC (rev 11685)
@@ -1,5 +1,10 @@
 2011-09-26  Henri Doreau <henri.doreau at greenbone.net>
 
+	* src/html/omp.xsl (cve-details, nvt, host): Use one-liners to
+	transmit template parameters, to improve readability.
+
+2011-09-26  Henri Doreau <henri.doreau at greenbone.net>
+
 	* src/html/omp.xsl (nvt): Add links to the CVE details dialog.
 	(get_info_cve_lnk): Add an optional gsa_token parameter, to let the
 	caller set the value if not available from within the template.

Modified: trunk/gsa/src/html/omp.xsl
===================================================================
--- trunk/gsa/src/html/omp.xsl	2011-09-26 08:00:46 UTC (rev 11684)
+++ trunk/gsa/src/html/omp.xsl	2011-09-26 08:10:58 UTC (rev 11685)
@@ -8409,9 +8409,7 @@
       <xsl:for-each select="cve:entry/vuln:vulnerable-software-list/vuln:product">
         <tr><td>
           <xsl:call-template name="get_info_cpe_lnk">
-            <xsl:with-param name="cpe">
-              <xsl:value-of select="text()"/>
-            </xsl:with-param>
+            <xsl:with-param name="cpe" select="text()"/>
           </xsl:call-template>
         </td></tr>
       </xsl:for-each>
@@ -8478,12 +8476,8 @@
 
             <xsl:for-each select="str:tokenize (cve_id, ', ')">
               <xsl:call-template name="get_info_cve_lnk">
-                <xsl:with-param name="cve">
-                  <xsl:value-of select="text()"/>
-                </xsl:with-param>
-                <xsl:with-param name="gsa_token">
-                  <xsl:value-of select="$gsa_token"/>
-                </xsl:with-param>
+                <xsl:with-param name="cve" select="text()"/>
+                <xsl:with-param name="gsa_token" select="$gsa_token"/>
               </xsl:call-template>
               <xsl:text> </xsl:text>
             </xsl:for-each>    
@@ -10885,9 +10879,7 @@
                               select="../detail[name = concat ($app, '/', $cve, '/CVSS')]/value"/>
                 <td>
                   <xsl:call-template name="get_info_cpe_lnk">
-                    <xsl:with-param name="cpe">
-                      <xsl:value-of select="$app"/>
-                    </xsl:with-param>
+                    <xsl:with-param name="cpe" select="$app"/>
                   </xsl:call-template>
                 </td>
                 <td>
@@ -10911,9 +10903,7 @@
                 <td><xsl:value-of select="$cvss"/></td>
                 <td>
                   <xsl:call-template name="get_info_cve_lnk">
-                    <xsl:with-param name="cve">
-                      <xsl:value-of select="$cve"/>
-                    </xsl:with-param>
+                    <xsl:with-param name="cve" select="$cve"/>
                   </xsl:call-template>
                 </td>
                 <td>



More information about the Openvas-commits mailing list