MINI MINI MANI MO
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<title>
Statistics Advisor Report
</title>
<style type="text/css">
body, table, input, select, textarea
{font:normal normal 8pt Verdana,Arial;text-decoration:none;color:#000000;}
.s8 {font-size:8pt;color:#006699}
.s9 {font-size:10pt;color:#006699}
.s10 {font-size:14pt;color:#006699;}
.s16 {border-width : 1px; border-color : #CCCC99;
border-style: solid;color:#006699;font-size:8pt;}
.s17 {border-width : 1px; border-color : #CCCC99;
border-style: solid;font-size:8pt;}
.s27 {border-width : 1px; border-color : #CCCC99; border-style: solid;}
</style>
</head>
<body>
<xsl:apply-templates />
</body>
</html>
</xsl:template>
<xsl:template match="report/report_id">
</xsl:template>
<xsl:template match="report/header">
<a name="general"/>
<a href="#general" style="text-decoration:none">
<font class="s10">GENERAL INFORMATION</font>
</a>
<hr size="3" width="550" align="left"/>
<br/>
<table class="ex" cellspacing="0" border="0">
<tr><th align="left">Task Name</th>
<td>: <xsl:value-of select="/report/header/task_name"/></td></tr>
<tr><th align="left">Execution Name</th>
<td>: <xsl:value-of select="/report/header/execution_name"/></td></tr>
<tr><th align="left">Created</th>
<td>: <xsl:value-of select="/report/header/created"/></td></tr>
<tr><th align="left">Last Modified</th>
<td>: <xsl:value-of select="/report/header/last_modified"/></td></tr>
</table>
<hr size="3" width="550" align="left"/>
</xsl:template>
<xsl:template match="report/summary">
<a name="summary"/>
<a href="#summary" style="text-decoration:none">
<font class="s10">SUMMARY</font>
</a>
<hr size="3" width="550" align="left"/>
<xsl:for-each select="/report/summary">
<table border="0" ora_widthc="80">
<tr>
<td><xsl:value-of select="."/></td>
</tr>
</table>
</xsl:for-each>
<hr size="3" width="550" align="left"/>
</xsl:template>
<xsl:template match="report/body">
<a name="body"/>
<a href="#body" style="text-decoration:none">
<font class="s10">FINDINGS</font>
</a>
<hr size="3" width="550" align="left"/>
<xsl:apply-templates select="./rule"/>
<hr size="3" width="550" align="left"/>
</xsl:template>
<xsl:template match="rule">
<xsl:for-each select=".">
<table border="0" ora_widthc="80">
<tr>
<th align="left">Rule Name:</th>
<td> <xsl:value-of select="./@name"/> </td>
</tr>
<tr>
<th align="left">Rule Description:</th>
<td> <xsl:value-of select="./@description"/> </td>
</tr>
</table>
<xsl:apply-templates select="./finding"/>
<hr size="1" width="359" align="left"/>
</xsl:for-each>
</xsl:template>
<xsl:template match="finding">
<xsl:for-each select=".">
<table border="0" ora_widthc="80">
<tr>
<th align="left">Finding:</th>
<td><xsl:value-of select="./finding_message"/></td>
</tr>
</table>
<xsl:apply-templates select="./details"/>
<br></br>
<table border="0" ora_widthc="80">
<tr>
<th align="left">Recommendation:</th>
<td><xsl:value-of select="./recommendation/rec_message"/></td>
</tr>
</table>
<xsl:apply-templates select="./recommendation/example"/>
<table border="0" ora_widthc="80">
<tr>
<th align="left">Rationale:</th>
<td><xsl:value-of select="./recommendation/rationale/rat_message"/></td>
</tr>
</table>
</xsl:for-each>
</xsl:template>
<xsl:template match="example">
<xsl:for-each select=".">
<table border="0" ora_widthc="80">
<tr>
<th align="left">Example:</th>
</tr>
</table>
<table border="0" ora_widthc="80">
<xsl:for-each select="./line">
<xsl:if test="comment != ''">
<tr>
<td>-- <xsl:value-of select="./comment"/></td>
</tr>
</xsl:if>
<xsl:if test="operation != ''">
<tr>
<td><xsl:value-of select="./operation"/></td>
</tr>
</xsl:if>
</xsl:for-each>
</table>
</xsl:for-each>
</xsl:template>
<xsl:template match="details">
<xsl:for-each select=".">
<table border="0" ora-widthc="80">
<xsl:if test="operation !=''">
<tr>
<th align="left">Operation:</th>
</tr>
</xsl:if>
<xsl:for-each select="./operation">
<tr>
<th align="left"><xsl:value-of select="."/></th>
</tr>
</xsl:for-each>
</table>
<table border="0" ora-widthc="80">
<xsl:for-each select="./schema">
<tr>
<th align="left">Schema:</th>
</tr>
<tr>
<th> <xsl:value-of select="./@name"/></th>
</tr>
<tr>
<th align="left">Objects:</th>
</tr>
<xsl:for-each select="./object">
<tr>
<th align="left"><xsl:value-of select="."/></th>
</tr>
</xsl:for-each>
</xsl:for-each>
</table>
</xsl:for-each>
</xsl:template>
<xsl:template match="report/errors">
<a name="errors"/>
<a href="#errors" style="text-decoration:none">
<font class="s10">ERRORS</font>
</a>
<hr size="3" width="650" align="left"/>
<xsl:if test="/report/errors">
<tr>No errors found for this execution.</tr>
</xsl:if>
<hr size="3" width="650" align="left"/>
</xsl:template>
</xsl:stylesheet>
OHA YOOOO