stageverslag

Verantwordingsverslag Stage EVAbits
Log | Files | Refs

apa-citation.csl (56382B)


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