forked from phoedos/pmd
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:
31
pmd/dvsl/rule-format.dvsl
Normal file
31
pmd/dvsl/rule-format.dvsl
Normal 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
|
||||
|
Reference in New Issue
Block a user