- Allow generating only PGP fingerprints

This commit is contained in:
Gabor Kovesdan 2014-03-07 11:37:21 +00:00
parent 2fb105f2e7
commit 42293fc096
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=44165
2 changed files with 23 additions and 5 deletions

View file

@ -8,10 +8,23 @@
<xsl:output method="text"/>
<xsl:param name="generate.fingerprint.only" select="0"/>
<xsl:template match="/">
<xsl:for-each select="//db:programlisting[@role='pgpkey']">
<xsl:value-of select="."/>
<xsl:text>&#xA;</xsl:text>
</xsl:for-each>
<xsl:choose>
<xsl:when test="$generate.fingerprint.only">
<xsl:for-each select="//db:programlisting[@role='pgpfingerprint']">
<xsl:value-of select="."/>
<xsl:text>&#xA;</xsl:text>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="//db:programlisting[@role='pgpkey' or @role='pgpfingerprint']">
<xsl:value-of select="."/>
<xsl:text>&#xA;</xsl:text>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>