|
Ant example source code file (jdepend-frames.xsl)
The jdepend-frames.xsl source code<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.lib.Redirect" extension-element-prefixes="redirect"> <xsl:output method="html" indent="yes" encoding="US-ASCII"/> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!-- 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 --> <xsl:param name="output.dir" select="'.'"/> <xsl:template match="JDepend"> <!-- create the index.html --> <redirect:write file="{$output.dir}/index.html"> <xsl:call-template name="index.html"/> </redirect:write> <!-- create the stylesheet.css --> <redirect:write file="{$output.dir}/stylesheet.css"> <xsl:call-template name="stylesheet.css"/> </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"/> </redirect:write> <!-- create the overview-packages.html at the root --> <redirect:write file="{$output.dir}/overview-packages.html"> <xsl:apply-templates select="." mode="packages.details"/> </redirect:write> <!-- create the overview-cycles.html at the root --> <redirect:write file="{$output.dir}/overview-cycles.html"> <xsl:apply-templates select="." mode="cycles.details"/> </redirect:write> <!-- create the overview-cycles.html at the root --> <redirect:write file="{$output.dir}/overview-explanations.html"> <xsl:apply-templates select="." mode="explanations"/> </redirect:write> <!-- create the all-packages.html at the root --> <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"/> </redirect:write> </xsl:template> <xsl:template name="index.html"> <html> <head> <title>JDepend Analysis </head> <frameset cols="20%,80%"> <frameset rows="30%,70%"> <frame src="all-packages.html" name="packageListFrame"/> <frame src="all-cycles.html" name="classListFrame"/> </frameset> <frame src="overview-summary.html" name="classFrame"/> </frameset> <noframes> <h2>Frame Alert <p> 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. </p> </noframes> </html> </xsl:template> <!-- this is the stylesheet css to use for nearly everything --> <xsl:template name="stylesheet.css"> <style type="text/css"> body { font:normal 68% verdana,arial,helvetica; color:#000000; } table tr td, tr th { font-size: 68%; } table.details tr th{ font-weight: bold; text-align:left; background:#a6caf0; } table.details tr td{ background:#eeeee0; } p { line-height:1.5em; margin-top:0.5em; margin-bottom:1.0em; margin-left:2em; margin-right:2em; } h1 { margin: 0px 0px 5px; font: 165% verdana,arial,helvetica } h2 { margin-top: 1em; margin-bottom: 0.5em; font: bold 125% verdana,arial,helvetica } h3 { margin-bottom: 0.5em; font: bold 115% verdana,arial,helvetica } h4 { margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica } h5 { margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica } h6 { margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica } .Error { font-weight:bold; color:red; } .Failure { font-weight:bold; color:purple; } .Properties { text-align:right; } </style> </xsl:template> <xsl:template match="JDepend" mode="overview.packages"> <html> <head> <link rel="stylesheet" type="text/css" href="stylesheet.css"/> </head> <body> <xsl:call-template name="pageHeader"/> <table width="100%"> | |
</td> | [summary] [<a href="overview-packages.html">packages] [<a href="overview-cycles.html">cycles] [<a href="overview-explanations.html">explanations] </td> |
</td> | [<a href="#NVsummary">summary] [<a href="#NVpackages">packages] [<a href="#NVcycles">cycles] [<a href="#NVexplanations">explanations] </td> |
<xsl:for-each select="Package">
<xsl:value-of select="."/>
</xsl:for-each>
Here is a short list of links related to this Ant jdepend-frames.xsl source code file:
... this post is sponsored by my books ... | |
![]() #1 New Release! |
![]() FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.