2006-01-26 00:37:29 -05:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<!-- $Id: tabular.xsl,v 1.2 2005/05/31 20:35:18 ronp Exp $ -->
|
|
|
|
<!-- $Source: /cvs/main/searching/org.apache.solrSolarServer/resources/admin/tabular.xsl,v $ -->
|
|
|
|
<!-- $Name: $ -->
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:stylesheet
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
version="1.0">
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:output
|
|
|
|
method="html"
|
|
|
|
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>
|
2006-01-26 00:37:29 -05:00
|
|
|
<link rel="icon" href="/favicon.ico" type="image/ico"></link>
|
|
|
|
<link rel="shortcut icon" href="/favicon.ico" type="image/ico"></link>
|
|
|
|
<title>SOLR Search Results</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2006-02-14 17:04:26 -05:00
|
|
|
<a href=".">
|
2006-02-14 14:36:06 -05:00
|
|
|
<img border="0" align="right" height="88" width="215" src="solr-head.gif" alt="SOLR">
|
2006-01-26 00:37:29 -05:00
|
|
|
</img>
|
|
|
|
</a>
|
|
|
|
<h1>SOLR Search Results</h1>
|
|
|
|
<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>
|