More reorganizing

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1810 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2003-04-17 16:57:33 +00:00
parent 12f1298c43
commit 5e4052045f
3 changed files with 0 additions and 153 deletions

View File

@ -1,28 +0,0 @@
<?xml version="1.0"?>
#match("pmd")
<document>
<properties>
<title>PMD Results</title>
</properties>
<body>
$context.applyTemplates()
</body>
</document>
#end
#match("file")
<section name="$attrib.name">
<table>
<tr><td width="80%"><b>Violation</b></td>
<td><b>Line</b></td></tr>
$context.applyTemplates()
</table>
</section>
#end
#match("violation")
<tr><td width="80%">$node</td>
<td width="20%">$attrib.line</td></tr>
#end

View File

@ -1,48 +0,0 @@
<?xml version="1.0"?>
#match("ruleset")
<document>
<properties>
<author email="tom@infoether.org">Tom Copeland</author>
<title>Rule Set: $attrib.name</title>
</properties>
<body>
<section name="$attrib.name">
<p>
$node.get("./description").value()
</p>
$context.applyTemplates()
</section>
</body>
</document>
#end
#match("rule")
<subsection name="$attrib.name">
<p>
$node.get("./description").value()
</p>
#if ($node.get("./properties/property/value"))
<p>
This rule is defined by the following XPath expression:
</p>
<source>
<![CDATA[$node.get("./properties/property/value")]]>
</source>
#end
<p>
Here's an example of code that would trigger this rule:
</p>
<source>
<![CDATA[ $node.get("./example").value() ]]>
</source>
</subsection>
#end

View File

@ -1,77 +0,0 @@
<?xml version="1.0"?>
<jsl:stylesheet
select="$doc"
xmlns:j="jelly:core"
xmlns:jsl="jelly:jsl"
xmlns:util="jelly:util"
xmlns:x="jelly:xml"
xmlns:doc="doc"
xmlns="dummy" trim="false">
<jsl:template match="ruleset">
<document>
<j:set trim="true" var="rulesetname">
<x:expr select="@name"/>
</j:set>
<properties>
<author email="tom@infoether.org">Tom Copeland</author>
<title>Rule Set: ${rulesetname}</title>
</properties>
<body>
<section name="${rulesetname}">
<p>
<x:expr select="./description"/>
</p>
<jsl:applyTemplates/>
</section>
</body>
</document>
</jsl:template>
<jsl:template match="rule">
<j:set trim="true" var="rulename">
<x:expr select="@name"/>
</j:set>
<subsection name="${rulename}">
<p>
<x:expr select="./description"/>
</p>
<j:set trim="true" var="isxpath">
<x:expr select="./properties/property/value"/>
</j:set>
<j:if test="${isxpath}">
<p>
This rule is defined by the following XPath expression:
</p>
<j:set trim="true" var="value">
<x:expr select="./properties/property/value"/>
</j:set>
<source>
${value}
</source>
</j:if>
<p>
Here's an example of code that would trigger this rule:
</p>
<source>
<j:set trim="true" var="examplecode">
<x:expr select="./example"/>
</j:set>
<![CDATA[ ${examplecode} ]]>
</source>
</subsection>
</jsl:template>
</jsl:stylesheet>