From 5d186e6362048ec4e4648b6a2a6207453dcc8154 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 7 Apr 2021 15:56:17 +0200 Subject: [PATCH 1/2] xep.xsl: produce BibLaTeX entry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I am tired of seeing all those badly or misreferenced XEPs out there. This produces a high-quality BibLaTeX entry that follows the recommendations of the biblatex Package and draft-carpenter-rfc-citation-recs-01 ยง 5.2 [1]. It also uses proper 'date' attribution, from the first date in the XEP history to the date of the latest revision entry. 1: https://tools.ietf.org/html/draft-carpenter-rfc-citation-recs-01#section-5.2 --- xep.xsl | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/xep.xsl b/xep.xsl index 504e1435..cee73883 100644 --- a/xep.xsl +++ b/xep.xsl @@ -481,6 +481,40 @@ content: "XEP-";

END

+

Appendix I: Bib(La)TeX Entry

+ + + + + + + + + + + + + xep + + + + + + +
+
+@report{,
+  title = {},
+  version = {},
+  type = {XEP},
+  number = 
+  author = {  and 
+},
+  institution = {XMPP Standards Foundation},
+  url = {https://xmpp.org/extensions/xep-.html},
+  date = {/},
+}
@@ -513,6 +547,7 @@ content: "XEP-";
  • Requirements Conformance
  • Notes
  • Revision History
  • +
  • Bib(La)Tex Entry
  • From 72d8b4b3cfbe1faac190c5456d2fbf4a7ce71624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Tue, 13 Apr 2021 19:25:31 +0200 Subject: [PATCH 2/2] xep.xsl: Ensure that the leading zeroes are preserved in citations --- xep.xsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xep.xsl b/xep.xsl index cee73883..e9c696f8 100644 --- a/xep.xsl +++ b/xep.xsl @@ -508,7 +508,7 @@ content: "XEP-"; title = {}, version = {}, type = {XEP}, - number = + number = {}, author = { and }, institution = {XMPP Standards Foundation},