From 40f1ecfb064fe51152be8090392afd1aa4905b63 Mon Sep 17 00:00:00 2001 From: skyanth Date: Wed, 29 Mar 2017 11:40:12 +0200 Subject: [PATCH] implemented finding count placeholder --- xml/RELEASE_NOTES.md | 7 +++++++ xml/dtd/pentestreport.xsd | 33 ++++++++++++++++++++------------- xml/xslt/placeholders.xslt | 12 ++++++++++-- 3 files changed, 37 insertions(+), 15 deletions(-) diff --git a/xml/RELEASE_NOTES.md b/xml/RELEASE_NOTES.md index e665000..d0517cc 100644 --- a/xml/RELEASE_NOTES.md +++ b/xml/RELEASE_NOTES.md @@ -1,6 +1,13 @@ RELEASE NOTES ============= +March 29th, 2017 +---------------- + +### Finding Count placeholders + +In reports, you now have access to the `` placeholder. It takes an optional attribute `@threatLevel` and returns the number of findings with that threatLevel in the report. If no `@threatLevel` attribute is added, it returns the total number of findings in the report. Useful for Results in a Nutshell type of texts. + March 20th, 2017 ---------------- diff --git a/xml/dtd/pentestreport.xsd b/xml/dtd/pentestreport.xsd index 56231df..d4c965a 100644 --- a/xml/dtd/pentestreport.xsd +++ b/xml/dtd/pentestreport.xsd @@ -193,6 +193,20 @@ + + + + + + + + + + + + + + @@ -263,19 +277,7 @@ - - - - - - - - - - - - - + @@ -380,6 +382,11 @@ + + + + + diff --git a/xml/xslt/placeholders.xslt b/xml/xslt/placeholders.xslt index a5b4759..338c6d2 100644 --- a/xml/xslt/placeholders.xslt +++ b/xml/xslt/placeholders.xslt @@ -59,7 +59,8 @@ - + @@ -345,6 +346,12 @@ + + + + + + @@ -362,7 +369,8 @@ - +