metanorma-generic 2.7.4 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1eac917146566e8e8a88c879f06c74778d618083c1dfc67916b0965ec8bd222f
|
4
|
+
data.tar.gz: a6c4b12c359af39c05e825adef08df3a66e566f2a2b991bb3cfe24af710c3a58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4e2d9750abcee0af0a0cae55ebc934ae12f4406f1223a519f94f0b4b7dbe92d942ca823ec3df33d9c474bf02c899af2ca7c8ebc3fa7281e1c555949c32e742d
|
7
|
+
data.tar.gz: 8bf89e4ed09f0df5d91a0ef95ba878f75232abecd1077dd2b8d189b6c2836f9edb2d59ee2c2a463655a456d8a6bba416bbeb6d06cd0382ddb3a8d5fe6e220022
|
@@ -267,11 +267,11 @@ Detailed in https://www.relaton.org/model/creator/</a:documentation>
|
|
267
267
|
<a:documentation>An identifier of the person according to an international identifier scheme</a:documentation>
|
268
268
|
</ref>
|
269
269
|
</zeroOrMore>
|
270
|
-
<
|
270
|
+
<optional>
|
271
271
|
<ref name="contact">
|
272
272
|
<a:documentation>Contact information for the person, including URI, address, phone number, and email</a:documentation>
|
273
273
|
</ref>
|
274
|
-
</
|
274
|
+
</optional>
|
275
275
|
</element>
|
276
276
|
</define>
|
277
277
|
<define name="fullname">
|
@@ -454,11 +454,11 @@ real names (if the person is named with a pseudonym or user name); previous lega
|
|
454
454
|
<a:documentation>An identifier of the organization according to an international identifier scheme</a:documentation>
|
455
455
|
</ref>
|
456
456
|
</zeroOrMore>
|
457
|
-
<
|
457
|
+
<optional>
|
458
458
|
<ref name="contact">
|
459
459
|
<a:documentation>Contact information for the organization, including address, phone number, and email</a:documentation>
|
460
460
|
</ref>
|
461
|
-
</
|
461
|
+
</optional>
|
462
462
|
<optional>
|
463
463
|
<ref name="logo">
|
464
464
|
<a:documentation>A logo for the organization</a:documentation>
|
@@ -540,12 +540,18 @@ real names (if the person is named with a pseudonym or user name); previous lega
|
|
540
540
|
<!-- TODO may change -->
|
541
541
|
<define name="contact">
|
542
542
|
<a:documentation>Contact information for a person or organization</a:documentation>
|
543
|
-
<
|
543
|
+
<zeroOrMore>
|
544
544
|
<ref name="address"/>
|
545
|
+
</zeroOrMore>
|
546
|
+
<zeroOrMore>
|
545
547
|
<ref name="phone"/>
|
548
|
+
</zeroOrMore>
|
549
|
+
<zeroOrMore>
|
546
550
|
<ref name="email"/>
|
551
|
+
</zeroOrMore>
|
552
|
+
<zeroOrMore>
|
547
553
|
<ref name="uri"/>
|
548
|
-
</
|
554
|
+
</zeroOrMore>
|
549
555
|
</define>
|
550
556
|
<define name="phone">
|
551
557
|
<a:documentation>The phone number associated with a person or organization</a:documentation>
|
@@ -941,6 +947,8 @@ May be electronic (e.g. Twitter direct message, email) or voice (e.g. a remark m
|
|
941
947
|
typically cited as "personal communication")</a:documentation>
|
942
948
|
<value>conversation</value>
|
943
949
|
<a:documentation>An exchange of messages between two or more persons. May be electronic (e.g. web chat) or voice (e.g. phone call)</a:documentation>
|
950
|
+
<value>collection</value>
|
951
|
+
<a:documentation>A compound resource consisting of other resources, which are themselves presupposed to have their type specified..</a:documentation>
|
944
952
|
<value>misc</value>
|
945
953
|
<a:documentation>Bibliographic type not adequately described in the foregoing</a:documentation>
|
946
954
|
</choice>
|
@@ -1271,17 +1279,17 @@ for which this claim of validity is made, if applicable</a:documentation>
|
|
1271
1279
|
</define>
|
1272
1280
|
<define name="validityBegins">
|
1273
1281
|
<element name="validityBegins">
|
1274
|
-
<ref name="
|
1282
|
+
<ref name="ISO8601Date"/>
|
1275
1283
|
</element>
|
1276
1284
|
</define>
|
1277
1285
|
<define name="validityEnds">
|
1278
1286
|
<element name="validityEnds">
|
1279
|
-
<ref name="
|
1287
|
+
<ref name="ISO8601Date"/>
|
1280
1288
|
</element>
|
1281
1289
|
</define>
|
1282
1290
|
<define name="validityRevision">
|
1283
1291
|
<element name="revision">
|
1284
|
-
<ref name="
|
1292
|
+
<ref name="ISO8601Date"/>
|
1285
1293
|
</element>
|
1286
1294
|
</define>
|
1287
1295
|
<define name="TypedTitleString">
|
@@ -13,13 +13,13 @@ module Metanorma
|
|
13
13
|
|
14
14
|
register_for "generic"
|
15
15
|
|
16
|
-
def xml_root_tag
|
17
|
-
configuration.xml_root_tag || XML_ROOT_TAG
|
18
|
-
end
|
19
|
-
|
20
|
-
def xml_namespace
|
21
|
-
configuration.document_namespace || XML_NAMESPACE
|
22
|
-
end
|
16
|
+
#def xml_root_tag
|
17
|
+
#configuration.xml_root_tag || XML_ROOT_TAG
|
18
|
+
#end
|
19
|
+
#
|
20
|
+
#def xml_namespace
|
21
|
+
#configuration.document_namespace || XML_NAMESPACE
|
22
|
+
#end
|
23
23
|
|
24
24
|
def baselocation(loc)
|
25
25
|
loc.nil? and return nil
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<grammar ns='https://www.metanorma.org/ns/
|
2
|
+
<grammar ns='https://www.metanorma.org/ns/standoc' xmlns="http://relaxng.org/ns/structure/1.0">
|
3
3
|
<!--
|
4
4
|
VERSION v1.2.1
|
5
5
|
Currently we inherit from a namespaced grammar, isostandard. Until we inherit from isodoc,
|
@@ -8,34 +8,31 @@
|
|
8
8
|
-->
|
9
9
|
<include href="biblio-standoc.rng"/>
|
10
10
|
<include href="isodoc.rng">
|
11
|
-
<
|
12
|
-
<
|
13
|
-
|
11
|
+
<define name="standard-document">
|
12
|
+
<element name="metanorma">
|
13
|
+
<ref name="Root-Attributes"/>
|
14
|
+
<ref name="bibdata"/>
|
15
|
+
<zeroOrMore>
|
16
|
+
<ref name="termdocsource"/>
|
17
|
+
</zeroOrMore>
|
18
|
+
<optional>
|
19
|
+
<ref name="misccontainer"/>
|
20
|
+
</optional>
|
21
|
+
<optional>
|
22
|
+
<ref name="boilerplate"/>
|
23
|
+
</optional>
|
24
|
+
<ref name="preface"/>
|
25
|
+
<oneOrMore>
|
26
|
+
<ref name="sections"/>
|
27
|
+
</oneOrMore>
|
28
|
+
<zeroOrMore>
|
29
|
+
<ref name="annex"/>
|
30
|
+
</zeroOrMore>
|
31
|
+
<ref name="bibliography"/>
|
32
|
+
<zeroOrMore>
|
33
|
+
<ref name="indexsect"/>
|
34
|
+
</zeroOrMore>
|
35
|
+
</element>
|
36
|
+
</define>
|
14
37
|
</include>
|
15
|
-
<define name="generic-standard">
|
16
|
-
<element name="generic-standard">
|
17
|
-
<ref name="Root-Attributes"/>
|
18
|
-
<ref name="bibdata"/>
|
19
|
-
<zeroOrMore>
|
20
|
-
<ref name="termdocsource"/>
|
21
|
-
</zeroOrMore>
|
22
|
-
<optional>
|
23
|
-
<ref name="misccontainer"/>
|
24
|
-
</optional>
|
25
|
-
<optional>
|
26
|
-
<ref name="boilerplate"/>
|
27
|
-
</optional>
|
28
|
-
<ref name="preface"/>
|
29
|
-
<oneOrMore>
|
30
|
-
<ref name="sections"/>
|
31
|
-
</oneOrMore>
|
32
|
-
<zeroOrMore>
|
33
|
-
<ref name="annex"/>
|
34
|
-
</zeroOrMore>
|
35
|
-
<ref name="bibliography"/>
|
36
|
-
<zeroOrMore>
|
37
|
-
<ref name="indexsect"/>
|
38
|
-
</zeroOrMore>
|
39
|
-
</element>
|
40
|
-
</define>
|
41
38
|
</grammar>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
these elements; we just want one namespace for any child grammars
|
18
18
|
of this.
|
19
19
|
-->
|
20
|
-
<!-- VERSION
|
20
|
+
<!-- VERSION v2.0.0 -->
|
21
21
|
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
22
22
|
<include href="reqt.rng"/>
|
23
23
|
<include href="basicdoc.rng">
|
@@ -459,11 +459,14 @@ gives an explicit page orientation</a:documentation>
|
|
459
459
|
<a:documentation>Description of location in a reference, which can be combined with other locations in a single citation</a:documentation>
|
460
460
|
</ref>
|
461
461
|
</zeroOrMore>
|
462
|
-
<
|
463
|
-
<
|
462
|
+
<optional>
|
463
|
+
<element name="display-text">
|
464
464
|
<a:documentation>The textual content of the element. The `text` is what we wish to show the link as (e.g., the "content" of `<xx>my link text</xx>`)</a:documentation>
|
465
|
-
|
466
|
-
|
465
|
+
<oneOrMore>
|
466
|
+
<ref name="PureTextElement"/>
|
467
|
+
</oneOrMore>
|
468
|
+
</element>
|
469
|
+
</optional>
|
467
470
|
</define>
|
468
471
|
</include>
|
469
472
|
<!-- end overrides -->
|
@@ -1205,10 +1208,13 @@ numbers</a:documentation>
|
|
1205
1208
|
<value>presentation</value>
|
1206
1209
|
</choice>
|
1207
1210
|
</attribute>
|
1211
|
+
<attribute name="flavor">
|
1212
|
+
<a:documentation>Metanorma flavor, indicating SDO whose requiremnts the realisation aligns to</a:documentation>
|
1213
|
+
</attribute>
|
1208
1214
|
</define>
|
1209
1215
|
<define name="standard-document">
|
1210
1216
|
<a:documentation>Representation of a standardisation document</a:documentation>
|
1211
|
-
<element name="
|
1217
|
+
<element name="metanorma">
|
1212
1218
|
<ref name="Root-Attributes"/>
|
1213
1219
|
<ref name="bibdata">
|
1214
1220
|
<a:documentation>Bibliographic description of the document itself, expressed in the Relaton model</a:documentation>
|
data/metanorma-generic.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.require_paths = ["lib"]
|
28
28
|
spec.required_ruby_version = Gem::Requirement.new(">= 3.1.0")
|
29
29
|
|
30
|
-
spec.add_dependency "metanorma-standoc", "~>
|
30
|
+
spec.add_dependency "metanorma-standoc", "~> 3.0.0"
|
31
31
|
|
32
32
|
spec.add_development_dependency "debug"
|
33
33
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-generic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 3.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 3.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -240,7 +240,7 @@ homepage: https://github.com/metanorma/metanorma-generic
|
|
240
240
|
licenses:
|
241
241
|
- BSD-2-Clause
|
242
242
|
metadata: {}
|
243
|
-
post_install_message:
|
243
|
+
post_install_message:
|
244
244
|
rdoc_options: []
|
245
245
|
require_paths:
|
246
246
|
- lib
|
@@ -256,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
256
256
|
version: '0'
|
257
257
|
requirements: []
|
258
258
|
rubygems_version: 3.3.27
|
259
|
-
signing_key:
|
259
|
+
signing_key:
|
260
260
|
specification_version: 4
|
261
261
|
summary: Metanorma template gem for customisation.
|
262
262
|
test_files: []
|