csl 1.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb03f0268591576f09ecfcdae39744460bc1b9d35b9b63f186e1c5dee8e131d8
4
- data.tar.gz: b633824d0f2bc138f74a8747a1785edf2194a6eb2013daa3bac57469474de1c4
3
+ metadata.gz: c9def0950732e2af79808e712e972c454f49c18b8e71f31dcae1917a61d67b65
4
+ data.tar.gz: 996804a7e5e66aaad59f0679039b6a56b88d408f90a1b0414e6f32741ef0cf26
5
5
  SHA512:
6
- metadata.gz: 41a71ce9c56b13f24c1713c237e90a555113c5a06ec0800e71c53750aa3c9048c1582b1aa3f09ce86d9b964dd84bdca94a9439f84cbc51f35654b1abc6b5a5e1
7
- data.tar.gz: 4fbe146239c6afc00e3f52768a09758549e0c6c92ed386a9a4c7b97dc1e784564773bca261f4bf848e202ccce31406604db8560fc3573c2b6746e4817c84637a
6
+ metadata.gz: f2e5824f038b51ce12dc80cb4bab54d59f2adea043ecf7614fb000742e518f67c082cc09e1f44f0b76ffc52ad24c2f5410c7c866e944ea491b1dd66c599da657
7
+ data.tar.gz: e51bdbd453bbe73c78fce162643a41c4c61697bb3f443dcdf08f7bea8a8fbea28e89cf5d3bfa07876dab1e188dfe5c010d9cff407dcedc8157c1e8af64f12ed9
data/lib/csl/schema.rb CHANGED
@@ -2,46 +2,172 @@ module CSL
2
2
 
3
3
  class Schema
4
4
 
5
- @version = '1.0.1'.freeze
5
+ @version = '1.0.2'.freeze
6
6
  @major_version = '1.0'.freeze
7
7
 
8
8
  @namespace = 'http://purl.org/net/xbiblio/csl'.freeze
9
9
  @preamble = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n".freeze
10
10
 
11
- @default_license = 'http://creativecommons.org/licenses/by-sa/3.0/'
11
+ @default_license = 'https://creativecommons.org/licenses/by-sa/4.0/'
12
12
  @default_rights_string =
13
- 'This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License'
14
-
15
- @types = %w{ article article-journal article-magazine article-newspaper
16
- bill book broadcast chapter entry entry-dictionary entry-encyclopedia
17
- figure graphic interview legal_case legislation manuscript map
18
- motion_picture musical_score pamphlet paper-conference patent
19
- personal_communication post post-weblog report review review-book song
20
- speech thesis treaty webpage }.map(&:to_sym).freeze
13
+ 'This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.'
14
+
15
+ @types = %w{
16
+ article
17
+ article-journal
18
+ article-magazine
19
+ article-newspaper
20
+ bill
21
+ book
22
+ broadcast
23
+ chapter
24
+ classic
25
+ collection
26
+ dataset
27
+ document
28
+ entry
29
+ entry-dictionary
30
+ entry-encyclopedia
31
+ event
32
+ figure
33
+ graphic
34
+ hearing
35
+ interview
36
+ legal_case
37
+ legislation
38
+ manuscript
39
+ map
40
+ motion_picture
41
+ musical_score
42
+ pamphlet
43
+ paper-conference
44
+ patent
45
+ performance
46
+ periodical
47
+ personal_communication
48
+ post
49
+ post-weblog
50
+ regulation
51
+ report
52
+ review
53
+ review-book
54
+ software
55
+ song
56
+ speech
57
+ standard
58
+ thesis
59
+ treaty
60
+ webpage
61
+ }.map(&:to_sym).freeze
21
62
 
