[Yanel-commits] rev 57432 - in public/yanel/trunk/src/resources/workflow-dashboard: . htdocs
michi at wyona.com
michi at wyona.com
Tue Mar 22 16:40:59 CET 2011
Author: michi
Date: 2011-03-22 16:40:59 +0100 (Tue, 22 Mar 2011)
New Revision: 57432
Added:
public/yanel/trunk/src/resources/workflow-dashboard/htdocs/
public/yanel/trunk/src/resources/workflow-dashboard/htdocs/search-resources.xsl
Log:
xslt added
Added: public/yanel/trunk/src/resources/workflow-dashboard/htdocs/search-resources.xsl
===================================================================
--- public/yanel/trunk/src/resources/workflow-dashboard/htdocs/search-resources.xsl (rev 0)
+++ public/yanel/trunk/src/resources/workflow-dashboard/htdocs/search-resources.xsl 2011-03-22 15:40:59 UTC (rev 57432)
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ exclude-result-prefixes="xhtml dc">
+
+ <xsl:param name="yanel.path.name" select="'NAME_IS_NULL'"/>
+ <xsl:param name="yanel.path" select="'PATH_IS_NULL'"/>
+ <xsl:param name="yanel.back2context" select="'BACK2CONTEXT_IS_NULL'"/>
+ <xsl:param name="yarep.back2realm" select="'BACK2REALM_IS_NULL'"/>
+ <xsl:variable name="name-without-suffix" select="substring-before($yanel.path.name, '.')"/>
+ <xsl:param name="language" select="'LANGUAGE_IS_NULL'"/>
+ <xsl:param name="content-language" select="'CONTENT_LANGUAGE_IS_NULL'"/>
+ <xsl:param name="languages" select="'LANGUAGES_IS_NULL'"/>
+ <xsl:param name="yanel.toolbar-status" select="'YANEL_TOOLBAR_STATUS_IS_NULL'"/>
+ <xsl:param name="yanel.reservedPrefix" select="'RESERVED-PREFIX_IS_NULL'"/>
+
+ <xsl:template match="/">
+ <html>
+ <head>
+ <title>Workflow Dashboard</title>
+ </head>
+ <body>
+ <h1>Workflow Dashboard</h1>
+ <form>
+ <xsl:apply-templates select="/workflow-dashboard/workflow-states"/>
+ <br/>
+ <xsl:apply-templates select="/workflow-dashboard/mime-types"/>
+ <br/>
+ <input type="submit" value="Search"/>
+ </form>
+
+ <p>
+ Query: <xsl:value-of select="/workflow-dashboard/@query"/>
+ </p>
+
+ <h2>Results</h2>
+ <ul>
+ <xsl:for-each select="/workflow-dashboard/node">
+ <li><a href="{$yarep.back2realm}{substring-after(@path, '/')}"><xsl:value-of select="@path"/></a></li>
+ </xsl:for-each>
+ </ul>
+
+ <p>
+ <a href="?yanel.resource.viewid=xml">XML</a>
+ </p>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="workflow-states">
+ <select name="workflow-state">
+ <xsl:for-each select="state">
+ <option><xsl:value-of select="."/></option>
+ </xsl:for-each>
+ </select>
+ </xsl:template>
+
+ <xsl:template match="mime-types">
+ <select name="mime-type">
+ <xsl:for-each select="mime-type">
+ <option><xsl:value-of select="."/></option>
+ </xsl:for-each>
+ </select>
+ </xsl:template>
+
+</xsl:stylesheet>
More information about the Yanel-commits
mailing list