Skip to content

Instantly share code, notes, and snippets.

Created September 18, 2009 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/188806 to your computer and use it in GitHub Desktop.
Save anonymous/188806 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://xbiblio.svn.sourceforge.net/viewvc/*checkout*/xbiblio/csl/schema/trunk/csl.rnc" type="compact"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" xml:lang="en">
<info>
<title>CSV output 0.1a</title>
<id>http://www.zotero.org/styles/CSV-0.1a</id>
<link href="http://www.zotero.org/styles/csv-0.1a"/>
<category term="author-date"/>
<updated>2009-07-09T20:21:05+00:00</updated>
</info>
<terms>
<locale xml:lang="en">
<term name="no date">NULL</term>
</locale>
</terms>
<macro name="container-contributors">
<choose>
<if type="chapter">
<text term="in" suffix=" " font-style="italic"/>
<names variable="editor translator">
<name and="text" initialize-with=""/>
<label form="long" suffix="."/>
</names>
</if>
<else>
<text term="no date"/>
</else>
</choose>
</macro>
<macro name="secondary-contributors">
<choose>
<if type="chapter" match="none">
<names variable="editor translator" delimiter="">
<name and="text" initialize-with="" delimiter=""/>
<label form="short" prefix="" text-case="capitalize-first" suffix="."/>
</names>
</if>
<else>
<text term="no date"/>
</else>
</choose>
</macro>
<macro name="author">
<choose>
<if variable="author">
<names variable="author">
<name name-as-sort-order="all" and="symbol" sort-separator=" "
initialize-with="" delimiter=" " delimiter-precedes-last="always" />
<label form="short" prefix=" (" suffix=".)" text-case="capitalize-first"/>
</names>
</if>
<else>
<text term="no date"/>
</else>
</choose>
</macro>
<macro name="author-short">
<choose>
<if variable="author">
<names variable="author">
<name form="short" and="text" delimiter=" " initialize-with=". "/>
</names>
</if>
<else>
<text term="no date"/>
</else>
</choose>
</macro>
<macro name="access">
<choose>
<if variable="DOI">
<text variable="DOI" prefix="http://dx.doi.org/"/>
</if>
<else-if variable="URL">
<text variable="URL"/>
</else-if>
<else>
<text term="no date"/>
</else>
</choose>
</macro>
<macro name="publisher">
<group delimiter=",">
<choose>
<if variable="publisher">
<text variable="publisher"/>
</if>
<else>
<text term="no date"/>
</else>
</choose>
<choose>
<if variable="publisher-place">
<text variable="publisher-place"/>
</if>
<else>
<text term="no date"/>
</else>
</choose>
</group>
</macro>
<macro name="event">
<choose>
<if variable="event">
<text variable="event"/>
<text variable="event-place" prefix=", "/>
</if>
<else>
<text term="no date"/>
</else>
</choose>
</macro>
<macro name="issued">
<choose>
<if variable="issued">
<group prefix="" suffix="">
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</if>
<else>
<text term="no date"/>
</else>
</choose>
</macro>
<macro name="issued-year">
<choose>
<if variable="issued">
<date variable="issued">
<date-part name="year"/>
</date>
</if>
<else>
<text term="no date"/>
</else>
</choose>
</macro>
<macro name="locators">
<choose>
<if type="article-journal article-magazine article-newspaper" match="any">
<group delimiter=",">
<choose>
<if variable="container-title">
<text variable="container-title"/>
</if>
<else>
<text term="no date"/>
</else>
</choose>
<choose>
<if variable="volume">
<text variable="volume"/>
</if>
<else>
<text term="no date"/>
</else>
</choose>
<choose>
<if variable="issue">
<text variable="issue"/>
</if>
<else>
<text term="no date"/>
</else>
</choose>
<choose>
<if variable="page">
<text variable="page"/>
</if>
<else>
<text term="no date"/>
</else>
</choose>
</group>
</if>
<else>
<text term="no date" suffix=","/>
<text term="no date" suffix=","/>
<text term="no date" suffix=","/>
<text term="no date"/>
</else>
</choose>
</macro>
<macro name="book-chapter">
<choose>
<if type="book chapter" match="any">
<choose>
<if variable="page">
<text variable="page"/>
</if>
<else>
<text term="no date" suffix=","/>
</else>
</choose>
<text macro="container-contributors"/>
<text macro="secondary-contributors"/>
<choose>
<if variable="container-title">
<text variable="container-title"/>
</if>
<else>
<text term="no date" suffix=","/>
</else>
</choose>
</if>
<else>
<text term="no date" suffix=","/>
<text term="no date" suffix=","/>
<text term="no date" suffix=","/>
<text term="no date" suffix=","/>
</else>
</choose>
</macro>
<macro name="citation-locator">
<group>
<label variable="locator" include-period="true" form="short"/>
<text variable="locator" prefix=" "/>
</group>
</macro>
<citation>
<option name="et-al-min" value="3"/>
<option name="et-al-use-first" value="1"/>
<option name="disambiguate-add-year-suffix" value="true"/>
<option name="disambiguate-add-names" value="true"/>
<option name="disambiguate-add-givenname" value="true"/>
<option name="collapse" value="year"/>
<sort>
<key macro="author"/>
<key variable="issued"/>
</sort>
<layout prefix="(" suffix=")" delimiter=", ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="issued-year"/>
<text macro="citation-locator"/>
</group>
</layout>
</citation>
<bibliography>
<option name="hanging-indent" value="false"/>
<option name="et-al-min" value="10"/>
<option name="et-al-use-first" value="1"/>
<option name="entry-spacing" value="0"/>
<option name="line-spacing" value="0"/>
<sort>
<key macro="author"/>
<key variable="issued"/>
</sort>
<layout suffix="">
<group delimiter=",">
<text macro="author"/>
<text macro="author-short"/>
<text macro="issued"/>
<text variable="title"/>
<text macro="locators"/>
<text macro="access"/>
<text macro="publisher"/>
<text macro="event"/>
</group>
</layout>
</bibliography>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment