<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet>
<xsl:stylesheet exclude-result-prefixes=" fo xsl-template rdf rde-rdf rde-fdl rde-xmaps rde-idea rde-dm rde-rd" rde-rd:content="hs.xsl" rde-rd:datalanguage="en" rde-rd:leasingtime="3600000" rde-rd:locale="en" rde-rd:project="hfea" rde-rd:rdeContentType="1" version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:rde-dm="http://www.reddot.de/rde/ns/dm" xmlns:rde-fdl="http://www.reddot.de/rde/ns/fdl" xmlns:rde-idea="http://www.reddot.de/rde/ns/idea" xmlns:rde-rd="http://www.reddot.de/2000/rde/rd" xmlns:rde-rdf="http://www.reddot.de/rde/ns/rdf" xmlns:rde-xmaps="http://www.reddot.de/rde/ns/xmaps" xmlns:rdf="http://www.w3.org/TR/REC-rdf-syntax/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsl-template="http://www.reddot.de/rde/ns/template"><xsl:output encoding="ISO-8859-1" method="html" /><xsl:param name="rdeRedDot" /><xsl:param name="rdeXmlID" /><xsl:param name="rdeXslID" /><xsl:param name="rdeProjectID" /><xsl:param name="rdeHttpServer" /><xsl:param name="rdeHttpsServer" /><xsl:param name="rdeSessionID" /><xsl:param name="rdeWeblet" /><xsl:param name="rdeContextRoot" /><xsl:param name="rdeAbsolutePrefix" /><xsl:param name="rdePrefix" /><xsl:template match="rde-html"><xsl:apply-templates /></xsl:template><xsl:template match="rde-html-section"><xsl:value-of select="text()" /></xsl:template><xsl:template match="search"><div id="searchedFor"><h1>Search Results</h1><p>Your search for <strong><xsl:value-of disable-output-escaping="yes" select="//descendant::fSearchPhrase" /></strong> returned <strong><xsl:value-of select="child::results/@hits" /> result(s)</strong></p><form action="search.html" method="post"><fieldset><label for="fSearchAgain">Search again?</label><input class="text" id="fSearchAgain" name="fSearchAgain" type="text" value="" /><input class="submit" type="submit" value="Go" /></fieldset></form></div><xsl:choose><xsl:when test="count(child::results/child::rde-rd:searchresult-item) &gt; 0"><xsl:apply-templates mode="search" select="child::results" /></xsl:when></xsl:choose></xsl:template><xsl:template match="results" mode="search"><xsl:call-template name="pagination"><xsl:with-param name="url">search.html</xsl:with-param></xsl:call-template><ul id="searchResults"><xsl:apply-templates mode="search" select="child::rde-rd:searchresult-item" /></ul><xsl:call-template name="pagination"><xsl:with-param name="url">search.html</xsl:with-param></xsl:call-template></xsl:template><xsl:template match="rde-rd:searchresult-item" mode="search"><li><h3><a><xsl:attribute disable-output-escaping="yes" name="href"><xsl:value-of select="child::name" /></xsl:attribute><xsl:attribute disable-output-escaping="yes" name="title"><xsl:value-of select="child::meta/child::title" /></xsl:attribute><xsl:value-of disable-output-escaping="yes" select="child::meta/child::title" /></a></h3><p><xsl:value-of disable-output-escaping="yes" select="child::meta/child::VDKSUMMARY" /></p><p>
                Date: <em><xsl:value-of disable-output-escaping="yes" select="child::last-updated" /></em></p></li></xsl:template><xsl:template name="pagination"><xsl:param name="url" /><ul class="pagination"><xsl:if test="@chunk &gt; 1"><li class="previous"><a href="{$url}?fSearch={//descendant::fSearch}&amp;varChunk={(@chunk)-1}" title="Previous Page">&lt; Previous</a></li></xsl:if><xsl:call-template name="loop"><xsl:with-param name="loop-variable"><xsl:value-of select="1" /></xsl:with-param><xsl:with-param name="url"><xsl:value-of select="$url" /></xsl:with-param><xsl:with-param name="loop-limit"><xsl:value-of select="@lastchunk" /></xsl:with-param><xsl:with-param name="chunk"><xsl:value-of select="@chunk" /></xsl:with-param></xsl:call-template><xsl:if test="@chunk &lt; @lastchunk"><li class="next"><a href="{$url}?fSearch={//descendant::fSearch}&amp;varChunk={@chunk+1}" title="Next Page">Next &gt;</a></li></xsl:if></ul></xsl:template><xsl:template name="loop"><xsl:param name="url" /><xsl:param name="chunk" /><xsl:param name="loop-variable" /><xsl:param name="loop-increment">1</xsl:param><xsl:param name="loop-limit" /><xsl:param name="loop-variable-next"><xsl:value-of select="$loop-variable + $loop-increment" /></xsl:param><xsl:choose><xsl:when test="$loop-variable &gt; $chunk - 4"><xsl:choose><xsl:when test="$loop-variable &lt;= $chunk+3"><li><a href="{$url}?fSearch={//descendant::fSearch}&amp;varChunk={$loop-variable}" title="Page {$loop-variable}"><xsl:if test="$loop-variable = $chunk"><xsl:attribute disable-output-escaping="yes" name="class">active</xsl:attribute></xsl:if><xsl:value-of select="$loop-variable" /></a></li></xsl:when></xsl:choose></xsl:when></xsl:choose><xsl:choose><xsl:when test="$loop-variable &lt;= $loop-limit - 1"><xsl:call-template name="loop"><xsl:with-param name="chunk"><xsl:value-of select="$chunk" /></xsl:with-param><xsl:with-param name="loop-variable"><xsl:value-of select="$loop-variable-next" /></xsl:with-param><xsl:with-param name="loop-increment"><xsl:value-of select="$loop-increment" /></xsl:with-param><xsl:with-param name="loop-limit"><xsl:value-of select="$loop-limit" /></xsl:with-param><xsl:with-param name="url"><xsl:value-of select="$url" /></xsl:with-param></xsl:call-template></xsl:when></xsl:choose></xsl:template><xsl:template match="logindetails"><xsl:if test="child::fClinicCode='' and child::fSubmitted='1'"><div id="attention"><p>The supplied account was invalid. Please check your details and try again.</p></div></xsl:if><xsl:if test="child::fLogout='1'"><div id="attention"><p>You have been successfully logged out </p></div></xsl:if></xsl:template><xsl:template match="loginuser"><p>You are logged in as <strong><xsl:value-of select="child::fUsername" /></strong></p></xsl:template></xsl:stylesheet>