Mini Shell
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template xmlns:fo="http://www.w3.org/1999/XSL/Format" match="EventLog">
<DataArea>
<xsl:choose>
<xsl:when test="LogEntry">
<script language="javascript">
function clearLog()
{
document.dataarea.action='./SubmitForm?plugin=com.dell.oma.webplugins.ClearCmdLogWebPlugin';
document.dataarea.submit();
}
</script>
<Header>Page Header</Header>
<PageTitle display="Command Log"/>
<PromptText>Command Log contains...</PromptText>
<CustomButton>
<Data display="Clear Log" name="Clear" href="javascript:clearLog()"/>
<Data display="Refresh" name="Refresh" href="./DataArea?plugin=com.dell.oma.webplugins.CmdLogWebPlugin"/>
</CustomButton>
<TableData>
<Header>
<Data value="Severity" display="Severity" name="Severity"/>
<Data value="Date and Time" display="Date and Time" name="DateTime"/>
<Data value="User" display="User" name="User"/>
<Data value="Description" display="Description" name="Description"/>
</Header>
<xsl:apply-templates select="LogEntry">
<xsl:sort select="TimeStamp" data-type="number" order="descending"/>
</xsl:apply-templates>
</TableData>
</xsl:when>
<xsl:otherwise>
<PromptText>Command Log is empty</PromptText>
</xsl:otherwise>
</xsl:choose>
</DataArea>
</xsl:template>
</xsl:stylesheet>
Zerion Mini Shell 1.0