DVSL Stylesheet to get Rules onto website.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@203 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
David Dixon-Peugh
2002-07-03 18:51:16 +00:00
parent a57743119f
commit dc8bb00379

31
pmd/dvsl/rule-format.dvsl Normal file
View File

@ -0,0 +1,31 @@
<?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>
<source>
<![CDATA[ $node.get("./example").value() ]]>
</source>
</subsection>
#end