-
Notifications
You must be signed in to change notification settings - Fork 10
/
example.csl
206 lines (187 loc) · 7.47 KB
/
example.csl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.1mlz1" default-locale="en-GB">
<info>
<title>citeproc-rs test file</title>
<title-short>citeproc-rs</title-short>
<id>http://www.zotero.org/styles/citeproc-rs-example</id>
<author>
<name>Genius Jones</name>
<email>[email protected]</email>
</author>
<contributor>
<name>Greg McSly</name>
</contributor>
<category citation-format="note"/>
<category field="law"/>
<summary>Test case for citeproc-rs</summary>
<updated>2018-09-03T17:14:48+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>
<features>
<feature name="conditions" />
<feature name="condition-date-parts" />
</features>
<locale />
<locale xml:lang="en-GB">
<terms>
<term name="et-al">et al</term>
<term name="edition" gender="feminine">
<single>edition</single>
<multiple>editions</multiple>
</term>
<!-- ORDINALS -->
<term name="ordinal">ᵉ</term>
<term name="ordinal-01" gender-form="feminine" match="whole-number">ʳᵉ</term>
<term name="ordinal-01" gender-form="masculine" match="whole-number">ᵉʳ</term>
<!-- LONG ORDINALS -->
<term name="long-ordinal-01">premier</term>
<term name="long-ordinal-02">deuxième</term>
<term name="long-ordinal-03">troisième</term>
<term name="long-ordinal-04">quatrième</term>
<term name="long-ordinal-05">cinquième</term>
<term name="long-ordinal-06">sixième</term>
<term name="long-ordinal-07">septième</term>
<term name="long-ordinal-08">huitième</term>
<term name="long-ordinal-09">neuvième</term>
<term name="long-ordinal-10">dixième</term>
</terms>
</locale>
<macro name="SuperMacro">
<text variable="locator" font-style="italic" />
</macro>
<citation>
<layout suffix="." delimiter="; ">
<choose>
<if>
<conditions match="any">
<condition has-year-only="issued" />
</conditions>
<text value="has-year-only" />
<date variable="issued" form="numeric" />
</if>
</choose>
<choose>
<if position="ibid" >
<text value="ibid" />
</if>
<else>
<group font-style="italic">
<group font-style="italic" prefix="outer " suffix=" outer">
<text font-style="italic" value="inner" prefix="inner-grp " suffix=" inner-grp"/>
</group>
</group>
<text value="group suppression: {" />
<group>
<text value="tag " />
<text variable="archive" />
</group>
<text value="} group with no vars: {" />
<group>
<text value="tag" />
</group>
<text value="}" />
<group delimiter=" | " prefix="{" suffix="}" >
<group delimiter=" + " prefix="(" suffix=")">
<text value="noice" />
<text value="goin" />
<text variable="container-title" />
</group>
<number variable="edition" form="ordinal" />
<label variable="edition" plural="contextual" />
<!-- <text term="edition" /> -->
<!-- <label variable="page" /> -->
<choose>
<if is-numeric="page-first">
<text value="is-numeric: " />
<number variable="page-first" form="ordinal" />
</if>
<else>
<text value="NOT numeric: " />
<text variable="page-first" />
</else>
</choose>
<names variable="author">
<name et-al-min="0" et-al-use-first="1"/>
</names>
<names variable="editor">
<name name-as-sort-order="all" et-al-min="1000" et-al-use-first="1"/>
</names>
<names variable="editor">
<name form="short" name-as-sort-order="all" et-al-min="0" et-al-use-first="1" />
</names>
<names variable="editor">
<name form="short" name-as-sort-order="all" et-al-min="0" et-al-use-first="2" />
</names>
<names variable="editor">
<name et-al-min="0" et-al-use-first="1" et-al-use-last="true" />
</names>
<names variable="editor">
<name and="text" delimiter-precedes-last="never" form="short" name-as-sort-order="all" et-al-min="10000" />
</names>
<names variable="editor">
<name and="text" form="count" et-al-min="10000" />
</names>
<names variable="editor">
<name and="text" initialize="true" initialize-with="." et-al-min="10000" />
</names>
</group>
<!-- <group delimiter=" & " > -->
<!-- <choose> -->
<!-- <if variable="number" match="none"> -->
<!-- <text value="if branch taken" /> -->
<!-- </if> -->
<!-- <else-if variable="issue"> -->
<!-- <text value="else-if branch taken" /> -->
<!-- </else-if> -->
<!-- <else> -->
<!-- <text value="else branch taken" /> -->
<!-- </else> -->
<!-- </choose> -->
<!-- <date variable="issued" delimiter=" "> -->
<!-- <date-part name="day" range-delimiter="&#x2013;"/> -->
<!-- <date-part name="month" range-delimiter=" &#x2013; "/> -->
<!-- <date-part name="year" range-delimiter=" &#x2013; "/> -->
<!-- </date> -->
<!-- <date variable="issued" delimiter="-"> -->
<!-- <date-part name="year" range-delimiter=" &#x2013; "/> -->
<!-- <date-part name="month" form="numeric-leading-zeros" range-delimiter=" &#x2013; "/> -->
<!-- <date-part name="day" form="numeric-leading-zeros" range-delimiter="&#x2013;"/> -->
<!-- </date> -->
<!-- <group delimiter="-"> -->
<!-- <text value="never" /> -->
<!-- <text value="stop" /> -->
<!-- <text value="never" /> -->
<!-- <text value="stopping" /> -->
<!-- </group> -->
<!-- </group> -->
<!-- <group delimiter=", "> -->
<!-- <text value="citation" /> -->
<!-- <number variable="issue" /> -->
<!-- <!-- <names variable="editor"> --> -->
<!-- <!-- <name name&#45;as&#45;sort&#45;order="all" /> --> -->
<!-- <!-- </names> --> -->
<!-- <choose> -->
<!-- <if type="legal_case"> -->
<!-- <date variable="issued" delimiter=" "> -->
<!-- <date-part name="day" range-delimiter="&#x2013;"/> -->
<!-- <date-part name="month" range-delimiter=" &#x2013; "/> -->
<!-- <date-part name="year" range-delimiter=" &#x2013; "/> -->
<!-- </date> -->
<!-- </if> -->
<!-- </choose> -->
<!-- </group> -->
</else>
</choose>
</layout>
</citation>
<bibliography et-al-min="4" et-al-use-first="1">
<sort>
<key macro="sort-type"/>
<key macro="author" names-min="1" names-use-first="1"/>
<key variable="issued"/>
</sort>
<layout>
<text value="bibliography" />
</layout>
</bibliography>
</style>