added @includepage for generated links

This commit is contained in:
skyanth 2017-02-24 14:34:51 +01:00
parent ffa313a8d7
commit 37bd041ab4
3 changed files with 45 additions and 21 deletions

View File

@ -1,6 +1,19 @@
RELEASE NOTES
=============
February 24th, 2017
-------------------
###Pie chart linking
All pie charts now show a finding count in the legend label.
The threat level pie chart legend finding count now additionally links to the summary table.
The summary table is now ordered on threat level severity and each finding ID in the table links to the actual finding.
Generated links (e.g. `<a href="#finding1"/>`) now have an optional attribute `@includepage` which can be set to `yes` or `no` (default is `yes`). If set to `yes`, the link will be generated as it was up till now (e.g. "SID-001 (page 4)"); if set to `no`, the link will be generated without the page number in parenthesis.
January 12th, 2017
------------------

View File

@ -105,7 +105,7 @@
</xs:complexType>
</xs:element>
<xs:element name="permission_parties">
<xs:element name="permission_parties">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="1" ref="client"/>
@ -313,6 +313,15 @@
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="href" use="required" type="xs:anyURI"/>
<xs:attribute name="includepage" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="black-box"/>
<xs:enumeration value="crystal-box"/>
<xs:enumeration value="grey-box"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
@ -394,7 +403,7 @@
<xs:element name="biblioentries">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element ref="biblioentry"></xs:element>
<xs:element ref="biblioentry"/>
</xs:sequence>
</xs:complexType>
</xs:element>
@ -427,7 +436,7 @@
</xs:simpleType>
</xs:attribute>
<xs:element name="author">
<xs:element name="author">
<xs:complexType>
<xs:sequence>
<xs:element ref="surname" minOccurs="0" maxOccurs="1"/>
@ -455,14 +464,14 @@
</xs:complexType>
</xs:element>
<xs:element name="surname" type="xs:string"/>
<xs:element name="firstname" type="xs:string"/>
<xs:element name="org" type="xs:string"/>
<xs:element name="journal" type="xs:string"/>
<xs:element name="info" type="xs:string"/>
<xs:element name="location" type="xs:string"/>
<xs:element name="pubdate" type="xs:string"/>
<xs:element name="accessed" type="xs:date"/>
<xs:element name="surname" type="xs:string"/>
<xs:element name="firstname" type="xs:string"/>
<xs:element name="org" type="xs:string"/>
<xs:element name="journal" type="xs:string"/>
<xs:element name="info" type="xs:string"/>
<xs:element name="location" type="xs:string"/>
<xs:element name="pubdate" type="xs:string"/>
<xs:element name="accessed" type="xs:date"/>
<!-- attributes -->
<xs:attribute name="break">

View File

@ -56,9 +56,11 @@
</xsl:choose>
</fo:basic-link>
<xsl:if test="starts-with(@href, '#')">
<xsl:text> (page </xsl:text>
<xsl:if test="not(@includepage = 'no')">
<xsl:text> (page </xsl:text>
<fo:page-number-citation ref-id="{substring(@href, 2)}"/>
<xsl:text>)</xsl:text>
</xsl:if>
</xsl:if>
</xsl:otherwise>
</xsl:choose>