Skip to content

Instantly share code, notes, and snippets.

@fbennett
Created March 16, 2010 14:50
Show Gist options
  • Save fbennett/334040 to your computer and use it in GitHub Desktop.
Save fbennett/334040 to your computer and use it in GitHub Desktop.
##
#### Error in CSL for test: /home/bennett/src/citeproc-js/tests/custom/humans/test_Query.txt
##
REQUIRED ELEMENTS MISSING @ line 391
TEXT NOT ALLOWED HERE @ line 421
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?oxygen RNGSchema="http://xbiblio.svn.sourceforge.net/viewvc/*checkout*/xbiblio/csl/schema/trunk/csl.rnc" type="compact"?>
3 <style xmlns="http://purl.org/net/xbiblio/csl" class="note" xml:lang="en" version="0.8.1">
4 <info>
5 <title> Delex Chicago Style</title>
6 <id>http://www.zotero.org/styles/delex-chicago</id>
7 <link href="http://www.zotero.org/styles/chicago-note-no-ibid"/>
8 <link href="http://www.chicagomanualofstyle.org/tools_citationguide.html" rel="documentation"/>
9 <author>
10 <name>Julian Onions</name>
11 <email>[email protected]</email>
12 </author>
13 <contributor>
14 <name>Simon Kornblith</name>
15 <email>[email protected]</email>
16 </contributor>
17 <contributor>
18 <name>Elena Razlogova</name>
19 <email>[email protected]</email>
20 </contributor>
21 <summary>Chicago format with full notes, no bibliography, and no ibid.</summary>
22 <category term="generic-base"/>
23 <category term="note"/>
24 <updated>2009-04-16T21:34:18+00:00</updated>
25 </info>
26 <macro name="editor-translator">
27 <group delimiter=", ">
28 <choose>
29 <if variable="author">
30 <names variable="editor" delimiter=", ">
31 <label form="verb-short" text-case="lowercase" suffix=". "/>
32 <name and="text" delimiter=", "/>
33 </names>
34 </if>
35 </choose>
36 <choose>
37 <if variable="author editor" match="any">
38 <names variable="translator" delimiter=", ">
39 <label form="verb-short" text-case="lowercase" suffix=". "/>
40 <name and="text" delimiter=", "/>
41 </names>
42 </if>
43 </choose>
44 </group>
45 </macro>
46 <macro name="secondary-contributors-note">
47 <choose>
48 <if type="chapter" match="none">
49 <text macro="editor-translator"/>
50 </if>
51 </choose>
52 </macro>
53 <macro name="container-contributors-note">
54 <choose>
55 <if type="chapter">
56 <text macro="editor-translator"/>
57 </if>
58 </choose>
59 </macro>
60 <macro name="editor-note">
61 <names variable="editor">
62 <name and="text" sort-separator=", " delimiter=", "/>
63 <label form="short" prefix=", " suffix="."/>
64 </names>
65 </macro>
66 <macro name="translator-note">
67 <names variable="translator">
68 <name and="text" sort-separator=", " delimiter=", "/>
69 <label form="verb-short" prefix=", " suffix="."/>
70 </names>
71 </macro>
72 <macro name="recipient-note">
73 <names variable="recipient" delimiter=", ">
74 <label form="verb" prefix=" " text-case="lowercase" suffix=" "/>
75 <name and="text" delimiter=", "/>
76 </names>
77 </macro>
78 <macro name="contributors-note">
79 <names variable="author">
80 <name and="text" sort-separator=", " delimiter=", "/>
81 <substitute>
82 <text macro="editor-note"/>
83 <text macro="translator-note"/>
84 </substitute>
85 </names>
86 <text macro="recipient-note"/>
87 </macro>
88 <macro name="recipient-short">
89 <names variable="recipient">
90 <label form="verb" prefix=" " text-case="lowercase" suffix=" "/>
91 <name form="short" and="text" delimiter=", "/>
92 </names>
93 </macro>
94 <macro name="contributors-short">
95 <names variable="author">
96 <name form="short" and="text" delimiter=", "/>
97 <substitute>
98 <names variable="editor"/>
99 <names variable="translator"/>
100 </substitute>
101 </names>
102 <text macro="recipient-short"/>
103 </macro>
104 <macro name="interviewer-note">
105 <names variable="interviewer" delimiter=", ">
106 <label form="verb" prefix=" " text-case="lowercase" suffix=" "/>
107 <name and="text" delimiter=", "/>
108 </names>
109 </macro>
110 <macro name="title-note">
111 <choose>
112 <if variable="title" match="none">
113 <text variable="genre"/>
114 </if>
115 <else-if type="book">
116 <text variable="title" font-style="italic"/>
117 </else-if>
118 <else>
119 <text variable="title" quotes="true"/>
120 </else>
121 </choose>
122 </macro>
123 <macro name="title-short">
124 <choose>
125 <if variable="title" match="none">
126 <choose>
127 <if type="interview">
128 <text term="interview" text-case="lowercase"/>
129 </if>
130 <else-if type="manuscript speech" match="any">
131 <text variable="genre" form="short"/>
132 </else-if>
133 <else-if type="personal_communication">
134 <text macro="issued"/>
135 </else-if>
136 </choose>
137 </if>
138 <else-if type="book">
139 <text variable="title" form="short" font-style="italic"/>
140 </else-if>
141 <else>
142 <text variable="title" form="short" quotes="true"/>
143 </else>
144 </choose>
145 </macro>
146 <macro name="description-note">
147 <group delimiter=", ">
148 <text macro="interviewer-note"/>
149 <text variable="medium"/>
150 <choose>
151 <if variable="title" match="none"> </if>
152 <else-if type="thesis speech" match="any"> </else-if>
153 <else>
154 <text variable="genre"/>
155 </else>
156 </choose>
157 </group>
158 </macro>
159 <macro name="container-title-note">
160 <choose>
161 <if type="chapter">
162 <text term="in" text-case="lowercase" suffix=" "/>
163 </if>
164 </choose>
165 <choose>
166 <if type="legal_case" match="none">
167 <text variable="container-title" font-style="italic"/>
168 </if>
169 </choose>
170 </macro>
171 <macro name="edition-note">
172 <choose>
173 <if type="book chapter" match="any">
174 <choose>
175 <if is-numeric="edition">
176 <group delimiter=" ">
177 <number variable="edition" form="ordinal"/>
178 <text term="edition" form="short" suffix="."/>
179 </group>
180 </if>
181 <else>
182 <text variable="edition" suffix="."/>
183 </else>
184 </choose>
185 </if>
186 </choose>
187 </macro>
188 <macro name="collection-title">
189 <text variable="collection-title"/>
190 <text variable="collection-number" prefix=" "/>
191 </macro>
192 <macro name="locators-note">
193 <choose>
194 <if type="article-journal">
195 <text variable="volume" prefix=" "/>
196 <text variable="issue" prefix=", no. "/>
197 </if>
198 <else-if type="legal_case">
199 <text variable="volume" prefix=", "/>
200 <text variable="container-title" prefix=" "/>
201 <text variable="page" prefix=" "/>
202 <text variable="locator" prefix=", "/>
203 </else-if>
204 <else-if type="book chapter" match="any">
205 <group prefix=", " delimiter=", ">
206 <group>
207 <text term="volume" form="short" suffix=". "/>
208 <number variable="volume" form="numeric"/>
209 </group>
210 <choose>
211 <if variable="locator" match="none">
212 <group>
213 <number variable="number-of-volumes" form="numeric"/>
214 <text term="volume" form="short" prefix=" " suffix="." plural="true"/>
215 </group>
216 </if>
217 </choose>
218 <text macro="edition-note"/>
219 </group>
220 </else-if>
221 </choose>
222 </macro>
223 <macro name="locators-newspaper">
224 <choose>
225 <if type="article-newspaper">
226 <group delimiter=", ">
227 <group>
228 <text variable="edition" suffix=" "/>
229 <text term="edition" prefix=" "/>
230 </group>
231 <group>
232 <text term="section" form="short" suffix=". "/>
233 <text variable="section"/>
234 </group>
235 </group>
236 </if>
237 </choose>
238 </macro>
239 <macro name="event">
240 <group>
241 <text term="presented at" suffix=" "/>
242 <text variable="event"/>
243 </group>
244 </macro>
245 <macro name="publisher">
246 <group delimiter=": ">
247 <text variable="publisher-place"/>
248 <text variable="publisher"/>
249 </group>
250 </macro>
251 <macro name="issued">
252 <choose>
253 <if type="graphic report" match="any">
254 <date variable="issued">
255 <date-part name="month" suffix=" "/>
256 <date-part name="day" suffix=", "/>
257 <date-part name="year"/>
258 </date>
259 </if>
260 <else-if type="legal_case">
261 <text variable="authority" suffix=" "/>
262 <date variable="issued">
263 <date-part name="year"/>
264 </date>
265 </else-if>
266 <else-if type="book chapter thesis" match="any">
267 <date variable="issued">
268 <date-part name="year"/>
269 </date>
270 </else-if>
271 <else>
272 <date variable="issued">
273 <date-part name="month" suffix=" "/>
274 <date-part name="day" suffix=", "/>
275 <date-part name="year"/>
276 </date>
277 </else>
278 </choose>
279 </macro>
280 <macro name="pages">
281 <choose>
282 <if type="article-journal">
283 <text variable="page" prefix=": "/>
284 </if>
285 <else-if type="chapter">
286 <text variable="page" prefix=", "/>
287 </else-if>
288 </choose>
289 </macro>
290 <macro name="point-locators-subsequent">
291 <group>
292 <choose>
293 <if locator="page" match="none">
294 <choose>
295 <if type="book">
296 <group suffix=", ">
297 <text term="volume" form="short" text-case="lowercase" suffix=". "/>
298 <number variable="volume" form="numeric"/>
299 </group>
300 </if>
301 </choose>
302 <label variable="locator" form="short" include-period="true" suffix=" "/>
303 </if>
304 <else-if type="book">
305 <number variable="volume" form="numeric" suffix=":"/>
306 </else-if>
307 </choose>
308 <text variable="locator"/>
309 </group>
310 </macro>
311 <macro name="point-locators">
312 <choose>
313 <if variable="locator" match="none">
314 <text macro="pages"/>
315 </if>
316 <else-if type="article-journal">
317 <text variable="locator" prefix=": "/>
318 </else-if>
319 <else-if type="legal_case"> </else-if>
320 <else>
321 <group prefix=", ">
322 <choose>
323 <if locator="page" match="none">
324 <label variable="locator" form="short" include-period="true" suffix=" "/>
325 </if>
326 </choose>
327 <text variable="locator"/>
328 </group>
329 </else>
330 </choose>
331 </macro>
332 <macro name="archive-note">
333 <group delimiter=", ">
334 <text variable="archive_location"/>
335 <text variable="archive"/>
336 <text variable="archive-place"/>
337 </group>
338 </macro>
339 <macro name="issue-note">
340 <choose>
341 <if type="article-journal legal_case" match="any">
342 <text macro="issued" prefix=" (" suffix=")"/>
343 </if>
344 <else-if variable="publisher-place publisher" match="any">
345 <group prefix=" (" suffix=")" delimiter=", ">
346 <group delimiter=" ">
347 <choose>
348 <if variable="title" match="none"> </if>
349 <else-if type="thesis speech" match="any">
350 <text variable="genre"/>
351 </else-if>
352 </choose>
353 <text macro="event"/>
354 </group>
355 <text macro="publisher"/>
356 <text macro="issued"/>
357 </group>
358 </else-if>
359 <else>
360 <text macro="issued" prefix=", "/>
361 </else>
362 </choose>
363 </macro>
364 <macro name="access-note">
365 <group delimiter=", ">
366 <choose>
367 <if type="graphic report" match="any">
368 <text macro="archive-note"/>
369 </if>
370 <else-if type="book thesis chapter article-journal article-newspaper article-magazine" match="none">
371 <text macro="archive-note"/>
372 </else-if>
373 </choose>
374 <choose>
375 <if type="legal_case" match="none">
376 <text variable="URL"/>
377 </if>
378 </choose>
379 </group>
380 </macro>
381 <citation>
382 <option name="et-al-min" value="4"/>
383 <option name="et-al-use-first" value="1"/>
384 <option name="et-al-subsequent-min" value="4"/>
385 <option name="et-al-subsequent-use-first" value="1"/>
386 <option name="disambiguate-add-names" value="true"/>
387 <option name="disambiguate-add-givenname" value="true"/>
388 <layout prefix="" suffix="." delimiter="; ">
389 <choose>
390
391 <else>
392 <group delimiter=", ">
393 <text macro="contributors-note"/>
394 <text macro="title-note"/>
395 <text macro="description-note"/>
396 <text macro="secondary-contributors-note"/>
397 <text macro="container-title-note"/>
398 <text macro="container-contributors-note"/>
399 </group>
400 <text macro="locators-note"/>
401 <text macro="collection-title" prefix=", "/>
402 <text macro="issue-note"/>
403 <text macro="locators-newspaper" prefix=", "/>
404 <text macro="point-locators"/>
405 <text macro="access-note" prefix=", "/>
406 </else>
407 </choose>
408 </layout>
409 </citation>
410 <bibliography>
411 <option name="hanging-indent" value="true"/>
412 <option name="et-al-min" value="11"/>
413 <option name="et-al-use-first" value="7"/>
414 <option name="subsequent-author-substitute" value="---"/>
415 <option name="entry-spacing" value="0"/>
416 <sort>
417 <key macro="sort-key"/>
418 <key variable="issued"/>
419 </sort>
420 <layout suffix=".">
421 -<group delimiter=". ">
422 <text macro="contributors"/>
423 <text macro="title"/>
424 <text macro="description"/>
425 <text macro="secondary-contributors"/>
426 <group delimiter=", ">
427 <text macro="container-title"/>
428 <text macro="container-contributors"/>
429 <text macro="locators-chapter"/>
430 </group>
431 </group>
432 <text macro="locators"/>
433 <text macro="collection-title" prefix=". "/>
434 <text macro="issue"/>
435 <text macro="locators-newspaper" prefix=", "/>
436 <text macro="locators-journal"/>
437 <text macro="access" prefix=". "/>
438 </layout>
439 </bibliography>
440 </style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment