<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" version="1.0" class="note" default-locale="en">
  <info>
    <title>Canadian Guide to Uniform Legal Citation, 7th ed. (McGill Guide)</title>
    <id>http://www.zotero.org/styles/mcgill-guide-v7</id>
    <link href="http://www.zotero.org/styles/mcgill-guide-v7" rel="self"/>
    <link href="http://lawjournal.mcgill.ca/citeguide.php" rel="documentation"/>
    <author>
      <name>Liam McHugh-Russell</name>
      <email>liam.mchugh.russell@gmail.com</email>
    </author>
    <contributor>
      <name>Frank Bennett</name>
    </contributor>
    <updated>2012-04-15T14:01:02+00:00</updated>
    <rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
    <category field="law"/>
    <category citation-format="note"/>
  </info>
  <locale xml:lang="en">
    <style-options punctuation-in-quote="false"/>
    <terms>
      <term name="et-al">et al</term>
      <term name="ordinal-01">st</term>
      <term name="ordinal-02">d</term>
      <term name="ordinal-03">d</term>
      <term name="ordinal-04">th</term>
    </terms>
  </locale>
  <macro name="editor">
    <names variable="editor">
      <name and="symbol" delimiter-precedes-last="never"/>
      <et-al term="et-al"/>
      <label form="short" prefix=", "/>
    </names>
  </macro>
  <macro name="translator">
    <names variable="translator">
      <label form="verb" suffix=" "/>
      <name and="symbol"/>
    </names>
  </macro>
  <macro name="container-title">
    <text strip-periods="true" variable="container-title" form="short"/>
  </macro>
  <macro name="author-note">
    <names variable="author">
      <name and="symbol" delimiter-precedes-last="never"/>
      <et-al term="et-al"/>
      <substitute>
        <text macro="editor"/>
      </substitute>
    </names>
  </macro>
  <macro name="author-bib">
    <names variable="author">
      <name name-as-sort-order="first" and="symbol" sort-separator=", " delimiter-precedes-last="never"/>
      <et-al term="et-al"/>
      <label form="short" prefix=", "/>
      <substitute>
        <names variable="editor"/>
      </substitute>
    </names>
  </macro>
  <macro name="internet-location">
    <choose>
      <if variable="URL">
        <text term="online" prefix=", " suffix=": &lt;"/>
        <text variable="URL" suffix="&gt;"/>
      </if>
    </choose>
  </macro>
  <macro name="genre">
    <text variable="genre"/>
  </macro>
  <macro name="issued-long">
    <date variable="issued" delimiter=" ">
      <date-part name="day"/>
      <date-part name="month" form="long"/>
      <date-part name="year" form="long"/>
    </date>
  </macro>
  <macro name="edition">
    <number variable="edition" form="ordinal" text-case="lowercase" suffix=" "/>
    <text term="edition" form="short" strip-periods="true"/>
  </macro>
  <macro name="references">
    <text variable="references"/>
  </macro>
  <macro name="sort-by-type">
    <choose>
      <if type="bill legislation">
        <text value="1"/>
      </if>
      <else-if type="legal_case">
        <text value="2"/>
      </else-if>
      <else-if type="book thesis" match="any">
        <text value="3"/>
      </else-if>
      <else-if type="article-journal chapter article-newspaper" match="any">
        <text value="4"/>
      </else-if>
      <else>
        <text value="5"/>
      </else>
    </choose>
  </macro>
  <!-- the 'rendering' macros mostly check if called from w/i bibliography so that author gets printed
	right. Only actually need to check for 'first' because w/i cite,
	all the other tests should have been done... -->
  <macro name="render-chapter">
    <group delimiter=" ">
      <text variable="title" quotes="true"/>
      <text term="in" form="short"/>
      <text macro="editor" strip-periods="true" suffix=","/>
      <text macro="container-title" font-style="italic"/>
    </group>
    <text macro="edition" prefix=", "/>
    <text macro="publisher-place-year"/>
    <text variable="page-first" prefix=" "/>
  </macro>
  <macro name="render-article-journal">
    <group delimiter=" ">
      <text variable="title" quotes="true"/>
      <date form="text" variable="issued" date-parts="year" prefix="(" suffix=")"/>
      <text variable="volume"/>
    </group>
    <text variable="issue" prefix=":"/>
    <text macro="container-title" prefix=" "/>
    <text variable="page-first" prefix=" "/>
    <text macro="internet-location"/>
  </macro>
  <macro name="render-book">
    <group delimiter=", ">
      <text variable="title" font-style="italic"/>
      <text macro="edition"/>
      <text macro="translator"/>
      <text macro="editor"/>
    </group>
    <text macro="publisher-place-year"/>
  </macro>
  <macro name="render-thesis">
    <group delimiter=" ">
      <text variable="title" font-style="italic"/>
      <text macro="genre" prefix="(" suffix=","/>
      <text variable="publisher" suffix=","/>
      <date form="text" variable="issued" date-parts="year" suffix=") [unpublished]"/>
    </group>
  </macro>
  <macro name="render-article-newspaper">
    <group delimiter=" ">
      <text variable="title" quotes="true" suffix=","/>
      <text macro="container-title" font-style="italic"/>
      <text macro="issued-long" prefix="(" suffix=")"/>
      <text variable="page-first"/>
    </group>
    <text macro="internet-location"/>
  </macro>
  <macro name="render-webpage">
    <group delimiter=" ">
      <text variable="title" quotes="true" suffix=","/>
      <text macro="issued-long" prefix="(" suffix=")"/>
    </group>
    <group delimiter=" ">
      <text term="online" prefix=", " suffix=":"/>
      <text macro="container-title" font-style="italic"/>
      <text variable="URL" prefix="&lt;" suffix="&gt;"/>
    </group>
  </macro>
  <!-- cases and bill legislations render the same for biblio and (first) cite -->
  <macro name="render-bill">
    <group delimiter=" ">
      <group delimiter=", ">
        <text variable="title" font-style="italic"/>
        <text macro="author-note" strip-periods="true"/>
        <text macro="issued-long"/>
        <text macro="container-title"/>
      </group>
      <text macro="references" prefix="(" suffix=")"/>
      <text variable="title" prefix="[" suffix="]" font-style="italic" form="short"/>
    </group>
  </macro>
  <macro name="render-case">
    <group delimiter=", ">
      <group delimiter=" ">
        <text variable="title" font-style="italic"/>
        <choose>
          <if variable="volume">
            <date form="text" variable="issued" date-parts="year" prefix="(" suffix=")"/>
          </if>
        </choose>
      </group>
      <group delimiter=" ">
        <text variable="volume"/>
        <date form="text" variable="issued" date-parts="year"/>
        <text macro="container-title"/>
        <text variable="number"/>
        <text variable="page-first"/>
        <text variable="URL" prefix="(available on " suffix=")"/>
      </group>
    </group>
  </macro>
  <macro name="pinpoint">
    <group delimiter=" ">
      <choose>
        <if locator="page">
          <choose>
            <if variable="locator">
              <text term="at" prefix=" "/>
            </if>
          </choose>
        </if>
        <else>
          <label variable="locator" prefix=", "/>
        </else>
      </choose>
      <text variable="locator"/>
    </group>
  </macro>
  <macro name="short-form">
    <!-- Hump to overcome: cannot check against existence of short title.
		Not implemented: "cited to" for cases, construct short casenames, adding ref to article -->
    <choose>
      <if type="bill legal_case legislation" match="none">
        <names variable="author">
          <name and="symbol" form="short" delimiter-precedes-last="never"/>
          <substitute>
            <names variable="editor">
              <name and="symbol" form="short"/>
            </names>
          </substitute>
        </names>
      </if>
      <else>
        <text variable="title" form="short"/>
      </else>
    </choose>
  </macro>
  <macro name="publisher-place-year">
    <group delimiter=", " prefix=" (" suffix=")">
      <group delimiter=": ">
        <text variable="publisher-place"/>
        <text variable="publisher"/>
      </group>
      <date form="text" variable="issued" date-parts="year"/>
    </group>
  </macro>
  <citation et-al-min="4" et-al-use-first="1">
    <!-- translator needs to be added for chapter, book, film etc. chapter? -->
    <layout delimiter="; " suffix=".">
      <choose>
        <!-- Not implemented: ibid only needs capitalize-first if it's the first word in a footnote -->
        <if position="ibid-with-locator">
          <group>
            <text term="ibid" font-style="italic" strip-periods="true" text-case="capitalize-first"/>
            <text macro="pinpoint"/>
          </group>
        </if>
        <else-if position="ibid">
          <text term="ibid" font-style="italic" strip-periods="true" text-case="capitalize-first"/>
        </else-if>
        <!-- For future versions? Cannot test for whether short form exists (Supra should be capitalized if no short form) -->
        <else-if position="subsequent">
          <group delimiter=" ">
            <group delimiter=", ">
              <text macro="short-form"/>
              <text value="supra" font-style="italic"/>
            </group>
            <text value="note"/>
            <text variable="first-reference-note-number"/>
            <text macro="pinpoint"/>
          </group>
        </else-if>
        <else>
          <group>
            <group delimiter=", ">
              <choose>
                <if type="bill legislation">
                  <text macro="render-bill"/>
                </if>
                <else-if type="legal_case">
                  <text macro="render-case"/>
                </else-if>
                <else>
                  <text macro="author-note" strip-periods="true"/>
                  <choose>
                    <if type="article-journal">
                      <text macro="render-article-journal"/>
                    </if>
                    <else-if type="chapter">
                      <text macro="render-chapter"/>
                    </else-if>
                    <else-if type="thesis">
                      <text macro="render-thesis"/>
                    </else-if>
                    <else-if type="article-newspaper">
                      <text macro="render-article-newspaper"/>
                    </else-if>
                    <else-if type="webpage">
                      <text macro="render-webpage"/>
                    </else-if>
                    <else>
                      <group delimiter=" ">
                        <group delimiter=", ">
                          <text variable="title" font-style="italic"/>
                          <text macro="translator"/>
                          <text macro="edition"/>
                        </group>
                        <text macro="publisher-place-year"/>
                      </group>
                    </else>
                  </choose>
                </else>
              </choose>
            </group>
            <text macro="pinpoint"/>
          </group>
        </else>
      </choose>
    </layout>
  </citation>
  <bibliography et-al-min="4" et-al-use-first="1">
    <sort>
      <key macro="sort-by-type"/>
      <key macro="author-bib"/>
      <key variable="issued"/>
    </sort>
    <layout suffix=".">
      <choose>
        <if type="bill legal_case legislation" match="any">
          <choose>
            <if type="bill legislation">
              <text macro="render-bill"/>
            </if>
            <else-if type="legal_case">
              <text macro="render-case"/>
            </else-if>
          </choose>
        </if>
        <else>
          <group delimiter=". ">
            <text macro="author-bib" strip-periods="true"/>
            <choose>
              <if type="article-journal">
                <text macro="render-article-journal"/>
              </if>
              <else-if type="chapter">
                <text macro="render-chapter"/>
              </else-if>
              <else-if type="thesis">
                <text macro="render-thesis"/>
              </else-if>
              <else-if type="article-newspaper">
                <text macro="render-article-newspaper"/>
              </else-if>
              <else-if type="book">
                <text macro="render-book"/>
              </else-if>
              <else-if type="webpage">
                <text macro="render-webpage"/>
              </else-if>
              <else>
                <group>
                  <group delimiter=", ">
                    <text variable="title" font-style="italic"/>
                    <text macro="edition"/>
                    <text macro="translator"/>
                    <text macro="editor"/>
                  </group>
                  <text macro="publisher-place-year"/>
                </group>
              </else>
            </choose>
          </group>
        </else>
      </choose>
    </layout>
  </bibliography>
</style>

