maudit-frames.xsl revision 809
0N/A<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
0N/A xmlns:lxslt="http://xml.apache.org/xslt"
0N/A xmlns:redirect="org.apache.xalan.lib.Redirect"
0N/A<xsl:param name="output.dir" select="'.'"/>
0N/A <!-- create the index.html -->
0N/A <xsl:call-template name="index.html"/>
0N/A <!-- create the stylesheet.css -->
0N/A <xsl:call-template name="stylesheet.css"/>
0N/A <!-- create the overview-packages.html at the root -->
0N/A <xsl:apply-templates select="." mode="overview.packages"/>
0N/A <!-- create the all-packages.html at the root -->
0N/A <xsl:apply-templates select="." mode="all.packages"/>
0N/A <!-- create the all-classes.html at the root -->
0N/A <xsl:apply-templates select="." mode="all.classes"/>
0N/A <xsl:variable name="package.dir">
0N/A <!--Processing package <xsl:value-of select="@name"/> in <xsl:value-of select="$output.dir"/> -->
0N/A <!-- create a classes-list.html in the package directory -->
0N/A <xsl:call-template name="classes.list">
0N/A <!-- create a package-summary.html in the package directory -->
0N/A <xsl:call-template name="package.summary">
0N/A <!-- @bug there will be a problem with inner classes having the same name, it will be overwritten -->
0N/A <xsl:for-each select="/classes/class[@package = $name]">
0N/A <xsl:apply-templates select="." mode="class.details"/>
0N/A<xsl:template name="index.html">
0N/A <FRAME src="overview-frame.html" name="packageListFrame"/>
0N/A <FRAME src="allclasses-frame.html" name="classListFrame"/>
0N/A <FRAME src="overview-summary.html" name="classFrame"/>
0N/A This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
0N/A<xsl:template name="stylesheet.css">
0N/A<xsl:template match="class" mode="class.details">
0N/A <xsl:variable name="package.name" select="@package"/>
0N/A <xsl:call-template name="create.stylesheet.link">
0N/A <H3>Class <xsl:if test="not($package.name = '')"><xsl:value-of select="$package.name"/>.</xsl:if><xsl:value-of select="@name"/></H3>
0N/A <xsl:call-template name="class.audit.header"/>
0N/A <xsl:apply-templates select="." mode="print.audit"/>
0N/A <xsl:call-template name="violation.audit.header"/>
0N/A <xsl:apply-templates select="./violation" mode="print.audit">
0N/A<xsl:template name="classes.list">
0N/A <xsl:call-template name="create.stylesheet.link">
0N/A <xsl:with-param name="package.name" select="$name"/>
0N/A <H2><a href="package-summary.html" target="classFrame"><xsl:value-of select="$name"/></a></H2>
0N/A<xsl:template match="class" mode="classes.list">
0N/A<xsl:template match="classes" mode="all.classes">
0N/A <xsl:call-template name="create.stylesheet.link">
0N/A <xsl:with-param name="package.name"/>
0N/A <xsl:apply-templates select=".//class" mode="all.classes">
0N/A<xsl:template match="class" mode="all.classes">
0N/A <xsl:variable name="package.name" select="@package"/>
0N/A <xsl:if test="not($package.name='')">
0N/A <xsl:value-of select="translate($package.name,'.','/')"/><xsl:text>/</xsl:text>
0N/A Creates an html file that contains a link to all package-summary.html files on
0N/A<xsl:template match="classes" mode="all.packages">
0N/A <xsl:call-template name="create.stylesheet.link">
0N/A <xsl:with-param name="package.name"/>
0N/A <h2><a href="overview-summary.html" target="classFrame">Home</a></h2>
0N/A <xsl:apply-templates select="class[not(./@package = preceding-sibling::class/@package)]" mode="all.packages">
0N/A<xsl:template match="class" mode="all.packages">
0N/A <a href="{translate(@package,'.','/')}/package-summary.html" target="classFrame">
0N/A<xsl:template match="classes" mode="overview.packages">
0N/A <xsl:call-template name="create.stylesheet.link">
0N/A <xsl:with-param name="package.name"/>
0N/A <body onload="open('allclasses-frame.html','classListFrame')">
0N/A reported with a reference to the <a href="http://java.sun.com/docs/books/jls/second_edition/html/jTOC.doc.html">Java Language Specifications</a> (JLS x.x.x)
0N/A Rules checked also enforce adherence to <a href="http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html">Sun Java coding guidelines</a> in use at Jakarta.
0N/A <xsl:call-template name="class.audit.header"/>
0N/A <td><a href="{translate(@package,'.','/')}/package-summary.html"><xsl:value-of select="@package"/></a></td>
0N/A <td><xsl:value-of select="sum(/classes/class[./@package = current()/@package]/@violations)"/></td>
0N/A<xsl:template name="package.summary">
0N/A <xsl:call-template name="create.stylesheet.link">
0N/A <xsl:with-param name="package.name" select="$name"/>
0N/A <xsl:attribute name="onload">open('package-frame.html','classListFrame')</xsl:attribute>
0N/A <xsl:call-template name="class.metrics.header"/>
0N/A <xsl:apply-templates select="." mode="print.metrics"/>
0N/A <xsl:if test="count(/classes/class[./@package = $name]) > 0">
0N/A <xsl:call-template name="class.audit.header"/>
0N/A <xsl:with-param name="path"><xsl:value-of select="substring-after($path,'.')"/></xsl:with-param>
0N/A<xsl:template name="create.stylesheet.link">
0N/A <xsl:param name="package.name"/>
0N/A <LINK REL ="stylesheet" TYPE="text/css" TITLE="Style"><xsl:attribute name="href"><xsl:if test="not($package.name = 'unnamed package')"><xsl:call-template name="path"><xsl:with-param name="path" select="$package.name"/></xsl:call-template></xsl:if>stylesheet.css</xsl:attribute></LINK>
0N/A <a href="http://jakarta.apache.org/">
0N/A <img src="http://jakarta.apache.org/images/jakarta-logo.gif" alt="http://jakarta.apache.org" align="left" border="0"/>
0N/A <td style="text-align:right">Designed for use with <a href='http://www.webgain.com/products/quality_analyzer/'>Webgain QA/Metamata Audit</a> and <a href='http://jakarta.apache.org'>Ant</a>.</td>
0N/A<xsl:template name="class.audit.header">
0N/A<xsl:template name="violation.audit.header">
0N/A<xsl:template match="class" mode="print.audit">
0N/A<xsl:template match="violation" mode="print.audit">