PR: 21627 Submitted by: Paul Krause git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274870 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -1,6 +1,6 @@ | |||
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" | |||
| xmlns:lxslt="http://xml.apache.org/xslt" | |||
| xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" | |||
| xmlns:redirect="org.apache.xalan.lib.Redirect" | |||
| extension-element-prefixes="redirect"> | |||
| <!-- | |||
| @@ -1,6 +1,6 @@ | |||
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" | |||
| xmlns:lxslt="http://xml.apache.org/xslt" | |||
| xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" | |||
| xmlns:redirect="org.apache.xalan.lib.Redirect" | |||
| extension-element-prefixes="redirect"> | |||
| <!-- | |||
| @@ -1,6 +1,6 @@ | |||
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" | |||
| xmlns:lxslt="http://xml.apache.org/xslt" | |||
| xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" | |||
| xmlns:redirect="org.apache.xalan.lib.Redirect" | |||
| extension-element-prefixes="redirect"> | |||
| <xsl:output method="html" indent="yes"/> | |||
| <xsl:decimal-format decimal-separator="." grouping-separator="," /> | |||
| @@ -59,18 +59,18 @@ | |||
| --> | |||
| <!-- | |||
| Sample stylesheet to be used with JProbe 3.0 XML output. | |||
| It creates a set of HTML files a la javadoc where you can browse easily | |||
| through all packages and classes. | |||
| It is best used with JProbe Coverage Ant task that gives you the benefit | |||
| of a reference classpath so that you have the list of classes/methods | |||
| that are not used at all in a given classpath. | |||
| @author Stephane Bailliez <a href="mailto:sbailliez@apache.org"/> | |||
| --> | |||
| <!-- default output directory is current directory --> | |||
| @@ -99,12 +99,12 @@ | |||
| <redirect:write file="{$output.dir}/overview-frame.html"> | |||
| <xsl:apply-templates select="." mode="all.packages"/> | |||
| </redirect:write> | |||
| <!-- create the all-classes.html at the root --> | |||
| <redirect:write file="{$output.dir}/allclasses-frame.html"> | |||
| <xsl:apply-templates select="." mode="all.classes"/> | |||
| </redirect:write> | |||
| <!-- process all packages --> | |||
| <xsl:apply-templates select="./package" mode="write"/> | |||
| </xsl:template> | |||
| @@ -148,10 +148,10 @@ | |||
| background-color:#FFFFFF; | |||
| color:#000000; | |||
| } | |||
| .a td { | |||
| .a td { | |||
| background: #efefef; | |||
| } | |||
| .b td { | |||
| .b td { | |||
| background: #fff; | |||
| } | |||
| th, td { | |||
| @@ -168,7 +168,7 @@ | |||
| border: none | |||
| } | |||
| table.log tr td, tr th { | |||
| } | |||
| h2 { | |||
| font-weight:bold; | |||
| @@ -314,12 +314,12 @@ | |||
| <redirect:write file="{$output.dir}/{$package.dir}/package-frame.html"> | |||
| <xsl:apply-templates select="." mode="classes.list"/> | |||
| </redirect:write> | |||
| <!-- create a package-summary.html in the package directory --> | |||
| <redirect:write file="{$output.dir}/{$package.dir}/package-summary.html"> | |||
| <xsl:apply-templates select="." mode="package.summary"/> | |||
| </redirect:write> | |||
| <!-- for each class, creates a @name.html --> | |||
| <xsl:for-each select="class"> | |||
| <redirect:write file="{$output.dir}/{$package.dir}/{@name}.html"> | |||
| @@ -344,7 +344,7 @@ | |||
| </td> | |||
| </tr> | |||
| </table> | |||
| <H2>Classes</H2> | |||
| <TABLE WIDTH="100%"> | |||
| <xsl:for-each select="class"> | |||
| @@ -371,12 +371,12 @@ | |||
| <!-- when loading this package, it will open the classes into the frame --> | |||
| <BODY onload="open('package-frame.html','classListFrame')"> | |||
| <xsl:call-template name="pageHeader"/> | |||
| <h3>Package <xsl:value-of select="@name"/></h3> | |||
| <h3>Package <xsl:value-of select="@name"/></h3> | |||
| <table class="log" cellpadding="5" cellspacing="2" width="100%"> | |||
| <xsl:apply-templates select="." mode="stats.header"/> | |||
| <xsl:apply-templates select="." mode="stats"/> | |||
| </table> | |||
| <xsl:if test="count(class) > 0"> | |||
| <H3>Classes</H3> | |||
| <table class="log" cellpadding="5" cellspacing="2" width="100%"> | |||
| @@ -409,7 +409,7 @@ | |||
| <xsl:apply-templates select="." mode="stats.header"/> | |||
| <xsl:apply-templates select="." mode="stats"/> | |||
| </table> | |||
| <!-- details of methods --> | |||
| <H3>Methods</H3> | |||
| <table class="log" cellpadding="5" cellspacing="2" width="100%"> | |||
| @@ -1,6 +1,6 @@ | |||
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" | |||
| xmlns:lxslt="http://xml.apache.org/xslt" | |||
| xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" | |||
| xmlns:redirect="org.apache.xalan.lib.Redirect" | |||
| extension-element-prefixes="redirect"> | |||
| <xsl:output method="html" indent="yes" encoding="US-ASCII"/> | |||
| <!-- | |||
| @@ -59,10 +59,10 @@ | |||
| <!-- | |||
| Sample stylesheet to be used with JDepend XML output. | |||
| It creates a set of HTML files a la javadoc where you can browse easily | |||
| through all packages and classes. | |||
| @author <a href="mailto:jtulley@novell.com">Jeff Tulley</a> | |||
| --> | |||
| @@ -103,7 +103,7 @@ | |||
| <redirect:write file="{$output.dir}/all-packages.html"> | |||
| <xsl:apply-templates select="Packages" mode="all.packages"/> | |||
| </redirect:write> | |||
| <!-- create the all-cycles.html at the root --> | |||
| <redirect:write file="{$output.dir}/all-cycles.html"> | |||
| <xsl:apply-templates select="Cycles" mode="all.cycles"/> | |||
| @@ -150,7 +150,7 @@ | |||
| table.details tr td{ | |||
| background:#eeeee0; | |||
| } | |||
| p { | |||
| line-height:1.5em; | |||
| margin-top:0.5em; margin-bottom:1.0em; | |||
| @@ -212,7 +212,7 @@ | |||
| <th><a href="overview-explanations.html#EXabstractness">Abstractness</a></th> | |||
| <th><a href="overview-explanations.html#EXinstability">Instability</a></th> | |||
| <th><a href="overview-explanations.html#EXdistance">Distance</a></th> | |||
| </tr> | |||
| <xsl:for-each select="./Packages/Package"> | |||
| <xsl:if test="count(error) = 0"> | |||
| @@ -264,12 +264,12 @@ | |||
| [<a href="overview-cycles.html">cycles</a>] | |||
| [<a href="overview-explanations.html">explanations</a>] | |||
| </td></tr></table> | |||
| <xsl:for-each select="./Packages/Package"> | |||
| <xsl:if test="count(error) = 0"> | |||
| <h3><a><xsl:attribute name="name">PK<xsl:value-of select="@name"/></xsl:attribute> | |||
| <xsl:value-of select="@name"/></a></h3> | |||
| <table width="100%"><tr> | |||
| <td><a href="overview-explanations.html#EXafferent">Afferent Couplings</a>: <xsl:value-of select="Stats/Ca"/></td> | |||
| <td><a href="overview-explanations.html#EXefferent">Efferent Couplings</a>: <xsl:value-of select="Stats/Ce"/></td> | |||
| @@ -277,7 +277,7 @@ | |||
| <td><a href="overview-explanations.html#EXinstability">Instability</a>: <xsl:value-of select="Stats/I"/></td> | |||
| <td><a href="overview-explanations.html#EXdistance">Distance</a>: <xsl:value-of select="Stats/D"/></td> | |||
| </tr></table> | |||
| <table width="100%" class="details"> | |||
| <tr> | |||
| <th>Abstract Classes</th> | |||
| @@ -360,7 +360,7 @@ | |||
| [<a href="#NVcycles">cycles</a>] | |||
| [<a href="#NVexplanations">explanations</a>] | |||
| </td></tr></table> --> | |||
| <xsl:if test="count(Cycles/Package) = 0"> | |||
| <p>There are no cyclic dependancies.</p> | |||
| </xsl:if> | |||
| @@ -380,7 +380,7 @@ | |||
| </body> | |||
| </html> | |||
| </xsl:template> | |||
| <xsl:template match="JDepend" mode="explanations"> | |||
| <html> | |||
| <head> | |||
| @@ -396,16 +396,16 @@ | |||
| [<a href="overview-cycles.html">cycles</a>] | |||
| [explanations] | |||
| </td></tr></table> | |||
| <p>The following explanations are for quick reference and are lifted directly from the original <a href="http://www.clarkware.com/software/JDepend.html">JDepend documentation</a>.</p> | |||
| <h3><a name="EXnumber">Number of Classes</a></h3> | |||
| <p>The number of concrete and abstract classes (and interfaces) in the package is an indicator of the extensibility of the package.</p> | |||
| <h3><a name="EXafferent">Afferent Couplings</a></h3> | |||
| <p>The number of other packages that depend upon classes within the package is an indicator of the package's responsibility. </p> | |||
| <h3><a name="EXefferent">Efferent Couplings</a></h3> | |||
| <p>The number of other packages that the classes in the package depend upon is an indicator of the package's independence. </p> | |||
| <h3><a name="EXabstractness">Abstractness</a></h3> | |||
| <h3><a name="EXabstractness">Abstractness</a></h3> | |||
| <p>The ratio of the number of abstract classes (and interfaces) in the analyzed package to the total number of classes in the analyzed package. </p> | |||
| <p>The range for this metric is 0 to 1, with A=0 indicating a completely concrete package and A=1 indicating a completely abstract package. </p> | |||
| <h3><a name="EXinstability">Instability</a></h3> | |||
| @@ -415,12 +415,12 @@ | |||
| <p>The perpendicular distance of a package from the idealized line A + I = 1. This metric is an indicator of the package's balance between abstractness and stability. </p> | |||
| <p>A package squarely on the main sequence is optimally balanced with respect to its abstractness and stability. Ideal packages are either completely abstract and stable (x=0, y=1) or completely concrete and instable (x=1, y=0). </p> | |||
| <p>The range for this metric is 0 to 1, with D=0 indicating a package that is coincident with the main sequence and D=1 indicating a package that is as far from the main sequence as possible. </p> | |||
| </body> | |||
| </html> | |||
| </xsl:template> | |||
| <!-- | |||
| Creates an html file that contains a link to all package links in overview-packages.html. | |||
| @bug there will be a problem here, I don't know yet how to handle unnamed package :( | |||
| @@ -506,7 +506,7 @@ Creates an html file that contains a link to all package links in overview-cycle | |||
| </td> | |||
| </tr> | |||
| </xsl:template> | |||
| <!-- Page HEADER --> | |||
| <xsl:template name="pageHeader"> | |||
| <h1>JDepend Analysis</h1> | |||
| @@ -1,6 +1,6 @@ | |||
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" | |||
| xmlns:lxslt="http://xml.apache.org/xslt" | |||
| xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" | |||
| xmlns:redirect="org.apache.xalan.lib.Redirect" | |||
| extension-element-prefixes="redirect"> | |||
| <xsl:output method="html" indent="yes" encoding="US-ASCII"/> | |||
| <xsl:decimal-format decimal-separator="." grouping-separator=","/> | |||
| @@ -59,15 +59,15 @@ | |||
| --> | |||
| <!-- | |||
| Sample stylesheet to be used with An JUnitReport output. | |||
| It creates a set of HTML files a la javadoc where you can browse easily | |||
| through all packages and classes. | |||
| @author Stephane Bailliez <a href="mailto:sbailliez@apache.org"/> | |||
| @author Erik Hatcher <a href="mailto:ehatcher@apache.org"/> | |||
| --> | |||
| <xsl:param name="output.dir" select="'.'"/> | |||
| @@ -92,12 +92,12 @@ | |||
| <redirect:write file="{$output.dir}/overview-frame.html"> | |||
| <xsl:apply-templates select="." mode="all.packages"/> | |||
| </redirect:write> | |||
| <!-- create the all-classes.html at the root --> | |||
| <redirect:write file="{$output.dir}/allclasses-frame.html"> | |||
| <xsl:apply-templates select="." mode="all.classes"/> | |||
| </redirect:write> | |||
| <!-- process all packages --> | |||
| <xsl:for-each select="./testsuite[not(./@package = preceding-sibling::testsuite/@package)]"> | |||
| <xsl:call-template name="package"> | |||
| @@ -112,7 +112,7 @@ | |||
| <xsl:variable name="package.dir"> | |||
| <xsl:if test="not($name = '')"><xsl:value-of select="translate($name,'.','/')"/></xsl:if> | |||
| <xsl:if test="$name = ''">.</xsl:if> | |||
| </xsl:variable> | |||
| </xsl:variable> | |||
| <!--Processing package <xsl:value-of select="@name"/> in <xsl:value-of select="$output.dir"/> --> | |||
| <!-- create a classes-list.html in the package directory --> | |||
| <redirect:write file="{$output.dir}/{$package.dir}/package-frame.html"> | |||
| @@ -120,14 +120,14 @@ | |||
| <xsl:with-param name="name" select="$name"/> | |||
| </xsl:call-template> | |||
| </redirect:write> | |||
| <!-- create a package-summary.html in the package directory --> | |||
| <redirect:write file="{$output.dir}/{$package.dir}/package-summary.html"> | |||
| <xsl:call-template name="package.summary"> | |||
| <xsl:with-param name="name" select="$name"/> | |||
| </xsl:call-template> | |||
| </redirect:write> | |||
| <!-- for each class, creates a @name.html --> | |||
| <!-- @bug there will be a problem with inner classes having the same name, it will be overwritten --> | |||
| <xsl:for-each select="/testsuites/testsuite[@package = $name]"> | |||
| @@ -265,19 +265,19 @@ h6 { | |||
| doc.close(); | |||
| win.focus(); | |||
| } | |||
| ]]> | |||
| ]]> | |||
| </script> | |||
| </head> | |||
| <body> | |||
| <xsl:call-template name="pageHeader"/> | |||
| <xsl:call-template name="pageHeader"/> | |||
| <h3>Class <xsl:value-of select="$class.name"/></h3> | |||
| <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%"> | |||
| <xsl:call-template name="testsuite.test.header"/> | |||
| <xsl:apply-templates select="." mode="print.test"/> | |||
| </table> | |||
| <h2>Tests</h2> | |||
| <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%"> | |||
| <xsl:call-template name="testcase.test.header"/> | |||
| @@ -354,7 +354,7 @@ h6 { | |||
| </td> | |||
| </tr> | |||
| </table> | |||
| <h2>Classes</h2> | |||
| <table width="100%"> | |||
| <xsl:for-each select="/testsuites/testsuite[./@package = $name]"> | |||
| @@ -503,7 +503,7 @@ h6 { | |||
| </td> | |||
| </tr> | |||
| </table> | |||
| <h2>Packages</h2> | |||
| <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%"> | |||
| <xsl:call-template name="testsuite.test.header"/> | |||
| @@ -549,12 +549,12 @@ h6 { | |||
| <xsl:attribute name="onload">open('package-frame.html','classListFrame')</xsl:attribute> | |||
| <xsl:call-template name="pageHeader"/> | |||
| <h3>Package <xsl:value-of select="$name"/></h3> | |||
| <!--table border="0" cellpadding="5" cellspacing="2" width="95%"> | |||
| <xsl:call-template name="class.metrics.header"/> | |||
| <xsl:apply-templates select="." mode="print.metrics"/> | |||
| </table--> | |||
| <xsl:variable name="insamepackage" select="/testsuites/testsuite[./@package = $name]"/> | |||
| <xsl:if test="count($insamepackage) > 0"> | |||
| <h2>Classes</h2> | |||
| @@ -579,13 +579,13 @@ h6 { | |||
| <xsl:template name="path"> | |||
| <xsl:param name="path"/> | |||
| <xsl:if test="contains($path,'.')"> | |||
| <xsl:text>../</xsl:text> | |||
| <xsl:text>../</xsl:text> | |||
| <xsl:call-template name="path"> | |||
| <xsl:with-param name="path"><xsl:value-of select="substring-after($path,'.')"/></xsl:with-param> | |||
| </xsl:call-template> | |||
| </xsl:call-template> | |||
| </xsl:if> | |||
| <xsl:if test="not(contains($path,'.')) and not($path = '')"> | |||
| <xsl:text>../</xsl:text> | |||
| <xsl:text>../</xsl:text> | |||
| </xsl:if> | |||
| </xsl:template> | |||
| @@ -633,7 +633,7 @@ h6 { | |||
| <!-- class information --> | |||
| <xsl:template match="testsuite" mode="print.test"> | |||
| <tr valign="top"> | |||
| <tr valign="top"> | |||
| <xsl:attribute name="class"> | |||
| <xsl:choose> | |||
| <xsl:when test="@errors[.> 0]">Error</xsl:when> | |||
| @@ -721,7 +721,7 @@ h6 { | |||
| <xsl:value-of select="substring-before($string,"'")"/>\'<xsl:call-template name="JS-escape"> | |||
| <xsl:with-param name="string" select="substring-after($string,"'")"/> | |||
| </xsl:call-template> | |||
| </xsl:when> | |||
| </xsl:when> | |||
| <xsl:when test="contains($string,'\')"> | |||
| <xsl:value-of select="substring-before($string,'\')"/>\\<xsl:call-template name="JS-escape"> | |||
| <xsl:with-param name="string" select="substring-after($string,'\')"/> | |||
| @@ -1,6 +1,6 @@ | |||
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" | |||
| xmlns:lxslt="http://xml.apache.org/xslt" | |||
| xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" | |||
| xmlns:redirect="org.apache.xalan.lib.Redirect" | |||
| extension-element-prefixes="redirect"> | |||
| <xsl:output method="html" indent="yes" encoding="US-ASCII"/> | |||
| <xsl:decimal-format decimal-separator="." grouping-separator="," /> | |||
| @@ -61,7 +61,7 @@ | |||
| Stylesheet to transform an XML file generated by the Ant MAudit task into | |||
| a set of JavaDoc-like HTML page to make pages more convenient to be browsed. | |||
| It use the Xalan redirect extension to write to multiple output files. | |||
| @author Stephane Bailliez <a href="mailto:sbailliez@apache.org"/> | |||
| @@ -90,12 +90,12 @@ | |||
| <redirect:write file="{$output.dir}/overview-frame.html"> | |||
| <xsl:apply-templates select="." mode="all.packages"/> | |||
| </redirect:write> | |||
| <!-- create the all-classes.html at the root --> | |||
| <redirect:write file="{$output.dir}/allclasses-frame.html"> | |||
| <xsl:apply-templates select="." mode="all.classes"/> | |||
| </redirect:write> | |||
| <!-- process all packages --> | |||
| <xsl:for-each select="./class[not(./@package = preceding-sibling::class/@package)]"> | |||
| <xsl:call-template name="package"> | |||
| @@ -110,7 +110,7 @@ | |||
| <xsl:variable name="package.dir"> | |||
| <xsl:if test="not($name = '')"><xsl:value-of select="translate($name,'.','/')"/></xsl:if> | |||
| <xsl:if test="$name = ''">.</xsl:if> | |||
| </xsl:variable> | |||
| </xsl:variable> | |||
| <!--Processing package <xsl:value-of select="@name"/> in <xsl:value-of select="$output.dir"/> --> | |||
| <!-- create a classes-list.html in the package directory --> | |||
| <redirect:write file="{$output.dir}/{$package.dir}/package-frame.html"> | |||
| @@ -118,14 +118,14 @@ | |||
| <xsl:with-param name="name" select="$name"/> | |||
| </xsl:call-template> | |||
| </redirect:write> | |||
| <!-- create a package-summary.html in the package directory --> | |||
| <redirect:write file="{$output.dir}/{$package.dir}/package-summary.html"> | |||
| <xsl:call-template name="package.summary"> | |||
| <xsl:with-param name="name" select="$name"/> | |||
| </xsl:call-template> | |||
| </redirect:write> | |||
| <!-- for each class, creates a @name.html --> | |||
| <!-- @bug there will be a problem with inner classes having the same name, it will be overwritten --> | |||
| <xsl:for-each select="/classes/class[@package = $name]"> | |||
| @@ -168,10 +168,10 @@ | |||
| background-color:#FFFFFF; | |||
| color:#000000; | |||
| } | |||
| .a td { | |||
| .a td { | |||
| background: #efefef; | |||
| } | |||
| .b td { | |||
| .b td { | |||
| background: #fff; | |||
| } | |||
| th, td { | |||
| @@ -188,7 +188,7 @@ | |||
| border: none | |||
| } | |||
| table.log tr td, tr th { | |||
| } | |||
| h2 { | |||
| font-weight:bold; | |||
| @@ -226,7 +226,7 @@ | |||
| <xsl:call-template name="class.audit.header"/> | |||
| <xsl:apply-templates select="." mode="print.audit"/> | |||
| </table> | |||
| <H3>Violations</H3> | |||
| <table class="log" border="0" cellpadding="5" cellspacing="2" width="100%"> | |||
| <xsl:call-template name="violation.audit.header"/> | |||
| @@ -257,7 +257,7 @@ | |||
| </td> | |||
| </tr> | |||
| </table> | |||
| <h2>Classes</h2> | |||
| <TABLE WIDTH="100%"> | |||
| <xsl:apply-templates select="/classes/class[./@package = $name]" mode="classes.list"> | |||
| @@ -423,12 +423,12 @@ | |||
| <xsl:attribute name="onload">open('package-frame.html','classListFrame')</xsl:attribute> | |||
| <xsl:call-template name="pageHeader"/> | |||
| <h3>Package <xsl:value-of select="$name"/></h3> | |||
| <!--table border="0" cellpadding="5" cellspacing="2" width="100%"> | |||
| <xsl:call-template name="class.metrics.header"/> | |||
| <xsl:apply-templates select="." mode="print.metrics"/> | |||
| </table--> | |||
| <xsl:if test="count(/classes/class[./@package = $name]) > 0"> | |||
| <H3>Classes</H3> | |||
| <table class="log" border="0" cellpadding="5" cellspacing="2" width="100%"> | |||
| @@ -451,13 +451,13 @@ | |||
| <xsl:template name="path"> | |||
| <xsl:param name="path"/> | |||
| <xsl:if test="contains($path,'.')"> | |||
| <xsl:text>../</xsl:text> | |||
| <xsl:text>../</xsl:text> | |||
| <xsl:call-template name="path"> | |||
| <xsl:with-param name="path"><xsl:value-of select="substring-after($path,'.')"/></xsl:with-param> | |||
| </xsl:call-template> | |||
| </xsl:call-template> | |||
| </xsl:if> | |||
| <xsl:if test="not(contains($path,'.')) and not($path = '')"> | |||
| <xsl:text>../</xsl:text> | |||
| <xsl:text>../</xsl:text> | |||
| </xsl:if> | |||
| </xsl:template> | |||
| @@ -544,4 +544,4 @@ | |||
| </xsl:template> | |||
| </xsl:stylesheet> | |||
| @@ -1,7 +1,7 @@ | |||
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" | |||
| xmlns:lxslt="http://xml.apache.org/xslt" | |||
| xmlns:xalan="http://xml.apache.org/xalan" | |||
| xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" | |||
| xmlns:redirect="org.apache.xalan.lib.Redirect" | |||
| exclude-result-prefixes="xalan" | |||
| extension-element-prefixes="redirect"> | |||
| <xsl:output method="html" indent="yes" encoding="US-ASCII"/> | |||
| @@ -61,7 +61,7 @@ | |||
| --> | |||
| <!-- | |||
| @author Stephane Bailliez <a href="mailto:sbailliez@apache.org"/> | |||
| --> | |||
| --> | |||
| <xsl:param name="output.dir" select="'.'"/> | |||
| <!-- default max value for the metrics --> | |||
| @@ -115,7 +115,7 @@ | |||
| <redirect:write file="{$output.dir}/metrics-reference.html"> | |||
| <xsl:call-template name="metrics-reference.html"/> | |||
| </redirect:write> | |||
| <!-- create the overview-packages.html at the root --> | |||
| <redirect:write file="{$output.dir}/overview-summary.html"> | |||
| <xsl:apply-templates select="." mode="overview.packages"/> | |||
| @@ -125,12 +125,12 @@ | |||
| <redirect:write file="{$output.dir}/overview-frame.html"> | |||
| <xsl:apply-templates select="." mode="all.packages"/> | |||
| </redirect:write> | |||
| <!-- create the all-classes.html at the root --> | |||
| <redirect:write file="{$output.dir}/allclasses-frame.html"> | |||
| <xsl:apply-templates select="." mode="all.classes"/> | |||
| </redirect:write> | |||
| <!-- process all packages --> | |||
| <xsl:apply-templates select=".//package"/> | |||
| </xsl:template> | |||
| @@ -141,17 +141,17 @@ | |||
| <xsl:variable name="package.dir"> | |||
| <xsl:if test="not($package.name = 'unnamed package')"><xsl:value-of select="translate($package.name,'.','/')"/></xsl:if> | |||
| <xsl:if test="$package.name = 'unnamed package'">.</xsl:if> | |||
| </xsl:variable> | |||
| </xsl:variable> | |||
| <!-- create a classes-list.html in the package directory --> | |||
| <redirect:write file="{$output.dir}/{$package.dir}/package-frame.html"> | |||
| <xsl:apply-templates select="." mode="classes.list"/> | |||
| </redirect:write> | |||
| <!-- create a package-summary.html in the package directory --> | |||
| <redirect:write file="{$output.dir}/{$package.dir}/package-summary.html"> | |||
| <xsl:apply-templates select="." mode="package.summary"/> | |||
| </redirect:write> | |||
| <!-- for each class, creates a @name.html --> | |||
| <!-- @bug there will be a problem with inner classes having the same name, it will be overwritten --> | |||
| <xsl:for-each select="$doctree/classes/class[@package = current()/@name]"> | |||
| @@ -493,10 +493,10 @@ will increase this number. | |||
| background-color:#FFFFFF; | |||
| color:#000000; | |||
| } | |||
| .a td { | |||
| .a td { | |||
| background: #efefef; | |||
| } | |||
| .b td { | |||
| .b td { | |||
| background: #fff; | |||
| } | |||
| th, td { | |||
| @@ -513,7 +513,7 @@ will increase this number. | |||
| border: none | |||
| } | |||
| table.log tr td, tr th { | |||
| } | |||
| h2 { | |||
| font-weight:bold; | |||
| @@ -549,19 +549,19 @@ will increase this number. | |||
| </HEAD> | |||
| <BODY> | |||
| <xsl:call-template name="pageHeader"/> | |||
| <H3>Class <xsl:if test="not($package.name = 'unnamed package')"><xsl:value-of select="$package.name"/>.</xsl:if><xsl:value-of select="@name"/></H3> | |||
| <table class="log" border="0" cellpadding="5" cellspacing="2" width="100%"> | |||
| <xsl:call-template name="all.metrics.header"/> | |||
| <xsl:apply-templates select="." mode="print.metrics"/> | |||
| </table> | |||
| <H3>Methods</H3> | |||
| <table class="log" border="0" cellpadding="5" cellspacing="2" width="100%"> | |||
| <xsl:call-template name="method.metrics.header"/> | |||
| <xsl:apply-templates select="method" mode="print.metrics"/> | |||
| </table> | |||
| <xsl:call-template name="pageFooter"/> | |||
| </BODY> | |||
| </HTML> | |||
| @@ -584,7 +584,7 @@ will increase this number. | |||
| </td> | |||
| </tr> | |||
| </table> | |||
| <H2>Classes</H2> | |||
| <TABLE WIDTH="100%"> | |||
| <!-- xalan-nodeset:nodeset for Xalan 1.2.2 --> | |||
| @@ -594,7 +594,7 @@ will increase this number. | |||
| <td nowrap="nowrap"> | |||
| <a href="{@name}.html" target="classFrame"><xsl:value-of select="@name"/></a> | |||
| </td> | |||
| </tr> | |||
| </tr> | |||
| </xsl:for-each> | |||
| </TABLE> | |||
| </BODY> | |||
| @@ -705,7 +705,7 @@ will increase this number. | |||
| <th><a href="metrics-reference.html#NOCL">NOCL</a></th> | |||
| </tr> | |||
| <xsl:apply-templates select="." mode="print.metrics"/> | |||
| </table> | |||
| </table> | |||
| <table border="0" width="100%"> | |||
| <tr> | |||
| <td style="text-align: justify;"> | |||
| @@ -748,12 +748,12 @@ will increase this number. | |||
| <xsl:call-template name="pageHeader"/> | |||
| <!-- create an anchor to this package name --> | |||
| <h3>Package <xsl:value-of select="@name"/></h3> | |||
| <table class="log" border="0" cellpadding="5" cellspacing="2" width="100%"> | |||
| <xsl:call-template name="all.metrics.header"/> | |||
| <xsl:apply-templates select="." mode="print.metrics"/> | |||
| </table> | |||
| <table border="0" width="100%"> | |||
| <tr> | |||
| <td style="text-align: justify;"> | |||
| @@ -770,7 +770,7 @@ will increase this number. | |||
| </td> | |||
| </tr> | |||
| </table> | |||
| <xsl:variable name="classes-in-package" select="$doctree/classes/class[@package = current()/@name]"/> | |||
| <xsl:if test="count($classes-in-package) > 0"> | |||
| <H3>Classes</H3> | |||
| @@ -782,7 +782,7 @@ will increase this number. | |||
| </xsl:for-each> | |||
| </table> | |||
| </xsl:if> | |||
| <xsl:call-template name="pageFooter"/> | |||
| </body> | |||
| </HTML> | |||
| @@ -796,13 +796,13 @@ will increase this number. | |||
| <xsl:template name="path"> | |||
| <xsl:param name="path"/> | |||
| <xsl:if test="contains($path,'.')"> | |||
| <xsl:text>../</xsl:text> | |||
| <xsl:text>../</xsl:text> | |||
| <xsl:call-template name="path"> | |||
| <xsl:with-param name="path"><xsl:value-of select="substring-after($path,'.')"/></xsl:with-param> | |||
| </xsl:call-template> | |||
| </xsl:call-template> | |||
| </xsl:if> | |||
| <xsl:if test="not(contains($path,'.')) and not($path = '')"> | |||
| <xsl:text>../</xsl:text> | |||
| <xsl:text>../</xsl:text> | |||
| </xsl:if> | |||
| </xsl:template> | |||
| @@ -979,7 +979,7 @@ will increase this number. | |||
| <xsl:with-param name="max" select="$loc.max"/> | |||
| </xsl:call-template> | |||
| </xsl:template> | |||
| <xsl:template match="@dit"> | |||
| <xsl:call-template name="display-value"> | |||
| <xsl:with-param name="value" select="current()"/> | |||
| @@ -1067,4 +1067,4 @@ will increase this number. | |||
| </xsl:template> | |||
| </xsl:stylesheet> | |||