<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xslc="http://xslcomponents.org/TR/WD-xslc">
<xsl:import href="../xslc.xsl"/>
<xsl:template match="/">
<xsl:apply-templates select="document"/>
</xsl:template>
<xsl:template match="document">
<xsl:call-template name="xslc:Page">
<xsl:with-param name="Title" select="/document/Locales/Error"/>
<xsl:with-param name="ActivePageName">FormError</xsl:with-param>
<xsl:with-param name="ToolbarButtonsLeft">
<ToolbarButton>
<xsl:call-template name="xslc:ToolbarButton">
<xsl:with-param name="Caption">
<img align="absmiddle" border="0" src="{$XMLC_PictosPath}Previous.gif"/>
</xsl:with-param>
<xsl:with-param name="OnClick">javascript:history.go(-1); return false;</xsl:with-param>
</xsl:call-template>
</ToolbarButton>
</xsl:with-param>
<xsl:with-param name="Tabs">
<Item Name="FormError" Caption="{/document/Locales/Error}" Hint="{/document/Locales/Error}"/>
</xsl:with-param>
<xsl:with-param name="Body">
<table border="0" cellpadding="2" cellspacing="0" width="100%">
<tr class="clRowHeader">
<td width="100%">
<img align="absmiddle" border="0" src="{$XMLC_PictosPath}error_small.gif"/>&#160;<xsl:value-of select="/document/Locales/ErrorOccured"/>
</td>
</tr>
<tr>
<td style="padding-top: 4px" width="100%">
<xsl:variable name="ErrorName" select="/document/XMLC_Params/XMLC_Exception"/>
<xsl:variable name="ErrorText" select="/document/Locales/*[name() = $ErrorName]"/>
<xsl:choose>
<xsl:when test="$ErrorText">
<xsl:value-of select="$ErrorText"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$ErrorName"/>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</table>
<br/>
<table border="0" cellpadding="2" cellspacing="0" width="100%">
<tr valign="middle">
<td>
<a href="." onclick="javascript:history.go(-1); return false;">
<img align="absmiddle" border="0" src="{$XMLC_PictosPath}Previous.gif"/>
</a>
</td>
<td width="100%">
<a href="." onclick="javascript:history.go(-1); return false;">
<xsl:value-of select="/document/Locales/ReturnToPreviousPage"/>
</a>
</td>
</tr>
<tr valign="middle">
<td>
<a href="mailto:{/document/ContactEmail}?SUBJECT={/document/XMLC_Params/XMLC_InstanceName} - {/document/LogFile}&amp;BODY=LogFile = {/document/LogFile}">
<img align="absmiddle" border="0" src="{$XMLC_PictosPath}mail.gif"/>
</a>
</td>
<td width="100%">
<a href="mailto:{/document/ContactEmail}?SUBJECT={/document/XMLC_Params/XMLC_InstanceName} - {/document/LogFile}&amp;BODY=LogFile = {/document/LogFile}">
<xsl:value-of select="/document/Locales/SendLogFile"/>
</a>
</td>
</tr>
</table>
<xsl:call-template name="xslc:PoweredBy"/>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
</xsl:stylesheet>
