<?xml version="1.0" encoding="utf-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- $Id: stats.xsl 1075192 2011-02-28 00:50:09Z uschindler $ -->
<!-- $URL: http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_3_6_0/solr/webapp/web/admin/stats.xsl $ -->
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output
method="html"
encoding="utf-8"
indent="yes"
doctype-public="-//W3C//DTD HTML 4.01//EN"
doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
<xsl:template match="/">
<xsl:variable name="title">
<!-- no whitespace before the colon -->
</xsl:if>
</xsl:variable>
<html>
<head>
<title><xsl:value-of select="$title"/></title>
</head>
<body>
<a href=".">
</img>
</a>
<h1><xsl:value-of select="$title"/></h1>
<br clear="all" />
<xsl:apply-templates/>
<br /><br />
<a href=".">Return to Admin Page</a>
</body>
</html>
</xsl:template>
<xsl:template match="solr">
<table>
<tr>
<td>
<H3>Category</H3>
</td>
<td>
[<a href="#core">Core</a>]
[<a href="#cache">Cache</a>]
[<a href="#query">Query</a>]
[<a href="#update">Update</a>]
[<a href="#highlight">Highlighting</a>]
[<a href="#other">Other</a>]
</td>
</tr>
<tr>
<td>
</td>
<td>
Current Time: <xsl:value-of select="now" />
</td>
</tr>
<tr>
<td>
</td>
<td>
Server Start Time: <xsl:value-of select="start" />
</td>
</tr>
<xsl:apply-templates select="*" mode="header" />
</table>
<xsl:apply-templates select="solr-info" mode="main" />
</xsl:template>
<!-- catch all in case new header info gets added to XML -->
<xsl:template match="solr/*" mode="header" priority="-10">
<tr>
<td>
</td>
<td>
<xsl:value-of select="local-name()" />: <xsl:value-of select="text()" />
</td>
</tr>
</xsl:template>
<!-- things we've already explicitly taken care of -->
<xsl:apply-templates/>
</xsl:template>
<br />
<xsl:apply-templates select="." mode="sub-header" />
<table>
<tr>
<td align="right">
 
</td>
<td>
</td>
</tr>
<xsl:apply-templates/>
</table>
</xsl:template>
<a name="core"><h2>Core</h2></a>
</xsl:template>
<a name="cache"><h2>Cache</h2></a>
</xsl:template>
<a name="query"><h2>Query Handlers</h2></a>
</xsl:template>
<a name="update"><h2>Update Handlers</h2></a>
</xsl:template>
<a name="highlight"><h2>Highlighting</h2></a>
</xsl:template>
<!-- catch all for new types of plugins -->
<h2><xsl:value-of select="local-name()"/></h2>
</xsl:template>
<a name="other"><h2>Other</h2></a>
</xsl:template>
<tr>
<td align="right">
<strong>name: </strong>
</td>
<td>
<tt><xsl:value-of select="name"/> </tt>
</td>
</tr>
<tr>
<td align="right">
<strong>class: </strong>
</td>
<td>
<tt><xsl:value-of select="class"/> </tt>
</td>
</tr>
<tr>
<td align="right">
<strong>version: </strong>
</td>
<td>
<tt><xsl:value-of select="version"/> </tt>
</td>
</tr>
<tr>
<td align="right">
<strong>description: </strong>
</td>
<td>
<tt><xsl:value-of select="description"/> </tt>
</td>
</tr>
<tr>
<td align="right">
<strong>stats: </strong>
</td>
<td>
<xsl:value-of select="@name"/>
<xsl:text> : </xsl:text>
<xsl:variable name="name" select="@name" />
<xsl:value-of select="." /><br />
</xsl:for-each>
</td>
</tr>
<tr>
<td align="right">
</td>
<td>
</td>
</tr>
</xsl:template>
</xsl:stylesheet>