metanorma-vsd 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,162 @@
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
+ <!--
4
+ Presupposes isodoc.rnc, is included in it
5
+ include "isodoc.rnc" { }
6
+ -->
7
+ <define name="requirement">
8
+ <element name="requirement">
9
+ <ref name="RequirementType"/>
10
+ </element>
11
+ </define>
12
+ <define name="recommendation">
13
+ <element name="recommendation">
14
+ <ref name="RequirementType"/>
15
+ </element>
16
+ </define>
17
+ <define name="permission">
18
+ <element name="permission">
19
+ <ref name="RequirementType"/>
20
+ </element>
21
+ </define>
22
+ <define name="RequirementType">
23
+ <optional>
24
+ <attribute name="obligation">
25
+ <ref name="ObligationType"/>
26
+ </attribute>
27
+ </optional>
28
+ <optional>
29
+ <attribute name="unnumbered">
30
+ <data type="boolean"/>
31
+ </attribute>
32
+ </optional>
33
+ <attribute name="id">
34
+ <data type="ID"/>
35
+ </attribute>
36
+ <optional>
37
+ <attribute name="filename"/>
38
+ </optional>
39
+ <optional>
40
+ <ref name="reqtitle"/>
41
+ </optional>
42
+ <optional>
43
+ <ref name="label"/>
44
+ </optional>
45
+ <optional>
46
+ <ref name="subject"/>
47
+ </optional>
48
+ <optional>
49
+ <ref name="reqinherit"/>
50
+ </optional>
51
+ <zeroOrMore>
52
+ <ref name="classification"/>
53
+ </zeroOrMore>
54
+ <zeroOrMore>
55
+ <choice>
56
+ <ref name="measurementtarget"/>
57
+ <ref name="specification"/>
58
+ <ref name="verification"/>
59
+ <ref name="import"/>
60
+ <ref name="description"/>
61
+ </choice>
62
+ </zeroOrMore>
63
+ <optional>
64
+ <ref name="reqt_references"/>
65
+ </optional>
66
+ <zeroOrMore>
67
+ <choice>
68
+ <ref name="requirement"/>
69
+ <ref name="recommendation"/>
70
+ <ref name="permission"/>
71
+ </choice>
72
+ </zeroOrMore>
73
+ </define>
74
+ <define name="reqtitle">
75
+ <element name="title">
76
+ <ref name="FormattedString"/>
77
+ </element>
78
+ </define>
79
+ <define name="label">
80
+ <element name="label">
81
+ <text/>
82
+ </element>
83
+ </define>
84
+ <define name="subject">
85
+ <element name="subject">
86
+ <text/>
87
+ </element>
88
+ </define>
89
+ <define name="reqinherit">
90
+ <element name="subject">
91
+ <text/>
92
+ </element>
93
+ </define>
94
+ <define name="measurementtarget">
95
+ <element name="measurement-target">
96
+ <ref name="RequirementSubpart"/>
97
+ </element>
98
+ </define>
99
+ <define name="specification">
100
+ <element name="specification">
101
+ <ref name="RequirementSubpart"/>
102
+ </element>
103
+ </define>
104
+ <define name="verification">
105
+ <element name="verification">
106
+ <ref name="RequirementSubpart"/>
107
+ </element>
108
+ </define>
109
+ <define name="import">
110
+ <element name="import">
111
+ <ref name="RequirementSubpart"/>
112
+ </element>
113
+ </define>
114
+ <define name="description">
115
+ <element name="description">
116
+ <ref name="RequirementSubpart"/>
117
+ </element>
118
+ </define>
119
+ <define name="reqt_references">
120
+ <element name="references">
121
+ <oneOrMore>
122
+ <ref name="bibitem"/>
123
+ </oneOrMore>
124
+ </element>
125
+ </define>
126
+ <define name="RequirementSubpart">
127
+ <optional>
128
+ <attribute name="type"/>
129
+ </optional>
130
+ <optional>
131
+ <attribute name="exclude">
132
+ <data type="boolean"/>
133
+ </attribute>
134
+ </optional>
135
+ <oneOrMore>
136
+ <ref name="BasicBlock"/>
137
+ </oneOrMore>
138
+ </define>
139
+ <define name="ObligationType">
140
+ <choice>
141
+ <value>requirement</value>
142
+ <value>recommendation</value>
143
+ <value>permission</value>
144
+ </choice>
145
+ </define>
146
+ <define name="classification">
147
+ <element name="classification">
148
+ <ref name="classification_tag"/>
149
+ <ref name="classification_value"/>
150
+ </element>
151
+ </define>
152
+ <define name="classification_tag">
153
+ <element name="tag">
154
+ <text/>
155
+ </element>
156
+ </define>
157
+ <define name="classification_value">
158
+ <element name="value">
159
+ <text/>
160
+ </element>
161
+ </define>
162
+ </grammar>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Vsd
3
- VERSION = "0.4.1"
3
+ VERSION = "0.4.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-vsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-15 00:00:00.000000000 Z
11
+ date: 2019-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -256,10 +256,12 @@ files:
256
256
  - bin/rspec
257
257
  - bin/setup
258
258
  - lib/asciidoctor/vsd.rb
259
+ - lib/asciidoctor/vsd/basicdoc.rng
259
260
  - lib/asciidoctor/vsd/biblio.rng
260
261
  - lib/asciidoctor/vsd/converter.rb
261
262
  - lib/asciidoctor/vsd/isodoc.rng
262
263
  - lib/asciidoctor/vsd/isostandard.rng
264
+ - lib/asciidoctor/vsd/reqt.rng
263
265
  - lib/asciidoctor/vsd/vsd.rng
264
266
  - lib/isodoc/vsd.rb
265
267
  - lib/isodoc/vsd/html/header.html