Move printable_browser.xsl to group directories
Summary
Detailed Description
Automap generates reports in the Staging/<project>/Reports directory. It writes printable_browser.xsl to that directory, and generates group-specific reports as XML in group subdirectories. Each XML report includes this reference to the XSL file:
<?xml-stylesheet type="text/xsl" href="../printable_browser.xsl"?>
This tells the XML reader to use the XSL from the parent directory. However, this fails when using FireFox 3 or 4 to view the report because the Mozilla team considers this to be a security risk. See https://bugzilla.mozilla.org/show_bug.cgi?id=397894 for a complete discussion, and see https://bugzilla.mozilla.org/show_bug.cgi?id=650844 for an example specific to this problem.
Note that Microsoft IE does not consider this a security risk and it permits the operation.
To workaround this problem in FireFox, and to still work with IE, I suggest the following change:
- Copy printable_browser.xsl into each report-group directory.
- Change the reference in each XML file to point to the local copy, like this:
<?xml-stylesheet type="text/xsl" href="printable_browser.xsl"?>
Use Cases
To allow FireFox users to view the reports.