metanorma-mpfa 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bcb79c6298d6dd5189b9bf3809998660ac356c4bc189bd73c8a021260bb04436
4
- data.tar.gz: eca31075ff6776f0eb12e42aa6414bae5dfb0675331bb5049f710f2ed0126ef9
3
+ metadata.gz: ad686c232b1c0158a0fb559309fdac2ff804b4a57255ba45bca033af223842fc
4
+ data.tar.gz: fc2adc793704b240de50a28d4f171e942b4703351619855d998df2c74fc00624
5
5
  SHA512:
6
- metadata.gz: 4846d2afc61d7cad3db0414dba187d3be7da8eb28d318fdf0fc38cd84dc14f5af4b4f41d7bfdeb942286c32b4403b3603d7805c549c1d526c7c3aaf529ec5bc8
7
- data.tar.gz: 7fb4887141cbb59686867fb67efe4e7fb218b596447088ace45be8ad65428650cdd64db23775e8a978efc9165e8981dbb1972ecb417de08c3155175d4e35b0c6
6
+ metadata.gz: def1e67cb5c70be12f20444cb9ced7e39648bd9e2d03394da28239787e1a7a35b53071199fe34e206ea04294a7d11582b2ef55eebef0a1755a5ebe89e67edb13
7
+ data.tar.gz: e6cc94d6dd666bd999fd36f0e22f0f1d88078896d12e405be64c666ef535b6204a0ab6e90728a20a4ae6080668a54bc583d0b4215768b72364066dc58d0e6ede
@@ -42,8 +42,11 @@
42
42
  </define>
43
43
  <define name="xref">
44
44
  <element name="xref">
45
+ <!-- attribute target { xsd:IDREF }, -->
45
46
  <attribute name="target">
46
- <data type="IDREF"/>
47
+ <data type="string">
48
+ <param name="pattern">\i\c*|\c+#\c+</param>
49
+ </data>
47
50
  </attribute>
48
51
  <optional>
49
52
  <attribute name="type">
@@ -28,6 +28,7 @@ module IsoDoc
28
28
  def preface(isoxml, out)
29
29
  isoxml.xpath(ns(self.class::FRONT_CLAUSE)).each do |c|
30
30
  if c.name == "terms" || c.at(ns(".//terms")) then terms_defs isoxml, out, 0
31
+ elsif !is_clause?(c.name) then parse(c, out)
31
32
  else
32
33
  out.div **attr_code(id: c["id"]) do |s|
33
34
  clause_name(nil, c&.at(ns("./title")), s, nil)
@@ -39,6 +40,10 @@ module IsoDoc
39
40
  end
40
41
  end
41
42
 
43
+ def middle_clause
44
+ "//clause[parent::sections][not(descendant::terms)]"
45
+ end
46
+
42
47
  def middle(isoxml, out)
43
48
  middle_title(out)
44
49
  middle_admonitions(isoxml, out)
@@ -50,6 +50,7 @@ module IsoDoc
50
50
  def make_body2(body, docxml)
51
51
  body.div **{ class: "WordSection2" } do |div2|
52
52
  info docxml, div2
53
+ #preface_block docxml, div2
53
54
  abstract docxml, div2
54
55
  foreword docxml, div2
55
56
  introduction docxml, div2
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module MPFA
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-mpfa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.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: 2020-08-14 00:00:00.000000000 Z
11
+ date: 2020-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities