<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xslc="http://xslcomponents.org/TR/WD-xslc">
<xsl:import href="../xslc.xsl"/>
<xsl:import href="XMLCAdm_Tabs.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">AsyncError</xsl:with-param>
<xsl:with-param name="PageTitle">AsyncError</xsl:with-param>
<xsl:with-param name="ToolbarButtonsLeft">
<xsl:call-template name="AdmCommonToolbarButtonsLeft"/>
</xsl:with-param>
<xsl:with-param name="ToolbarButtonsRight">
<xsl:call-template name="AdmCommonToolbarButtonsRight"/>
</xsl:with-param>
<xsl:with-param name="ActivePageName">XMLC_DumpWaitingRequest</xsl:with-param>
<xsl:with-param name="Tabs">
<xsl:call-template name="XMLCAdm_Tabs"/>
<Item Caption="Dump Waiting Request" Hint="Dump Waiting Request" Name="XMLC_DumpWaitingRequest" HRef="XMLC_DumpWaitingRequest?{/document/XMLC_Params/XMLC_InputParams}"/>
</xsl:with-param>
<xsl:with-param name="Body">
<xsl:apply-templates select="Request"/>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template match="Request">
<table border="0" cellpadding="2" cellspacing="0" class="clFlatTable" width="100%">
<tr class="clRowLight">
<td>StartTime</td>
<td>
<xsl:value-of select="StartTime"/>
</td>
</tr>
<tr class="clRowDark">
<td>RequestNo</td>
<td>
<xsl:value-of select="RequestNo"/>
</td>
</tr>
<tr class="clRowLight">
<td>RemoteHost</td>
<td>
<xsl:value-of select="RemoteHost"/>
</td>
</tr>
<tr class="clRowDark">
<td>Action</td>
<td>
<xsl:value-of select="Action"/>
</td>
</tr>
<tr class="clRowLight">
<td>Async</td>
<td>
<xsl:value-of select="Async"/>
</td>
</tr>
</table>
<br/>
<xsl:apply-templates select="HTTPFields"/>
<br/>
<xsl:apply-templates select="Cookies"/>
<br/>
<xsl:apply-templates select="CallStacks"/>
<br/>
<xsl:apply-templates select="Contexts"/>
</xsl:template>
<xsl:template match="HTTPFields">
<table border="0" cellpadding="2" cellspacing="0" class="clFlatTable" width="100%">
<tr class="clRowHeader">
<td colspan="2">HTTPFields</td>
</tr>
<xsl:apply-templates select="HTTPField"/>
</table>
</xsl:template>
<xsl:template match="HTTPField">
<tr>
<xsl:attribute name="class"><xsl:choose><xsl:when test="position() mod 2 = 1">clRowLight</xsl:when><xsl:otherwise>clRowDark</xsl:otherwise></xsl:choose></xsl:attribute>
<td width="30%">
<xsl:value-of select="Name"/>
</td>
<td width="70%">
<xsl:value-of select="Value"/>
</td>
</tr>
</xsl:template>
<xsl:template match="Cookies">
<table border="0" cellpadding="2" cellspacing="0" class="clFlatTable" width="100%">
<tr class="clRowHeader">
<td colspan="2">Cookies</td>
</tr>
<xsl:apply-templates select="Cookie"/>
</table>
</xsl:template>
<xsl:template match="Cookie">
<tr>
<xsl:attribute name="class"><xsl:choose><xsl:when test="position() mod 2 = 1">clRowLight</xsl:when><xsl:otherwise>clRowDark</xsl:otherwise></xsl:choose></xsl:attribute>
<td width="30%">
<xsl:value-of select="Name"/>
</td>
<td width="70%">
<xsl:value-of select="Value"/>
</td>
</tr>
</xsl:template>
<xsl:template match="CallStacks">
<table border="0" cellpadding="2" cellspacing="0" class="clFlatTable" width="100%">
<tr class="clRowHeader">
<td>CallStack</td>
</tr>
<xsl:apply-templates select="CallStack"/>
</table>
</xsl:template>
<xsl:template match="CallStack">
<tr>
<td>
<xsl:attribute name="class"><xsl:choose><xsl:when test="position() mod 2 = 1">clRowLight</xsl:when><xsl:otherwise>clRowDark</xsl:otherwise></xsl:choose></xsl:attribute>
<xsl:value-of select="."/>
</td>
</tr>
</xsl:template>
<xsl:template match="Contexts">
<table border="0" cellpadding="2" cellspacing="0" class="clFlatTable" width="100%">
<tr class="clRowHeader">
<td colspan="2">Context</td>
</tr>
<xsl:apply-templates select="Context"/>
</table>
</xsl:template>
<xsl:template match="Context">
<tr>
<xsl:attribute name="class"><xsl:choose><xsl:when test="position() mod 2 = 1">clRowLight</xsl:when><xsl:otherwise>clRowDark</xsl:otherwise></xsl:choose></xsl:attribute>
<td width="30%">
<xsl:value-of select="Name"/>
</td>
<td width="70%">
<xsl:value-of select="Value"/>
</td>
</tr>
</xsl:template>
</xsl:stylesheet>
