Added pie charts to generated report starter

This commit is contained in:
skyanth
2017-01-12 12:39:23 +01:00
parent 1cba757095
commit a15b42bf09

View File

@@ -32,15 +32,15 @@
</pentestinfo>
<permission_parties>
<xsl:element name="xi:include">
<xsl:attribute name="href">client_info.xml</xsl:attribute>
</xsl:element>
<xsl:attribute name="href">client_info.xml</xsl:attribute>
</xsl:element>
<xsl:for-each select="/offerte/meta/permission_parties/party">
<xsl:copy>
<xsl:copy-of select="node()"/>
</xsl:copy>
<xsl:copy-of select="node()"/>
</xsl:copy>
</xsl:for-each>
</permission_parties>
<collaborators>
<reviewers>
<reviewer>FirstName LastName</reviewer>
@@ -61,7 +61,9 @@
<version_history>
<xsl:comment>needed for date on frontpage and in signature boxes; it is possible to add a new &lt;version> after each review; in that case, make sure to update the date/time</xsl:comment>
<version number="auto">
<xsl:attribute name="date"><xsl:value-of select="format-date(current-date(), '[Y]-[M,2]-[D,2]', 'en', (), ())"/>T10:00:00</xsl:attribute>
<xsl:attribute name="date"><xsl:value-of
select="format-date(current-date(), '[Y]-[M,2]-[D,2]', 'en', (), ())"
/>T10:00:00</xsl:attribute>
<xsl:comment>actual date-time here; you can leave the number attribute alone</xsl:comment>
<v_author>ROS Writer</v_author>
<xsl:comment>name of the author here; for internal use only</xsl:comment>
@@ -104,6 +106,14 @@
<title>Summary of Findings</title>
<generate_findings/>
<xsl:comment> generated from Findings section </xsl:comment>
<section id="threatlevelpie">
<title>Findings by Threat Level</title>
<generate_piechart pieAttr="threatLevel" pieElem="finding" pieHeight="175"/>
</section>
<section id="typepie">
<title>Findings by Type</title>
<generate_piechart pieAttr="type" pieElem="finding" pieHeight="175"/>
</section>
</section>
<section id="recommendationSummary">
<title>Summary of Recommendations</title>