Files
John MacFarlane 3cb6130d1a JATS writer: fix placement of ref-list...
...when no title is specified for the reference section.
(In this case we place it in `back` with an empty title.)
Closes #9017.
2023-08-23 16:10:00 -07:00

1.2 KiB

% pandoc --citeproc --to=jats_archiving --standalone
---
csl: command/apa.csl
references:
- id: doe
  type: article
  author:
  - family: Doe
    given: Jane
  container-title: Proceedings of the Academy of Test Inputs
  doi: 10.x/nope
  issued: 2021
  title: Another article
...
Blah [@doe].
^D
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.2 20190208//EN"
                  "JATS-archivearticle1.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.2" article-type="other">
<front>
<journal-meta>
<journal-id></journal-id>
<journal-title-group>
</journal-title-group>
<issn></issn>
<publisher>
<publisher-name></publisher-name>
</publisher>
</journal-meta>
<article-meta>
<permissions>
</permissions>
</article-meta>
</front>
<body>
<p>Blah (Doe, 2021).</p>
</body>
<back>
<ref-list>
  <title></title>
  <ref id="ref-doe">
    <mixed-citation>Doe, J. (2021). Another article. <italic>Proceedings
    of the Academy of Test Inputs</italic>.
    doi:<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.x/nope">10.x/nope</ext-link></mixed-citation>
  </ref>
</ref-list>
</back>
</article>