Metanorma: Aequitate Verum

References (AsciiRFC v3)

This document documents the handling of references in the version of Metanorma AsciiDoc aligned with RFC XML v3 [added in]. This version of AsciiDoc is much closer aligned to the rest of Metanorma than the version used in previous versions; in particular, the processing of references is consistent with that in the rest of Metanorma.

This section supplements References & Bibliography in general Metanorma documentation.

Embedded in Document

References in IETF AsciiDoc are processed as they are in the rest of Metanorma. References are defined with anchors and identifiers in a bibliographic entry list. If the identifier is recognised as a standard with online data (including IETF standards), the bibliographic data for that identifier is fetched, cached locally, and inserted into the Metanorma XML.

So for example * [[[RFC7152,RFC 7152]]] will be recognised as a citation of RFC 7152, and the corresponding bibliographic data will be fetched from the corresponding online source. However, that data will be fetched not in its native RFC XML, but in Relaton XML, as with the rest of Metanorma; a reference to * [[[ISO639-2,ISO 639-2]]] would not be treated any differently.

That said, any references recognised as being to IETF standards will include the URI for their RFC XML source, and they will be replaced with an xi:include link to that URI as an external reference, as is recommended by default for IETF references. That means that the generated RFC XML v3 will still end up referencing native RFC XML references.

Other Relaton XML references are converted to RFC XML reference elements: in practice, such reference elements are limited to containing author names, title, URI, document identifier, keywords, abstract, and publication date. If no personal authors or editors are supplied, organisations are named again; if no authors or editors are named at all (as is usual for standards), the publishing standards organisation is named as the author instead. The document identifier is prefixed to the document title, as there is no separate provision for an identifier in RFC XML.

A reference not auto-fetched from online sources is either a preformatted citation treated as a block, or else a full citation, entered through AsciiBib. If the citation is preformatted, it is converted to a standalone reference/title, with no authors or dates. If the citation is broken down into elements, it is processed as with auto-fetched references:

== Normative References

// dispreferred encoding!

* [[[ref1,1]]] MacDonald, Ian. 1991. _The New Shostakovich._ Boston: Northeastern University Press.

// preferred encoding!

[[ref2]] (1)
=== The New Shostakovich (2)
contributor.role:: author I. (3) MacDonald (4)
link:: (5)
type::: googlebooks (6)
content::: (7)
date::  (8)
type::: published
value::: 1991
keyword:: music (9)
keyword:: Soviet Union (9)
abstract:: (10)
Who was Dmitri Shostakovich? The USSR's official figurehead composer and son of the revolution that brought the Soviet state into being, or a secret dissident whose contempt for the totalitarian regime was scathing? Perhaps both?
  1. back/references/reference/@anchor

  2. back/references/reference/front/title

  3. back/references/reference/front/author/@initials

  4. back/references/reference/front/author/@surname

  5. back/references/reference/@target

  6. back/references/reference/format/@type

  7. back/references/reference/format/@target

  8. back/references/reference/front/date

  9. back/references/reference/front/keyword

  10. back/references/reference/front/abstract

As of this writing, the following features of RFC XML v3 referencing are not supported:

  • displayreference

  • referencegroup

  • Raw RFC XML included in document source, or referenced directly from document source.

Internet draft versions

An IETF Internet Draft version by default is cited exactly as it is given in the online repository of Internet Drafts hosted by the IETF in, including the version given there:

== References
* [[[abarth,IETF(]]], _Title_
  <references id="_references" obligation="informative">
    <bibitem id="" type="standard">
      <uri type="TXT"></uri>
      <docidentifier type='IETF'></docidentifier>
      <docidentifier type="Internet-Draft">draft-abarth-cake-01</docidentifier>

If the Internet Draft is given with a version number -nn, the URI in the reference and the document identifier is updated to cite that version [added in]:

== References
* [[[abarth,IETF(]]], _Title_
  <references id="_references" obligation="informative">
    <bibitem id="" type="standard">
      <uri type="TXT"></uri>
      <docidentifier type='IETF'></docidentifier>
      <docidentifier type="Internet-Draft">draft-abarth-cake-02</docidentifier>


The cache of current IETF and IRTF workgroups is built from screen-scraping the contents of:

The caches are fetched on launch. If you want to refresh the caches,

  • delete your ~/.metanorma-ietf-workgroup-cache.json file;

  • insert the document attribute :flush-caches: true into the header of the document being processed.