Transform the XML report to HTML

Postprocessing the report file with XSLT

PHP_CompatInfo provides an XSLT script which can be used to transform the XML report into some nice html pages.

To do this, make sure you’ve first generate the XML report, i.e:

 $ phpcompatinfo -vvv print --report xml --report-file <report.xml> <dataSource>
Caution
Be sure to use verbose level 3.

And then use the xslt processor to transform the XML to a beautiful XHTML page.

 $ xsltproc -o <output_page.html> summary.xsl <report.xml>
file list collapsed
Figure 1. Example with sources file list collapsed
file list expanded
Figure 2. Example with sources file list expanded