Linkify revision history to attic

Comparing versions is a thing you may want to do when dealing with a
more or less living standard. Locating these versions in the attic is
often tedious since there are so many XEPs and revisions.

Linking them from the XEP revision history makes this easier, at least
where the relevant revision does exist in the attic, not all do, and
some are called jep rather than xep for historical reasons.
This commit is contained in:
Kim Alvefur 2022-08-08 18:38:46 +02:00
parent 7c46fc60c0
commit 923dfde2a8
1 changed files with 11 additions and 1 deletions

12
xep.xsl
View File

@ -704,7 +704,17 @@ content: "XEP-<xsl:value-of select='/xep/header/number'/>";
<li>
<xsl:variable name='anchor'>revision-history-v<xsl:value-of select='version'/></xsl:variable>
<xsl:attribute name='id'><xsl:value-of select='$anchor'/></xsl:attribute>
<div class='revision-head'>Version <xsl:value-of select='version'/><xsl:text> </xsl:text>(<xsl:value-of select='date'/>)<xsl:call-template name='anchor-link'><xsl:with-param name='anchor' select='$anchor'/></xsl:call-template></div>
<div class='revision-head'>Version <a>
<xsl:attribute name='href'>
<xsl:text>https://xmpp.org/extensions/attic/xep-</xsl:text>
<xsl:value-of select='/xep/header/number'/>
<xsl:text>-</xsl:text>
<xsl:value-of select='version'/>
<xsl:text>.html</xsl:text>
</xsl:attribute>
<xsl:value-of select='version'/>
</a>
<xsl:text> </xsl:text>(<xsl:value-of select='date'/>)<xsl:call-template name='anchor-link'><xsl:with-param name='anchor' select='$anchor'/></xsl:call-template></div>
<xsl:apply-templates select='remark'/>
<div class='revision-author'><xsl:value-of select='initials'/></div>
</li>