####################################################################### ## Developer Activity D V S L S T Y L E S H E E T ## ####################################################################### ## This stylesheet is used to transform the output of ChangeLog's xml ## generator. The XML is transformed into a standard xdoc that can ## then be transformed (yet again) using whatever stylesheet is used ## to format one's site. ## ## ## Version: $Id: developer-activity.dvsl,v 1.1 2002/06/28 01:02:17 jvanzyl Exp $ ## Author: dIon Gillard ####################################################################### ## T E M P L A T E D E F I N I T I O N S ## ####################################################################### ## Matches the first data element of the ChangeLog XML report. ## #match ("changelog") Developer Activity Analysis

Timeframe: $context.toolbox.range days, Total Commits: $node.valueOf("count(./changelog-entry"), Total Number of Files Changed: $node.valueOf("count(./changelog-entry/file")

#foreach ($developer in $node.selectNodes("document('$context.toolbox.basedir/project.xml')/project/developers/developer")) #set ($name = $developer.name.value()) #set ($commits = 0) #set ($commits = $node.valueOf("count(./changelog-entry/author[text()='$developer.name.value()']")) #set ($changedFiles = 0) #set ($changedFiles = $node.valueOf("count(./changelog-entry/author[text()='$developer.name.value()']/../file")) #end
NameNumber of CommitsNumber of files changed
$name$commits$changedFiles
#end