Skip to content

Commit

Permalink
Merge pull request #1310 from Flowdalic/dynamic-copyright-year
Browse files Browse the repository at this point in the history
Extract the copyrigh years of a XEP from its revision
  • Loading branch information
Kev authored Jan 22, 2024
2 parents 7f854fc + e97b025 commit e39c611
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xep.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,10 @@ content: "XEP-<xsl:value-of select='/xep/header/number'/>";
</ul></dd>
</xsl:if>
<dt>Copyright</dt>
<dd>&#169; 1999 &#x2013; 2021 XMPP Standards Foundation. <a href='#appendix-legal'>SEE LEGAL NOTICES</a>.</dd>
<!-- Extract the copyright years from the dates via
substring(). If we ever use XSL 2.0, then we could use
year-from-date(xs:date()) -->
<dd>&#169; <xsl:value-of select='substring(/xep/header/revision[position()=last()]/date,1,4)'/> &#x2013; <xsl:value-of select='substring(/xep/header/revision[position()=1]/date,1,4)'/> XMPP Standards Foundation. <a href='#appendix-legal'>SEE LEGAL NOTICES</a>.</dd>
<dt>Status</dt>
<dd>
<p><xsl:choose>
Expand Down

0 comments on commit e39c611

Please sign in to comment.