22
63
  @variables = Hash.new { |h,k| h.fetch(k.to_sym, nil) }.merge({
23
64
  :date => %w{
24
- accessed container event-date issued original-date submitted
65
+ accessed
66
+ available-date
67
+ event-date
68
+ issued
69
+ original-date
70
+ submitted
25
71
  },
26
72
 
27
73
  :names => %w{
28
- author collection-editor composer container-author recipient editor
29
- editorial-director illustrator interviewer original-author translator
74
+ author
75
+ chair
76
+ collection-editor
77
+ compiler
78
+ composer
79
+ container-author
80
+ contributor
81
+ creator
82
+ curator
83
+ editor
84
+ editorial-director
85
+ executive-producer
86
+ guest
87
+ host
88
+ illustrator
89
+ interviewer
90
+ narrator
91
+ organizer
92
+ original-author
93
+ performer
94
+ producer
95
+ recipient
96
+ translator
97
+ writer
30
98
  },
31
99
 
32
100
  :number => %w{
33
- chapter-number collection-number edition issue number number-of-pages
34
- number-of-volumes volume
101
+ chapter-number
102
+ citation-number
103
+ collection-number
104
+ edition
105
+ first-reference-note-number
106
+ issue
107
+ locator
108
+ number
109
+ number-of-pages
110
+ number-of-volumes
111
+ page
112
+ page-first
113
+ part-number
114
+ printing-number
115
+ section
116
+ supplement-number
117
+ version
118
+ volume
35
119
  },
36
120
 
37
121
  :text => %w{
38
- abstract annote archive archive_location archive-place authority
39
- call-number citation-label citation-number collection-title
40
- container-title container-title-short dimensions DOI event event-place
41
- first-reference-note-number genre ISBN ISSN jurisdiction keyword
42
- locator medium note original-publisher original-publisher-place
43
- original-title page page-first PMID PMCID publisher publisher-place
44
- references section source status title title-short URL version
122
+ abstract
123
+ annote
124
+ archive
125
+ archive_collection
126
+ archive_location
127
+ archive-place
128
+ authority
129
+ call-number
130
+ citation-key
131
+ citation-label
132
+ collection-title
133
+ container-title
134
+ container-title-short
135
+ dimensions
136
+ division
137
+ DOI
138
+ event
139
+ event-place
140
+ event-title
141
+ genre
142
+ ISBN
143
+ ISSN
144
+ jurisdiction
145
+ keyword
146
+ language
147
+ license
148
+ medium
149
+ note
150
+ original-publisher
151
+ original-publisher-place
152
+ original-title
153
+ part
154
+ part-title
155
+ PMCID
156
+ PMID
157
+ printing
158
+ publisher
159
+ publisher-place
160
+ references
161
+ reviewed-genre
162
+ reviewed-title
163
+ scale
164
+ source
165
+ status
166
+ title
167
+ title-short
168
+ translated-title
169
+ URL
170
+ volume-title
45
171
  year-suffix
46
172
  }
47
173
  })
data/lib/csl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module CSL
2
- VERSION = '1.6.0'.freeze
2
+ VERSION = '2.0.0'.freeze
3
3
  end
@@ -0,0 +1,130 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <grammar xmlns:cs="http://purl.org/net/xbiblio/csl" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0">
3
+ <div>
4
+ <a:documentation>cs:choose - Conditional Statements"</a:documentation>
5
+ <define name="rendering-element.choose">
6
+ <element name="cs:choose">
7
+ <a:documentation>Use to conditionally render rendering elements.</a:documentation>
8
+ <ref name="choose.if"/>
9
+ <zeroOrMore>
10
+ <ref name="choose.else-if"/>
11
+ </zeroOrMore>
12
+ <optional>
13
+ <ref name="choose.else"/>
14
+ </optional>
15
+ </element>
16
+ </define>
17
+ <define name="choose.if">
18
+ <element name="cs:if">
19
+ <oneOrMore>
20
+ <ref name="condition"/>
21
+ </oneOrMore>
22
+ <ref name="match"/>
23
+ <zeroOrMore>
24
+ <ref name="rendering-element"/>
25
+ </zeroOrMore>
26
+ </element>
27
+ </define>
28
+ <define name="choose.else-if">
29
+ <element name="cs:else-if">
30
+ <oneOrMore>
31
+ <ref name="condition"/>
32
+ </oneOrMore>
33
+ <ref name="match"/>
34
+ <zeroOrMore>
35
+ <ref name="rendering-element"/>
36
+ </zeroOrMore>
37
+ </element>
38
+ </define>
39
+ <define name="choose.else">
40
+ <element name="cs:else">
41
+ <oneOrMore>
42
+ <ref name="rendering-element"/>
43
+ </oneOrMore>
44
+ </element>
45
+ </define>
46
+ <define name="condition">
47
+ <choice>
48
+ <attribute name="disambiguate" a:defaultValue="true">
49
+ <a:documentation>If used, the element content is only rendered if it disambiguates two
50
+ otherwise identical citations. This attempt at disambiguation is only
51
+ made after all other disambiguation methods have failed.</a:documentation>
52
+ <value>true</value>
53
+ </attribute>
54
+ <attribute name="is-numeric">
55
+ <a:documentation>Tests whether the given variables contain numeric text.</a:documentation>
56
+ <list>
57
+ <oneOrMore>
58
+ <ref name="variables"/>
59
+ </oneOrMore>
60
+ </list>
61
+ </attribute>
62
+ <attribute name="is-uncertain-date">
63
+ <a:documentation>Tests whether the given date variables contain approximate dates.</a:documentation>
64
+ <list>
65
+ <oneOrMore>
66
+ <ref name="variables.dates"/>
67
+ </oneOrMore>
68
+ </list>
69
+ </attribute>
70
+ <attribute name="locator">
71
+ <a:documentation>Tests whether the locator matches the given locator types.</a:documentation>
72
+ <list>
73
+ <oneOrMore>
74
+ <ref name="terms.locator"/>
75
+ </oneOrMore>
76
+ </list>
77
+ </attribute>
78
+ <attribute name="position">
79
+ <a:documentation>Tests whether the cite position matches the given positions.</a:documentation>
80
+ <list>
81
+ <oneOrMore>
82
+ <choice>
83
+ <value>first</value>
84
+ <value>subsequent</value>
85
+ <value>ibid</value>
86
+ <value>ibid-with-locator</value>
87
+ <value>near-note</value>
88
+ </choice>
89
+ </oneOrMore>
90
+ </list>
91
+ </attribute>
92
+ <attribute name="type">
93
+ <a:documentation>Tests whether the item matches the given types.</a:documentation>
94
+ <list>
95
+ <oneOrMore>
96
+ <ref name="item-types"/>
97
+ </oneOrMore>
98
+ </list>
99
+ </attribute>
100
+ <attribute name="variable">
101
+ <a:documentation>Tests whether the default ("long") forms of the given variables
102
+ contain non-empty values.</a:documentation>
103
+ <list>
104
+ <oneOrMore>
105
+ <ref name="variables"/>
106
+ </oneOrMore>
107
+ </list>
108
+ </attribute>
109
+ </choice>
110
+ </define>
111
+ <define name="match">
112
+ <optional>
113
+ <attribute name="match" a:defaultValue="all">
114
+ <a:documentation>Set the testing logic.</a:documentation>
115
+ <choice>
116
+ <value>all</value>
117
+ <a:documentation>Element only tests "true" when all conditions test "true" for all
118
+ given test values.</a:documentation>
119
+ <value>any</value>
120
+ <a:documentation>Element tests "true" when any condition tests "true" for any given
121
+ test value.</a:documentation>
122
+ <value>none</value>
123
+ <a:documentation>Element only tests "true" when none of the conditions test "true"
124
+ for any given test value.</a:documentation>
125
+ </choice>
126
+ </attribute>
127
+ </optional>
128
+ </define>
129
+ </div>
130
+ </grammar>
@@ -7,6 +7,7 @@
7
7
  <ref name="terms.gender-assignable"/>
8
8
  <ref name="terms.gender-variants"/>
9
9
  <ref name="terms.locator"/>
10
+ <ref name="item-types"/>
10
11
  <ref name="variables.names">
11
12
  <a:documentation>Contributor roles</a:documentation>
12
13
  </ref>
@@ -14,45 +15,72 @@
14
15
  <value>accessed</value>
15
16
  <a:documentation>Miscellaneous terms</a:documentation>
16
17
  <value>ad</value>
18
+ <value>advance-online-publication</value>
19
+ <value>album</value>
17
20
  <value>and</value>
18
21
  <value>and others</value>
19
22
  <value>anonymous</value>
20
23
  <value>at</value>
24
+ <value>audio-recording</value>
21
25
  <value>available at</value>
22
26
  <value>bc</value>
27
+ <value>bce</value>
23
28
  <value>by</value>
29
+ <value>ce</value>
24
30
  <value>circa</value>
25
31
  <value>cited</value>
26
32
  <value>et-al</value>
33
+ <value>film</value>
27
34
  <value>forthcoming</value>
28
35
  <value>from</value>
36
+ <value>henceforth</value>
29
37
  <value>ibid</value>
30
38
  <value>in</value>
31
39
  <value>in press</value>
32
40
  <value>internet</value>
33
41
  <value>interview</value>
34
42
  <value>letter</value>
43
+ <value>loc-cit</value>
35
44
  <value>no date</value>
45
+ <value>no-place</value>
46
+ <value>no-publisher</value>
47
+ <value>on</value>
36
48
  <value>online</value>
49
+ <value>op-cit</value>
50
+ <value>original-work-published</value>
51
+ <value>personal-communication</value>
52
+ <value>podcast</value>
53
+ <value>podcast-episode</value>
54
+ <value>preprint</value>
37
55
  <value>presented at</value>
56
+ <value>radio-broadcast</value>
57
+ <value>radio-series</value>
58
+ <value>radio-series-episode</value>
38
59
  <value>reference</value>
39
60
  <value>retrieved</value>
61
+ <value>review-of</value>
40
62
  <value>scale</value>
41
- <value>version</value>
63
+ <value>special-issue</value>
64
+ <value>special-section</value>
65
+ <value>television-broadcast</value>
66
+ <value>television-series</value>
67
+ <value>television-series-episode</value>
68
+ <value>video</value>
69
+ <value>working-paper</value>
42
70
  <value>open-quote</value>
43
71
  <a:documentation>Punctuation</a:documentation>
44
72
  <value>close-quote</value>
45
73
  <value>open-inner-quote</value>
46
74
  <value>close-inner-quote</value>
47
75
  <value>page-range-delimiter</value>
76
+ <value>colon</value>
77
+ <value>comma</value>
78
+ <value>semicolon</value>
48
79
  <value>season-01</value>
49
80
  <a:documentation>Seasons</a:documentation>
50
81
  <value>season-02</value>
51
82
  <value>season-03</value>
52
83
  <value>season-04</value>
53
- <ref name="category.field">
54
- <a:documentation>(legacy; remove in CSL 1.1)</a:documentation>
55
- </ref>
56
84
  </choice>
57
85
  </define>
58
86
  <define name="terms.gender-assignable">
@@ -106,28 +134,27 @@
106
134
  <define name="terms.locator">
107
135
  <a:documentation>Locators</a:documentation>
108
136
  <choice>
109
- <ref name="terms.locator.testable"/>
110
- <value>sub verbo</value>
111
- <a:documentation>"sub verbo" is recognized as "sub" &amp; "verbo" in attribute lists; term
112
- should be renamed to "sub-verbo"</a:documentation>
113
- </choice>
114
- </define>
115
- <define name="terms.locator.testable">
116
- <a:documentation>Locator terms that can be tested with the "locator" conditional
117
- ("sub verbo" can be tested with "sub-verbo")</a:documentation>
118
- <choice>
137
+ <value>act</value>
138
+ <value>appendix</value>
139
+ <value>article-locator</value>
119
140
  <value>book</value>
141
+ <value>canon</value>
120
142
  <value>chapter</value>
121
143
  <value>column</value>
144
+ <value>elocation</value>
145
+ <value>equation</value>
122
146
  <value>figure</value>
123
147
  <value>folio</value>
124
148
  <value>line</value>
125
149
  <value>note</value>
126
150
  <value>opus</value>
127
- <value>page</value>
128
151
  <value>paragraph</value>
129
- <value>part</value>
130
- <value>section</value>
152
+ <value>rule</value>
153
+ <value>scene</value>
154
+ <value>sub-verbo</value>
155
+ <value>table</value>
156
+ <value>timestamp</value>
157
+ <value>title-locator</value>
131
158
  <value>verse</value>
132
159
  <ref name="terms.locator-number-variables"/>
133
160
  </choice>
@@ -136,6 +163,11 @@ should be renamed to "sub-verbo"</a:documentation>
136
163
  <a:documentation>Locator terms with matching number variables</a:documentation>
137
164
  <choice>
138
165
  <value>issue</value>
166
+ <value>page</value>
167
+ <value>part</value>
168
+ <value>section</value>
169
+ <value>supplement</value>
170
+ <value>version</value>
139
171
  <value>volume</value>
140
172
  </choice>
141
173
  </define>
@@ -143,11 +175,15 @@ should be renamed to "sub-verbo"</a:documentation>
143
175
  <a:documentation>Non-locator terms accompanying number variables</a:documentation>
144
176
  <choice>
145
177
  <value>chapter-number</value>
178
+ <value>citation-number</value>
146
179
  <value>collection-number</value>
147
180
  <value>edition</value>
181
+ <value>first-reference-note-number</value>
148
182
  <value>number</value>
149
183
  <value>number-of-pages</value>
150
184
  <value>number-of-volumes</value>
185
+ <value>page-first</value>
186
+ <value>printing</value>
151
187
  </choice>
152
188
  </define>
153
189
  </div>
