Create new directory for CSLs, with NLM as a test of the validation functions

This commit is contained in:
Dan Stillman 2007-11-06 01:48:20 +00:00
parent 70b10ea320
commit bcc09357e4

76
csl/nlm.csl Normal file
View file

@ -0,0 +1,76 @@
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="csl.rnc" type="compact"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" xml:lang="en">
<info>
<title>National Library of Medicine</title>
<id>http://purl.org/net/xbiblio/csl/styles/nlm.csl</id>
<link>http://purl.org/net/xbiblio/csl/styles/nlm.csl</link>
<author>
<name>Michael Berkowitz</name>
<email>michael@songsaboutsnow.com</email>
</author>
<category term="generic-base"/>
<updated>2007-10-23T18:00:00</updated>
</info>
<macro name="author">
<names variable="author" suffix=". ">
<name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/>
</names>
</macro>
<macro name="editor">
<names variable="editor" suffix=", editor(s). ">
<name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/>
</names>
</macro>
<macro name="publisher">
<text variable="publisher-place" suffix=": "/>
<text variable="publisher" suffix="; "/>
<date variable="issued">
<date-part name="year" suffix=". "/>
</date>
</macro>
<citation>
<option name="collapse" value="citation-number"/>
<sort>
<key variable="citation-number"/>
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography>
<option name="et-al-min" value="7"/>
<option name="et-al-use-first" value="6"/>
<option name="second-field-align" value="true"/>
<layout>
<text variable="citation-number" suffix=". "/>
<text macro="author"/>
<text variable="title" suffix=". "/>
<choose>
<if type="book">
<text variable="edition" prefix=" " suffix=" ed. "/>
<text macro="publisher" prefix=" "/>
</if>
<else-if type="chapter">
<group prefix=" In: " suffix=". ">
<text macro="editor"/>
<text variable="container-title"/>
</group>
<text macro="publisher" prefix=" "/>
<text variable="page" prefix=" p. " suffix="."/>
</else-if>
<else>
<text variable="container-title" suffix=". " form="short"/>
<date variable="issued" suffix=";">
<date-part name="year" suffix=" "/>
<date-part name="month" form="short" suffix=" "/>
<date-part name="day"/>
</date>
<text variable="volume"/>
<text variable="issue" prefix="(" suffix="):"/>
<text variable="page" suffix="."/>
</else>
</choose>
</layout>
</bibliography>
</style>