>>===== MODE =====>>
citation
<<===== MODE =====<<



>>===== RESULT =====>>
..[0] Some Book or Other 1 [reject comma-safe]
..[1] Some Other Book or Other 1000, 2 [10] [require comma-safe]
..[2] Some Book or Other, fol. 3 [require comma-safe]
..[3] Some Book or Other [4] [reject comma-safe]
>>[4] Some Book or Other § 5 [reject comma-safe]
<<===== RESULT =====<<



>>===== CITATIONS =====>>
[
    [
        {
            "citationID": "CITATION-1", 
            "citationItems": [
                {
                    "id": "ITEM-1", 
                    "label": "page", 
                    "locator": "1"
                }
            ], 
            "properties": {
                "noteIndex": 1
            }
        }, 
        [], 
        []
    ], 
    [
        {
            "citationID": "CITATION-2", 
            "citationItems": [
                {
                    "id": "ITEM-2", 
                    "label": "book", 
                    "locator": "2 para. 10"
                }
            ], 
            "properties": {
                "noteIndex": 2
            }
        }, 
        [
            [
                "CITATION-1", 
                1
            ]
        ], 
        []
    ], 
    [
        {
            "citationID": "CITATION-3", 
            "citationItems": [
                {
                    "id": "ITEM-1", 
                    "label": "folio", 
                    "locator": "3"
                }
            ], 
            "properties": {
                "noteIndex": 3
            }
        }, 
        [
            [
                "CITATION-1", 
                1
            ], 
            [
                "CITATION-2", 
                2
            ]
        ], 
        []
    ], 
    [
        {
            "citationID": "CITATION-4", 
            "citationItems": [
                {
                    "id": "ITEM-1", 
                    "label": "paragraph", 
                    "locator": "4"
                }
            ], 
            "properties": {
                "noteIndex": 4
            }
        }, 
        [
            [
                "CITATION-1", 
                1
            ], 
            [
                "CITATION-2", 
                2
            ], 
            [
                "CITATION-3", 
                3
            ]
        ], 
        []
    ], 
    [
        {
            "citationID": "CITATION-5", 
            "citationItems": [
                {
                    "id": "ITEM-1", 
                    "label": "section", 
                    "locator": "5"
                }
            ], 
            "properties": {
                "noteIndex": 5
            }
        }, 
        [
            [
                "CITATION-1", 
                1
            ], 
            [
                "CITATION-2", 
                2
            ], 
            [
                "CITATION-3", 
                3
            ], 
            [
                "CITATION-4", 
                4
            ]
        ], 
        []
    ]
]
<<===== CITATIONS =====<<


>>===== CSL =====>>
<style 
      xmlns="http://purl.org/net/xbiblio/csl"
      class="note"
      version="1.1mlz1">
  <info>
    <title>Test fixture</title>
    <id>http://citationstyles.org/tests/fixture</id>
    <link href="http://citationstyles.org/tests/fixture" rel="self"/>
    <link href="http://citationstyles.org/documentation/text" rel="documentation"/>
    <category citation-format="author-date"/>
    <updated>2014-04-30T13:19:38+00:00</updated>
    <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
  </info>
  <locale>
    <terms>
      <term name="folio" form="short">fol.</term>
      <term name="page" form="short"></term>
      <term name="book" form="short"></term>
      <term name="paragraph" form="short">[%s]</term>
      <term name="section" form="short">§</term>
    </terms>
  </locale>
  <citation>
    <layout>
        <!-- PAGE and LOCATOR -->
        <group delimiter=", ">
          <group delimiter=" ">
            <group delimiter=", ">
              <text variable="title"/>
              <!-- join with comma -->
              <group require="comma-safe">
                <number variable="page"/>
              </group>
            </group>
            <!-- join with space -->
            <group reject="comma-safe">
              <number variable="page"/>
            </group>
            <group delimiter=" " reject="comma-safe">
              <label variable="locator" form="short"/>
              <number variable="locator" suffix=" [reject comma-safe]"/>
            </group>
          </group>
          <group delimiter=" " require="comma-safe">
            <label variable="locator" form="short"/>
            <number variable="locator" suffix=" [require comma-safe]"/>
          </group>
        </group>
    </layout>
  </citation>
</style>
<<===== CSL =====<<


>>===== INPUT =====>>
[
    {
        "id": "ITEM-1", 
        "title": "Some Book or Other",
        "type": "book"
    },
    {
        "id": "ITEM-2", 
        "title": "Some Other Book or Other 1000",
        "type": "book"
    }
]
<<===== INPUT =====<<