@@ -12,12 +12,17 @@
12
12
  <value>book</value>
13
13
  <value>broadcast</value>
14
14
  <value>chapter</value>
15
+ <value>classic</value>
16
+ <value>collection</value>
15
17
  <value>dataset</value>
18
+ <value>document</value>
16
19
  <value>entry</value>
17
20
  <value>entry-dictionary</value>
18
21
  <value>entry-encyclopedia</value>
22
+ <value>event</value>
19
23
  <value>figure</value>
20
24
  <value>graphic</value>
25
+ <value>hearing</value>
21
26
  <value>interview</value>
22
27
  <value>legal_case</value>
23
28
  <value>legislation</value>
@@ -28,14 +33,19 @@
28
33
  <value>pamphlet</value>
29
34
  <value>paper-conference</value>
30
35
  <value>patent</value>
36
+ <value>performance</value>
37
+ <value>periodical</value>
31
38
  <value>personal_communication</value>
32
39
  <value>post</value>
33
40
  <value>post-weblog</value>
41
+ <value>regulation</value>
34
42
  <value>report</value>
35
43
  <value>review</value>
36
44
  <value>review-book</value>
45
+ <value>software</value>
37
46
  <value>song</value>
38
47
  <value>speech</value>
48
+ <value>standard</value>
39
49
  <value>thesis</value>
40
50
  <value>treaty</value>
41
51
  <value>webpage</value>
@@ -7,8 +7,7 @@
7
7
  <choice>
8
8
  <ref name="variables.dates"/>
9
9
  <ref name="variables.names"/>
10
- <ref name="variables.numbers"/>
11
- <ref name="variables.strings"/>
10
+ <ref name="variables.standard"/>
12
11
  </choice>
13
12
  </define>
14
13
  <define name="variables.standard">
@@ -16,13 +15,14 @@
16
15
  <choice>
17
16
  <ref name="variables.numbers"/>
18
17
  <ref name="variables.strings"/>
18
+ <ref name="variables.titles"/>
19
19
  </choice>
20
20
  </define>
21
21
  <define name="variables.dates">
22
22
  <a:documentation>Date variables</a:documentation>
23
23
  <choice>
24
24
  <value>accessed</value>
25
- <value>container</value>
25
+ <value>available-date</value>
26
26
  <value>event-date</value>
27
27
  <value>issued</value>
28
28
  <value>original-date</value>
@@ -33,17 +33,31 @@
33
33
  <a:documentation>Name variables</a:documentation>
34
34
  <choice>
35
35
  <value>author</value>
36
+ <value>chair</value>
36
37
  <value>collection-editor</value>
38
+ <value>compiler</value>
37
39
  <value>composer</value>
38
40
  <value>container-author</value>
41
+ <value>contributor</value>
42
+ <value>curator</value>
39
43
  <value>director</value>
40
44
  <value>editor</value>
45
+ <value>editor-translator</value>
41
46
  <value>editorial-director</value>
47
+ <value>executive-producer</value>
48
+ <value>guest</value>
49
+ <value>host</value>
42
50
  <value>illustrator</value>
43
51
  <value>interviewer</value>
52
+ <value>narrator</value>
53
+ <value>organizer</value>
44
54
  <value>original-author</value>
55
+ <value>performer</value>
56
+ <value>producer</value>
45
57
  <value>recipient</value>
46
58
  <value>reviewed-author</value>
59
+ <value>script-writer</value>
60
+ <value>series-creator</value>
47
61
  <value>translator</value>
48
62
  </choice>
49
63
  </define>
@@ -51,62 +65,81 @@
51
65
  <a:documentation>Number variables</a:documentation>
52
66
  <choice>
53
67
  <value>chapter-number</value>
68
+ <value>citation-number</value>
54
69
  <value>collection-number</value>
55
70
  <value>edition</value>
71
+ <value>first-reference-note-number</value>
56
72
  <value>issue</value>
73
+ <value>locator</value>
57
74
  <value>number</value>
58
75
  <value>number-of-pages</value>
59
76
  <value>number-of-volumes</value>
77
+ <value>page</value>
78
+ <value>page-first</value>
79
+ <value>part-number</value>
80
+ <value>printing-number</value>
81
+ <value>section</value>
82
+ <value>supplement-number</value>
83
+ <value>version</value>
60
84
  <value>volume</value>
61
85
  </choice>
62
86
  </define>
87
+ <define name="variables.titles">
88
+ <a:documentation>Title variables</a:documentation>
89
+ <choice>
90
+ <value>collection-title</value>
91
+ <value>container-title</value>
92
+ <value>original-title</value>
93
+ <value>part-title</value>
94
+ <value>reviewed-title</value>
95
+ <value>title</value>
96
+ <value>volume-title</value>
97
+ <!-- Short title forms. Will be removed in CSL 1.1 -->
98
+ <value>title-short</value>
99
+ <value>container-title-short</value>
100
+ </choice>
101
+ </define>
63
102
  <define name="variables.strings">
64
103
  <a:documentation>String variables</a:documentation>
65
104
  <choice>
66
105
  <value>abstract</value>
67
106
  <value>annote</value>
68
107
  <value>archive</value>
108
+ <value>archive_collection</value>
69
109
  <value>archive_location</value>
70
110
  <value>archive-place</value>
71
111
  <value>authority</value>
72
112
  <value>call-number</value>
113
+ <value>citation-key</value>
73
114
  <value>citation-label</value>
74
- <value>citation-number</value>
75
- <value>collection-title</value>
76
- <value>container-title</value>
77
- <value>container-title-short</value>
78
115
  <value>dimensions</value>
116
+ <value>division</value>
79
117
  <value>DOI</value>
118
+ <!-- Alias for 'event-title'. Deprecated. Will be removed in CSL 1.1. -->
80
119
  <value>event</value>
120
+ <value>event-title</value>
81
121
  <value>event-place</value>
82
- <value>first-reference-note-number</value>
83
122
  <value>genre</value>
84
123
  <value>ISBN</value>
85
124
  <value>ISSN</value>
86
125
  <value>jurisdiction</value>
87
126
  <value>keyword</value>
88
- <value>locator</value>
127
+ <value>language</value>
128
+ <value>license</value>
89
129
  <value>medium</value>
90
130
  <value>note</value>
91
131
  <value>original-publisher</value>
92
132
  <value>original-publisher-place</value>
93
- <value>original-title</value>
94
- <value>page</value>
95
- <value>page-first</value>
96
- <value>PMID</value>
97
133
  <value>PMCID</value>
134
+ <value>PMID</value>
98
135
  <value>publisher</value>
99
136
  <value>publisher-place</value>
100
137
  <value>references</value>
101
- <value>reviewed-title</value>
138
+ <value>reviewed-genre</value>
102
139
  <value>scale</value>
103
- <value>section</value>
104
140
  <value>source</value>
105
141
  <value>status</value>
106
- <value>title</value>
107
- <value>title-short</value>
108
142
  <value>URL</value>
109
- <value>version</value>
110
143
  <value>year-suffix</value>
111
144
  </choice>
112
145
  </define>
@@ -1,33 +1,24 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <grammar xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:bibo="http://purl.org/ontology/bibo/" xmlns:sch="http://www.ascc.net/xml/schematron" xmlns:cs="http://purl.org/net/xbiblio/csl" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
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-2012 by Frank Bennett, Bruce D'Arcus, Simon Kornblith, and Rintze Zelle. Permission to freely use, copy and distribute.</dc:rights>
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
- <!-- Embedded Schematron rules to detect calls to nonexistent macros -->
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
- <optional>
52
- <interleave>
53
- <zeroOrMore>
54
- <ref name="style.locale"/>
55
- </zeroOrMore>
56
- <zeroOrMore>
57
- <ref name="style.macro"/>
58
- </zeroOrMore>
59
- <ref name="style.citation"/>
60
- <optional>
61
- <ref name="style.bibliography"/>
62
- </optional>
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 ("1.0" for CSL 1.0).</a:documentation>
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 URI to establish the identity of the style. The URI
277
- should be stable, unique and dereferenceable URI.</a:documentation>
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
- <zeroOrMore>
661
+ <optional>
693
662
  <ref name="names.label"/>
694
- </zeroOrMore>
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. </a:documentation>
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
- <div>
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.</a:documentation>
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: 1.6.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvester Keil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-06 00:00:00.000000000 Z
11
+ date: 2022-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: namae
@@ -91,6 +91,7 @@ files:
91
91
  - lib/csl/treelike.rb
92
92
  - lib/csl/version.rb
93
93
  - vendor/schema/csl-categories.rng
94
+ - vendor/schema/csl-choose.rng
94
95
  - vendor/schema/csl-terms.rng
95
96
  - vendor/schema/csl-types.rng
96
97
  - vendor/schema/csl-variables.rng