2006-01-26 00:37:29 -05:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2006-11-09 18:13:58 -05:00
|
|
|
<!--
|
|
|
|
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
|
2006-01-26 00:37:29 -05:00
|
|
|
|
2006-11-09 18:13:58 -05:00
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
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.
|
|
|
|
-->
|
2006-03-03 00:19:37 -05:00
|
|
|
<!-- $Id$ -->
|
|
|
|
<!-- $URL$ -->
|
2006-01-26 00:37:29 -05:00
|
|
|
|
|
|
|
<xsl:stylesheet
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
version="1.0">
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:output
|
|
|
|
method="html"
|
2008-05-22 14:38:06 -04:00
|
|
|
encoding="utf-8"
|
2011-02-27 19:41:32 -05:00
|
|
|
media-type="text/html"
|
2006-01-26 00:37:29 -05:00
|
|
|
indent="yes"
|
|
|
|
doctype-public="-//W3C//DTD HTML 4.01//EN"
|
|
|
|
doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="/">
|
2008-06-30 20:24:25 -04:00
|
|
|
<xsl:variable name="title">
|
|
|
|
<!-- no whitespace before the colon -->
|
|
|
|
Solr Statistics<xsl:if test="solr/core">:
|
|
|
|
<xsl:value-of select="solr/core"/>
|
|
|
|
</xsl:if>
|
|
|
|
(<xsl:value-of select="solr/schema" />)
|
|
|
|
</xsl:variable>
|
2006-01-26 00:37:29 -05:00
|
|
|
<html>
|
|
|
|
<head>
|
2006-02-14 14:36:06 -05:00
|
|
|
<link rel="stylesheet" type="text/css" href="solr-admin.css"></link>
|
2008-07-01 14:41:41 -04:00
|
|
|
<link rel="icon" href="favicon.ico" type="image/ico"></link>
|
|
|
|
<link rel="shortcut icon" href="favicon.ico" type="image/ico"></link>
|
2008-06-30 20:24:25 -04:00
|
|
|
<title><xsl:value-of select="$title"/></title>
|
2006-01-26 00:37:29 -05:00
|
|
|
</head>
|
|
|
|
<body>
|
2006-02-14 17:04:26 -05:00
|
|
|
<a href=".">
|
2010-02-22 14:45:51 -05:00
|
|
|
<img border="0" align="right" height="78" width="142" src="solr_small.png" alt="Apache Solr">
|
2006-01-26 00:37:29 -05:00
|
|
|
</img>
|
|
|
|
</a>
|
2008-06-30 20:24:25 -04:00
|
|
|
<h1><xsl:value-of select="$title"/></h1>
|
2006-01-26 00:37:29 -05:00
|
|
|
<xsl:value-of select="solr/host" />
|
|
|
|
<br clear="all" />
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
<br /><br />
|
2007-12-21 17:23:39 -05:00
|
|
|
<a href=".">Return to Admin Page</a>
|
2006-01-26 00:37:29 -05:00
|
|
|
</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>]
|
2008-06-30 20:24:25 -04:00
|
|
|
[<a href="#highlight">Highlighting</a>]
|
2006-01-26 00:37:29 -05:00
|
|
|
[<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>
|
2008-06-30 20:24:25 -04:00
|
|
|
<xsl:apply-templates select="*" mode="header" />
|
2006-01-26 00:37:29 -05:00
|
|
|
</table>
|
2008-06-30 20:24:25 -04:00
|
|
|
<xsl:apply-templates select="solr-info" mode="main" />
|
2006-01-26 00:37:29 -05:00
|
|
|
</xsl:template>
|
|
|
|
|
2008-06-30 20:24:25 -04:00
|
|
|
<!-- 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>
|
2006-01-26 00:37:29 -05:00
|
|
|
|
2008-06-30 20:24:25 -04:00
|
|
|
<!-- things we've already explicitly taken care of -->
|
|
|
|
<xsl:template match="solr/schema" mode="header" />
|
|
|
|
<xsl:template match="solr/core" mode="header" />
|
|
|
|
<xsl:template match="solr/host" mode="header" />
|
|
|
|
<xsl:template match="solr/now" mode="header" />
|
|
|
|
<xsl:template match="solr/start" mode="header" />
|
|
|
|
<xsl:template match="solr/solr-info" mode="header" />
|
2006-01-26 00:37:29 -05:00
|
|
|
|
2008-06-30 20:24:25 -04:00
|
|
|
<xsl:template match="solr/solr-info" mode="main">
|
|
|
|
<xsl:apply-templates/>
|
2006-01-26 00:37:29 -05:00
|
|
|
</xsl:template>
|
|
|
|
|
2008-06-30 20:24:25 -04:00
|
|
|
<xsl:template match="solr/solr-info/*">
|
2006-01-26 00:37:29 -05:00
|
|
|
<br />
|
2008-06-30 20:24:25 -04:00
|
|
|
<xsl:apply-templates select="." mode="sub-header" />
|
2006-01-26 00:37:29 -05:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td align="right">
|
|
|
|
 
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2008-06-30 20:24:25 -04:00
|
|
|
<xsl:apply-templates/>
|
2006-01-26 00:37:29 -05:00
|
|
|
</table>
|
|
|
|
</xsl:template>
|
|
|
|
|
2008-06-30 20:24:25 -04:00
|
|
|
<xsl:template match="solr/solr-info/CORE" mode="sub-header">
|
|
|
|
<a name="core"><h2>Core</h2></a>
|
2006-01-26 00:37:29 -05:00
|
|
|
</xsl:template>
|
|
|
|
|
2008-06-30 20:24:25 -04:00
|
|
|
<xsl:template match="solr/solr-info/CACHE" mode="sub-header">
|
2006-01-26 00:37:29 -05:00
|
|
|
<a name="cache"><h2>Cache</h2></a>
|
|
|
|
</xsl:template>
|
|
|
|
|
2008-06-30 20:24:25 -04:00
|
|
|
<xsl:template match="solr/solr-info/QUERYHANDLER" mode="sub-header">
|
2006-01-26 00:37:29 -05:00
|
|
|
<a name="query"><h2>Query Handlers</h2></a>
|
|
|
|
</xsl:template>
|
|
|
|
|
2008-06-30 20:24:25 -04:00
|
|
|
<xsl:template match="solr/solr-info/UPDATEHANDLER" mode="sub-header">
|
|
|
|
<a name="update"><h2>Update Handlers</h2></a>
|
2006-01-26 00:37:29 -05:00
|
|
|
</xsl:template>
|
|
|
|
|
2008-06-30 20:24:25 -04:00
|
|
|
<xsl:template match="solr/solr-info/HIGHLIGHTING" mode="sub-header">
|
|
|
|
<a name="highlight"><h2>Highlighting</h2></a>
|
2006-01-26 00:37:29 -05:00
|
|
|
</xsl:template>
|
|
|
|
|
2008-06-30 20:24:25 -04:00
|
|
|
<!-- catch all for new types of plugins -->
|
|
|
|
<xsl:template match="solr/solr-info/*" mode="sub-header" priority="-10">
|
|
|
|
<h2><xsl:value-of select="local-name()"/></h2>
|
2006-01-26 00:37:29 -05:00
|
|
|
</xsl:template>
|
|
|
|
|
2008-06-30 20:24:25 -04:00
|
|
|
<xsl:template match="solr/solr-info/OTHER" mode="sub-header">
|
2006-01-26 00:37:29 -05:00
|
|
|
<a name="other"><h2>Other</h2></a>
|
|
|
|
</xsl:template>
|
|
|
|
|
2008-06-30 20:24:25 -04:00
|
|
|
<xsl:template match="solr/solr-info/*/entry">
|
2006-01-26 00:37:29 -05:00
|
|
|
<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:for-each select="stats/stat[@name]">
|
|
|
|
<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>
|