]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2298] modify the xsl template file
authorNaoki Kambe <kambe@jprs.co.jp>
Mon, 15 Oct 2012 12:04:49 +0000 (21:04 +0900)
committerNaoki Kambe <kambe@jprs.co.jp>
Fri, 26 Oct 2012 11:36:20 +0000 (20:36 +0900)
The XSL contents are fixed.

src/bin/stats/stats-httpd-xsl.tpl

index 7c2e7aebf1478a6aa67c21af8fb49aab22b24b83..3dd3b90113e0aedc7417cb861fb70bc054c853b5 100644 (file)
@@ -30,5 +30,27 @@ td.title {
       </body>
     </html>
   </xsl:template>
-  $xsl_string
+  <xsl:template match="bind10:statistics">
+    <table>
+      <tr>
+       <th>Identifier</th><th>Value</th><th>Description</th>
+      </tr>
+      <xsl:for-each select="item">
+       <tr>
+         <td>
+           <xsl:element name="a">
+             <xsl:attribute name="href"><xsl:value-of select="@uri" /></xsl:attribute>
+             <xsl:value-of select="@identifier" />
+           </xsl:element>
+         </td>
+         <td>
+           <xsl:if test="@value"><xsl:value-of select="@value" /></xsl:if>
+         </td>
+         <td>
+           <xsl:if test="@description"><xsl:value-of select="@description" /></xsl:if>
+         </td>
+       </tr>
+      </xsl:for-each>
+    </table>
+  </xsl:template>
 </xsl:stylesheet>