Skip to content

Instantly share code, notes, and snippets.

Created September 14, 2011 00:02
Show Gist options
  • Save anonymous/1215519 to your computer and use it in GitHub Desktop.
Save anonymous/1215519 to your computer and use it in GitHub Desktop.
New Zealand Law Style Guide CSL
<?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" version="1.1mlz1" class="note" default-locale="en">
<info>
<title>MLZ New Zealand Law Style Guide</title>
<id>http://www.zotero.org/styles/mlz-nzlsg</id>
<link href="http://www.zotero.org/styles/mlz-nzlsg" rel="self"/>
<link href="http://www.lawfoundation.org.nz/style-guide/index.html" rel="documentation"/>
<author>
<name>Julia Caldwell</name>
<email>caldwelljules@gmail.com</email>
</author>
<contributor>
<name>Jack Newberry</name>
</contributor>
<contributor>
<name> John Prebble </name>
<email> john.prebble@vuw.ac.nz</email>
</contributor>
<updated>2011-07-08T22:01:02+00:00</updated>
<rights>This work is licensed under a Creative Commons
Attribution-Share Alike 3.0 Unported License
http://creativecommons.org/licenses/by-sa/3.0/</rights>
<category field="law"/>
<category citation-format="note"/>
<summary> This citation style is written to be consistent with the New Zealand Law Style Guide 2010.
This style is modified from the Canadian Style to Uniform Legal Citation.
</summary>
</info>
<locale xml:lang="en">
<style-options punctuation-in-quote="false"/>
<terms>
<term name="et-al">and others</term>
<term name="ordinal-01">st</term>
<term name="ordinal-02">nd</term>
<term name="ordinal-03">rd</term>
<term name="ordinal-04">th</term>
<term name="editor" form="short">
<single>(ed) </single>
<multiple>(eds) </multiple>
</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="text"/>
</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="text"
delimiter-precedes-last="never"
initialize="false"
initialize-with=""/>
<et-al term="et-al"/>
<!-- checking institution requirements
<institution
delimiter=", "
substitute-use-first="1"
use-last="1"/> -->
<substitute>
<text macro="editor"/>
</substitute>
</names>
</macro>
<macro name="author-bib">
<names variable="author">
<name name-as-sort-order="all"
and="text" sort-separator=", "
delimiter-precedes-last="never"
initialize-with=""
initialize="false"/>
<et-al term="et-al"/>
<label form="long" 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">
<date-part name="day" suffix=" "/>
<date-part name="month" form="long" suffix=" "/>
<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="volume-number">
<text variable="volume" prefix="vol "/>
</macro>
<macro name="sort-by-type">
<choose>
<if type="bill legislation 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>
<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="publisher-place-year"/>
<text variable="page-first" prefix=" "/>
</macro>
<macro name="render-article-journal">
<group delimiter=" ">
<text variable="title" quotes="true"/>
<choose>
<if variable="volume">
<date form="text" variable="issued" date-parts="year" prefix="(" suffix=")"/>
</if>
<else>
<date form="text" variable="issued" date-parts="year" prefix="[" suffix="]"/>
</else>
</choose>
<text variable="volume"/>
</group>
<!--<text variable="issue" prefix="(" suffix=")"/-->
<text macro="container-title" prefix=" "/>
<text variable="page-first" prefix=" "/>
</macro>
<macro name="render-book">
<group delimiter=", ">
<text variable="title" font-style="italic"/>
<text macro="translator"/>
<text macro="editor"/>
</group>
<text macro="publisher-place-year"/>
<text macro="volume-number" prefix=" "/>
</macro>
<macro name="render-thesis">
<group delimiter=" ">
<text variable="title" quotes="true"/>
<group prefix="(" suffix=")" delimiter=", ">
<text macro="genre"/>
<text variable="publisher"/>
<date form="text" variable="issued" date-parts="year"/>
</group>
</group>
</macro>
<macro name="render-paper-conference">
<group delimiter=" ">
<text variable="title" quotes="true" suffix=" "/>
<text variable="publisher"/>
<group prefix="(" suffix=")">
<text variable="event" prefix="paper presented to " suffix=", "/>
<text variable="publisher-place" suffix=", "/>
<text macro="issued-long"/>
</group>
</group>
</macro>
<macro name="render-article-newspaper">
<group delimiter=" ">
<text variable="title" quotes="true" suffix=" "/>
<text macro="container-title" font-style="italic"/>
<text variable="publisher-place" prefix="(" suffix=","/>
<text macro="issued-long" suffix=")"/>
<text variable="page-first"/>
<text variable="URL" prefix=" &lt;" suffix="&gt;"/>
</group>
</macro>
<macro name="render-speech">
<group delimiter=" ">
<text variable="title" quotes="true" suffix=" "/>
<group delimiter=", " prefix="(" suffix=")">
<text variable="event"/>
<text variable="publisher-place"/>
<text macro="issued-long"/>
</group>
</group>
</macro>
<macro name="render-interview">
<group delimiter=" ">
<text macro="author-note" prefix="Interview with " suffix=" "/>
<group delimiter=", " prefix="(" suffix=")">
<names variable="interviewer">
<name and="text" delimiter-precedes-last="never"/>
<!-- To be implemented <name initialize-with="" initialize="false" -->
<et-al term="et-al"/>
</names>
<text variable="medium"/>
<text macro="issued-long"/>
</group>
<group>
<text value="transcript provided by "/>
<names variable="translator">
<name/>
</names>
</group>
</group>
</macro>
<!--variable still maps to chapter - waiting for Zotero 2.2
<macro name="render-encyclopedia">
<group delimiter=" ">
<text variable="container-title" font-style="italics"/>
<text macro="publisher-place-year"/>
<text macro="volume-number"/>
<text variable="title"/>
</group>
</macro> -->
<!-- cases and bills render the same for biblio and (first) cite -->
<!-- render-bill creates citations for NZ Bills and legislations. More complex jurisdictions not yet completed. -->
<macro name="render-bill">
<group delimiter=" ">
<text variable="title"/>
<date form="text" variable="issued" date-parts="year"/>
<!-- currently maps to history field-->
<text macro="references" prefix="(" suffix=")"/>
</group>
</macro>
<!--render-case creates citations for all NZ cases including file number citations and neutral citaions.
Other jurisdictions and NZ Maori Land Court and Maori Appellant Court Jurisdiction yet to be completed -->
<macro name="render-case">
<text variable="title" font-style="italic" strip-periods="true" suffix=" "/>
<choose>
<if variable="number">
<text variable="authority"/>
<text variable="number" prefix=" "/>
<text macro="issued-long" prefix=", "/>
</if>
<else>
<text variable="references" suffix=" "/>
<choose>
<if variable="volume">
<date form="text" variable="issued" date-parts="year" prefix="(" suffix=")"/>
</if>
<else>
<date form="text" variable="issued" date-parts="year" prefix="[" suffix="]"/>
</else>
</choose>
<text variable="volume" prefix=" "/>
<text variable="issue" prefix="(" suffix=")"/>
<text macro="container-title" prefix=" " suffix=" "/>
<text variable="page-first" prefix=" "/>
<choose>
<if variable="references">
<text value=""/>
</if>
<else>
<text variable="authority" prefix=" (" suffix=")"/>
</else>
</choose>
<!-- Can't include this line until short-title becomes a variable. -->
<text variable="title-short" font-style="italic" prefix=" [" suffix="]"/>
</else>
</choose>
</macro>
<!-- Extensible number term for MLZ Client-->
<!--Pinpoint and short form below -->
<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">
<choose>
<if type="bill legislation legal_case" match="none">
<names variable="author">
<name and="text" form="short" delimiter-precedes-last="never"/>
<substitute>
<names variable="editor">
<name and="text" form="short"/>
</names>
</substitute>
</names>
</if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<macro name="publisher-place-year">
<group delimiter=", " prefix=" (" suffix=")">
<!-- <group delimiter=", " -->
<text macro="edition"/>
<text variable="publisher"/>
<text variable="publisher-place"/>
<!--</group> -->
<date form="text" variable="issued" date-parts="year"/>
</group>
</macro>
<!-- Macros above, bibliography below =============================== -->
<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" strip-periods="true" text-case="capitalize-first"/>
<text macro="pinpoint"/>
</group>
</if>
<else-if position="ibid">
<text term="ibid" strip-periods="true" text-case="capitalize-first"/>
</else-if>
<else-if position="subsequent">
<group delimiter=", ">
<text macro="short-form"/>
</group>
<group>
<group delimiter=" ">
<text value="above n" prefix=", "/>
<text variable="first-reference-note-number"/>
</group>
<text macro="pinpoint"/>
</group>
</else-if>
<else>
<group>
<group delimiter=" ">
<choose>
<if type="bill legislation legal_case" 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-if type="interview">
<text macro="render-interview"/>
</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="paper-conference">
<text macro="render-paper-conference"/>
</else-if>
<else-if type="speech">
<text macro="render-speech"/>
</else-if>
<else-if type="book">
<text macro="render-book"/>
</else-if>
<!--
<else-if type="entry-encyclopedia">
<text macro="render-encyclopedia"/>
</else-if> -->
<else>
<group delimiter=" ">
<group delimiter=", ">
<text variable="title" font-style="italic"/>
<text macro="translator"/>
</group>
<text macro="publisher-place-year"/>
<text macro="volume-number"/>
</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>
<choose>
<if type="bill legislation legal_case" 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-if type="interview">
<text macro="render-interview"/>
</else-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="paper-conference">
<text macro="render-paper-conference"/>
</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="speech">
<text macro="render-speech"/>
</else-if>
<!--
<else-if type="entry-encyclopedia">
<text macro="render-encyclopedia"/>
</else-if> -->
<else>
<group>
<group delimiter=", ">
<text variable="title" font-style="italic"/>
<text macro="translator"/>
<text macro="editor"/>
</group>
<text macro="publisher-place-year"/>
<text macro="volume-number"/>
</group>
</else>
</choose>
</group>
</else>
</choose>
</layout>
</bibliography>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment