csl 1.5.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.github/workflows/ci.yml +26 -0
- data/BSDL +1 -1
- data/Gemfile +0 -1
- data/README.md +1 -5
- data/Rakefile +0 -8
- data/csl.gemspec +3 -3
- data/cucumber.yml +1 -1
- data/lib/csl/locale.rb +4 -4
- data/lib/csl/node.rb +2 -2
- data/lib/csl/schema.rb +148 -22
- data/lib/csl/treelike.rb +11 -7
- data/lib/csl/version.rb +1 -1
- data/vendor/schema/csl-choose.rng +130 -0
- data/vendor/schema/csl-terms.rng +53 -17
- data/vendor/schema/csl-types.rng +10 -0
- data/vendor/schema/csl-variables.rng +51 -18
- data/vendor/schema/csl.rng +81 -252
- metadata +23 -7
data/vendor/schema/csl.rng
CHANGED
@@ -1,33 +1,24 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<grammar xmlns:
|
2
|
+
<grammar xmlns:cs="http://purl.org/net/xbiblio/csl" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:bibo="http://purl.org/ontology/bibo/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
3
3
|
<!-- CSL schema metadata -->
|
4
4
|
<dc:title>Citation Style Language</dc:title>
|
5
5
|
<dc:creator>Bruce D'Arcus</dc:creator>
|
6
6
|
<dc:creator>Simon Kornblith</dc:creator>
|
7
7
|
<bibo:editor>Frank Bennett</bibo:editor>
|
8
8
|
<bibo:editor>Rintze Zelle</bibo:editor>
|
9
|
-
<dc:rights>Copyright 2007-
|
9
|
+
<dc:rights>Copyright 2007-2020 Citation Style Language and contributors</dc:rights>
|
10
|
+
<dc:license>MIT license</dc:license>
|
10
11
|
<dc:description>RELAX NG compact schema for the Citation Style Language (CSL).</dc:description>
|
11
|
-
|
12
|
-
<sch:ns uri="http://purl.org/net/xbiblio/csl" prefix="cs"/>
|
13
|
-
<sch:pattern name="Non-existing macros">
|
14
|
-
<sch:rule context="//cs:text[@macro]">
|
15
|
-
<sch:assert test="@macro = /cs:style/cs:macro/@name">This macro call has no corresponding macro.</sch:assert>
|
16
|
-
</sch:rule>
|
17
|
-
<sch:rule context="//cs:key[@macro]">
|
18
|
-
<sch:assert test="@macro = /cs:style/cs:macro/@name">This macro call has no corresponding macro.</sch:assert>
|
19
|
-
</sch:rule>
|
20
|
-
</sch:pattern>
|
21
|
-
<include href="csl-terms.rng">
|
12
|
+
<include href="csl-choose.rng">
|
22
13
|
<a:documentation>Subparts of the CSL schema</a:documentation>
|
23
14
|
</include>
|
15
|
+
<include href="csl-terms.rng"/>
|
24
16
|
<include href="csl-types.rng"/>
|
25
17
|
<include href="csl-variables.rng"/>
|
26
18
|
<include href="csl-categories.rng"/>
|
19
|
+
<!-- ============================================================================== -->
|
27
20
|
<div>
|
28
|
-
<a:documentation>
|
29
|
-
<xhtml:h2>cs:style and cs:locale - Root Elements</xhtml:h2>
|
30
|
-
</a:documentation>
|
21
|
+
<a:documentation>cs:style and cs:locale - Root Elements</a:documentation>
|
31
22
|
<start>
|
32
23
|
<choice>
|
33
24
|
<ref name="independent-style.style"/>
|
@@ -48,20 +39,18 @@
|
|
48
39
|
<ref name="style.options"/>
|
49
40
|
<ref name="version"/>
|
50
41
|
<ref name="independent-style.style.info"/>
|
51
|
-
<
|
52
|
-
<
|
53
|
-
<
|
54
|
-
|
55
|
-
|
56
|
-
<
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
<
|
61
|
-
|
62
|
-
|
63
|
-
</interleave>
|
64
|
-
</optional>
|
42
|
+
<interleave>
|
43
|
+
<zeroOrMore>
|
44
|
+
<ref name="style.locale"/>
|
45
|
+
</zeroOrMore>
|
46
|
+
<zeroOrMore>
|
47
|
+
<ref name="style.macro"/>
|
48
|
+
</zeroOrMore>
|
49
|
+
<ref name="style.citation"/>
|
50
|
+
<optional>
|
51
|
+
<ref name="style.bibliography"/>
|
52
|
+
</optional>
|
53
|
+
</interleave>
|
65
54
|
</element>
|
66
55
|
</define>
|
67
56
|
<define name="dependent-style.style">
|
@@ -69,26 +58,6 @@
|
|
69
58
|
<ref name="style.default-locale"/>
|
70
59
|
<ref name="version"/>
|
71
60
|
<ref name="dependent-style.style.info"/>
|
72
|
-
<ref name="dependent-style.style.legacy-attributes"/>
|
73
|
-
</element>
|
74
|
-
</define>
|
75
|
-
<define name="locale-file.locale">
|
76
|
-
<element name="cs:locale">
|
77
|
-
<attribute name="xml:lang">
|
78
|
-
<a:documentation>Specify the locale of the locale file.</a:documentation>
|
79
|
-
<data type="language"/>
|
80
|
-
</attribute>
|
81
|
-
<ref name="version"/>
|
82
|
-
<optional>
|
83
|
-
<ref name="locale-file.locale.info"/>
|
84
|
-
</optional>
|
85
|
-
<interleave>
|
86
|
-
<ref name="locale.style-options"/>
|
87
|
-
<oneOrMore>
|
88
|
-
<ref name="locale.date"/>
|
89
|
-
</oneOrMore>
|
90
|
-
<ref name="locale.terms"/>
|
91
|
-
</interleave>
|
92
61
|
</element>
|
93
62
|
</define>
|
94
63
|
<define name="style.default-locale">
|
@@ -101,27 +70,14 @@
|
|
101
70
|
</define>
|
102
71
|
<define name="version">
|
103
72
|
<attribute name="version" a:defaultValue="1.0">
|
104
|
-
<a:documentation>Indicate CSL version compatibility
|
73
|
+
<a:documentation>Indicate CSL version compatibility.</a:documentation>
|
105
74
|
<value>1.0</value>
|
106
75
|
</attribute>
|
107
76
|
</define>
|
108
|
-
<define name="dependent-style.style.legacy-attributes">
|
109
|
-
<a:documentation>Obsolete for dependent styles. Will be disallowed with CSL 1.1.</a:documentation>
|
110
|
-
<optional>
|
111
|
-
<attribute name="class">
|
112
|
-
<choice>
|
113
|
-
<value>in-text</value>
|
114
|
-
<value>note</value>
|
115
|
-
</choice>
|
116
|
-
</attribute>
|
117
|
-
</optional>
|
118
|
-
<ref name="style.options"/>
|
119
|
-
</define>
|
120
77
|
</div>
|
78
|
+
<!-- ============================================================================== -->
|
121
79
|
<div>
|
122
|
-
<a:documentation>
|
123
|
-
<xhtml:h2>cs:info - Style and Locale File Metadata</xhtml:h2>
|
124
|
-
</a:documentation>
|
80
|
+
<a:documentation>cs:info - Style and Locale File Metadata</a:documentation>
|
125
81
|
<define name="independent-style.style.info">
|
126
82
|
<a:documentation>Metadata for independent styles.</a:documentation>
|
127
83
|
<element name="cs:info">
|
@@ -273,8 +229,9 @@ relevant (using the "field" attribute).</a:documentation>
|
|
273
229
|
</define>
|
274
230
|
<define name="info.id">
|
275
231
|
<element name="cs:id">
|
276
|
-
<a:documentation>Specify the
|
277
|
-
should
|
232
|
+
<a:documentation>Specify the unique and stable identifier for the style. A URI
|
233
|
+
is valid, but new styles should use a UUID to ensure stability
|
234
|
+
and uniqueness.</a:documentation>
|
278
235
|
<data type="anyURI"/>
|
279
236
|
</element>
|
280
237
|
</define>
|
@@ -317,9 +274,6 @@ digit (a numeral digit or roman X), e.g. "1234-1231".</a:documentation>
|
|
317
274
|
<a:documentation>URI of the style from which the current style is derived.</a:documentation>
|
318
275
|
<value>documentation</value>
|
319
276
|
<a:documentation>URI of style documentation.</a:documentation>
|
320
|
-
<value>independent-parent</value>
|
321
|
-
<a:documentation>Obsolete for independent styles. Will be disallowed with
|
322
|
-
CSL 1.1.</a:documentation>
|
323
277
|
</choice>
|
324
278
|
</attribute>
|
325
279
|
<ref name="info-text"/>
|
@@ -340,9 +294,6 @@ CSL 1.1.</a:documentation>
|
|
340
294
|
processing. Required for dependent styles.</a:documentation>
|
341
295
|
<value>documentation</value>
|
342
296
|
<a:documentation>URI of style documentation.</a:documentation>
|
343
|
-
<value>template</value>
|
344
|
-
<a:documentation>Obsolete for dependent styles. Will be disallowed with CSL
|
345
|
-
1.1.</a:documentation>
|
346
297
|
</choice>
|
347
298
|
</attribute>
|
348
299
|
<ref name="info-text"/>
|
@@ -396,10 +347,9 @@ processing. Required for dependent styles.</a:documentation>
|
|
396
347
|
<text/>
|
397
348
|
</define>
|
398
349
|
</div>
|
350
|
+
<!-- ============================================================================== -->
|
399
351
|
<div>
|
400
|
-
<a:documentation>
|
401
|
-
<xhtml:h2>cs:locale in Independent Styles</xhtml:h2>
|
402
|
-
</a:documentation>
|
352
|
+
<a:documentation>cs:locale in Independent Styles</a:documentation>
|
403
353
|
<define name="style.locale">
|
404
354
|
<element name="cs:locale">
|
405
355
|
<a:documentation>Use to (re)define localized terms, dates and options.</a:documentation>
|
@@ -424,10 +374,9 @@ processing. Required for dependent styles.</a:documentation>
|
|
424
374
|
</element>
|
425
375
|
</define>
|
426
376
|
</div>
|
377
|
+
<!-- ============================================================================== -->
|
427
378
|
<div>
|
428
|
-
<a:documentation>
|
429
|
-
<xhtml:h2>cs:locale Contents - Localization Data</xhtml:h2>
|
430
|
-
</a:documentation>
|
379
|
+
<a:documentation>cs:locale Contents - Localization Data</a:documentation>
|
431
380
|
<define name="locale.style-options">
|
432
381
|
<a:documentation>Localized global options are specified as attributes in the
|
433
382
|
cs:style-options element. If future versions of CSL include localized
|
@@ -449,6 +398,25 @@ or outside (default) the closing quotation mark.</a:documentation>
|
|
449
398
|
</optional>
|
450
399
|
</element>
|
451
400
|
</define>
|
401
|
+
<define name="locale-file.locale">
|
402
|
+
<element name="cs:locale">
|
403
|
+
<attribute name="xml:lang">
|
404
|
+
<a:documentation>Specify the locale of the locale file.</a:documentation>
|
405
|
+
<data type="language"/>
|
406
|
+
</attribute>
|
407
|
+
<ref name="version"/>
|
408
|
+
<optional>
|
409
|
+
<ref name="locale-file.locale.info"/>
|
410
|
+
</optional>
|
411
|
+
<interleave>
|
412
|
+
<ref name="locale.style-options"/>
|
413
|
+
<oneOrMore>
|
414
|
+
<ref name="locale.date"/>
|
415
|
+
</oneOrMore>
|
416
|
+
<ref name="locale.terms"/>
|
417
|
+
</interleave>
|
418
|
+
</element>
|
419
|
+
</define>
|
452
420
|
<define name="locale.date">
|
453
421
|
<element name="cs:date">
|
454
422
|
<ref name="date.form"/>
|
@@ -602,10 +570,9 @@ or outside (default) the closing quotation mark.</a:documentation>
|
|
602
570
|
</element>
|
603
571
|
</define>
|
604
572
|
</div>
|
573
|
+
<!-- ============================================================================== -->
|
605
574
|
<div>
|
606
|
-
<a:documentation>
|
607
|
-
<xhtml:h2>cs:macro</xhtml:h2>
|
608
|
-
</a:documentation>
|
575
|
+
<a:documentation>cs:macro</a:documentation>
|
609
576
|
<define name="style.macro">
|
610
577
|
<element name="cs:macro">
|
611
578
|
<a:documentation>Use to create collections of (reusable) formatting instructions.</a:documentation>
|
@@ -617,6 +584,10 @@ or outside (default) the closing quotation mark.</a:documentation>
|
|
617
584
|
</oneOrMore>
|
618
585
|
</element>
|
619
586
|
</define>
|
587
|
+
</div>
|
588
|
+
<!-- ============================================================================== -->
|
589
|
+
<div>
|
590
|
+
<a:documentation>Rendering Elements</a:documentation>
|
620
591
|
<define name="rendering-element">
|
621
592
|
<choice>
|
622
593
|
<ref name="rendering-element.names"/>
|
@@ -629,10 +600,9 @@ or outside (default) the closing quotation mark.</a:documentation>
|
|
629
600
|
</choice>
|
630
601
|
</define>
|
631
602
|
</div>
|
603
|
+
<!-- ============================================================================== -->
|
632
604
|
<div>
|
633
|
-
<a:documentation>
|
634
|
-
<xhtml:h2>cs:citation and cs:bibliography</xhtml:h2>
|
635
|
-
</a:documentation>
|
605
|
+
<a:documentation>cs:citation and cs:bibliography</a:documentation>
|
636
606
|
<define name="style.citation">
|
637
607
|
<element name="cs:citation">
|
638
608
|
<a:documentation>Use to describe the formatting of citations.</a:documentation>
|
@@ -673,10 +643,9 @@ or outside (default) the closing quotation mark.</a:documentation>
|
|
673
643
|
</element>
|
674
644
|
</define>
|
675
645
|
</div>
|
646
|
+
<!-- ============================================================================== -->
|
676
647
|
<div>
|
677
|
-
<a:documentation>
|
678
|
-
<xhtml:h2>cs:names Rendering Element</xhtml:h2>
|
679
|
-
</a:documentation>
|
648
|
+
<a:documentation>cs:names Rendering Element</a:documentation>
|
680
649
|
<define name="rendering-element.names">
|
681
650
|
<element name="cs:names">
|
682
651
|
<ref name="names.attributes"/>
|
@@ -689,9 +658,9 @@ or outside (default) the closing quotation mark.</a:documentation>
|
|
689
658
|
<ref name="names.et-al"/>
|
690
659
|
</optional>
|
691
660
|
</group>
|
692
|
-
<
|
661
|
+
<optional>
|
693
662
|
<ref name="names.label"/>
|
694
|
-
</
|
663
|
+
</optional>
|
695
664
|
</interleave>
|
696
665
|
<optional>
|
697
666
|
<ref name="names.substitute"/>
|
@@ -874,7 +843,7 @@ result of "name-as-sort-order" (e.g., ", " in "Doe, John").</a:documentation>
|
|
874
843
|
</define>
|
875
844
|
<define name="names.et-al">
|
876
845
|
<element name="cs:et-al">
|
877
|
-
<a:documentation>Specify the term used for et-al abbreviation and its formatting
|
846
|
+
<a:documentation>Specify the term used for et-al abbreviation and its formatting.</a:documentation>
|
878
847
|
<optional>
|
879
848
|
<attribute name="term" a:defaultValue="et-al">
|
880
849
|
<a:documentation>Select the term to use for et-al abbreviation.</a:documentation>
|
@@ -885,13 +854,8 @@ result of "name-as-sort-order" (e.g., ", " in "Doe, John").</a:documentation>
|
|
885
854
|
</attribute>
|
886
855
|
</optional>
|
887
856
|
<ref name="font-formatting"/>
|
888
|
-
<ref name="names.et-al.legacy-attributes"/>
|
889
857
|
</element>
|
890
858
|
</define>
|
891
|
-
<define name="names.et-al.legacy-attributes">
|
892
|
-
<a:documentation>Ignored in CSL 1.0.1. Will be disallowed with CSL 1.1.</a:documentation>
|
893
|
-
<ref name="affixes"/>
|
894
|
-
</define>
|
895
859
|
<define name="names.label">
|
896
860
|
<a:documentation>Inherits variable from the parent cs:names element.</a:documentation>
|
897
861
|
<element name="cs:label">
|
@@ -922,10 +886,9 @@ parent cs:names element are empty.</a:documentation>
|
|
922
886
|
</element>
|
923
887
|
</define>
|
924
888
|
</div>
|
889
|
+
<!-- ============================================================================== -->
|
925
890
|
<div>
|
926
|
-
<a:documentation>
|
927
|
-
<xhtml:h2>cs:date Rendering Element</xhtml:h2>
|
928
|
-
</a:documentation>
|
891
|
+
<a:documentation>cs:date Rendering Element</a:documentation>
|
929
892
|
<define name="rendering-element.date">
|
930
893
|
<element name="cs:date">
|
931
894
|
<attribute name="variable">
|
@@ -1055,10 +1018,9 @@ delimiter is retrieved from the largest date part ("day", "month" or
|
|
1055
1018
|
</optional>
|
1056
1019
|
</define>
|
1057
1020
|
</div>
|
1021
|
+
<!-- ============================================================================== -->
|
1058
1022
|
<div>
|
1059
|
-
<a:documentation>
|
1060
|
-
<xhtml:h2>cs:text Rendering Element</xhtml:h2>
|
1061
|
-
</a:documentation>
|
1023
|
+
<a:documentation>cs:text Rendering Element</a:documentation>
|
1062
1024
|
<define name="rendering-element.text">
|
1063
1025
|
<element name="cs:text">
|
1064
1026
|
<a:documentation>Use to call macros, render variables, terms, or verbatim text.</a:documentation>
|
@@ -1114,10 +1076,9 @@ delimiter is retrieved from the largest date part ("day", "month" or
|
|
1114
1076
|
</choice>
|
1115
1077
|
</define>
|
1116
1078
|
</div>
|
1079
|
+
<!-- ============================================================================== -->
|
1117
1080
|
<div>
|
1118
|
-
<a:documentation>
|
1119
|
-
<xhtml:h2>cs:number Rendering Element</xhtml:h2>
|
1120
|
-
</a:documentation>
|
1081
|
+
<a:documentation>cs:number Rendering Element</a:documentation>
|
1121
1082
|
<define name="rendering-element.number">
|
1122
1083
|
<element name="cs:number">
|
1123
1084
|
<a:documentation>Use to render a number variable.</a:documentation>
|
@@ -1146,10 +1107,9 @@ delimiter is retrieved from the largest date part ("day", "month" or
|
|
1146
1107
|
</optional>
|
1147
1108
|
</define>
|
1148
1109
|
</div>
|
1110
|
+
<!-- ============================================================================== -->
|
1149
1111
|
<div>
|
1150
|
-
<a:documentation>
|
1151
|
-
<xhtml:h2>cs:label Rendering Element</xhtml:h2>
|
1152
|
-
</a:documentation>
|
1112
|
+
<a:documentation>cs:label Rendering Element</a:documentation>
|
1153
1113
|
<define name="rendering-element.label">
|
1154
1114
|
<element name="cs:label">
|
1155
1115
|
<a:documentation>Use to render a term whose pluralization depends on the content of a
|
@@ -1194,10 +1154,9 @@ variable. E.g., if "page" variable holds a range, the plural label
|
|
1194
1154
|
<ref name="text-case"/>
|
1195
1155
|
</define>
|
1196
1156
|
</div>
|
1157
|
+
<!-- ============================================================================== -->
|
1197
1158
|
<div>
|
1198
|
-
<a:documentation>
|
1199
|
-
<xhtml:h2>cs:group Rendering Element</xhtml:h2>
|
1200
|
-
</a:documentation>
|
1159
|
+
<a:documentation>cs:group Rendering Element</a:documentation>
|
1201
1160
|
<define name="rendering-element.group">
|
1202
1161
|
<element name="cs:group">
|
1203
1162
|
<a:documentation>Use to group rendering elements. Groups are useful for setting a
|
@@ -1221,10 +1180,9 @@ are empty.</a:documentation>
|
|
1221
1180
|
</optional>
|
1222
1181
|
</define>
|
1223
1182
|
</div>
|
1183
|
+
<!-- ============================================================================== -->
|
1224
1184
|
<div>
|
1225
|
-
<a:documentation>
|
1226
|
-
<xhtml:h2>Options</xhtml:h2>
|
1227
|
-
</a:documentation>
|
1185
|
+
<a:documentation>Style Options</a:documentation>
|
1228
1186
|
<define name="style.options">
|
1229
1187
|
<ref name="style.demote-non-dropping-particle"/>
|
1230
1188
|
<ref name="style.initialize-with-hyphen"/>
|
@@ -1275,10 +1233,12 @@ initialized with ("J-L") or without a hyphen ("JL").</a:documentation>
|
|
1275
1233
|
<attribute name="page-range-format">
|
1276
1234
|
<a:documentation>Reformat page ranges in the "page" variable.</a:documentation>
|
1277
1235
|
<choice>
|
1278
|
-
<value>chicago</value>
|
1279
1236
|
<value>expanded</value>
|
1280
1237
|
<value>minimal</value>
|
1281
1238
|
<value>minimal-two</value>
|
1239
|
+
<value>chicago</value>
|
1240
|
+
<value>chicago-15</value>
|
1241
|
+
<value>chicago-16</value>
|
1282
1242
|
</choice>
|
1283
1243
|
</attribute>
|
1284
1244
|
</optional>
|
@@ -1474,10 +1434,9 @@ and substitutes for each name.</a:documentation>
|
|
1474
1434
|
</optional>
|
1475
1435
|
</define>
|
1476
1436
|
</div>
|
1437
|
+
<!-- ============================================================================== -->
|
1477
1438
|
<div>
|
1478
|
-
<a:documentation>
|
1479
|
-
<xhtml:h2>cs:sort - Sorting</xhtml:h2>
|
1480
|
-
</a:documentation>
|
1439
|
+
<a:documentation>cs:sort - Sorting</a:documentation>
|
1481
1440
|
<define name="sort">
|
1482
1441
|
<element name="cs:sort">
|
1483
1442
|
<a:documentation>Specify how cites and bibliographic entries should be sorted. By
|
@@ -1531,138 +1490,7 @@ activated. Overrides the values set on the
|
|
1531
1490
|
</element>
|
1532
1491
|
</define>
|
1533
1492
|
</div>
|
1534
|
-
|
1535
|
-
<a:documentation>
|
1536
|
-
<xhtml:h2>cs:choose - Conditional Statements</xhtml:h2>
|
1537
|
-
</a:documentation>
|
1538
|
-
<define name="rendering-element.choose">
|
1539
|
-
<element name="cs:choose">
|
1540
|
-
<a:documentation>Use to conditionally render rendering elements.</a:documentation>
|
1541
|
-
<ref name="choose.if"/>
|
1542
|
-
<zeroOrMore>
|
1543
|
-
<ref name="choose.else-if"/>
|
1544
|
-
</zeroOrMore>
|
1545
|
-
<optional>
|
1546
|
-
<ref name="choose.else"/>
|
1547
|
-
</optional>
|
1548
|
-
</element>
|
1549
|
-
</define>
|
1550
|
-
<define name="choose.if">
|
1551
|
-
<element name="cs:if">
|
1552
|
-
<oneOrMore>
|
1553
|
-
<ref name="condition"/>
|
1554
|
-
</oneOrMore>
|
1555
|
-
<ref name="match"/>
|
1556
|
-
<zeroOrMore>
|
1557
|
-
<ref name="rendering-element"/>
|
1558
|
-
</zeroOrMore>
|
1559
|
-
</element>
|
1560
|
-
</define>
|
1561
|
-
<define name="choose.else-if">
|
1562
|
-
<element name="cs:else-if">
|
1563
|
-
<oneOrMore>
|
1564
|
-
<ref name="condition"/>
|
1565
|
-
</oneOrMore>
|
1566
|
-
<ref name="match"/>
|
1567
|
-
<zeroOrMore>
|
1568
|
-
<ref name="rendering-element"/>
|
1569
|
-
</zeroOrMore>
|
1570
|
-
</element>
|
1571
|
-
</define>
|
1572
|
-
<define name="choose.else">
|
1573
|
-
<element name="cs:else">
|
1574
|
-
<oneOrMore>
|
1575
|
-
<ref name="rendering-element"/>
|
1576
|
-
</oneOrMore>
|
1577
|
-
</element>
|
1578
|
-
</define>
|
1579
|
-
<define name="condition">
|
1580
|
-
<choice>
|
1581
|
-
<attribute name="disambiguate" a:defaultValue="true">
|
1582
|
-
<a:documentation>If used, the element content is only rendered if it disambiguates two
|
1583
|
-
otherwise identical citations. This attempt at disambiguation is only
|
1584
|
-
made after all other disambiguation methods have failed.</a:documentation>
|
1585
|
-
<value>true</value>
|
1586
|
-
</attribute>
|
1587
|
-
<attribute name="is-numeric">
|
1588
|
-
<a:documentation>Tests whether the given variables contain numeric text.</a:documentation>
|
1589
|
-
<list>
|
1590
|
-
<oneOrMore>
|
1591
|
-
<ref name="variables"/>
|
1592
|
-
</oneOrMore>
|
1593
|
-
</list>
|
1594
|
-
</attribute>
|
1595
|
-
<attribute name="is-uncertain-date">
|
1596
|
-
<a:documentation>Tests whether the given date variables contain approximate dates.</a:documentation>
|
1597
|
-
<list>
|
1598
|
-
<oneOrMore>
|
1599
|
-
<ref name="variables.dates"/>
|
1600
|
-
</oneOrMore>
|
1601
|
-
</list>
|
1602
|
-
</attribute>
|
1603
|
-
<attribute name="locator">
|
1604
|
-
<a:documentation>Tests whether the locator matches the given locator types.</a:documentation>
|
1605
|
-
<list>
|
1606
|
-
<oneOrMore>
|
1607
|
-
<choice>
|
1608
|
-
<ref name="terms.locator.testable"/>
|
1609
|
-
<value>sub-verbo</value>
|
1610
|
-
</choice>
|
1611
|
-
</oneOrMore>
|
1612
|
-
</list>
|
1613
|
-
</attribute>
|
1614
|
-
<attribute name="position">
|
1615
|
-
<a:documentation>Tests whether the cite position matches the given positions.</a:documentation>
|
1616
|
-
<list>
|
1617
|
-
<oneOrMore>
|
1618
|
-
<choice>
|
1619
|
-
<value>first</value>
|
1620
|
-
<value>subsequent</value>
|
1621
|
-
<value>ibid</value>
|
1622
|
-
<value>ibid-with-locator</value>
|
1623
|
-
<value>near-note</value>
|
1624
|
-
</choice>
|
1625
|
-
</oneOrMore>
|
1626
|
-
</list>
|
1627
|
-
</attribute>
|
1628
|
-
<attribute name="type">
|
1629
|
-
<a:documentation>Tests whether the item matches the given types.</a:documentation>
|
1630
|
-
<list>
|
1631
|
-
<oneOrMore>
|
1632
|
-
<ref name="item-types"/>
|
1633
|
-
</oneOrMore>
|
1634
|
-
</list>
|
1635
|
-
</attribute>
|
1636
|
-
<attribute name="variable">
|
1637
|
-
<a:documentation>Tests whether the default ("long") forms of the given variables
|
1638
|
-
contain non-empty values.</a:documentation>
|
1639
|
-
<list>
|
1640
|
-
<oneOrMore>
|
1641
|
-
<ref name="variables"/>
|
1642
|
-
</oneOrMore>
|
1643
|
-
</list>
|
1644
|
-
</attribute>
|
1645
|
-
</choice>
|
1646
|
-
</define>
|
1647
|
-
<define name="match">
|
1648
|
-
<optional>
|
1649
|
-
<attribute name="match" a:defaultValue="all">
|
1650
|
-
<a:documentation>Set the testing logic.</a:documentation>
|
1651
|
-
<choice>
|
1652
|
-
<value>all</value>
|
1653
|
-
<a:documentation>Element only tests "true" when all conditions test "true" for all
|
1654
|
-
given test values.</a:documentation>
|
1655
|
-
<value>any</value>
|
1656
|
-
<a:documentation>Element tests "true" when any condition tests "true" for any given
|
1657
|
-
test value.</a:documentation>
|
1658
|
-
<value>none</value>
|
1659
|
-
<a:documentation>Element only tests "true" when none of the conditions test "true"
|
1660
|
-
for any given test value.</a:documentation>
|
1661
|
-
</choice>
|
1662
|
-
</attribute>
|
1663
|
-
</optional>
|
1664
|
-
</define>
|
1665
|
-
</div>
|
1493
|
+
<!-- ============================================================================== -->
|
1666
1494
|
<div>
|
1667
1495
|
<a:documentation>Formatting attributes.</a:documentation>
|
1668
1496
|
<define name="affixes">
|
@@ -1778,7 +1606,8 @@ remain in their original case).</a:documentation>
|
|
1778
1606
|
<value>title</value>
|
1779
1607
|
<a:documentation>Renders text in title case.</a:documentation>
|
1780
1608
|
<value>sentence</value>
|
1781
|
-
<a:documentation>Renders text in sentence case
|
1609
|
+
<a:documentation>Renders text in sentence case.
|
1610
|
+
Deprecated. Will be removed in CSL 1.1</a:documentation>
|
1782
1611
|
</choice>
|
1783
1612
|
</attribute>
|
1784
1613
|
</optional>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvester Keil
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: namae
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rexml
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
description: |
|
28
42
|
A Ruby parser and full API for the Citation Style Language (CSL),
|
29
43
|
an open XML-based language to describe the formatting of citations
|
@@ -35,6 +49,7 @@ extensions: []
|
|
35
49
|
extra_rdoc_files: []
|
36
50
|
files:
|
37
51
|
- ".document"
|
52
|
+
- ".github/workflows/ci.yml"
|
38
53
|
- ".gitignore"
|
39
54
|
- ".yardopts"
|
40
55
|
- AGPL
|
@@ -76,6 +91,7 @@ files:
|
|
76
91
|
- lib/csl/treelike.rb
|
77
92
|
- lib/csl/version.rb
|
78
93
|
- vendor/schema/csl-categories.rng
|
94
|
+
- vendor/schema/csl-choose.rng
|
79
95
|
- vendor/schema/csl-terms.rng
|
80
96
|
- vendor/schema/csl-types.rng
|
81
97
|
- vendor/schema/csl-variables.rng
|
@@ -83,8 +99,9 @@ files:
|
|
83
99
|
homepage: https://github.com/inukshuk/csl-ruby
|
84
100
|
licenses:
|
85
101
|
- AGPL-3.0
|
102
|
+
- BSD-2-Clause
|
86
103
|
metadata: {}
|
87
|
-
post_install_message:
|
104
|
+
post_install_message:
|
88
105
|
rdoc_options: []
|
89
106
|
require_paths:
|
90
107
|
- lib
|
@@ -99,9 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
116
|
- !ruby/object:Gem::Version
|
100
117
|
version: '0'
|
101
118
|
requirements: []
|
102
|
-
|
103
|
-
|
104
|
-
signing_key:
|
119
|
+
rubygems_version: 3.2.15
|
120
|
+
signing_key:
|
105
121
|
specification_version: 4
|
106
122
|
summary: A Ruby CSL parser and library
|
107
123
|
test_files: []
|