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
|
|
|
|
|
|
|
|
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"
|
|
|
|
media-type="text/html; charset=UTF-8"
|
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="/">
|
|
|
|
<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>
|
2010-02-22 14:45:51 -05:00
|
|
|
<title>Solr Search Results</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>
|
2010-02-22 14:45:51 -05:00
|
|
|
<h1>Solr Search Results</h1>
|
2006-01-26 00:37:29 -05:00
|
|
|
<br clear="all" />
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
<br /><br />
|
2006-02-14 17:04:26 -05:00
|
|
|
<a href=".">Return to Admin Page</a>
|
2006-01-26 00:37:29 -05:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="responseHeader">
|
|
|
|
<table name="responseHeader">
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
</table>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="status">
|
|
|
|
<tr>
|
|
|
|
<td name="responseHeader"><strong>Status: </strong></td>
|
|
|
|
<td><xsl:value-of select="."></xsl:value-of></td>
|
|
|
|
</tr>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="numFields">
|
|
|
|
<tr>
|
|
|
|
<td name="responseHeader"><strong>Number of Fields: </strong></td>
|
|
|
|
<td><xsl:value-of select="."></xsl:value-of></td>
|
|
|
|
</tr>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="numRecords">
|
|
|
|
<tr>
|
|
|
|
<td name="responseHeader"><strong>Records Returned: </strong></td>
|
|
|
|
<td><xsl:value-of select="."></xsl:value-of></td>
|
|
|
|
</tr>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="numFound">
|
|
|
|
<tr>
|
|
|
|
<td name="responseHeader"><strong>Records Found: </strong></td>
|
|
|
|
<td><xsl:value-of select="."></xsl:value-of></td>
|
|
|
|
</tr>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="QTime">
|
|
|
|
<tr>
|
|
|
|
<td name="responseHeader"><strong>Query time: </strong></td>
|
|
|
|
<td><xsl:value-of select="."></xsl:value-of>(ms)</td>
|
|
|
|
</tr>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<!-- YCS.. match everything. How to match only what is not
|
|
|
|
matched above???
|
|
|
|
-->
|
|
|
|
<xsl:template match="responseHeader/*">
|
|
|
|
<tr>
|
|
|
|
<td name="responseHeader"><strong><xsl:value-of select="name(.)"></xsl:value-of>: </strong></td>
|
|
|
|
<td><xsl:value-of select="."></xsl:value-of></td>
|
|
|
|
</tr>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="responseBody">
|
|
|
|
<br></br><br></br>
|
|
|
|
<table border="2">
|
|
|
|
|
|
|
|
<!-- table headers -->
|
|
|
|
<tr>
|
|
|
|
<xsl:for-each select="record[1]/field">
|
|
|
|
<th><xsl:value-of select="name"></xsl:value-of></th>
|
|
|
|
</xsl:for-each>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<!-- table rows -->
|
|
|
|
<xsl:for-each select="record">
|
|
|
|
<tr>
|
|
|
|
<xsl:for-each select="field">
|
|
|
|
<td><xsl:value-of select="value"></xsl:value-of> </td>
|
|
|
|
</xsl:for-each>
|
|
|
|
</tr>
|
|
|
|
</xsl:for-each>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|