From c1812e55064c9b6817df18ab480f2072f662575f Mon Sep 17 00:00:00 2001 From: skyanth Date: Fri, 5 Apr 2019 16:34:32 +0200 Subject: [PATCH] Implementing SECRETS --- xml/RELEASE_NOTES.md | 7 ++++++- xml/xslt/generate_report.xsl | 1 + xml/xslt/secrets.xslt | 21 +++++++++++++++++++++ xml/xslt/styles.xslt | 9 ++++++++- 4 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 xml/xslt/secrets.xslt diff --git a/xml/RELEASE_NOTES.md b/xml/RELEASE_NOTES.md index 477ef8e..1fa26eb 100644 --- a/xml/RELEASE_NOTES.md +++ b/xml/RELEASE_NOTES.md @@ -4,7 +4,7 @@ RELEASE NOTES April 6th 2019 -------------- -### Improved pie charts (groundhog edition) +### Improved pie charts Pie charts now need a `@threshold`. This is used to determine which labels get thrown into the 'Other' bin. Useful for long reports with many, many findings of each a different type. Example: @@ -16,6 +16,11 @@ This piechart for findings by type will lump all types that have a count below _ __Note:__ To turn this off for a pie chart, set `@threshold` to 1. +### Implementing secrets + +Your very own cold war style censoring mechanism! Censor blocks or inline text in your report by wrapping whatever you don't want visible in `` tags! Don't forget to add `secrets="hide"` to the `` root element though, or your classified stuff will be out in the open for all to see! + + July 5th -------- diff --git a/xml/xslt/generate_report.xsl b/xml/xslt/generate_report.xsl index 594f780..66c2ff2 100644 --- a/xml/xslt/generate_report.xsl +++ b/xml/xslt/generate_report.xsl @@ -20,6 +20,7 @@ + diff --git a/xml/xslt/secrets.xslt b/xml/xslt/secrets.xslt new file mode 100644 index 0000000..dc3ad70 --- /dev/null +++ b/xml/xslt/secrets.xslt @@ -0,0 +1,21 @@ + + + + + + + + + [ CENSORED ] + + + [ CENSORED ] + + + + + + diff --git a/xml/xslt/styles.xslt b/xml/xslt/styles.xslt index f2db9d1..4e28c1d 100644 --- a/xml/xslt/styles.xslt +++ b/xml/xslt/styles.xslt @@ -63,7 +63,14 @@ black - + + 5mm + + + black + white + bold + always