[Yanel-commits] rev 56036 -
public/yanel/trunk/src/contributions/resources/search/htdocs
michi at wyona.com
michi at wyona.com
Thu Jan 13 08:25:23 CET 2011
Author: michi
Date: 2011-01-13 08:25:22 +0100 (Thu, 13 Jan 2011)
New Revision: 56036
Added:
public/yanel/trunk/src/contributions/resources/search/htdocs/reindexer.xsl
Log:
re-indexer XSLT added
Added: public/yanel/trunk/src/contributions/resources/search/htdocs/reindexer.xsl
===================================================================
--- public/yanel/trunk/src/contributions/resources/search/htdocs/reindexer.xsl (rev 0)
+++ public/yanel/trunk/src/contributions/resources/search/htdocs/reindexer.xsl 2011-01-13 07:25:22 UTC (rev 56036)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<xsl:stylesheet version="1.0"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml"
+ xmlns:y="http://www.wyona.org/yanel/reindex/1.0">
+
+ <xsl:template match="/y:reindex">
+ <html>
+ <head>
+ <title>Re-indexer</title>
+ </head>
+ <body>
+ <h1>Re-indexer</h1>
+ <xsl:apply-templates select="y:exception"/>
+ <xsl:apply-templates select="y:message"/>
+
+ <xsl:if test="not(y:exception or y:message)">
+ <p>Choose which repository you would like to re-index:</p>
+ <ul>
+ <xsl:for-each select="y:repository">
+ <li>
+ <a href="?repository={@id}"><xsl:value-of select="."/></a></li>
+ </xsl:for-each>
+ </ul>
+ </xsl:if>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="y:exception">
+ <p style="color:red;"><xsl:value-of select="."/></p>
+ </xsl:template>
+
+ <xsl:template match="y:message">
+ <p style="color:green;"><xsl:value-of select="."/></p>
+ </xsl:template>
+
+</xsl:stylesheet>
More information about the Yanel-commits
mailing list