secret content now actually parsed when not hidden
This commit is contained in:
parent
c1812e5506
commit
e296da240c
@ -5,17 +5,22 @@
|
|||||||
|
|
||||||
<!-- black out anything you don't want seen -->
|
<!-- black out anything you don't want seen -->
|
||||||
<xsl:template match="secret">
|
<xsl:template match="secret">
|
||||||
<xsl:if test="/pentest_report[@secrets = 'hide']">
|
<xsl:choose>
|
||||||
|
<xsl:when test="/pentest_report[@secrets = 'hide']">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when
|
<xsl:when
|
||||||
test="img | p | div | table | section | appendix | ol | ul | pre">
|
test="img | generate_piechart | p | div | table | section | ol | ul | pre">
|
||||||
<fo:block xsl:use-attribute-sets="censoredtext">[ CENSORED ]</fo:block>
|
<fo:block xsl:use-attribute-sets="censoredtext">[ CENSORED ]</fo:block>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<fo:inline xsl:use-attribute-sets="censoredtext">[ CENSORED ]</fo:inline>
|
<fo:inline xsl:use-attribute-sets="censoredtext">[ CENSORED ]</fo:inline>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:if>
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user