relaton-iso-bib 1.13.0 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +0 -1
- data/.github/workflows/release.yml +22 -0
- data/README.adoc +227 -243
- data/grammars/basicdoc.rng +3 -27
- data/grammars/biblio-standoc.rng +164 -0
- data/grammars/biblio.rng +82 -19
- data/grammars/relaton-iso-compile.rng +11 -0
- data/grammars/relaton-iso.rng +225 -0
- data/lib/relaton_iso_bib/editorial_group.rb +2 -2
- data/lib/relaton_iso_bib/iso_bibliographic_item.rb +32 -11
- data/lib/relaton_iso_bib/version.rb +1 -1
- data/relaton_iso_bib.gemspec +1 -1
- metadata +8 -7
- data/grammars/isodoc.rng +0 -2807
- data/grammars/isostandard.rng +0 -514
- data/grammars/reqt.rng +0 -223
data/grammars/basicdoc.rng
CHANGED
@@ -1,10 +1,5 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
3
|
-
<include href="biblio.rng">
|
4
|
-
<start>
|
5
|
-
<ref name="document"/>
|
6
|
-
</start>
|
7
|
-
</include>
|
8
3
|
<define name="document">
|
9
4
|
<element name="document">
|
10
5
|
<optional>
|
@@ -688,6 +683,9 @@
|
|
688
683
|
</define>
|
689
684
|
<define name="underline">
|
690
685
|
<element name="underline">
|
686
|
+
<optional>
|
687
|
+
<attribute name="style"/>
|
688
|
+
</optional>
|
691
689
|
<zeroOrMore>
|
692
690
|
<ref name="PureTextElement"/>
|
693
691
|
</zeroOrMore>
|
@@ -1125,26 +1123,4 @@
|
|
1125
1123
|
</zeroOrMore>
|
1126
1124
|
</element>
|
1127
1125
|
</define>
|
1128
|
-
<define name="ext">
|
1129
|
-
<element name="ext">
|
1130
|
-
<ref name="BibDataExtensionType"/>
|
1131
|
-
</element>
|
1132
|
-
</define>
|
1133
|
-
<define name="BibDataExtensionType">
|
1134
|
-
<ref name="doctype"/>
|
1135
|
-
</define>
|
1136
|
-
<define name="doctype">
|
1137
|
-
<element name="doctype">
|
1138
|
-
<ref name="DocumentType"/>
|
1139
|
-
</element>
|
1140
|
-
</define>
|
1141
|
-
<define name="DocumentType">
|
1142
|
-
<value>document</value>
|
1143
|
-
</define>
|
1144
|
-
<define name="BibData">
|
1145
|
-
<ref name="BibliographicItem"/>
|
1146
|
-
<optional>
|
1147
|
-
<ref name="ext"/>
|
1148
|
-
</optional>
|
1149
|
-
</define>
|
1150
1126
|
</grammar>
|
@@ -0,0 +1,164 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
|
3
|
+
<!--
|
4
|
+
Add-ons to biblio.rnc for standoc model: defines the extension point BibDataExtensionType
|
5
|
+
of relaton
|
6
|
+
|
7
|
+
Specialisations as for biblio.rnc. Extension point can be redefined completely for a flavour of standoc
|
8
|
+
(SDO); but other elements in Bibdata can only be extended (more specialised vocabularies for Bibdata)
|
9
|
+
-->
|
10
|
+
<include href="biblio.rng">
|
11
|
+
<define name="BibData">
|
12
|
+
<ref name="BibliographicItem"/>
|
13
|
+
<optional>
|
14
|
+
<ref name="ext"/>
|
15
|
+
</optional>
|
16
|
+
</define>
|
17
|
+
</include>
|
18
|
+
<define name="ext">
|
19
|
+
<element name="ext">
|
20
|
+
<ref name="BibDataExtensionType"/>
|
21
|
+
</element>
|
22
|
+
</define>
|
23
|
+
<define name="BibDataExtensionType">
|
24
|
+
<optional>
|
25
|
+
<attribute name="schema-version"/>
|
26
|
+
</optional>
|
27
|
+
<ref name="doctype"/>
|
28
|
+
<optional>
|
29
|
+
<ref name="docsubtype"/>
|
30
|
+
</optional>
|
31
|
+
<optional>
|
32
|
+
<ref name="editorialgroup"/>
|
33
|
+
</optional>
|
34
|
+
<zeroOrMore>
|
35
|
+
<ref name="ics"/>
|
36
|
+
</zeroOrMore>
|
37
|
+
<zeroOrMore>
|
38
|
+
<ref name="structuredidentifier"/>
|
39
|
+
</zeroOrMore>
|
40
|
+
</define>
|
41
|
+
<define name="doctype">
|
42
|
+
<element name="doctype">
|
43
|
+
<optional>
|
44
|
+
<attribute name="abbreviation"/>
|
45
|
+
</optional>
|
46
|
+
<ref name="DocumentType"/>
|
47
|
+
</element>
|
48
|
+
</define>
|
49
|
+
<define name="DocumentType">
|
50
|
+
<text/>
|
51
|
+
</define>
|
52
|
+
<define name="docsubtype">
|
53
|
+
<element name="subdoctype">
|
54
|
+
<ref name="DocumentSubtype"/>
|
55
|
+
</element>
|
56
|
+
</define>
|
57
|
+
<define name="DocumentSubtype">
|
58
|
+
<text/>
|
59
|
+
</define>
|
60
|
+
<define name="editorialgroup">
|
61
|
+
<element name="editorialgroup">
|
62
|
+
<oneOrMore>
|
63
|
+
<ref name="technical-committee"/>
|
64
|
+
</oneOrMore>
|
65
|
+
</element>
|
66
|
+
</define>
|
67
|
+
<define name="technical-committee">
|
68
|
+
<element name="technical-committee">
|
69
|
+
<ref name="IsoWorkgroup"/>
|
70
|
+
</element>
|
71
|
+
</define>
|
72
|
+
<define name="IsoWorkgroup">
|
73
|
+
<optional>
|
74
|
+
<attribute name="number"/>
|
75
|
+
</optional>
|
76
|
+
<optional>
|
77
|
+
<attribute name="type"/>
|
78
|
+
</optional>
|
79
|
+
<optional>
|
80
|
+
<attribute name="identifier"/>
|
81
|
+
</optional>
|
82
|
+
<optional>
|
83
|
+
<attribute name="prefix"/>
|
84
|
+
</optional>
|
85
|
+
<text/>
|
86
|
+
</define>
|
87
|
+
<define name="ics">
|
88
|
+
<element name="ics">
|
89
|
+
<element name="code">
|
90
|
+
<text/>
|
91
|
+
</element>
|
92
|
+
<optional>
|
93
|
+
<element name="text">
|
94
|
+
<text/>
|
95
|
+
</element>
|
96
|
+
</optional>
|
97
|
+
</element>
|
98
|
+
</define>
|
99
|
+
<define name="structuredidentifier">
|
100
|
+
<element name="structuredidentifier">
|
101
|
+
<optional>
|
102
|
+
<attribute name="type"/>
|
103
|
+
</optional>
|
104
|
+
<oneOrMore>
|
105
|
+
<element name="agency">
|
106
|
+
<text/>
|
107
|
+
</element>
|
108
|
+
</oneOrMore>
|
109
|
+
<optional>
|
110
|
+
<element name="class">
|
111
|
+
<text/>
|
112
|
+
</element>
|
113
|
+
</optional>
|
114
|
+
<element name="docnumber">
|
115
|
+
<text/>
|
116
|
+
</element>
|
117
|
+
<optional>
|
118
|
+
<element name="partnumber">
|
119
|
+
<text/>
|
120
|
+
</element>
|
121
|
+
</optional>
|
122
|
+
<optional>
|
123
|
+
<element name="edition">
|
124
|
+
<text/>
|
125
|
+
</element>
|
126
|
+
</optional>
|
127
|
+
<optional>
|
128
|
+
<element name="version">
|
129
|
+
<text/>
|
130
|
+
</element>
|
131
|
+
</optional>
|
132
|
+
<optional>
|
133
|
+
<element name="supplementtype">
|
134
|
+
<text/>
|
135
|
+
</element>
|
136
|
+
</optional>
|
137
|
+
<optional>
|
138
|
+
<element name="supplementnumber">
|
139
|
+
<text/>
|
140
|
+
</element>
|
141
|
+
</optional>
|
142
|
+
<optional>
|
143
|
+
<element name="amendment">
|
144
|
+
<text/>
|
145
|
+
</element>
|
146
|
+
</optional>
|
147
|
+
<optional>
|
148
|
+
<element name="corrigendum">
|
149
|
+
<text/>
|
150
|
+
</element>
|
151
|
+
</optional>
|
152
|
+
<optional>
|
153
|
+
<element name="language">
|
154
|
+
<text/>
|
155
|
+
</element>
|
156
|
+
</optional>
|
157
|
+
<optional>
|
158
|
+
<element name="year">
|
159
|
+
<text/>
|
160
|
+
</element>
|
161
|
+
</optional>
|
162
|
+
</element>
|
163
|
+
</define>
|
164
|
+
</grammar>
|
data/grammars/biblio.rng
CHANGED
@@ -33,9 +33,10 @@
|
|
33
33
|
<param name="pattern">([\+\-]?\d{4})((-?)((0[1-9]|1[0-2])((-?)([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6]))))?</param>
|
34
34
|
</data>
|
35
35
|
</define>
|
36
|
-
|
37
|
-
|
38
|
-
|
36
|
+
<!-- start = bibitem -->
|
37
|
+
<define name="BibData">
|
38
|
+
<ref name="BibliographicItem"/>
|
39
|
+
</define>
|
39
40
|
<define name="status">
|
40
41
|
<element name="status">
|
41
42
|
<ref name="stage"/>
|
@@ -73,8 +74,14 @@
|
|
73
74
|
<text/>
|
74
75
|
</element>
|
75
76
|
</define>
|
76
|
-
<define name="
|
77
|
+
<define name="locale">
|
77
78
|
<a:documentation>ISO-639</a:documentation>
|
79
|
+
<element name="locale">
|
80
|
+
<text/>
|
81
|
+
</element>
|
82
|
+
</define>
|
83
|
+
<define name="script">
|
84
|
+
<a:documentation>ISO-3166</a:documentation>
|
78
85
|
<element name="script">
|
79
86
|
<text/>
|
80
87
|
</element>
|
@@ -93,6 +100,9 @@
|
|
93
100
|
<!-- multiple languages and scripts possible: comma delimit them if so -->
|
94
101
|
<attribute name="language"/>
|
95
102
|
</optional>
|
103
|
+
<optional>
|
104
|
+
<attribute name="locale"/>
|
105
|
+
</optional>
|
96
106
|
<optional>
|
97
107
|
<attribute name="script"/>
|
98
108
|
</optional>
|
@@ -136,6 +146,9 @@
|
|
136
146
|
<!-- multiple languages and scripts possible: comma delimit them if so -->
|
137
147
|
<attribute name="language"/>
|
138
148
|
</optional>
|
149
|
+
<optional>
|
150
|
+
<attribute name="locale"/>
|
151
|
+
</optional>
|
139
152
|
<optional>
|
140
153
|
<attribute name="script"/>
|
141
154
|
</optional>
|
@@ -158,27 +171,30 @@
|
|
158
171
|
</define>
|
159
172
|
<define name="contributor">
|
160
173
|
<element name="contributor">
|
161
|
-
<
|
174
|
+
<oneOrMore>
|
162
175
|
<ref name="role"/>
|
163
|
-
</
|
176
|
+
</oneOrMore>
|
164
177
|
<ref name="ContributorInfo"/>
|
165
178
|
</element>
|
166
179
|
</define>
|
167
180
|
<define name="role">
|
168
181
|
<element name="role">
|
169
|
-
<
|
170
|
-
<
|
171
|
-
<
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
</
|
180
|
-
|
181
|
-
|
182
|
+
<attribute name="type">
|
183
|
+
<choice>
|
184
|
+
<value>author</value>
|
185
|
+
<value>performer</value>
|
186
|
+
<value>publisher</value>
|
187
|
+
<value>editor</value>
|
188
|
+
<value>adapter</value>
|
189
|
+
<value>translator</value>
|
190
|
+
<value>distributor</value>
|
191
|
+
<value>realizer</value>
|
192
|
+
<value>owner</value>
|
193
|
+
<value>authorizer</value>
|
194
|
+
<value>enabler</value>
|
195
|
+
<value>subject</value>
|
196
|
+
</choice>
|
197
|
+
</attribute>
|
182
198
|
<zeroOrMore>
|
183
199
|
<ref name="roledescription"/>
|
184
200
|
</zeroOrMore>
|
@@ -500,6 +516,17 @@
|
|
500
516
|
</define>
|
501
517
|
<define name="localityStack">
|
502
518
|
<element name="localityStack">
|
519
|
+
<optional>
|
520
|
+
<attribute name="connective">
|
521
|
+
<choice>
|
522
|
+
<value>and</value>
|
523
|
+
<value>or</value>
|
524
|
+
<value>from</value>
|
525
|
+
<value>to</value>
|
526
|
+
<value/>
|
527
|
+
</choice>
|
528
|
+
</attribute>
|
529
|
+
</optional>
|
503
530
|
<zeroOrMore>
|
504
531
|
<ref name="locality"/>
|
505
532
|
</zeroOrMore>
|
@@ -512,6 +539,17 @@
|
|
512
539
|
</define>
|
513
540
|
<define name="sourceLocalityStack">
|
514
541
|
<element name="sourceLocalityStack">
|
542
|
+
<optional>
|
543
|
+
<attribute name="connective">
|
544
|
+
<choice>
|
545
|
+
<value>and</value>
|
546
|
+
<value>or</value>
|
547
|
+
<value>from</value>
|
548
|
+
<value>to</value>
|
549
|
+
<value/>
|
550
|
+
</choice>
|
551
|
+
</attribute>
|
552
|
+
</optional>
|
515
553
|
<zeroOrMore>
|
516
554
|
<ref name="sourceLocality"/>
|
517
555
|
</zeroOrMore>
|
@@ -614,6 +652,9 @@
|
|
614
652
|
<ref name="BibItemType"/>
|
615
653
|
</attribute>
|
616
654
|
</optional>
|
655
|
+
<optional>
|
656
|
+
<attribute name="schema-version"/>
|
657
|
+
</optional>
|
617
658
|
<optional>
|
618
659
|
<ref name="fetched"/>
|
619
660
|
</optional>
|
@@ -650,6 +691,9 @@
|
|
650
691
|
<zeroOrMore>
|
651
692
|
<ref name="language"/>
|
652
693
|
</zeroOrMore>
|
694
|
+
<zeroOrMore>
|
695
|
+
<ref name="locale"/>
|
696
|
+
</zeroOrMore>
|
653
697
|
<zeroOrMore>
|
654
698
|
<ref name="script"/>
|
655
699
|
</zeroOrMore>
|
@@ -705,6 +749,9 @@
|
|
705
749
|
<ref name="BibItemType"/>
|
706
750
|
</attribute>
|
707
751
|
</optional>
|
752
|
+
<optional>
|
753
|
+
<attribute name="schema-version"/>
|
754
|
+
</optional>
|
708
755
|
<optional>
|
709
756
|
<ref name="fetched"/>
|
710
757
|
</optional>
|
@@ -741,6 +788,9 @@
|
|
741
788
|
<zeroOrMore>
|
742
789
|
<ref name="language"/>
|
743
790
|
</zeroOrMore>
|
791
|
+
<zeroOrMore>
|
792
|
+
<ref name="locale"/>
|
793
|
+
</zeroOrMore>
|
744
794
|
<zeroOrMore>
|
745
795
|
<ref name="script"/>
|
746
796
|
</zeroOrMore>
|
@@ -854,6 +904,15 @@
|
|
854
904
|
<optional>
|
855
905
|
<attribute name="type"/>
|
856
906
|
</optional>
|
907
|
+
<optional>
|
908
|
+
<attribute name="language"/>
|
909
|
+
</optional>
|
910
|
+
<optional>
|
911
|
+
<attribute name="locale"/>
|
912
|
+
</optional>
|
913
|
+
<optional>
|
914
|
+
<attribute name="script"/>
|
915
|
+
</optional>
|
857
916
|
<data type="anyURI"/>
|
858
917
|
</define>
|
859
918
|
<define name="DateType">
|
@@ -882,6 +941,7 @@
|
|
882
941
|
<value>vote-started</value>
|
883
942
|
<value>vote-ended</value>
|
884
943
|
<value>announced</value>
|
944
|
+
<value>stable-until</value>
|
885
945
|
</choice>
|
886
946
|
</define>
|
887
947
|
<define name="bdate">
|
@@ -930,6 +990,9 @@
|
|
930
990
|
<optional>
|
931
991
|
<attribute name="language"/>
|
932
992
|
</optional>
|
993
|
+
<optional>
|
994
|
+
<attribute name="locale"/>
|
995
|
+
</optional>
|
933
996
|
<optional>
|
934
997
|
<attribute name="script"/>
|
935
998
|
</optional>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
|
3
|
+
<include href="basicdoc.rng"/>
|
4
|
+
<include href="relaton-iso.rng"/>
|
5
|
+
<start>
|
6
|
+
<choice>
|
7
|
+
<ref name="bibitem"/>
|
8
|
+
<ref name="bibdata"/>
|
9
|
+
</choice>
|
10
|
+
</start>
|
11
|
+
</grammar>
|
@@ -0,0 +1,225 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
3
|
+
<include href="biblio-standoc.rng">
|
4
|
+
<define name="BibDataExtensionType">
|
5
|
+
<optional>
|
6
|
+
<attribute name="schema-version"/>
|
7
|
+
</optional>
|
8
|
+
<ref name="doctype"/>
|
9
|
+
<optional>
|
10
|
+
<ref name="docsubtype"/>
|
11
|
+
</optional>
|
12
|
+
<optional>
|
13
|
+
<ref name="horizontal"/>
|
14
|
+
</optional>
|
15
|
+
<ref name="editorialgroup"/>
|
16
|
+
<optional>
|
17
|
+
<ref name="approvalgroup"/>
|
18
|
+
</optional>
|
19
|
+
<zeroOrMore>
|
20
|
+
<ref name="ics"/>
|
21
|
+
</zeroOrMore>
|
22
|
+
<ref name="structuredidentifier"/>
|
23
|
+
<optional>
|
24
|
+
<ref name="stagename"/>
|
25
|
+
</optional>
|
26
|
+
<optional>
|
27
|
+
<ref name="updates_document_type"/>
|
28
|
+
</optional>
|
29
|
+
</define>
|
30
|
+
<define name="bdate">
|
31
|
+
<element name="date">
|
32
|
+
<attribute name="type">
|
33
|
+
<choice>
|
34
|
+
<ref name="BibliographicDateType"/>
|
35
|
+
<text/>
|
36
|
+
</choice>
|
37
|
+
</attribute>
|
38
|
+
<choice>
|
39
|
+
<group>
|
40
|
+
<element name="from">
|
41
|
+
<ref name="ISO8601Date"/>
|
42
|
+
</element>
|
43
|
+
<optional>
|
44
|
+
<element name="to">
|
45
|
+
<ref name="ISO8601Date"/>
|
46
|
+
</element>
|
47
|
+
</optional>
|
48
|
+
</group>
|
49
|
+
<element name="on">
|
50
|
+
<choice>
|
51
|
+
<ref name="ISO8601Date"/>
|
52
|
+
<value>--</value>
|
53
|
+
<value>–</value>
|
54
|
+
</choice>
|
55
|
+
</element>
|
56
|
+
</choice>
|
57
|
+
</element>
|
58
|
+
</define>
|
59
|
+
<define name="organization">
|
60
|
+
<element name="organization">
|
61
|
+
<oneOrMore>
|
62
|
+
<ref name="orgname"/>
|
63
|
+
</oneOrMore>
|
64
|
+
<optional>
|
65
|
+
<ref name="abbreviation"/>
|
66
|
+
</optional>
|
67
|
+
<optional>
|
68
|
+
<ref name="uri"/>
|
69
|
+
</optional>
|
70
|
+
<zeroOrMore>
|
71
|
+
<ref name="org-identifier"/>
|
72
|
+
</zeroOrMore>
|
73
|
+
<zeroOrMore>
|
74
|
+
<ref name="contact"/>
|
75
|
+
</zeroOrMore>
|
76
|
+
<optional>
|
77
|
+
<ref name="technical-committee"/>
|
78
|
+
</optional>
|
79
|
+
<optional>
|
80
|
+
<ref name="subcommittee"/>
|
81
|
+
</optional>
|
82
|
+
<optional>
|
83
|
+
<ref name="workgroup"/>
|
84
|
+
</optional>
|
85
|
+
<optional>
|
86
|
+
<ref name="secretariat"/>
|
87
|
+
</optional>
|
88
|
+
</element>
|
89
|
+
</define>
|
90
|
+
<define name="DocumentType">
|
91
|
+
<choice>
|
92
|
+
<value>international-standard</value>
|
93
|
+
<value>technical-specification</value>
|
94
|
+
<value>technical-report</value>
|
95
|
+
<value>publicly-available-specification</value>
|
96
|
+
<value>international-workshop-agreement</value>
|
97
|
+
<value>guide</value>
|
98
|
+
<value>amendment</value>
|
99
|
+
<value>technical-corrigendum</value>
|
100
|
+
<value>directive</value>
|
101
|
+
</choice>
|
102
|
+
</define>
|
103
|
+
<define name="DocumentSubtype">
|
104
|
+
<choice>
|
105
|
+
<value>specification</value>
|
106
|
+
<value>method-of-test</value>
|
107
|
+
<value>vocabulary</value>
|
108
|
+
<value>code-of-practice</value>
|
109
|
+
</choice>
|
110
|
+
</define>
|
111
|
+
<define name="structuredidentifier">
|
112
|
+
<element name="structuredidentifier">
|
113
|
+
<optional>
|
114
|
+
<attribute name="type"/>
|
115
|
+
</optional>
|
116
|
+
<group>
|
117
|
+
<ref name="documentnumber"/>
|
118
|
+
<optional>
|
119
|
+
<ref name="tc-documentnumber"/>
|
120
|
+
</optional>
|
121
|
+
</group>
|
122
|
+
</element>
|
123
|
+
</define>
|
124
|
+
<define name="editorialgroup">
|
125
|
+
<element name="editorialgroup">
|
126
|
+
<ref name="ISOProjectGroup"/>
|
127
|
+
</element>
|
128
|
+
</define>
|
129
|
+
</include>
|
130
|
+
<define name="updates_document_type">
|
131
|
+
<element name="updates-document-type">
|
132
|
+
<ref name="DocumentType"/>
|
133
|
+
</element>
|
134
|
+
</define>
|
135
|
+
<define name="ISOProjectGroup">
|
136
|
+
<zeroOrMore>
|
137
|
+
<ref name="agency"/>
|
138
|
+
</zeroOrMore>
|
139
|
+
<oneOrMore>
|
140
|
+
<ref name="technical-committee"/>
|
141
|
+
</oneOrMore>
|
142
|
+
<zeroOrMore>
|
143
|
+
<ref name="subcommittee"/>
|
144
|
+
</zeroOrMore>
|
145
|
+
<zeroOrMore>
|
146
|
+
<ref name="workgroup"/>
|
147
|
+
</zeroOrMore>
|
148
|
+
<optional>
|
149
|
+
<ref name="secretariat"/>
|
150
|
+
</optional>
|
151
|
+
</define>
|
152
|
+
<define name="approvalgroup">
|
153
|
+
<element name="approvalgroup">
|
154
|
+
<ref name="ISOProjectGroup"/>
|
155
|
+
</element>
|
156
|
+
</define>
|
157
|
+
<define name="agency">
|
158
|
+
<element name="agency">
|
159
|
+
<text/>
|
160
|
+
</element>
|
161
|
+
</define>
|
162
|
+
<define name="horizontal">
|
163
|
+
<element name="horizontal">
|
164
|
+
<data type="boolean"/>
|
165
|
+
</element>
|
166
|
+
</define>
|
167
|
+
<define name="documentnumber">
|
168
|
+
<element name="project-number">
|
169
|
+
<optional>
|
170
|
+
<attribute name="part">
|
171
|
+
<data type="int"/>
|
172
|
+
</attribute>
|
173
|
+
</optional>
|
174
|
+
<optional>
|
175
|
+
<attribute name="subpart">
|
176
|
+
<data type="int"/>
|
177
|
+
</attribute>
|
178
|
+
</optional>
|
179
|
+
<optional>
|
180
|
+
<attribute name="amendment">
|
181
|
+
<data type="int"/>
|
182
|
+
</attribute>
|
183
|
+
</optional>
|
184
|
+
<optional>
|
185
|
+
<attribute name="corrigendum">
|
186
|
+
<data type="int"/>
|
187
|
+
</attribute>
|
188
|
+
</optional>
|
189
|
+
<optional>
|
190
|
+
<attribute name="origyr">
|
191
|
+
<ref name="ISO8601Date"/>
|
192
|
+
</attribute>
|
193
|
+
</optional>
|
194
|
+
<text/>
|
195
|
+
</element>
|
196
|
+
</define>
|
197
|
+
<define name="tc-documentnumber">
|
198
|
+
<element name="tc-document-number">
|
199
|
+
<data type="int"/>
|
200
|
+
</element>
|
201
|
+
</define>
|
202
|
+
<define name="subcommittee">
|
203
|
+
<element name="subcommittee">
|
204
|
+
<ref name="IsoWorkgroup"/>
|
205
|
+
</element>
|
206
|
+
</define>
|
207
|
+
<define name="workgroup">
|
208
|
+
<element name="workgroup">
|
209
|
+
<ref name="IsoWorkgroup"/>
|
210
|
+
</element>
|
211
|
+
</define>
|
212
|
+
<define name="secretariat">
|
213
|
+
<element name="secretariat">
|
214
|
+
<text/>
|
215
|
+
</element>
|
216
|
+
</define>
|
217
|
+
<define name="stagename">
|
218
|
+
<element name="stagename">
|
219
|
+
<optional>
|
220
|
+
<attribute name="abbreviation"/>
|
221
|
+
</optional>
|
222
|
+
<text/>
|
223
|
+
</element>
|
224
|
+
</define>
|
225
|
+
</grammar>
|
@@ -32,7 +32,7 @@ module RelatonIsoBib
|
|
32
32
|
# @option workgroup [String] :type
|
33
33
|
# @option workgroup [Integer] :number
|
34
34
|
#
|
35
|
-
# @param secretariat [String,
|
35
|
+
# @param secretariat [String, nil]
|
36
36
|
def initialize(technical_committee:, **args) # rubocop:disable Metrics/CyclomaticComplexity,Metrics/AbcSize
|
37
37
|
@technical_committee = technical_committee.map do |tc|
|
38
38
|
tc.is_a?(Hash) ? RelatonBib::WorkGroup.new(**tc) : tc
|
@@ -58,7 +58,7 @@ module RelatonIsoBib
|
|
58
58
|
|
59
59
|
builder.editorialgroup do
|
60
60
|
technical_committee.each do |tc|
|
61
|
-
builder.send("technical-committee") { tc.to_xml builder }
|
61
|
+
builder.send(:"technical-committee") { tc.to_xml builder }
|
62
62
|
end
|
63
63
|
subcommittee.each do |sc|
|
64
64
|
builder.subcommittee { sc.to_xml builder }
|