Oregami
Repositories/oxedyne/fe2o3

oxedyne/fe2o3/fe2o3_text/tests/data/csl/corpus/rlj.csl

58.8 KiB, 1 run

created by r1870400018:72840, which is this file's identity for as long as the history lasts, whatever it is later renamed to

download · who wrote it · its history

1<?xml version="1.0" encoding="utf-8"?>
2<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never" page-range-format="expanded">
3 <info>
4 <title>Reinforcement Learning Journal (RLJ)</title>
5 <title-short>RLJ</title-short>
6 <id>https://github.com/daskol/typst-templates/tree/main/rlj/rlj.csl</id>
7 <author>
8 <name>Brenton M. Wiernik</name>
9 <email>zotero@wiernik.org</email>
10 </author>
11 <author>
12 <name>Daniel Bershatsky</name>
13 <email>d.bershatsky2@skoltech.ru</email>
14 </author>
15 <category citation-format="author-date"/>
16 <category field="science"/>
17 <category field="generic-base"/>
18 <updated>2024-12-06T23:21:19+03:00</updated>
19 <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
20 </info>
21 <locale xml:lang="en">
22 <terms>
23 <term name="editortranslator" form="short">
24 <single>ed. &amp; trans.</single>
25 <multiple>eds. &amp; trans.</multiple>
26 </term>
27 <term name="translator" form="short">trans.</term>
28 <term name="interviewer" form="short">
29 <single>interviewer</single>
30 <multiple>interviewers</multiple>
31 </term>
32 <term name="collection-editor" form="short">
33 <single>ed.</single>
34 <multiple>eds.</multiple>
35 </term>
36 <term name="circa" form="short">ca.</term>
37 <term name="bc"> B.C.E.</term>
38 <term name="ad"> C.E.</term>
39 <term name="issue" form="long">
40 <single>issue</single>
41 <multiple>issues</multiple>
42 </term>
43 <term name="software">computer software</term>
44 </terms>
45 </locale>
46 <locale xml:lang="da">
47 <terms>
48 <term name="et-al">et al.</term>
49 </terms>
50 </locale>
51 <locale xml:lang="de">
52 <terms>
53 <term name="et-al">et al.</term>
54 </terms>
55 </locale>
56 <locale xml:lang="es">
57 <terms>
58 <term name="from">de</term>
59 </terms>
60 </locale>
61 <locale xml:lang="fr">
62 <terms>
63 <term name="editor" form="short">
64 <single>éd.</single>
65 <multiple>éds.</multiple>
66 </term>
67 </terms>
68 </locale>
69 <locale xml:lang="nb">
70 <terms>
71 <term name="et-al">et al.</term>
72 </terms>
73 </locale>
74 <locale xml:lang="nl">
75 <terms>
76 <term name="et-al">et al.</term>
77 </terms>
78 </locale>
79 <locale xml:lang="nn">
80 <terms>
81 <term name="et-al">et al.</term>
82 </terms>
83 </locale>
84 <!-- ICML references contain four parts: author, title, source, date -->
85 <macro name="author-bib">
86 <names variable="author">
87 <name and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="contextual" form="long"/>
88 </names>
89 </macro>
90 <macro name="author-intext">
91 <choose>
92 <if type="interview personal_communication" match="any">
93 <choose>
94 <!-- These variables indicate that the letter is retrievable by the reader.
95 If not, then use the APA in-text-only personal communication format -->
96 <if variable="archive container-title DOI publisher URL" match="none">
97 <group delimiter=", ">
98 <names variable="author">
99 <name and="text" delimiter=", " initialize-with=". "/>
100 <substitute>
101 <text macro="title-intext"/>
102 </substitute>
103 </names>
104 <text term="personal-communication"/>
105 </group>
106 </if>
107 <else>
108 <names variable="author" delimiter=", ">
109 <name form="short" and="text" delimiter=", " initialize-with=". "/>
110 <substitute>
111 <text macro="title-intext"/>
112 </substitute>
113 </names>
114 </else>
115 </choose>
116 </if>
117 <else>
118 <names variable="composer" delimiter=", ">
119 <name form="short" and="symbol" delimiter=", " initialize-with=". "/>
120 <substitute>
121 <names variable="author"/>
122 <names variable="illustrator"/>
123 <names variable="director"/>
124 <choose>
125 <if variable="container-title">
126 <choose>
127 <if type="book entry entry-dictionary entry-encyclopedia" match="any">
128 <text macro="title-intext"/>
129 </if>
130 </choose>
131 </if>
132 </choose>
133 <names variable="editor"/>
134 <names variable="editorial-director"/>
135 <text macro="title-intext"/>
136 </substitute>
137 </names>
138 </else>
139 </choose>
140 </macro>
141 <macro name="date-bib">
142 <!-- TODO: Add new item types -->
143 <group delimiter=" ">
144 <choose>
145 <if is-uncertain-date="issued">
146 <text term="circa" form="short"/>
147 </if>
148 </choose>
149 <group>
150 <choose>
151 <if variable="issued">
152 <date variable="issued">
153 <date-part name="year"/>
154 </date>
155 <text variable="year-suffix"/>
156 <choose>
157 <if type="article-magazine article-newspaper broadcast interview motion_picture pamphlet personal_communication post post-weblog song speech webpage" match="any">
158 <!-- Many video and audio examples in manual give full dates. Err on the side of too much information. -->
159 <date variable="issued">
160 <date-part prefix=", " name="month"/>
161 <date-part prefix=" " name="day"/>
162 </date>
163 </if>
164 <else-if type="paper-conference">
165 <!-- Capture 'speech' stored as 'paper-conference' -->
166 <choose>
167 <if variable="collection-editor editor editorial-director issue page volume" match="none">
168 <date variable="issued">
169 <date-part prefix=", " name="month"/>
170 <date-part prefix=" " name="day"/>
171 </date>
172 </if>
173 </choose>
174 </else-if>
175 <!-- Only year: article article-journal book chapter entry entry-dictionary entry-encyclopedia dataset figure graphic
176 manuscript map musical_score paper-conference[published] patent report review review-book thesis -->
177 </choose>
178 </if>
179 <else-if variable="status">
180 <group>
181 <!-- TODO: Should I print status as-is, or should I print the in-press term? -->
182 <text variable="status" text-case="lowercase"/>
183 <text variable="year-suffix" prefix="-"/>
184 </group>
185 </else-if>
186 <else>
187 <text term="no date" form="short"/>
188 <text variable="year-suffix" prefix="-"/>
189 </else>
190 </choose>
191 </group>
192 </group>
193 </macro>
194 <macro name="date-sort-group">
195 <!-- APA sorts 1. no-date items, 2. items with dates, 3. in-press (status) items -->
196 <choose>
197 <if variable="issued">
198 <text value="1"/>
199 </if>
200 <else-if variable="status">
201 <text value="2"/>
202 </else-if>
203 <else>
204 <text value="0"/>
205 </else>
206 </choose>
207 </macro>
208 <macro name="date-intext">
209 <!-- TODO: Add new item types -->
210 <choose>
211 <if variable="issued">
212 <group delimiter="/">
213 <group delimiter=" ">
214 <choose>
215 <if is-uncertain-date="original-date">
216 <text term="circa" form="short"/>
217 </if>
218 </choose>
219 <date variable="original-date">
220 <date-part name="year"/>
221 </date>
222 </group>
223 <group delimiter=" ">
224 <choose>
225 <if is-uncertain-date="issued">
226 <text term="circa" form="short"/>
227 </if>
228 </choose>
229 <group>
230 <choose>
231 <if type="interview personal_communication" match="any">
232 <choose>
233 <if variable="archive container-title DOI publisher URL" match="none">
234 <!-- These variables indicate that the communication is retrievable by the reader.
235 If not, then use the in-text-only personal communication format -->
236 <date variable="issued" form="text"/>
237 </if>
238 <else>
239 <date variable="issued">
240 <date-part name="year"/>
241 </date>
242 </else>
243 </choose>
244 </if>
245 <else>
246 <date variable="issued">
247 <date-part name="year"/>
248 </date>
249 </else>
250 </choose>
251 <text variable="year-suffix"/>
252 </group>
253 </group>
254 </group>
255 </if>
256 <else-if variable="status">
257 <!-- TODO: Should I print status as-is, or should I print the in-press term? -->
258 <text variable="status" text-case="lowercase"/>
259 <text variable="year-suffix" prefix="-"/>
260 </else-if>
261 <else>
262 <text term="no date" form="short"/>
263 <text variable="year-suffix" prefix="-"/>
264 </else>
265 </choose>
266 </macro>
267 <!-- APA has two description elements following the title:
268 title (parenthetical) [bracketed] -->
269 <macro name="title-and-descriptions">
270 <choose>
271 <if variable="title">
272 <group delimiter=" ">
273 <text macro="title"/>
274 <text macro="parenthetical"/>
275 <text macro="bracketed"/>
276 </group>
277 </if>
278 <else>
279 <group delimiter=" ">
280 <text macro="bracketed"/>
281 <text macro="parenthetical"/>
282 </group>
283 </else>
284 </choose>
285 </macro>
286 <macro name="title">
287 <!-- TODO: Add new item types -->
288 <choose>
289 <if type="post webpage" match="any">
290 <!-- Webpages are always italicized -->
291 <text variable="title" font-style="italic"/>
292 </if>
293 <else-if variable="container-title" match="any">
294 <!-- Other types are italicized based on presence of container-title.
295 Assume that review and review-book are published in periodicals/blogs,
296 not just on a web page (ex. 69) -->
297 <text variable="title"/>
298 </else-if>
299 <else>
300 <choose>
301 <if type="article-journal article-magazine article-newspaper post-weblog review review-book" match="any">
302 <text variable="title" font-style="italic"/>
303 </if>
304 <else-if type="paper-conference">
305 <choose>
306 <if variable="collection-editor editor editorial-director" match="any">
307 <group delimiter=": " font-style="italic">
308 <text variable="title"/>
309 <!-- TODO: Replace with volume-title -->
310 <choose>
311 <if is-numeric="volume" match="none">
312 <group delimiter=" ">
313 <label variable="volume" form="short" text-case="capitalize-first"/>
314 <text variable="volume"/>
315 </group>
316 </if>
317 </choose>
318 </group>
319 </if>
320 <else>
321 <text variable="title" font-style="italic"/>
322 </else>
323 </choose>
324 </else-if>
325 <else-if type="document">
326 <group delimiter=". ">
327 <text variable="title"/>
328 <choose>
329 <if variable="status">
330 <text variable="status"/>
331 </if>
332 <else>
333 <text variable="note"/>
334 </else>
335 </choose>
336 </group>
337 </else-if>
338 <else>
339 <group delimiter=": " font-style="italic">
340 <text variable="title"/>
341 <!-- TODO: Replace with volume-title -->
342 <choose>
343 <if is-numeric="volume" match="none">
344 <group delimiter=" ">
345 <label variable="volume" form="short" text-case="capitalize-first"/>
346 <text variable="volume"/>
347 </group>
348 </if>
349 </choose>
350 </group>
351 </else>
352 </choose>
353 </else>
354 </choose>
355 </macro>
356 <macro name="title-intext">
357 <!-- TODO: Add new item types -->
358 <choose>
359 <if variable="title" match="none">
360 <text macro="bracketed-intext" prefix="[" suffix="]"/>
361 </if>
362 <else-if type="hearing">
363 <!-- Hearings are italicized -->
364 <text variable="title" form="short" font-style="italic" text-case="title"/>
365 </else-if>
366 <else-if type="bill">
367 <!-- Bills are not italicized and substitute bill number if no title. -->
368 <choose>
369 <if variable="title">
370 <text variable="title" form="short" text-case="title"/>
371 </if>
372 <else>
373 <group delimiter=" ">
374 <text variable="genre"/>
375 <group delimiter=" ">
376 <choose>
377 <if variable="chapter-number container-title" match="none">
378 <label variable="number" form="short"/>
379 </if>
380 </choose>
381 <text variable="number"/>
382 </group>
383 </group>
384 </else>
385 </choose>
386 </else-if>
387 <else-if type="legal_case" match="any">
388 <!-- Cases are italicized -->
389 <text variable="title" font-style="italic"/>
390 </else-if>
391 <else-if type="legislation treaty" match="any">
392 <!-- Legislation and treaties not italicized or quoted -->
393 <text variable="title" form="short" text-case="title"/>
394 </else-if>
395 <else-if type="post webpage" match="any">
396 <!-- Webpages are always italicized -->
397 <text variable="title" form="short" font-style="italic" text-case="title"/>
398 </else-if>
399 <else-if variable="container-title" match="any">
400 <!-- Other types are italicized or quoted based on presence of container-title. As in title macro. -->
401 <text variable="title" form="short" quotes="true" text-case="title"/>
402 </else-if>
403 <else>
404 <text variable="title" form="short" font-style="italic" text-case="title"/>
405 </else>
406 </choose>
407 </macro>
408 <macro name="parenthetical">
409 <!-- TODO: Add new item types -->
410 <!-- (Secondary contributors; Database location; Genre no. 123; Report Series 123, Version, Edition, Volume, Page) -->
411 <group prefix="(" suffix=")">
412 <choose>
413 <if type="patent">
414 <!-- authority: U.S. ; genre: patent ; number: 123,445 -->
415 <group delimiter=" ">
416 <text variable="authority" form="short"/>
417 <choose>
418 <if variable="genre">
419 <text variable="genre" text-case="capitalize-first"/>
420 </if>
421 <else>
422 <text term="patent" text-case="capitalize-first"/>
423 </else>
424 </choose>
425 <group delimiter=" ">
426 <label variable="number" form="short" text-case="capitalize-first"/>
427 <text variable="number"/>
428 </group>
429 </group>
430 </if>
431 <else-if type="post webpage" match="any">
432 <!-- For post webpage, container-title is treated as publisher -->
433 <group delimiter="; ">
434 <text macro="secondary-contributors"/>
435 <text macro="database-location"/>
436 <text macro="number"/>
437 <text macro="locators-booklike"/>
438 </group>
439 </else-if>
440 <else-if variable="container-title">
441 <group delimiter="; ">
442 <text macro="secondary-contributors"/>
443 <choose>
444 <if type="broadcast graphic map motion_picture song" match="any">
445 <!-- For audiovisual media, number information comes after title, not container-title -->
446 <text macro="number"/>
447 </if>
448 </choose>
449 </group>
450 </else-if>
451 <else>
452 <group delimiter="; ">
453 <text macro="secondary-contributors"/>
454 <text macro="database-location"/>
455 <text macro="number"/>
456 <text macro="locators-booklike"/>
457 </group>
458 </else>
459 </choose>
460 </group>
461 </macro>
462 <macro name="parenthetical-container">
463 <!-- TODO: Add new item types -->
464 <choose>
465 <if variable="container-title" match="any">
466 <group>
467 <group delimiter="; ">
468 <text macro="database-location"/>
469 <choose>
470 <if type="broadcast graphic map motion_picture song" match="none">
471 <!-- For audiovisual media, number information comes after title, not container-title -->
472 <text macro="number"/>
473 </if>
474 </choose>
475 <text macro="locators-booklike"/>
476 </group>
477 </group>
478 </if>
479 </choose>
480 </macro>
481 <macro name="bracketed">
482 <!-- TODO: Add new item types -->
483 <!-- [Descriptive information] -->
484 <!-- If there is a number, genre is already printed in macro="number" -->
485 <group prefix="[" suffix="]">
486 <choose>
487 <if variable="reviewed-author reviewed-title" type="review review-book" match="any">
488 <!-- Reviewed item -->
489 <group delimiter="; ">
490 <group delimiter=", ">
491 <group delimiter=" ">
492 <!-- Assume that genre is entered as 'Review of the book' or similar -->
493 <choose>
494 <if variable="number" match="none">
495 <choose>
496 <if variable="genre">
497 <text variable="genre" text-case="capitalize-first"/>
498 </if>
499 <else-if variable="medium">
500 <text variable="medium" text-case="capitalize-first"/>
501 </else-if>
502 <else>
503 <!-- TODO: Replace with term="review" -->
504 <!-- TODO: Handle review vs review-of depending on presence of reviewed-title -->
505 <!-- TODO: Add reviewed-genre -->
506 <text value="Review of"/>
507 </else>
508 </choose>
509 </if>
510 <else>
511 <choose>
512 <if variable="medium">
513 <text variable="medium" text-case="capitalize-first"/>
514 </if>
515 <else>
516 <!-- TODO: Replace with term="review" -->
517 <!-- TODO: Handle review vs review-of depending on presence of reviewed-title -->
518 <!-- TODO: Add reviewed-genre -->
519 <text value="Review of"/>
520 </else>
521 </choose>
522 </else>
523 </choose>
524 <text macro="reviewed-title"/>
525 </group>
526 <names variable="reviewed-author">
527 <label form="verb-short" suffix=" "/>
528 <name and="symbol" initialize-with=". " delimiter=", "/>
529 </names>
530 </group>
531 <choose>
532 <if variable="genre" match="any">
533 <choose>
534 <if variable="number" match="none">
535 <text variable="medium" text-case="capitalize-first"/>
536 </if>
537 </choose>
538 </if>
539 </choose>
540 </group>
541 </if>
542 <else-if type="thesis">
543 <!-- Thesis type and institution -->
544 <group delimiter="; ">
545 <choose>
546 <if variable="number" match="none">
547 <group delimiter=", ">
548 <text variable="genre" text-case="capitalize-first"/>
549 <choose>
550 <if variable="archive DOI URL" match="any">
551 <!-- Include the university in brackets if thesis is published -->
552 <text variable="publisher"/>
553 </if>
554 </choose>
555 </group>
556 </if>
557 </choose>
558 <text variable="medium" text-case="capitalize-first"/>
559 </group>
560 </else-if>
561 <else-if variable="interviewer" type="interview" match="any">
562 <!-- Interview information -->
563 <choose>
564 <if variable="title">
565 <text macro="format"/>
566 </if>
567 <else-if variable="genre">
568 <group delimiter="; ">
569 <group delimiter=" ">
570 <text variable="genre" text-case="capitalize-first"/>
571 <group delimiter=" ">
572 <text term="author" form="verb"/>
573 <names variable="interviewer">
574 <name and="symbol" initialize-with=". " delimiter=", "/>
575 </names>
576 </group>
577 </group>
578 </group>
579 </else-if>
580 <else-if variable="interviewer">
581 <group delimiter="; ">
582 <names variable="interviewer">
583 <label form="verb" suffix=" " text-case="capitalize-first"/>
584 <name and="symbol" initialize-with=". " delimiter=", "/>
585 </names>
586 <text variable="medium" text-case="capitalize-first"/>
587 </group>
588 </else-if>
589 <else>
590 <text macro="format"/>
591 </else>
592 </choose>
593 </else-if>
594 <else-if type="personal_communication">
595 <!-- Letter information -->
596 <choose>
597 <if variable="recipient">
598 <group delimiter="; ">
599 <group delimiter=" ">
600 <choose>
601 <if variable="number" match="none">
602 <choose>
603 <if variable="genre">
604 <text variable="genre" text-case="capitalize-first"/>
605 </if>
606 <else-if variable="medium">
607 <text variable="medium" text-case="capitalize-first"/>
608 </else-if>
609 <else>
610 <text term="letter" text-case="capitalize-first"/>
611 </else>
612 </choose>
613 </if>
614 <else>
615 <choose>
616 <if variable="medium">
617 <text variable="medium" text-case="capitalize-first"/>
618 </if>
619 <else>
620 <text term="letter" text-case="capitalize-first"/>
621 </else>
622 </choose>
623 </else>
624 </choose>
625 <names variable="recipient" delimiter=", ">
626 <label form="verb" suffix=" "/>
627 <name and="symbol" delimiter=", "/>
628 </names>
629 </group>
630 <choose>
631 <if variable="genre" match="any">
632 <choose>
633 <if variable="number" match="none">
634 <text variable="medium" text-case="capitalize-first"/>
635 </if>
636 </choose>
637 </if>
638 </choose>
639 </group>
640 </if>
641 <else>
642 <text macro="format"/>
643 </else>
644 </choose>
645 </else-if>
646 <else-if variable="composer" type="song" match="all">
647 <!-- Performer of classical music works -->
648 <group delimiter="; ">
649 <choose>
650 <if variable="number" match="none">
651 <group delimiter=" ">
652 <choose>
653 <if variable="genre">
654 <text variable="genre" text-case="capitalize-first"/>
655 <!-- TODO: Replace prefix with performer label -->
656 <names variable="author" prefix="recorded by ">
657 <name and="symbol" initialize-with=". " delimiter=", "/>
658 </names>
659 </if>
660 <else-if variable="medium">
661 <text variable="medium" text-case="capitalize-first"/>
662 <!-- TODO: Replace prefix with performer label -->
663 <names variable="author" prefix="recorded by ">
664 <name and="symbol" initialize-with=". " delimiter=", "/>
665 </names>
666 </else-if>
667 <else>
668 <!-- TODO: Replace prefix with performer label -->
669 <names variable="author" prefix="Recorded by ">
670 <name and="symbol" initialize-with=". " delimiter=", "/>
671 </names>
672 </else>
673 </choose>
674 </group>
675 </if>
676 <else>
677 <group delimiter=" ">
678 <choose>
679 <if variable="medium">
680 <text variable="medium" text-case="capitalize-first"/>
681 <!-- TODO: Replace prefix with performer label -->
682 <names variable="author" prefix="recorded by ">
683 <name and="symbol" initialize-with=". " delimiter=", "/>
684 </names>
685 </if>
686 <else>
687 <!-- TODO: Replace prefix with performer label -->
688 <names variable="author" prefix="Recorded by ">
689 <name and="symbol" initialize-with=". " delimiter=", "/>
690 </names>
691 </else>
692 </choose>
693 </group>
694 </else>
695 </choose>
696 <choose>
697 <if variable="genre" match="any">
698 <choose>
699 <if variable="number" match="none">
700 <text variable="medium" text-case="capitalize-first"/>
701 </if>
702 </choose>
703 </if>
704 </choose>
705 </group>
706 </else-if>
707 <else-if variable="container-title" match="none">
708 <!-- Other description -->
709 <text macro="format"/>
710 </else-if>
711 <else>
712 <!-- For conference presentations, chapters in reports, software, place bracketed after the container title -->
713 <choose>
714 <if type="paper-conference speech" match="any">
715 <choose>
716 <if variable="collection-editor editor editorial-director issue page volume" match="any">
717 <text macro="format"/>
718 </if>
719 </choose>
720 </if>
721 <else-if type="report software" match="none">
722 <text macro="format"/>
723 </else-if>
724 </choose>
725 </else>
726 </choose>
727 </group>
728 </macro>
729 <macro name="bracketed-intext">
730 <!-- TODO: Add new item types -->
731 <group prefix="[" suffix="]">
732 <choose>
733 <if variable="reviewed-author reviewed-title" type="review review-book" match="any">
734 <group delimiter=" ">
735 <text term="review-of" text-case="capitalize-first"/>
736 <text macro="reviewed-title-intext"/>
737 </group>
738 </if>
739 <else-if variable="interviewer" type="interview" match="any">
740 <names variable="interviewer">
741 <label form="verb" suffix=" " text-case="capitalize-first"/>
742 <name and="symbol" initialize-with=". " delimiter=", "/>
743 <substitute>
744 <text macro="format-intext"/>
745 </substitute>
746 </names>
747 </else-if>
748 <else-if type="personal_communication">
749 <!-- Letter information -->
750 <choose>
751 <if variable="recipient">
752 <group delimiter=" ">
753 <choose>
754 <if variable="number" match="none">
755 <text variable="genre" text-case="capitalize-first"/>
756 </if>
757 <else>
758 <text term="letter" text-case="capitalize-first"/>
759 </else>
760 </choose>
761 <names variable="recipient" delimiter=", ">
762 <label form="verb" suffix=" "/>
763 <name and="symbol" delimiter=", "/>
764 </names>
765 </group>
766 </if>
767 <else>
768 <text macro="format-intext"/>
769 </else>
770 </choose>
771 </else-if>
772 <else>
773 <text macro="format-intext"/>
774 </else>
775 </choose>
776 </group>
777 </macro>
778 <macro name="bracketed-container">
779 <!-- TODO: Add new item types -->
780 <group prefix="[" suffix="]">
781 <choose>
782 <if type="paper-conference speech" match="any">
783 <!-- Conference presentations should describe the session [container] in bracketed unless published in a proceedings -->
784 <choose>
785 <if variable="collection-editor editor editorial-director issue page volume" match="none">
786 <text macro="format"/>
787 </if>
788 </choose>
789 </if>
790 <else-if type="software" match="all">
791 <!-- For entries in mobile app reference works, place bracketed after the container-title -->
792 <text macro="format"/>
793 </else-if>
794 <else-if type="report">
795 <!-- For chapters in reports, place bracketed after the container title -->
796 <text macro="format"/>
797 </else-if>
798 </choose>
799 </group>
800 </macro>
801 <macro name="secondary-contributors">
802 <!-- TODO: Add new item types -->
803 <!-- TODO: Add new creator roles -->
804 <choose>
805 <if type="article-journal article-magazine article-newspaper post-weblog review review-book" match="any">
806 <text macro="secondary-contributors-periodical"/>
807 </if>
808 <else-if type="paper-conference">
809 <choose>
810 <if variable="collection-editor editor editorial-director" match="any">
811 <text macro="secondary-contributors-booklike"/>
812 </if>
813 <else>
814 <text macro="secondary-contributors-periodical"/>
815 </else>
816 </choose>
817 </else-if>
818 <else>
819 <text macro="secondary-contributors-booklike"/>
820 </else>
821 </choose>
822 </macro>
823 <macro name="secondary-contributors-periodical">
824 <group delimiter="; ">
825 <choose>
826 <if variable="title">
827 <names variable="interviewer" delimiter="; ">
828 <name and="symbol" initialize-with=". " delimiter=", "/>
829 <label form="short" prefix=", " text-case="title"/>
830 </names>
831 </if>
832 </choose>
833 <names variable="translator" delimiter="; ">
834 <name and="symbol" initialize-with=". " delimiter=", "/>
835 <label form="short" prefix=", " text-case="title"/>
836 </names>
837 </group>
838 </macro>
839 <macro name="secondary-contributors-booklike">
840 <!-- TODO: Add new item types -->
841 <group delimiter="; ">
842 <choose>
843 <if variable="title">
844 <names variable="interviewer">
845 <name and="symbol" initialize-with=". " delimiter=", "/>
846 <label form="short" prefix=", " text-case="lowercase"/>
847 </names>
848 </if>
849 </choose>
850 <!-- TODO: When editortranslator becomes available, add a test: variable="editortranslator" match="none"; then print translator -->
851 <choose>
852 <if type="post webpage" match="none">
853 <!-- Webpages treat container-title like publisher -->
854 <choose>
855 <if variable="container-title" match="none">
856 <group delimiter="; ">
857 <names variable="container-author">
858 <label form="verb-short" suffix=" " text-case="lowercase"/>
859 <name and="symbol" initialize-with=". " delimiter=", "/>
860 </names>
861 <names variable="editor translator" delimiter="; ">
862 <name and="symbol" initialize-with=". " delimiter=", "/>
863 <label form="short" prefix=", " text-case="lowercase"/>
864 </names>
865 </group>
866 </if>
867 </choose>
868 </if>
869 <else>
870 <group delimiter="; ">
871 <names variable="container-author">
872 <label form="verb-short" suffix=" " text-case="lowercase"/>
873 <name and="symbol" initialize-with=". " delimiter=", "/>
874 </names>
875 <names variable="editor translator" delimiter="; ">
876 <name and="symbol" initialize-with=". " delimiter=", "/>
877 <label form="short" prefix=", " text-case="lowercase"/>
878 </names>
879 </group>
880 </else>
881 </choose>
882 </group>
883 </macro>
884 <macro name="database-location">
885 <choose>
886 <if variable="archive-place" match="none">
887 <!-- With `archive-place`: physical archives. Without: online archives. -->
888 <!-- TODO: Add archive_collection -->
889 <text variable="archive_location"/>
890 </if>
891 </choose>
892 </macro>
893 <macro name="number">
894 <!-- TODO: Add new item types -->
895 <choose>
896 <if variable="number">
897 <group delimiter=", ">
898 <group delimiter=" ">
899 <text variable="genre" text-case="title"/>
900 <choose>
901 <if is-numeric="number">
902 <label variable="number" form="short" text-case="capitalize-first"/>
903 <text variable="number"/>
904 </if>
905 <else>
906 <text variable="number"/>
907 </else>
908 </choose>
909 </group>
910 <choose>
911 <if type="thesis">
912 <choose>
913 <!-- Include the university in brackets if thesis is published -->
914 <if variable="archive DOI URL" match="any">
915 <text variable="publisher"/>
916 </if>
917 </choose>
918 </if>
919 </choose>
920 </group>
921 </if>
922 </choose>
923 </macro>
924 <macro name="locators-booklike">
925 <!-- TODO: Add new item types -->
926 <choose>
927 <if type="article-journal article-magazine article-newspaper broadcast interview patent post post-weblog review review-book speech webpage" match="any"/>
928 <else-if type="paper-conference">
929 <choose>
930 <if variable="collection-editor editor editorial-director" match="any">
931 <group delimiter=", ">
932 <text macro="version"/>
933 <text macro="edition"/>
934 <text macro="volume-booklike"/>
935 </group>
936 </if>
937 </choose>
938 </else-if>
939 <else>
940 <group delimiter=", ">
941 <text macro="version"/>
942 <text macro="edition"/>
943 <text macro="volume-booklike"/>
944 </group>
945 </else>
946 </choose>
947 </macro>
948 <macro name="version">
949 <choose>
950 <if is-numeric="version">
951 <group delimiter=" ">
952 <label variable="version" text-case="capitalize-first"/>
953 <text variable="version"/>
954 </group>
955 </if>
956 <else>
957 <text variable="version"/>
958 </else>
959 </choose>
960 </macro>
961 <macro name="edition">
962 <choose>
963 <if is-numeric="edition">
964 <group delimiter=" ">
965 <number variable="edition" form="ordinal"/>
966 <label variable="edition" form="short"/>
967 </group>
968 </if>
969 <else>
970 <text variable="edition"/>
971 </else>
972 </choose>
973 </macro>
974 <macro name="volume-booklike">
975 <!-- TODO: Add new item types -->
976 <group delimiter=", ">
977 <!-- Report series [ex. 52] -->
978 <choose>
979 <if type="report">
980 <group delimiter=" ">
981 <text variable="collection-title" text-case="title"/>
982 <text variable="collection-number"/>
983 </group>
984 </if>
985 </choose>
986 <choose>
987 <if variable="volume" match="any">
988 <!-- TODO: Update using volume-title -->
989 <choose>
990 <!-- Non-numeric volumes are already printed as part of the book title -->
991 <if is-numeric="volume" match="none"/>
992 <else>
993 <group delimiter=" ">
994 <label variable="volume" form="short" text-case="capitalize-first"/>
995 <number variable="volume" form="numeric"/>
996 </group>
997 </else>
998 </choose>
999 </if>
1000 <else>
1001 <group>
1002 <label variable="number-of-volumes" form="short" text-case="capitalize-first" suffix=" "/>
1003 <text term="page-range-delimiter" prefix="1"/>
1004 <number variable="number-of-volumes" form="numeric"/>
1005 </group>
1006 </else>
1007 </choose>
1008 <group delimiter=" ">
1009 <label variable="issue" text-case="capitalize-first"/>
1010 <text variable="issue"/>
1011 </group>
1012 <group delimiter=" ">
1013 <label variable="page" form="short" plural="always"/>
1014 <text variable="page" form="long"/>
1015 </group>
1016 </group>
1017 </macro>
1018 <macro name="reviewed-title">
1019 <choose>
1020 <if variable="reviewed-title">
1021 <!-- Not possible to distinguish TV series episode from other reviewed
1022 works [Ex. 69] -->
1023 <text variable="reviewed-title" font-style="italic"/>
1024 </if>
1025 <else>
1026 <!-- Assume title is title of reviewed work -->
1027 <text variable="title" font-style="italic"/>
1028 </else>
1029 </choose>
1030 </macro>
1031 <macro name="reviewed-title-intext">
1032 <choose>
1033 <if variable="reviewed-title">
1034 <!-- Not possible to distinguish TV series episode from other reviewed works [Ex. 69] -->
1035 <text variable="reviewed-title" form="short" font-style="italic" text-case="title"/>
1036 </if>
1037 <else>
1038 <!-- Assume title is title of reviewed work -->
1039 <text variable="title" form="short" font-style="italic" text-case="title"/>
1040 </else>
1041 </choose>
1042 </macro>
1043 <macro name="format">
1044 <!-- TODO: Add new item types -->
1045 <choose>
1046 <if variable="genre medium" match="any">
1047 <group delimiter="; ">
1048 <choose>
1049 <if variable="number" match="none">
1050 <text variable="genre" text-case="capitalize-first"/>
1051 </if>
1052 </choose>
1053 <text variable="medium" text-case="capitalize-first"/>
1054 </group>
1055 </if>
1056 <!-- Generic labels for specific types -->
1057 <!-- TODO: Add terms for other types? -->
1058 <else-if type="dataset">
1059 <text term="dataset"/>
1060 </else-if>
1061 <else-if type="software">
1062 <text term="software" text-case="capitalize-first"/>
1063 </else-if>
1064 <else-if type="interview personal_communication" match="any">
1065 <choose>
1066 <if variable="archive container-title DOI publisher URL" match="none">
1067 <text term="personal-communication" text-case="capitalize-first"/>
1068 </if>
1069 <else-if type="interview">
1070 <text term="interview" text-case="capitalize-first"/>
1071 </else-if>
1072 </choose>
1073 </else-if>
1074 <else-if type="map">
1075 <text term="map" text-case="capitalize-first"/>
1076 </else-if>
1077 </choose>
1078 </macro>
1079 <macro name="format-intext">
1080 <!-- TODO: Add new item types -->
1081 <choose>
1082 <if variable="genre" match="any">
1083 <text variable="genre" text-case="capitalize-first"/>
1084 </if>
1085 <else-if variable="medium">
1086 <text variable="medium" text-case="capitalize-first"/>
1087 </else-if>
1088 <!-- Generic labels for specific types -->
1089 <!-- TODO: Add terms for other types? -->
1090 <else-if type="dataset">
1091 <text term="dataset"/>
1092 </else-if>
1093 <else-if type="software">
1094 <text term="software" text-case="capitalize-first"/>
1095 </else-if>
1096 <else-if type="interview personal_communication" match="any">
1097 <choose>
1098 <if variable="archive container-title DOI publisher URL" match="none">
1099 <text term="personal-communication" text-case="capitalize-first"/>
1100 </if>
1101 <else-if type="interview">
1102 <text term="interview" text-case="capitalize-first"/>
1103 </else-if>
1104 </choose>
1105 </else-if>
1106 <else-if type="map">
1107 <text term="map"/>
1108 </else-if>
1109 </choose>
1110 </macro>
1111 <!-- APA 'source' element contains four parts:
1112 container, event, publisher, access -->
1113 <macro name="container">
1114 <choose>
1115 <if type="article-journal article-magazine article-newspaper post-weblog review review-book" match="any">
1116 <!-- Periodical items -->
1117 <text macro="container-journal"/>
1118 </if>
1119 <else-if type="paper-conference">
1120 <!-- Determine if paper-conference is a periodical or booklike -->
1121 <choose>
1122 <if variable="editor editorial-director collection-editor container-author" match="any">
1123 <text macro="container-booklike"/>
1124 </if>
1125 <else>
1126 <text macro="container-periodical"/>
1127 </else>
1128 </choose>
1129 </else-if>
1130 <else-if type="post webpage" match="none">
1131 <!-- post and webpage treat container-title like publisher -->
1132 <text macro="container-booklike"/>
1133 </else-if>
1134 </choose>
1135 </macro>
1136 <macro name="container-journal">
1137 <group delimiter=". ">
1138 <group delimiter=", ">
1139 <text variable="container-title" font-style="italic" text-case="title"/>
1140 <group delimiter=":">
1141 <choose>
1142 <if variable="number">
1143 <text variable="volume"/>
1144 <group delimiter=" ">
1145 <text term="article-locator" text-case="capitalize-first"/>
1146 <text variable="number" prefix="(" suffix=")"/>
1147 </group>
1148 </if>
1149 <else-if variable="issue">
1150 <text variable="volume"/>
1151 <text variable="issue" prefix="(" suffix=")"/>
1152 </else-if>
1153 </choose>
1154 <text variable="page"/>
1155 </group>
1156 </group>
1157 <choose>
1158 <if variable="issued">
1159 <choose>
1160 <if variable="issue page volume" match="none">
1161 <!-- TODO: Should I print status as-is, or should I print the in-press term? -->
1162 <text variable="status" text-case="capitalize-first"/>
1163 </if>
1164 </choose>
1165 </if>
1166 </choose>
1167 </group>
1168 </macro>
1169 <macro name="container-periodical">
1170 <text value="In "/>
1171 <group delimiter=". ">
1172 <group delimiter=", ">
1173 <text variable="container-title" font-style="italic" text-case="title"/>
1174 <choose>
1175 <if variable="volume">
1176 <group>
1177 <text variable="volume" font-style="italic"/>
1178 <text variable="issue" prefix="(" suffix=")"/>
1179 </group>
1180 </if>
1181 <else>
1182 <text variable="issue" font-style="italic"/>
1183 </else>
1184 </choose>
1185 <choose>
1186 <if variable="number">
1187 <!-- Ex. 6: Journal article with article number or eLocator -->
1188 <!-- This should be localized -->
1189 <group delimiter=" ">
1190 <text term="article-locator" text-case="capitalize-first"/>
1191 <text variable="number"/>
1192 </group>
1193 </if>
1194 <else>
1195 <label variable="page" form="short" plural="contextual" suffix=" "/>
1196 <text variable="page"/>
1197 </else>
1198 </choose>
1199 </group>
1200 <choose>
1201 <if variable="issued">
1202 <choose>
1203 <if variable="issue page volume" match="none">
1204 <!-- TODO: Should I print status as-is, or should I print the in-press term? -->
1205 <text variable="status" text-case="capitalize-first"/>
1206 </if>
1207 </choose>
1208 </if>
1209 </choose>
1210 </group>
1211 </macro>
1212 <macro name="container-booklike">
1213 <!-- TODO: Add new item types -->
1214 <choose>
1215 <if variable="container-title" match="any">
1216 <group delimiter=" ">
1217 <text term="in" text-case="capitalize-first"/>
1218 <group delimiter=", ">
1219 <names variable="editor translator" delimiter=", and ">
1220 <!-- TODO: Change to editortranslator and move editor to substitute -->
1221 <name and="text" delimiter=", "/>
1222 <label form="short" text-case="lowercase" prefix=" (" suffix=")"/>
1223 <substitute>
1224 <names variable="editorial-director"/>
1225 <names variable="collection-editor"/>
1226 <names variable="container-author"/>
1227 </substitute>
1228 </names>
1229 <group delimiter=": " font-style="italic">
1230 <text variable="container-title"/>
1231 <!-- TODO: Replace with volume-title -->
1232 <choose>
1233 <if is-numeric="volume" match="none">
1234 <group delimiter=" ">
1235 <label variable="volume" form="short" text-case="capitalize-first"/>
1236 <text variable="volume"/>
1237 </group>
1238 </if>
1239 </choose>
1240 </group>
1241 <text macro="parenthetical-container"/>
1242 <text macro="bracketed-container"/>
1243 </group>
1244 </group>
1245 </if>
1246 </choose>
1247 </macro>
1248 <macro name="publisher">
1249 <!-- TODO: Add new item types -->
1250 <group delimiter="; ">
1251 <choose>
1252 <if type="thesis">
1253 <choose>
1254 <if variable="archive DOI URL" match="none">
1255 <text variable="publisher"/>
1256 </if>
1257 </choose>
1258 </if>
1259 <else-if type="post webpage" match="any">
1260 <!-- For websites, treat container title like publisher -->
1261 <group delimiter="; ">
1262 <text variable="container-title" text-case="title"/>
1263 <text variable="publisher"/>
1264 </group>
1265 </else-if>
1266 <else-if type="paper-conference">
1267 <!-- For paper-conference, don't print publisher if in a journal-like proceedings -->
1268 <choose>
1269 <if variable="collection-editor editor editorial-director" match="any">
1270 <text variable="publisher"/>
1271 </if>
1272 </choose>
1273 </else-if>
1274 <else-if type="article-journal article-magazine article-newspaper post-weblog" match="none">
1275 <group delimiter=", ">
1276 <text variable="publisher"/>
1277 <text variable="publisher-place"/>
1278 </group>
1279 </else-if>
1280 </choose>
1281 <group delimiter=", ">
1282 <choose>
1283 <if variable="archive-place">
1284 <!-- With `archive-place`: physical archives. Without: online archives. -->
1285 <!-- For physical archives, print the location before the archive name.
1286 For electronic archives, these are printed in macro="description". -->
1287 <!-- TODO: Split "archive_location" into "archive_collection" and "archive_location" -->
1288 <!-- Must test for archive_collection:
1289 With collection: archive_collection (archive_location), archive, archive-place
1290 No collection: archive (archive_location), archive-place
1291 -->
1292 <text variable="archive_location"/>
1293 </if>
1294 </choose>
1295 <text variable="archive"/>
1296 <text variable="archive-place"/>
1297 </group>
1298 </group>
1299 </macro>
1300 <macro name="access">
1301 <choose>
1302 <if variable="DOI" match="any">
1303 <text variable="DOI" prefix="https://doi.org/"/>
1304 </if>
1305 <else-if variable="URL">
1306 <group delimiter=" ">
1307 <choose>
1308 <if variable="issued status" match="none">
1309 <group delimiter=" ">
1310 <text term="retrieved" text-case="capitalize-first"/>
1311 <date variable="accessed" form="text" suffix=","/>
1312 <text term="from"/>
1313 </group>
1314 </if>
1315 </choose>
1316 <text variable="URL"/>
1317 </group>
1318 </else-if>
1319 </choose>
1320 </macro>
1321 <macro name="event">
1322 <!-- TODO: Add new item types (e.g., event, collection, performance) -->
1323 <choose>
1324 <if variable="event event-title" match="any">
1325 <!-- To prevent Zotero from printing event-place due to its double-mapping of all 'place' to
1326 both publisher-place and event-place. Remove this 'choose' when that is changed. -->
1327 <choose>
1328 <if variable="collection-editor editor editorial-director issue page volume" match="none">
1329 <!-- Don't print event info if published in a proceedings -->
1330 <group delimiter=", ">
1331 <text macro="event-title"/>
1332 <text variable="event-place"/>
1333 </group>
1334 </if>
1335 </choose>
1336 </if>
1337 </choose>
1338 </macro>
1339 <macro name="event-title">
1340 <choose>
1341 <!-- TODO: We expect "event-title" to be used,
1342 but processors and applications may not be updated yet.
1343 This macro ensures that either "event" or "event-title" can be accpeted.
1344 Remove if procesor logic and application adoption can handle this. -->
1345 <if variable="event-title">
1346 <text variable="event-title"/>
1347 </if>
1348 <else>
1349 <text variable="event"/>
1350 </else>
1351 </choose>
1352 </macro>
1353 <!-- After 'source', APA also prints publication history (original publication, reprint info, retraction info) -->
1354 <macro name="publication-history">
1355 <!-- TODO: Add new item types -->
1356 <choose>
1357 <if type="patent" match="none">
1358 <group prefix="(" suffix=")">
1359 <choose>
1360 <if variable="references">
1361 <!-- This provides the option for more elaborate description
1362 of publication history, such as full "reprinted" references
1363 (examples 11, 43, 44) or retracted references -->
1364 <text variable="references"/>
1365 </if>
1366 <else>
1367 <!-- TODO: Replace these with terms -->
1368 <group delimiter=" ">
1369 <text term="original-work-published" text-case="capitalize-first"/>
1370 <choose>
1371 <if is-uncertain-date="original-date">
1372 <text term="circa" form="short"/>
1373 </if>
1374 </choose>
1375 <date variable="original-date">
1376 <date-part name="year"/>
1377 </date>
1378 </group>
1379 </else>
1380 </choose>
1381 </group>
1382 </if>
1383 <else>
1384 <text variable="references" prefix="(" suffix=")"/>
1385 </else>
1386 </choose>
1387 </macro>
1388 <!-- Legal citations have their own rules -->
1389 <macro name="legal-cites">
1390 <!-- TODO: Add new item types -->
1391 <choose>
1392 <if type="treaty">
1393 <!-- APA generally defers to Bluebook for legal citations, but diverges without
1394 explanation for treaty items. The Bluebook format that was used in APA 6th
1395 ed. is used here. -->
1396 <group delimiter=", ">
1397 <text variable="title" text-case="title"/>
1398 <names variable="author">
1399 <name initialize-with="." form="short" delimiter="-"/>
1400 </names>
1401 <text macro="date-legal"/>
1402 <text macro="container-legal"/>
1403 <text macro="access"/>
1404 </group>
1405 </if>
1406 <else>
1407 <!-- For `bill`: currently designed to handle bills, resolutions, federal reports. -->
1408 <!-- For `legislation`: currently designed to handle statutes, codified regulations, executive orders. -->
1409 <group delimiter=". ">
1410 <group delimiter=", ">
1411 <choose>
1412 <if type="bill legal_case legislation" match="any">
1413 <text variable="title"/>
1414 </if>
1415 <else-if type="hearing">
1416 <text variable="title" font-style="italic"/>
1417 </else-if>
1418 </choose>
1419 <group delimiter=" ">
1420 <text macro="container-legal"/>
1421 <text macro="date-legal"/>
1422 <choose>
1423 <if type="hearing">
1424 <names variable="author" prefix="(testimony of " suffix=")">
1425 <!-- TODO: Localize this with the hearing term. -->
1426 <name and="symbol" delimiter=", "/>
1427 </names>
1428 </if>
1429 <else-if type="bill legislation" match="any">
1430 <!-- `legislation`: For uncodified regulations, assume future code section is in status. -->
1431 <text variable="status" prefix="(" suffix=")"/>
1432 </else-if>
1433 </choose>
1434 </group>
1435 <text variable="references"/>
1436 </group>
1437 <text macro="access"/>
1438 </group>
1439 </else>
1440 </choose>
1441 </macro>
1442 <macro name="date-legal">
1443 <!-- TODO: Add new item types -->
1444 <choose>
1445 <if type="legal_case">
1446 <group prefix="(" suffix=")" delimiter=" ">
1447 <text variable="authority"/>
1448 <choose>
1449 <if variable="container-title" match="any">
1450 <!-- Print only year for cases published in reporters-->
1451 <date variable="issued" form="numeric" date-parts="year"/>
1452 </if>
1453 <else>
1454 <date variable="issued" form="text"/>
1455 </else>
1456 </choose>
1457 </group>
1458 </if>
1459 <else-if type="bill legislation hearing" match="any">
1460 <group prefix="(" suffix=")" delimiter=" ">
1461 <group delimiter=" ">
1462 <date variable="original-date">
1463 <date-part name="year"/>
1464 </date>
1465 <text term="and" form="symbol"/>
1466 </group>
1467 <date variable="issued">
1468 <date-part name="year"/>
1469 </date>
1470 </group>
1471 </else-if>
1472 <else-if type="treaty">
1473 <date variable="issued" form="text"/>
1474 </else-if>
1475 </choose>
1476 </macro>
1477 <macro name="container-legal">
1478 <!-- TODO: Add new item types -->
1479 <!-- Expect legal item container-titles to be stored in short form -->
1480 <choose>
1481 <if type="legal_case">
1482 <group delimiter=" ">
1483 <choose>
1484 <if variable="container-title">
1485 <group delimiter=" ">
1486 <text variable="volume"/>
1487 <text variable="container-title"/>
1488 <group delimiter=" ">
1489 <label variable="section" form="symbol"/>
1490 <text variable="section"/>
1491 </group>
1492 <choose>
1493 <if variable="page page-first" match="any">
1494 <text variable="page-first"/>
1495 </if>
1496 <else>
1497 <text value="___"/>
1498 </else>
1499 </choose>
1500 </group>
1501 </if>
1502 <else>
1503 <group delimiter=" ">
1504 <choose>
1505 <if is-numeric="number">
1506 <label variable="number" form="short" text-case="capitalize-first"/>
1507 </if>
1508 </choose>
1509 <text variable="number"/>
1510 </group>
1511 </else>
1512 </choose>
1513 </group>
1514 </if>
1515 <else-if type="bill">
1516 <group delimiter=", ">
1517 <group delimiter=" ">
1518 <text variable="genre"/>
1519 <group delimiter=" ">
1520 <choose>
1521 <if variable="chapter-number container-title" match="none">
1522 <label variable="number" form="short"/>
1523 </if>
1524 </choose>
1525 <text variable="number"/>
1526 </group>
1527 </group>
1528 <text variable="authority"/>
1529 <text variable="chapter-number"/>
1530 <group delimiter=" ">
1531 <text variable="volume"/>
1532 <text variable="container-title"/>
1533 <text variable="page-first"/>
1534 </group>
1535 </group>
1536 </else-if>
1537 <else-if type="legislation">
1538 <choose>
1539 <if variable="number">
1540 <!--There's a public law number-->
1541 <group delimiter=", ">
1542 <text variable="number" prefix="Pub. L. No. "/>
1543 <group delimiter=" ">
1544 <text variable="volume"/>
1545 <text variable="container-title"/>
1546 <text variable="page-first"/>
1547 </group>
1548 </group>
1549 </if>
1550 <else>
1551 <group delimiter=" ">
1552 <text variable="volume"/>
1553 <text variable="container-title"/>
1554 <choose>
1555 <if variable="section">
1556 <group delimiter=" ">
1557 <!-- TODO: Change to label variable="section" -->
1558 <text term="section" form="symbol"/>
1559 <text variable="section"/>
1560 </group>
1561 </if>
1562 <else>
1563 <text variable="page-first"/>
1564 </else>
1565 </choose>
1566 </group>
1567 </else>
1568 </choose>
1569 </else-if>
1570 <else-if type="treaty">
1571 <group delimiter=" ">
1572 <number variable="volume"/>
1573 <text variable="container-title"/>
1574 <choose>
1575 <if variable="page page-first" match="any">
1576 <text variable="page-first"/>
1577 </if>
1578 <else>
1579 <group delimiter=" ">
1580 <label variable="number" form="short" text-case="capitalize-first"/>
1581 <text variable="number"/>
1582 </group>
1583 </else>
1584 </choose>
1585 </group>
1586 </else-if>
1587 </choose>
1588 </macro>
1589 <macro name="citation-locator">
1590 <!-- TODO: Add new locator types? -->
1591 <group delimiter=" ">
1592 <choose>
1593 <if locator="chapter">
1594 <label variable="locator" text-case="capitalize-first"/>
1595 </if>
1596 <else>
1597 <label variable="locator" form="short"/>
1598 </else>
1599 </choose>
1600 <text variable="locator"/>
1601 </group>
1602 </macro>
1603 <citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" collapse="year" givenname-disambiguation-rule="primary-name-with-initials">
1604 <sort>
1605 <key macro="author-bib" names-min="3" names-use-first="1"/>
1606 <key macro="date-sort-group"/>
1607 <key macro="date-bib" sort="ascending"/>
1608 <key variable="status"/>
1609 </sort>
1610 <layout prefix="(" suffix=")" delimiter="; ">
1611 <group delimiter=", ">
1612 <text macro="author-intext"/>
1613 <text macro="date-intext"/>
1614 <text macro="citation-locator"/>
1615 </group>
1616 </layout>
1617 </citation>
1618 <bibliography hanging-indent="true" et-al-min="21" et-al-use-first="19" et-al-use-last="true" entry-spacing="0" line-spacing="2">
1619 <sort>
1620 <key macro="author-bib"/>
1621 <key macro="date-sort-group"/>
1622 <key macro="date-bib" sort="ascending"/>
1623 <key variable="status"/>
1624 <key macro="title"/>
1625 </sort>
1626 <layout>
1627 <group delimiter=" ">
1628 <group delimiter=". " suffix=",">
1629 <text macro="author-bib"/>
1630 <text macro="title-and-descriptions"/>
1631 <text macro="container"/>
1632 <text macro="event"/>
1633 <text macro="publisher"/>
1634 </group>
1635 <group suffix=".">
1636 <text macro="date-bib"/>
1637 </group>
1638 <text macro="access"/>
1639 <text macro="publication-history"/>
1640 </group>
1641 </layout>
1642 </bibliography>
1643</style>