Generating HTML scan reports
HTML pages are sometimes more convenient than other file formats; they can be viewed in the web browsers that are shipped with most devices nowadays. For this reason, users might find it useful to generate scan reports in HTML and upload them somewhere for easy access.
The following recipe will show you how to generate an HTML report from an XML results file.
Getting ready
For this task, we will use an XSLT processor tool. There are a few options available for different platforms, but the most popular one for Unix systems is named xsltproc
; if you are running a modern Linux, there is a good chance that you already have it installed. xsltproc
also works on Windows, but it requires that you add some additional libraries to your system.
If you are looking for other cross-platform XSLT (and XQuery) processors, which are easier to install on Windows, go to http://saxon.sourceforge.net/. They offer a free version of a Java-based solution named Saxon...