slaw 10.7.0 → 13.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -0
- data/lib/slaw/grammars/schedules_nodes.rb +3 -2
- data/lib/slaw/grammars/tables_nodes.rb +1 -1
- data/lib/slaw/grammars/za/act_nodes.rb +13 -9
- data/lib/slaw/grammars/za/act_text.xsl +3 -3
- data/lib/slaw/version.rb +1 -1
- data/spec/generator_spec.rb +3 -3
- data/spec/za/act_block_spec.rb +18 -34
- data/spec/za/act_inline_spec.rb +1 -1
- data/spec/za/act_schedules_spec.rb +42 -42
- data/spec/za/act_table_spec.rb +6 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea1450bcf329de90eafd7b9e81842b42a3d464c6a75898417a3ecb77b506a4ed
|
4
|
+
data.tar.gz: 1c4dfd6db80494ea2c9d40aa935d66c89ceea0ba1ff1336815e8740fe10ebb56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2700cab7752db63b500e2574285d24b093ae7852d614da75a530b3232c028b2abc54b875148d320a22e7ece51f3526133ab7c0c10c6158f2c8def47f1fbaaa97
|
7
|
+
data.tar.gz: '088b0fe600f41c6dfbc55d453cd0fb20851335fa8ac7d8fe63d014272b5a601b8935907becfd6e7eb7c5fecb6396e3c9e4b074a9e02fcb56c2874b80d3cf9b07'
|
data/README.md
CHANGED
@@ -86,6 +86,19 @@ You can create your own grammar by creating a gem that provides these files and
|
|
86
86
|
|
87
87
|
## Changelog
|
88
88
|
|
89
|
+
### 13.0.0 (28 June 2022)
|
90
|
+
|
91
|
+
* Generate correct `.../!main` in FRBR URIs.
|
92
|
+
|
93
|
+
### 12.0.0 (31 January 2022)
|
94
|
+
|
95
|
+
* Use `<br/>` for newlines in tables, rather than `<eol/>`, since it's more semantically correct.
|
96
|
+
|
97
|
+
### 11.0.0 (29 October 2021)
|
98
|
+
|
99
|
+
* Prefix eId attributes in attachments with attachement's eId
|
100
|
+
* Use crossHeading element for crossheadings
|
101
|
+
|
89
102
|
### 10.7.0 (11 June 2021)
|
90
103
|
|
91
104
|
* Support underlines with `__text__`
|
@@ -97,8 +97,9 @@ module Slaw
|
|
97
97
|
|
98
98
|
# the schedule id is derived from the heading
|
99
99
|
schedule_id = self.schedule_id(heading_text, i)
|
100
|
+
eId = "att_#{i}"
|
100
101
|
|
101
|
-
b.attachment(eId:
|
102
|
+
b.attachment(eId: eId) { |b|
|
102
103
|
schedule_title.to_xml(b, '', heading_text)
|
103
104
|
b.doc_(name: "schedule") { |b|
|
104
105
|
b.meta { |b|
|
@@ -128,7 +129,7 @@ module Slaw
|
|
128
129
|
}
|
129
130
|
|
130
131
|
b.mainBody { |b|
|
131
|
-
body.children.elements.each_with_index { |e| e.to_xml(b,
|
132
|
+
body.children.elements.each_with_index { |e| e.to_xml(b, eId + "__", i) } if body.is_a? Body
|
132
133
|
}
|
133
134
|
}
|
134
135
|
}
|
@@ -67,7 +67,7 @@ module Slaw
|
|
67
67
|
# for the first line, eat whitespace at the start
|
68
68
|
# for the last line, eat whitespace at the end
|
69
69
|
if not tail and (i > 0 or not inline_items.empty?)
|
70
|
-
eol.text_value.count("\n").times { b.
|
70
|
+
eol.text_value.count("\n").times { b.br }
|
71
71
|
end
|
72
72
|
end
|
73
73
|
end
|
@@ -36,7 +36,7 @@ module Slaw
|
|
36
36
|
b.identification(source: "#slaw") { |b|
|
37
37
|
# use stub values so that we can generate a validating document
|
38
38
|
b.FRBRWork { |b|
|
39
|
-
b.FRBRthis(value: "#{WORK_URI}
|
39
|
+
b.FRBRthis(value: "#{WORK_URI}/!main")
|
40
40
|
b.FRBRuri(value: WORK_URI)
|
41
41
|
b.FRBRalias(value: 'Short Title', name: 'title')
|
42
42
|
b.FRBRdate(date: '1980-01-01', name: 'Generation')
|
@@ -44,14 +44,14 @@ module Slaw
|
|
44
44
|
b.FRBRcountry(value: 'za')
|
45
45
|
}
|
46
46
|
b.FRBRExpression { |b|
|
47
|
-
b.FRBRthis(value: "#{EXPRESSION_URI}
|
47
|
+
b.FRBRthis(value: "#{EXPRESSION_URI}/!main")
|
48
48
|
b.FRBRuri(value: EXPRESSION_URI)
|
49
49
|
b.FRBRdate(date: '1980-01-01', name: 'Generation')
|
50
50
|
b.FRBRauthor(href: '#council')
|
51
51
|
b.FRBRlanguage(language: 'eng')
|
52
52
|
}
|
53
53
|
b.FRBRManifestation { |b|
|
54
|
-
b.FRBRthis(value: "#{MANIFESTATION_URI}
|
54
|
+
b.FRBRthis(value: "#{MANIFESTATION_URI}/!main")
|
55
55
|
b.FRBRuri(value: MANIFESTATION_URI)
|
56
56
|
b.FRBRdate(date: Time.now.strftime('%Y-%m-%d'), name: 'Generation')
|
57
57
|
b.FRBRauthor(href: '#slaw')
|
@@ -234,8 +234,14 @@ module Slaw
|
|
234
234
|
section_title.num
|
235
235
|
end
|
236
236
|
|
237
|
-
def to_xml(b, *args)
|
237
|
+
def to_xml(b, idprefix='', *args)
|
238
238
|
id = "sec_#{Slaw::Grammars::Counters.clean(num)}"
|
239
|
+
# For historical reasons, we normally ignore the idprefix for sections, assuming
|
240
|
+
# them to be unique. However, in an attachment (eg. a schedule), ensure they
|
241
|
+
# are correctly prefixed
|
242
|
+
# TODO: always include the idprefix
|
243
|
+
id = idprefix + id if idprefix.start_with? 'att_'
|
244
|
+
|
239
245
|
b.section(eId: id) { |b|
|
240
246
|
section_title.to_xml(b)
|
241
247
|
|
@@ -371,13 +377,11 @@ module Slaw
|
|
371
377
|
|
372
378
|
class Crossheading < Treetop::Runtime::SyntaxNode
|
373
379
|
def to_xml(b, idprefix, i=0)
|
374
|
-
cnt = Slaw::Grammars::Counters.counters[idprefix]['
|
375
|
-
id = "#{idprefix}
|
380
|
+
cnt = Slaw::Grammars::Counters.counters[idprefix]['crossHeading'] += 1
|
381
|
+
id = "#{idprefix}crossHeading_#{cnt}"
|
376
382
|
|
377
|
-
b.
|
378
|
-
b.heading { |b|
|
383
|
+
b.crossHeading(eId: id) { |b|
|
379
384
|
inline_items.to_xml(b, idprefix)
|
380
|
-
}
|
381
385
|
}
|
382
386
|
end
|
383
387
|
end
|
@@ -231,9 +231,9 @@
|
|
231
231
|
</xsl:template>
|
232
232
|
|
233
233
|
<!-- crossheadings -->
|
234
|
-
<xsl:template match="a:
|
234
|
+
<xsl:template match="a:crossHeading">
|
235
235
|
<xsl:text>CROSSHEADING </xsl:text>
|
236
|
-
<xsl:apply-templates
|
236
|
+
<xsl:apply-templates />
|
237
237
|
<xsl:text> </xsl:text>
|
238
238
|
</xsl:template>
|
239
239
|
|
@@ -409,7 +409,7 @@
|
|
409
409
|
<xsl:text>__</xsl:text>
|
410
410
|
</xsl:template>
|
411
411
|
|
412
|
-
<xsl:template match="a:eol">
|
412
|
+
<xsl:template match="a:eol | a:br">
|
413
413
|
<xsl:text> </xsl:text>
|
414
414
|
</xsl:template>
|
415
415
|
|
data/lib/slaw/version.rb
CHANGED
data/spec/generator_spec.rb
CHANGED
@@ -261,17 +261,17 @@ Hello __underlined__.
|
|
261
261
|
'
|
262
262
|
end
|
263
263
|
|
264
|
-
it 'should replace eol with newlines in tables' do
|
264
|
+
it 'should replace eol and br with newlines in tables' do
|
265
265
|
doc = xml2doc(section(<<XML
|
266
266
|
<num>1.</num>
|
267
267
|
<table eId="sec__21_table_1">
|
268
268
|
<tr>
|
269
269
|
<td>
|
270
|
-
<p>foo<eol/>bar<
|
270
|
+
<p>foo<eol/>bar<br/>baz</p>
|
271
271
|
</td>
|
272
272
|
<td>
|
273
273
|
<p>
|
274
|
-
one<
|
274
|
+
one<br/>two<eol/>three
|
275
275
|
|
276
276
|
</p>
|
277
277
|
</td>
|
data/spec/za/act_block_spec.rb
CHANGED
@@ -59,9 +59,7 @@ EOS
|
|
59
59
|
<p>Hello there</p>
|
60
60
|
</content>
|
61
61
|
</hcontainer>
|
62
|
-
<
|
63
|
-
<heading>crossheading</heading>
|
64
|
-
</hcontainer>
|
62
|
+
<crossHeading eId="sec_1__crossHeading_1">crossheading</crossHeading>
|
65
63
|
</section>
|
66
64
|
</body>'
|
67
65
|
end
|
@@ -96,9 +94,7 @@ EOS
|
|
96
94
|
</blockList>
|
97
95
|
</content>
|
98
96
|
</hcontainer>
|
99
|
-
<
|
100
|
-
<heading>crossheading</heading>
|
101
|
-
</hcontainer>
|
97
|
+
<crossHeading eId="crossHeading_1">crossheading</crossHeading>
|
102
98
|
<section eId="sec_1">
|
103
99
|
<num>1.</num>
|
104
100
|
<heading>Section</heading>
|
@@ -107,9 +103,7 @@ EOS
|
|
107
103
|
<p>Hello there</p>
|
108
104
|
</content>
|
109
105
|
</hcontainer>
|
110
|
-
<
|
111
|
-
<heading>crossheading</heading>
|
112
|
-
</hcontainer>
|
106
|
+
<crossHeading eId="sec_1__crossHeading_1">crossheading</crossHeading>
|
113
107
|
</section>
|
114
108
|
</body>'
|
115
109
|
end
|
@@ -260,10 +254,8 @@ EOS
|
|
260
254
|
to_xml(node).should == '<chapter eId="chp_2">
|
261
255
|
<num>2</num>
|
262
256
|
<heading>The Chapter Heading</heading>
|
263
|
-
<
|
264
|
-
|
265
|
-
</hcontainer>
|
266
|
-
<hcontainer eId="chp_2__hcontainer_2" name="hcontainer">
|
257
|
+
<crossHeading eId="chp_2__crossHeading_1">crossheading</crossHeading>
|
258
|
+
<hcontainer eId="chp_2__hcontainer_1" name="hcontainer">
|
267
259
|
<content>
|
268
260
|
<p>Some lines at the start of the chapter.</p>
|
269
261
|
</content>
|
@@ -489,9 +481,7 @@ EOS
|
|
489
481
|
to_xml(node).should == '<part eId="part_2">
|
490
482
|
<num>2</num>
|
491
483
|
<heading>The Part Heading</heading>
|
492
|
-
<
|
493
|
-
<heading>crossheading</heading>
|
494
|
-
</hcontainer>
|
484
|
+
<crossHeading eId="part_2__crossHeading_1">crossheading</crossHeading>
|
495
485
|
<section eId="sec_1">
|
496
486
|
<num>1.</num>
|
497
487
|
<heading>Section</heading>
|
@@ -1254,7 +1244,7 @@ baz
|
|
1254
1244
|
<meta>
|
1255
1245
|
<identification source="#slaw">
|
1256
1246
|
<FRBRWork>
|
1257
|
-
<FRBRthis value="/za/act/1980/01
|
1247
|
+
<FRBRthis value="/za/act/1980/01/!main"/>
|
1258
1248
|
<FRBRuri value="/za/act/1980/01"/>
|
1259
1249
|
<FRBRalias value="Short Title" name="title"/>
|
1260
1250
|
<FRBRdate date="1980-01-01" name="Generation"/>
|
@@ -1262,14 +1252,14 @@ baz
|
|
1262
1252
|
<FRBRcountry value="za"/>
|
1263
1253
|
</FRBRWork>
|
1264
1254
|
<FRBRExpression>
|
1265
|
-
<FRBRthis value="/za/act/1980/01/eng
|
1255
|
+
<FRBRthis value="/za/act/1980/01/eng@/!main"/>
|
1266
1256
|
<FRBRuri value="/za/act/1980/01/eng@"/>
|
1267
1257
|
<FRBRdate date="1980-01-01" name="Generation"/>
|
1268
1258
|
<FRBRauthor href="#council"/>
|
1269
1259
|
<FRBRlanguage language="eng"/>
|
1270
1260
|
</FRBRExpression>
|
1271
1261
|
<FRBRManifestation>
|
1272
|
-
<FRBRthis value="/za/act/1980/01/eng
|
1262
|
+
<FRBRthis value="/za/act/1980/01/eng@/!main"/>
|
1273
1263
|
<FRBRuri value="/za/act/1980/01/eng@"/>
|
1274
1264
|
<FRBRdate date="' + today + '" name="Generation"/>
|
1275
1265
|
<FRBRauthor href="#slaw"/>
|
@@ -1872,9 +1862,7 @@ EOS
|
|
1872
1862
|
context 'crossheadings' do
|
1873
1863
|
it 'should handle a inline_items in crossheadings' do
|
1874
1864
|
node = parse :crossheading, "CROSSHEADING something [[remark]] [link](/foo/bar)\n"
|
1875
|
-
to_xml(node, '').should == '<
|
1876
|
-
<heading>something <remark status="editorial">[remark]</remark> <ref href="/foo/bar">link</ref></heading>
|
1877
|
-
</hcontainer>'
|
1865
|
+
to_xml(node, '').should == '<crossHeading eId="crossHeading_1">something <remark status="editorial">[remark]</remark> <ref href="/foo/bar">link</ref></crossHeading>'
|
1878
1866
|
end
|
1879
1867
|
|
1880
1868
|
it 'should not be allowed in preface' do
|
@@ -1894,7 +1882,7 @@ Text
|
|
1894
1882
|
<meta>
|
1895
1883
|
<identification source="#slaw">
|
1896
1884
|
<FRBRWork>
|
1897
|
-
<FRBRthis value="/za/act/1980/01
|
1885
|
+
<FRBRthis value="/za/act/1980/01/!main"/>
|
1898
1886
|
<FRBRuri value="/za/act/1980/01"/>
|
1899
1887
|
<FRBRalias value="Short Title" name="title"/>
|
1900
1888
|
<FRBRdate date="1980-01-01" name="Generation"/>
|
@@ -1902,14 +1890,14 @@ Text
|
|
1902
1890
|
<FRBRcountry value="za"/>
|
1903
1891
|
</FRBRWork>
|
1904
1892
|
<FRBRExpression>
|
1905
|
-
<FRBRthis value="/za/act/1980/01/eng
|
1893
|
+
<FRBRthis value="/za/act/1980/01/eng@/!main"/>
|
1906
1894
|
<FRBRuri value="/za/act/1980/01/eng@"/>
|
1907
1895
|
<FRBRdate date="1980-01-01" name="Generation"/>
|
1908
1896
|
<FRBRauthor href="#council"/>
|
1909
1897
|
<FRBRlanguage language="eng"/>
|
1910
1898
|
</FRBRExpression>
|
1911
1899
|
<FRBRManifestation>
|
1912
|
-
<FRBRthis value="/za/act/1980/01/eng
|
1900
|
+
<FRBRthis value="/za/act/1980/01/eng@/!main"/>
|
1913
1901
|
<FRBRuri value="/za/act/1980/01/eng@"/>
|
1914
1902
|
<FRBRdate date="' + today + '" name="Generation"/>
|
1915
1903
|
<FRBRauthor href="#slaw"/>
|
@@ -1924,9 +1912,7 @@ Text
|
|
1924
1912
|
<p>Some text</p>
|
1925
1913
|
</preface>
|
1926
1914
|
<body>
|
1927
|
-
<
|
1928
|
-
<heading>In the body</heading>
|
1929
|
-
</hcontainer>
|
1915
|
+
<crossHeading eId="crossHeading_1">In the body</crossHeading>
|
1930
1916
|
<section eId="sec_1">
|
1931
1917
|
<num>1.</num>
|
1932
1918
|
<heading>Section 1</heading>
|
@@ -1957,7 +1943,7 @@ Text
|
|
1957
1943
|
<meta>
|
1958
1944
|
<identification source="#slaw">
|
1959
1945
|
<FRBRWork>
|
1960
|
-
<FRBRthis value="/za/act/1980/01
|
1946
|
+
<FRBRthis value="/za/act/1980/01/!main"/>
|
1961
1947
|
<FRBRuri value="/za/act/1980/01"/>
|
1962
1948
|
<FRBRalias value="Short Title" name="title"/>
|
1963
1949
|
<FRBRdate date="1980-01-01" name="Generation"/>
|
@@ -1965,14 +1951,14 @@ Text
|
|
1965
1951
|
<FRBRcountry value="za"/>
|
1966
1952
|
</FRBRWork>
|
1967
1953
|
<FRBRExpression>
|
1968
|
-
<FRBRthis value="/za/act/1980/01/eng
|
1954
|
+
<FRBRthis value="/za/act/1980/01/eng@/!main"/>
|
1969
1955
|
<FRBRuri value="/za/act/1980/01/eng@"/>
|
1970
1956
|
<FRBRdate date="1980-01-01" name="Generation"/>
|
1971
1957
|
<FRBRauthor href="#council"/>
|
1972
1958
|
<FRBRlanguage language="eng"/>
|
1973
1959
|
</FRBRExpression>
|
1974
1960
|
<FRBRManifestation>
|
1975
|
-
<FRBRthis value="/za/act/1980/01/eng
|
1961
|
+
<FRBRthis value="/za/act/1980/01/eng@/!main"/>
|
1976
1962
|
<FRBRuri value="/za/act/1980/01/eng@"/>
|
1977
1963
|
<FRBRdate date="' + today + '" name="Generation"/>
|
1978
1964
|
<FRBRauthor href="#slaw"/>
|
@@ -1987,9 +1973,7 @@ Text
|
|
1987
1973
|
<p>Some text</p>
|
1988
1974
|
</preamble>
|
1989
1975
|
<body>
|
1990
|
-
<
|
1991
|
-
<heading>In the body</heading>
|
1992
|
-
</hcontainer>
|
1976
|
+
<crossHeading eId="crossHeading_1">In the body</crossHeading>
|
1993
1977
|
<section eId="sec_1">
|
1994
1978
|
<num>1.</num>
|
1995
1979
|
<heading>Section 1</heading>
|
data/spec/za/act_inline_spec.rb
CHANGED
@@ -197,7 +197,7 @@ EOS
|
|
197
197
|
</identification>
|
198
198
|
</meta>
|
199
199
|
<mainBody>
|
200
|
-
<hcontainer eId="
|
200
|
+
<hcontainer eId="att_1__hcontainer_1" name="hcontainer">
|
201
201
|
<content>
|
202
202
|
<p>
|
203
203
|
<remark status="editorial">[Schedule 1 added by Act 23 of 2004]</remark>
|
@@ -88,11 +88,11 @@ EOS
|
|
88
88
|
</identification>
|
89
89
|
</meta>
|
90
90
|
<mainBody>
|
91
|
-
<section eId="
|
91
|
+
<section eId="att_1__sec_1">
|
92
92
|
<num>1.</num>
|
93
93
|
<heading>Foo</heading>
|
94
94
|
</section>
|
95
|
-
<section eId="
|
95
|
+
<section eId="att_1__sec_2">
|
96
96
|
<num>2.</num>
|
97
97
|
<heading>Bar</heading>
|
98
98
|
</section>
|
@@ -129,7 +129,7 @@ EOS
|
|
129
129
|
</identification>
|
130
130
|
</meta>
|
131
131
|
<mainBody>
|
132
|
-
<hcontainer eId="
|
132
|
+
<hcontainer eId="att_2__hcontainer_1" name="hcontainer">
|
133
133
|
<content>
|
134
134
|
<p>Baz</p>
|
135
135
|
<p>Boom</p>
|
@@ -186,16 +186,16 @@ EOS
|
|
186
186
|
</identification>
|
187
187
|
</meta>
|
188
188
|
<mainBody>
|
189
|
-
<hcontainer eId="
|
189
|
+
<hcontainer eId="att_1__hcontainer_1" name="hcontainer">
|
190
190
|
<content>
|
191
191
|
<p>Subject to approval in terms of this By-Law, the erection:</p>
|
192
192
|
</content>
|
193
193
|
</hcontainer>
|
194
|
-
<section eId="
|
194
|
+
<section eId="att_1__sec_1">
|
195
195
|
<num>1.</num>
|
196
196
|
<heading>Foo</heading>
|
197
197
|
</section>
|
198
|
-
<section eId="
|
198
|
+
<section eId="att_1__sec_2">
|
199
199
|
<num>2.</num>
|
200
200
|
<heading>Bar</heading>
|
201
201
|
</section>
|
@@ -246,16 +246,16 @@ EOS
|
|
246
246
|
</identification>
|
247
247
|
</meta>
|
248
248
|
<mainBody>
|
249
|
-
<hcontainer eId="
|
249
|
+
<hcontainer eId="att_1__hcontainer_1" name="hcontainer">
|
250
250
|
<content>
|
251
251
|
<p>Subject to approval in terms of this By-Law, the erection:</p>
|
252
252
|
</content>
|
253
253
|
</hcontainer>
|
254
|
-
<section eId="
|
254
|
+
<section eId="att_1__sec_1">
|
255
255
|
<num>1.</num>
|
256
256
|
<heading>Foo</heading>
|
257
257
|
</section>
|
258
|
-
<section eId="
|
258
|
+
<section eId="att_1__sec_2">
|
259
259
|
<num>2.</num>
|
260
260
|
<heading>Bar</heading>
|
261
261
|
</section>
|
@@ -304,16 +304,16 @@ EOS
|
|
304
304
|
</identification>
|
305
305
|
</meta>
|
306
306
|
<mainBody>
|
307
|
-
<hcontainer eId="
|
307
|
+
<hcontainer eId="att_1__hcontainer_1" name="hcontainer">
|
308
308
|
<content>
|
309
309
|
<p>Subject to approval in terms of this By-Law, the erection:</p>
|
310
310
|
</content>
|
311
311
|
</hcontainer>
|
312
|
-
<section eId="
|
312
|
+
<section eId="att_1__sec_1">
|
313
313
|
<num>1.</num>
|
314
314
|
<heading>Foo</heading>
|
315
315
|
</section>
|
316
|
-
<section eId="
|
316
|
+
<section eId="att_1__sec_2">
|
317
317
|
<num>2.</num>
|
318
318
|
<heading>Bar</heading>
|
319
319
|
</section>
|
@@ -372,19 +372,19 @@ EOS
|
|
372
372
|
</identification>
|
373
373
|
</meta>
|
374
374
|
<mainBody>
|
375
|
-
<part eId="
|
375
|
+
<part eId="att_1__part_I">
|
376
376
|
<num>I</num>
|
377
377
|
<heading>Form of authentication statement</heading>
|
378
|
-
<hcontainer eId="
|
378
|
+
<hcontainer eId="att_1__part_I__hcontainer_1" name="hcontainer">
|
379
379
|
<content>
|
380
380
|
<p>This printed impression has been carefully compared by me with the bill which was passed by Parliament and found by me to be a true copy of the bill.</p>
|
381
381
|
</content>
|
382
382
|
</hcontainer>
|
383
383
|
</part>
|
384
|
-
<part eId="
|
384
|
+
<part eId="att_1__part_II">
|
385
385
|
<num>II</num>
|
386
386
|
<heading>Form of statement of the President’s assent.</heading>
|
387
|
-
<hcontainer eId="
|
387
|
+
<hcontainer eId="att_1__part_II__hcontainer_1" name="hcontainer">
|
388
388
|
<content>
|
389
389
|
<p>I signify my assent to the bill and a whole bunch of other stuff.</p>
|
390
390
|
</content>
|
@@ -447,7 +447,7 @@ EOS
|
|
447
447
|
</identification>
|
448
448
|
</meta>
|
449
449
|
<mainBody>
|
450
|
-
<hcontainer eId="
|
450
|
+
<hcontainer eId="att_1__hcontainer_1" name="hcontainer">
|
451
451
|
<content>
|
452
452
|
<p>Subject to approval in terms of this By-Law.</p>
|
453
453
|
<p>Schedule another</p>
|
@@ -499,7 +499,7 @@ EOS
|
|
499
499
|
</identification>
|
500
500
|
</meta>
|
501
501
|
<mainBody>
|
502
|
-
<hcontainer eId="
|
502
|
+
<hcontainer eId="att_1__hcontainer_1" name="hcontainer">
|
503
503
|
<content>
|
504
504
|
<p>Subject to approval in terms of this By-Law.</p>
|
505
505
|
</content>
|
@@ -550,16 +550,16 @@ EOS
|
|
550
550
|
</identification>
|
551
551
|
</meta>
|
552
552
|
<mainBody>
|
553
|
-
<hcontainer eId="
|
553
|
+
<hcontainer eId="att_1__hcontainer_1" name="hcontainer">
|
554
554
|
<content>
|
555
555
|
<p>Subject to approval in terms of this By-Law, the erection:</p>
|
556
556
|
</content>
|
557
557
|
</hcontainer>
|
558
|
-
<section eId="
|
558
|
+
<section eId="att_1__sec_1">
|
559
559
|
<num>1.</num>
|
560
560
|
<heading>Foo</heading>
|
561
561
|
</section>
|
562
|
-
<section eId="
|
562
|
+
<section eId="att_1__sec_2">
|
563
563
|
<num>2.</num>
|
564
564
|
<heading>Bar</heading>
|
565
565
|
</section>
|
@@ -608,12 +608,12 @@ EOS
|
|
608
608
|
</identification>
|
609
609
|
</meta>
|
610
610
|
<mainBody>
|
611
|
-
<hcontainer eId="
|
611
|
+
<hcontainer eId="att_1__hcontainer_1" name="hcontainer">
|
612
612
|
<content>
|
613
613
|
<p>Subject to approval in terms of this By-Law, the erection:</p>
|
614
614
|
</content>
|
615
615
|
</hcontainer>
|
616
|
-
<section eId="
|
616
|
+
<section eId="att_1__sec_1">
|
617
617
|
<num>1.</num>
|
618
618
|
<heading>Foo</heading>
|
619
619
|
</section>
|
@@ -665,16 +665,16 @@ EOS
|
|
665
665
|
</identification>
|
666
666
|
</meta>
|
667
667
|
<mainBody>
|
668
|
-
<hcontainer eId="
|
668
|
+
<hcontainer eId="att_1__hcontainer_1" name="hcontainer">
|
669
669
|
<content>
|
670
670
|
<p>Subject to approval in terms of this By-Law, the erection:</p>
|
671
671
|
</content>
|
672
672
|
</hcontainer>
|
673
|
-
<section eId="
|
673
|
+
<section eId="att_1__sec_1">
|
674
674
|
<num>1.</num>
|
675
675
|
<heading>Foo</heading>
|
676
676
|
</section>
|
677
|
-
<section eId="
|
677
|
+
<section eId="att_1__sec_2">
|
678
678
|
<num>2.</num>
|
679
679
|
<heading>Bar</heading>
|
680
680
|
</section>
|
@@ -729,11 +729,11 @@ EOS
|
|
729
729
|
</identification>
|
730
730
|
</meta>
|
731
731
|
<mainBody>
|
732
|
-
<section eId="
|
732
|
+
<section eId="att_1__sec_1">
|
733
733
|
<num>1.</num>
|
734
734
|
<heading>Foo</heading>
|
735
735
|
</section>
|
736
|
-
<section eId="
|
736
|
+
<section eId="att_1__sec_2">
|
737
737
|
<num>2.</num>
|
738
738
|
<heading>Bar</heading>
|
739
739
|
</section>
|
@@ -770,7 +770,7 @@ EOS
|
|
770
770
|
</identification>
|
771
771
|
</meta>
|
772
772
|
<mainBody>
|
773
|
-
<hcontainer eId="
|
773
|
+
<hcontainer eId="att_2__hcontainer_1" name="hcontainer">
|
774
774
|
<content>
|
775
775
|
<p>Baz</p>
|
776
776
|
<p>Boom</p>
|
@@ -826,16 +826,16 @@ EOS
|
|
826
826
|
</identification>
|
827
827
|
</meta>
|
828
828
|
<mainBody>
|
829
|
-
<hcontainer eId="
|
829
|
+
<hcontainer eId="att_1__hcontainer_1" name="hcontainer">
|
830
830
|
<content>
|
831
831
|
<p>Subject to approval in terms of this By-Law, the erection:</p>
|
832
832
|
</content>
|
833
833
|
</hcontainer>
|
834
|
-
<section eId="
|
834
|
+
<section eId="att_1__sec_1">
|
835
835
|
<num>1.</num>
|
836
836
|
<heading>Foo</heading>
|
837
837
|
</section>
|
838
|
-
<section eId="
|
838
|
+
<section eId="att_1__sec_2">
|
839
839
|
<num>2.</num>
|
840
840
|
<heading>Bar</heading>
|
841
841
|
</section>
|
@@ -885,16 +885,16 @@ EOS
|
|
885
885
|
</identification>
|
886
886
|
</meta>
|
887
887
|
<mainBody>
|
888
|
-
<hcontainer eId="
|
888
|
+
<hcontainer eId="att_1__hcontainer_1" name="hcontainer">
|
889
889
|
<content>
|
890
890
|
<p>Subject to approval in terms of this By-Law, the erection:</p>
|
891
891
|
</content>
|
892
892
|
</hcontainer>
|
893
|
-
<section eId="
|
893
|
+
<section eId="att_1__sec_1">
|
894
894
|
<num>1.</num>
|
895
895
|
<heading>Foo</heading>
|
896
896
|
</section>
|
897
|
-
<section eId="
|
897
|
+
<section eId="att_1__sec_2">
|
898
898
|
<num>2.</num>
|
899
899
|
<heading>Bar</heading>
|
900
900
|
</section>
|
@@ -942,16 +942,16 @@ EOS
|
|
942
942
|
</identification>
|
943
943
|
</meta>
|
944
944
|
<mainBody>
|
945
|
-
<hcontainer eId="
|
945
|
+
<hcontainer eId="att_1__hcontainer_1" name="hcontainer">
|
946
946
|
<content>
|
947
947
|
<p>Subject to approval in terms of this By-Law, the erection:</p>
|
948
948
|
</content>
|
949
949
|
</hcontainer>
|
950
|
-
<section eId="
|
950
|
+
<section eId="att_1__sec_1">
|
951
951
|
<num>1.</num>
|
952
952
|
<heading>Foo</heading>
|
953
953
|
</section>
|
954
|
-
<section eId="
|
954
|
+
<section eId="att_1__sec_2">
|
955
955
|
<num>2.</num>
|
956
956
|
<heading>Bar</heading>
|
957
957
|
</section>
|
@@ -1001,16 +1001,16 @@ EOS
|
|
1001
1001
|
</identification>
|
1002
1002
|
</meta>
|
1003
1003
|
<mainBody>
|
1004
|
-
<hcontainer eId="
|
1004
|
+
<hcontainer eId="att_1__hcontainer_1" name="hcontainer">
|
1005
1005
|
<content>
|
1006
1006
|
<p>Other than as is set out hereinbelow, no signs other than locality bound signs, temporary signs including loose portable sign, estate agents signs, newspaper headline posters and posters (the erection of which must comply with the appropriate schedules pertinent thereto) shall be erected on Municipal owned land.</p>
|
1007
1007
|
</content>
|
1008
1008
|
</hcontainer>
|
1009
|
-
<section eId="
|
1009
|
+
<section eId="att_1__sec_1">
|
1010
1010
|
<num>1.</num>
|
1011
1011
|
<heading>Foo</heading>
|
1012
1012
|
</section>
|
1013
|
-
<section eId="
|
1013
|
+
<section eId="att_1__sec_2">
|
1014
1014
|
<num>2.</num>
|
1015
1015
|
<heading>Bar</heading>
|
1016
1016
|
</section>
|
@@ -1060,7 +1060,7 @@ EOS
|
|
1060
1060
|
</identification>
|
1061
1061
|
</meta>
|
1062
1062
|
<mainBody>
|
1063
|
-
<hcontainer eId="
|
1063
|
+
<hcontainer eId="att_1__hcontainer_1" name="hcontainer">
|
1064
1064
|
<content>
|
1065
1065
|
<p>Subject to approval in terms of this By-Law.</p>
|
1066
1066
|
</content>
|
data/spec/za/act_table_spec.rb
CHANGED
@@ -151,10 +151,10 @@ EOS
|
|
151
151
|
to_xml(node, "prefix__").should == '<table eId="prefix__table_1">
|
152
152
|
<tr>
|
153
153
|
<td>
|
154
|
-
<p>foo<
|
154
|
+
<p>foo<br/>bar<br/><br/>baz</p>
|
155
155
|
</td>
|
156
156
|
<td>
|
157
|
-
<p>one<
|
157
|
+
<p>one<br/>two<br/><br/>three</p>
|
158
158
|
</td>
|
159
159
|
<td>
|
160
160
|
<p>four</p>
|
@@ -176,7 +176,7 @@ EOS
|
|
176
176
|
to_xml(node, "prefix__").should == '<table eId="prefix__table_1">
|
177
177
|
<tr>
|
178
178
|
<th>
|
179
|
-
<p>foo<
|
179
|
+
<p>foo<br/>three</p>
|
180
180
|
</th>
|
181
181
|
</tr>
|
182
182
|
<tr>
|
@@ -298,10 +298,10 @@ EOS
|
|
298
298
|
</identification>
|
299
299
|
</meta>
|
300
300
|
<mainBody>
|
301
|
-
<hcontainer eId="
|
301
|
+
<hcontainer eId="att_1__hcontainer_1" name="hcontainer">
|
302
302
|
<content>
|
303
303
|
<p>Heres a table:</p>
|
304
|
-
<table eId="
|
304
|
+
<table eId="att_1__hcontainer_1__table_1">
|
305
305
|
<tr>
|
306
306
|
<td>
|
307
307
|
<p>r1c1</p>
|
@@ -380,7 +380,7 @@ EOS
|
|
380
380
|
<p>a <ref href="/a/b">link</ref> in a table</p>
|
381
381
|
</td>
|
382
382
|
<td>
|
383
|
-
<p><ref href="/a/b">link</ref> and<
|
383
|
+
<p><ref href="/a/b">link</ref> and<br/><remark status="editorial">[comment]</remark></p>
|
384
384
|
</td>
|
385
385
|
</tr>
|
386
386
|
</table>'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slaw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 13.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Kempe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
175
|
- !ruby/object:Gem::Version
|
176
176
|
version: '0'
|
177
177
|
requirements: []
|
178
|
-
rubygems_version: 3.
|
178
|
+
rubygems_version: 3.1.4
|
179
179
|
signing_key:
|
180
180
|
specification_version: 4
|
181
181
|
summary: A lightweight library for using Akoma Ntoso acts in Ruby.
|