There are two options for customizing the html reports outputted by XDepend. The corresponding feature in NDepend is documented in this video.
Basic customization using the XDepend GUI
You can perform a basic customization of the report using the "Report" tab of the "Project Properties" pane. In there you can rearrange the report sections and select or deselect each of them.
All the project properties are written and read from the XDepend project XML file, so you can also achieve this customization by tweaking by hand the "Report" section of this XML file.
Advanced customization by providing a custom XSL stylesheet
In order to achieve an advanced customization of your report you can provide a custom XSL stylesheet that will be used instead of the standard one when transforming the raw results into a report. This allows you to have complete control over what is displayed and in what format. You can take a look at this page for custom reports that we generated on open source projects.
There are several means of specifying the XSL stylesheet used for the report generation:
- You can specify the path in the "Report" tab of the "Project Properties" pane of the XDepend GUI
- You can manually tweak the XDepend project XML file to have the right "XslPath" attribute on the "Report" tag
- If you are running the analysis through XDepend Console, there is a command line option (/XslForReport) that you can specify to override the XSL file setting (full documentation of the XDepend Console command line arguments can be found here)
The XSL stylesheet used for generating the standard report is available as an attachment to this page. You can download it and tweak it to your needs.
