metanorma-plateau 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rubocop.yml +10 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +11 -0
- data/LICENSE +2 -0
- data/README.adoc +82 -0
- data/lib/isodoc/plateau/base_convert.rb +23 -0
- data/lib/isodoc/plateau/html_convert.rb +15 -0
- data/lib/isodoc/plateau/i18n-en.yaml +4 -0
- data/lib/isodoc/plateau/i18n-ja.yaml +4 -0
- data/lib/isodoc/plateau/i18n.rb +19 -0
- data/lib/isodoc/plateau/init.rb +25 -0
- data/lib/isodoc/plateau/metadata.rb +12 -0
- data/lib/isodoc/plateau/pdf_convert.rb +17 -0
- data/lib/isodoc/plateau/plateau.international-standard.xsl +14023 -0
- data/lib/isodoc/plateau/presentation_xml_convert.rb +76 -0
- data/lib/isodoc/plateau/xref.rb +107 -0
- data/lib/metanorma/plateau/basicdoc.rng +1660 -0
- data/lib/metanorma/plateau/biblio-standoc.rng +207 -0
- data/lib/metanorma/plateau/biblio.rng +1511 -0
- data/lib/metanorma/plateau/cleanup.rb +41 -0
- data/lib/metanorma/plateau/converter.rb +120 -0
- data/lib/metanorma/plateau/isodoc.rng +2308 -0
- data/lib/metanorma/plateau/isostandard.rng +316 -0
- data/lib/metanorma/plateau/jis.rng +70 -0
- data/lib/metanorma/plateau/plateau.rng +98 -0
- data/lib/metanorma/plateau/processor.rb +54 -0
- data/lib/metanorma/plateau/relaton-jis.rng +125 -0
- data/lib/metanorma/plateau/reqt.rng +210 -0
- data/lib/metanorma/plateau/version.rb +5 -0
- data/lib/metanorma/plateau.rb +6 -0
- data/lib/metanorma-plateau.rb +15 -0
- data/metanorma-plateau.gemspec +49 -0
- metadata +303 -0
@@ -0,0 +1,207 @@
|
|
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="StandardBibliographicItem"/>
|
13
|
+
<optional>
|
14
|
+
<ref name="ext"/>
|
15
|
+
</optional>
|
16
|
+
</define>
|
17
|
+
<define name="docrelation">
|
18
|
+
<element name="relation">
|
19
|
+
<attribute name="type">
|
20
|
+
<ref name="DocRelationType"/>
|
21
|
+
</attribute>
|
22
|
+
<optional>
|
23
|
+
<element name="description">
|
24
|
+
<ref name="FormattedString"/>
|
25
|
+
</element>
|
26
|
+
</optional>
|
27
|
+
<element name="bibitem">
|
28
|
+
<ref name="StandardReducedBibliographicItem"/>
|
29
|
+
</element>
|
30
|
+
<choice>
|
31
|
+
<zeroOrMore>
|
32
|
+
<ref name="locality"/>
|
33
|
+
</zeroOrMore>
|
34
|
+
<zeroOrMore>
|
35
|
+
<ref name="localityStack"/>
|
36
|
+
</zeroOrMore>
|
37
|
+
</choice>
|
38
|
+
<choice>
|
39
|
+
<zeroOrMore>
|
40
|
+
<ref name="sourceLocality"/>
|
41
|
+
</zeroOrMore>
|
42
|
+
<zeroOrMore>
|
43
|
+
<ref name="sourceLocalityStack"/>
|
44
|
+
</zeroOrMore>
|
45
|
+
</choice>
|
46
|
+
</element>
|
47
|
+
</define>
|
48
|
+
</include>
|
49
|
+
<define name="ext">
|
50
|
+
<element name="ext">
|
51
|
+
<ref name="BibDataExtensionType"/>
|
52
|
+
</element>
|
53
|
+
</define>
|
54
|
+
<define name="BibDataExtensionType">
|
55
|
+
<optional>
|
56
|
+
<attribute name="schema-version"/>
|
57
|
+
</optional>
|
58
|
+
<ref name="doctype"/>
|
59
|
+
<optional>
|
60
|
+
<ref name="docsubtype"/>
|
61
|
+
</optional>
|
62
|
+
<optional>
|
63
|
+
<ref name="editorialgroup"/>
|
64
|
+
</optional>
|
65
|
+
<zeroOrMore>
|
66
|
+
<ref name="ics"/>
|
67
|
+
</zeroOrMore>
|
68
|
+
<zeroOrMore>
|
69
|
+
<ref name="structuredidentifier"/>
|
70
|
+
</zeroOrMore>
|
71
|
+
</define>
|
72
|
+
<define name="doctype">
|
73
|
+
<element name="doctype">
|
74
|
+
<optional>
|
75
|
+
<attribute name="abbreviation"/>
|
76
|
+
</optional>
|
77
|
+
<ref name="DocumentType"/>
|
78
|
+
</element>
|
79
|
+
</define>
|
80
|
+
<define name="DocumentType">
|
81
|
+
<text/>
|
82
|
+
</define>
|
83
|
+
<define name="docsubtype">
|
84
|
+
<element name="subdoctype">
|
85
|
+
<ref name="DocumentSubtype"/>
|
86
|
+
</element>
|
87
|
+
</define>
|
88
|
+
<define name="DocumentSubtype">
|
89
|
+
<text/>
|
90
|
+
</define>
|
91
|
+
<define name="editorialgroup">
|
92
|
+
<element name="editorialgroup">
|
93
|
+
<oneOrMore>
|
94
|
+
<ref name="technical-committee"/>
|
95
|
+
</oneOrMore>
|
96
|
+
</element>
|
97
|
+
</define>
|
98
|
+
<define name="technical-committee">
|
99
|
+
<element name="technical-committee">
|
100
|
+
<ref name="IsoWorkgroup"/>
|
101
|
+
</element>
|
102
|
+
</define>
|
103
|
+
<define name="IsoWorkgroup">
|
104
|
+
<optional>
|
105
|
+
<attribute name="number"/>
|
106
|
+
</optional>
|
107
|
+
<optional>
|
108
|
+
<attribute name="type"/>
|
109
|
+
</optional>
|
110
|
+
<optional>
|
111
|
+
<attribute name="identifier"/>
|
112
|
+
</optional>
|
113
|
+
<optional>
|
114
|
+
<attribute name="prefix"/>
|
115
|
+
</optional>
|
116
|
+
<text/>
|
117
|
+
</define>
|
118
|
+
<define name="ics">
|
119
|
+
<element name="ics">
|
120
|
+
<element name="code">
|
121
|
+
<text/>
|
122
|
+
</element>
|
123
|
+
<optional>
|
124
|
+
<element name="text">
|
125
|
+
<text/>
|
126
|
+
</element>
|
127
|
+
</optional>
|
128
|
+
</element>
|
129
|
+
</define>
|
130
|
+
<define name="structuredidentifier">
|
131
|
+
<element name="structuredidentifier">
|
132
|
+
<optional>
|
133
|
+
<attribute name="type"/>
|
134
|
+
</optional>
|
135
|
+
<oneOrMore>
|
136
|
+
<element name="agency">
|
137
|
+
<text/>
|
138
|
+
</element>
|
139
|
+
</oneOrMore>
|
140
|
+
<optional>
|
141
|
+
<element name="class">
|
142
|
+
<text/>
|
143
|
+
</element>
|
144
|
+
</optional>
|
145
|
+
<element name="docnumber">
|
146
|
+
<text/>
|
147
|
+
</element>
|
148
|
+
<optional>
|
149
|
+
<element name="partnumber">
|
150
|
+
<text/>
|
151
|
+
</element>
|
152
|
+
</optional>
|
153
|
+
<optional>
|
154
|
+
<element name="edition">
|
155
|
+
<text/>
|
156
|
+
</element>
|
157
|
+
</optional>
|
158
|
+
<optional>
|
159
|
+
<element name="version">
|
160
|
+
<text/>
|
161
|
+
</element>
|
162
|
+
</optional>
|
163
|
+
<optional>
|
164
|
+
<element name="supplementtype">
|
165
|
+
<text/>
|
166
|
+
</element>
|
167
|
+
</optional>
|
168
|
+
<optional>
|
169
|
+
<element name="supplementnumber">
|
170
|
+
<text/>
|
171
|
+
</element>
|
172
|
+
</optional>
|
173
|
+
<optional>
|
174
|
+
<element name="amendment">
|
175
|
+
<text/>
|
176
|
+
</element>
|
177
|
+
</optional>
|
178
|
+
<optional>
|
179
|
+
<element name="corrigendum">
|
180
|
+
<text/>
|
181
|
+
</element>
|
182
|
+
</optional>
|
183
|
+
<optional>
|
184
|
+
<element name="language">
|
185
|
+
<text/>
|
186
|
+
</element>
|
187
|
+
</optional>
|
188
|
+
<optional>
|
189
|
+
<element name="year">
|
190
|
+
<text/>
|
191
|
+
</element>
|
192
|
+
</optional>
|
193
|
+
</element>
|
194
|
+
</define>
|
195
|
+
<define name="StandardBibliographicItem">
|
196
|
+
<ref name="BibliographicItem"/>
|
197
|
+
<zeroOrMore>
|
198
|
+
<ref name="amend"/>
|
199
|
+
</zeroOrMore>
|
200
|
+
</define>
|
201
|
+
<define name="StandardReducedBibliographicItem">
|
202
|
+
<ref name="ReducedBibliographicItem"/>
|
203
|
+
<zeroOrMore>
|
204
|
+
<ref name="amend"/>
|
205
|
+
</zeroOrMore>
|
206
|
+
</define>
|
207
|
+
</grammar>
|