metanorma-ribose 1.6.1 → 1.6.2

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: 566efa000e9a2eb1e621a328d5e69e5d569617182362ac4031a102a5a6c59098
4
- data.tar.gz: ff40565a7e4f8f2bc82ab7375feae8575c293f158db22d616215dca89c3be3b8
3
+ metadata.gz: fd8a7ba923060d8d77a27cc47590c5e2f4722689aeaf1d416f73f000cb60d558
4
+ data.tar.gz: a47926affab1e612888f0a935cfc4b9df2f66c75e6af582407bbf7b87b802bbd
5
5
  SHA512:
6
- metadata.gz: 770d8094bd43b178446544ed1da08e984b0fc758a83cd6a902dbcc55bdc58b2a219faa7f68f25a5aa9559bf37c7ca87b3b272840ff81b259f8f7d13a9bad5f30
7
- data.tar.gz: ae257de831e084d599743d16b16d11024de37ef2cf0d803075d458752368e6d514d87a8cddec27a2d1faf1d909a864b51cb57abac42df958665b187202ad33d1
6
+ metadata.gz: 047a79ad6e5d1d4d1274ead5f3582e2b6927ef9911eadc963590afef810628c41584fd24718c05f2ac51e920977a18ccba2b4753d941fd6fbcdc95f20ad2d01e
7
+ data.tar.gz: ee23c689871c32d12bc9ec2016a6da6657173dc542ceecd7840ae5bf8ccda3693706ed0c89d2b2a41787d677cee7b9216d8364e3b1ff89ba12f2c0371eda3b6d
@@ -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">
@@ -13,6 +13,11 @@ module IsoDoc
13
13
  end
14
14
  end
15
15
 
16
+ def is_clause?(name)
17
+ return true if name == "executivesummary"
18
+ super
19
+ end
20
+
16
21
  def clausedelim
17
22
  ""
18
23
  end
@@ -16,6 +16,7 @@ module IsoDoc
16
16
  def make_body3(body, docxml)
17
17
  body.div **{ class: "main-section" } do |div3|
18
18
  boilerplate docxml, div3
19
+ preface_block docxml, div3
19
20
  abstract docxml, div3
20
21
  foreword docxml, div3
21
22
  executivesummary docxml, div3
@@ -2166,12 +2166,34 @@
2166
2166
  <fo:table-cell>
2167
2167
  <fo:block>
2168
2168
 
2169
-
2169
+ <!-- <xsl:if test="$namespace = 'nist-cswp' or $namespace = 'nist-sp'">
2170
+ <xsl:if test="local-name(*[1]) != 'stem'">
2171
+ <xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
2172
+ </xsl:if>
2173
+ </xsl:if> -->
2170
2174
 
2171
2175
  </fo:block>
2172
2176
  </fo:table-cell>
2173
2177
  </fo:table-row>
2174
-
2178
+ <!-- <xsl:if test="$namespace = 'nist-cswp' or $namespace = 'nist-sp'">
2179
+ <xsl:if test="local-name(*[1]) = 'stem'">
2180
+ <fo:table-row>
2181
+ <fo:table-cell>
2182
+ <fo:block margin-top="6pt">
2183
+ <xsl:if test="normalize-space($key_iso) = 'true'">
2184
+ <xsl:attribute name="margin-top">0</xsl:attribute>
2185
+ </xsl:if>
2186
+ <xsl:text>&#xA0;</xsl:text>
2187
+ </fo:block>
2188
+ </fo:table-cell>
2189
+ <fo:table-cell>
2190
+ <fo:block>
2191
+ <xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
2192
+ </fo:block>
2193
+ </fo:table-cell>
2194
+ </fo:table-row>
2195
+ </xsl:if>
2196
+ </xsl:if> -->
2175
2197
  </xsl:template><xsl:template match="*[local-name()='dd']" mode="dl"/><xsl:template match="*[local-name()='dd']" mode="dl_process">
2176
2198
  <xsl:apply-templates/>
2177
2199
  </xsl:template><xsl:template match="*[local-name()='dd']"/><xsl:template match="*[local-name()='dd']" mode="process">
@@ -2930,22 +2952,30 @@
2930
2952
  </fo:block>
2931
2953
  </xsl:template><xsl:template match="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
2932
2954
  <fo:block-container margin-left="0mm" margin-right="0mm" margin-bottom="12pt">
2955
+ <xsl:if test="ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
2956
+ <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
2957
+ </xsl:if>
2933
2958
  <fo:block-container margin-left="0mm" margin-right="0mm">
2934
- <fo:table id="{@id}" table-layout="fixed" width="100%" border="0pt solid black">
2959
+ <fo:table id="{@id}" table-layout="fixed" width="100%" border="1pt solid black">
2960
+ <xsl:if test="ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
2961
+ <xsl:attribute name="border">0.5pt solid black</xsl:attribute>
2962
+ </xsl:if>
2935
2963
  <xsl:variable name="simple-table">
2936
2964
  <xsl:call-template name="getSimpleTable"/>
2937
2965
  </xsl:variable>
2938
2966
  <xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
2939
2967
  <xsl:if test="$cols-count = 2 and not(ancestor::*[local-name()='table'])">
2940
- <fo:table-column column-width="35mm"/>
2941
- <fo:table-column column-width="115mm"/>
2968
+ <!-- <fo:table-column column-width="35mm"/>
2969
+ <fo:table-column column-width="115mm"/> -->
2970
+ <fo:table-column column-width="25%"/>
2971
+ <fo:table-column column-width="75%"/>
2942
2972
  </xsl:if>
2943
2973
  <xsl:apply-templates mode="requirement"/>
2944
2974
  </fo:table>
2945
2975
  <!-- fn processing -->
2946
2976
  <xsl:if test=".//*[local-name() = 'fn']">
2947
2977
  <xsl:for-each select="*[local-name() = 'tbody']">
2948
- <fo:block font-size="90%" border-bottom="1.pt solid black">
2978
+ <fo:block font-size="90%" border-bottom="1pt solid black">
2949
2979
  <xsl:call-template name="fn_display"/>
2950
2980
  </fo:block>
2951
2981
  </xsl:for-each>
@@ -2961,17 +2991,20 @@
2961
2991
  <xsl:apply-templates mode="requirement"/>
2962
2992
  </fo:table-body>
2963
2993
  </xsl:template><xsl:template match="*[local-name()='tr']" mode="requirement">
2964
- <fo:table-row>
2994
+ <fo:table-row height="7mm">
2995
+ <xsl:if test="parent::*[local-name()='thead'] and not(ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission'])">
2996
+ <xsl:attribute name="border">1pt solid black</xsl:attribute>
2997
+ </xsl:if>
2965
2998
  <xsl:apply-templates mode="requirement"/>
2966
2999
  </fo:table-row>
2967
3000
  </xsl:template><xsl:template match="*[local-name()='th']" mode="requirement">
2968
- <fo:table-cell text-align="{@align}">
3001
+ <fo:table-cell text-align="{@align}" display-align="center" padding="1mm" padding-left="2mm" border="0.5pt solid black">
2969
3002
  <xsl:attribute name="text-align">
2970
3003
  <xsl:choose>
2971
3004
  <xsl:when test="@align">
2972
3005
  <xsl:value-of select="@align"/>
2973
3006
  </xsl:when>
2974
- <xsl:otherwise>center</xsl:otherwise>
3007
+ <xsl:otherwise>left</xsl:otherwise>
2975
3008
  </xsl:choose>
2976
3009
  </xsl:attribute>
2977
3010
  <xsl:if test="@colspan">
@@ -2985,21 +3018,25 @@
2985
3018
  </xsl:attribute>
2986
3019
  </xsl:if>
2987
3020
 
2988
- <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
3021
+ <!-- <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
2989
3022
  <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
2990
3023
  <xsl:attribute name="background-color">rgb(165, 165, 165)</xsl:attribute>
2991
3024
  </xsl:if>
2992
3025
  <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommendtest'">
2993
3026
  <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
2994
3027
  <xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
2995
- </xsl:if>
3028
+ </xsl:if> -->
2996
3029
 
2997
3030
  <fo:block>
2998
3031
  <xsl:apply-templates/>
2999
3032
  </fo:block>
3000
3033
  </fo:table-cell>
3001
3034
  </xsl:template><xsl:template match="*[local-name()='td']" mode="requirement">
3002
- <fo:table-cell text-align="{@align}">
3035
+ <fo:table-cell text-align="{@align}" display-align="center" padding="1mm" padding-left="2mm" border="0.5pt solid black">
3036
+ <xsl:if test="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
3037
+ <xsl:attribute name="padding">0mm</xsl:attribute>
3038
+ <xsl:attribute name="padding-left">0mm</xsl:attribute>
3039
+ </xsl:if>
3003
3040
  <xsl:attribute name="text-align">
3004
3041
  <xsl:choose>
3005
3042
  <xsl:when test="@align">
@@ -3019,24 +3056,25 @@
3019
3056
  </xsl:attribute>
3020
3057
  </xsl:if>
3021
3058
 
3022
- <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
3059
+ <!-- <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
3023
3060
  <xsl:attribute name="padding-left">0.5mm</xsl:attribute>
3024
- <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
3025
- <xsl:if test="parent::*[local-name()='tr']/preceding-sibling::*[local-name()='tr'] and not(*[local-name()='table'])"> <!-- 2nd line and below -->
3061
+ <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
3062
+ <xsl:if test="parent::*[local-name()='tr']/preceding-sibling::*[local-name()='tr'] and not(*[local-name()='table'])">
3026
3063
  <xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
3027
3064
  </xsl:if>
3028
- </xsl:if>
3065
+ </xsl:if> -->
3066
+ <!-- 2nd line and below -->
3029
3067
 
3030
3068
  <fo:block>
3031
3069
  <xsl:apply-templates/>
3032
3070
  </fo:block>
3033
3071
  </fo:table-cell>
3034
3072
  </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
3035
- <fo:block font-size="11pt" font-weight="bold" text-align="center" margin-bottom="4pt">
3073
+ <fo:block font-size="11pt" font-weight="bold"> <!-- margin-bottom="4pt" text-align="center" -->
3036
3074
  <xsl:apply-templates/>
3037
3075
  </fo:block>
3038
- </xsl:template><xsl:template match="*[local-name() = 'p'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
3039
- <fo:block margin-bottom="10pt">
3076
+ </xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
3077
+ <fo:block> <!-- margin-bottom="10pt" -->
3040
3078
  <xsl:apply-templates/>
3041
3079
  </fo:block>
3042
3080
  </xsl:template><xsl:template match="*[local-name() = 'termexample']">
@@ -3365,6 +3403,44 @@
3365
3403
  <fo:table-cell border="1pt solid black" padding-left="1mm" padding-top="0.5mm">
3366
3404
  <fo:block><xsl:apply-templates/></fo:block>
3367
3405
  </fo:table-cell>
3406
+ </xsl:template><xsl:template name="processBibitem">
3407
+
3408
+ </xsl:template><xsl:template name="processPersonalAuthor">
3409
+ <xsl:choose>
3410
+ <xsl:when test="*[local-name() = 'name']/*[local-name() = 'completename']">
3411
+ <author>
3412
+ <xsl:apply-templates select="*[local-name() = 'name']/*[local-name() = 'completename']"/>
3413
+ </author>
3414
+ </xsl:when>
3415
+ <xsl:when test="*[local-name() = 'name']/*[local-name() = 'surname'] and *[local-name() = 'name']/*[local-name() = 'initial']">
3416
+ <author>
3417
+ <xsl:apply-templates select="*[local-name() = 'name']/*[local-name() = 'surname']"/>
3418
+ <xsl:text> </xsl:text>
3419
+ <xsl:apply-templates select="*[local-name() = 'name']/*[local-name() = 'initial']" mode="strip"/>
3420
+ </author>
3421
+ </xsl:when>
3422
+ <xsl:when test="*[local-name() = 'name']/*[local-name() = 'surname'] and *[local-name() = 'name']/*[local-name() = 'forename']">
3423
+ <author>
3424
+ <xsl:apply-templates select="*[local-name() = 'name']/*[local-name() = 'surname']"/>
3425
+ <xsl:text> </xsl:text>
3426
+ <xsl:apply-templates select="*[local-name() = 'name']/*[local-name() = 'forename']" mode="strip"/>
3427
+ </author>
3428
+ </xsl:when>
3429
+ <xsl:otherwise>
3430
+ <xsl:apply-templates/>
3431
+ </xsl:otherwise>
3432
+ </xsl:choose>
3433
+ </xsl:template><xsl:template name="renderDate">
3434
+ <xsl:if test="normalize-space(*[local-name() = 'on']) != ''">
3435
+ <xsl:value-of select="*[local-name() = 'on']"/>
3436
+ </xsl:if>
3437
+ <xsl:if test="normalize-space(*[local-name() = 'from']) != ''">
3438
+ <xsl:value-of select="concat(*[local-name() = 'from'], '–', *[local-name() = 'to'])"/>
3439
+ </xsl:if>
3440
+ </xsl:template><xsl:template match="*[local-name() = 'name']/*[local-name() = 'initial']/text()" mode="strip">
3441
+ <xsl:value-of select="translate(.,'. ','')"/>
3442
+ </xsl:template><xsl:template match="*[local-name() = 'name']/*[local-name() = 'forename']/text()" mode="strip">
3443
+ <xsl:value-of select="substring(.,1,1)"/>
3368
3444
  </xsl:template><xsl:template name="convertDate">
3369
3445
  <xsl:param name="date"/>
3370
3446
  <xsl:param name="format" select="'short'"/>
@@ -15,6 +15,7 @@ module IsoDoc
15
15
  def make_body2(body, docxml)
16
16
  body.div **{ class: "WordSection2" } do |div2|
17
17
  boilerplate docxml, div2
18
+ preface_block docxml, div2
18
19
  abstract docxml, div2
19
20
  foreword docxml, div2
20
21
  executivesummary docxml, div2
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
3
- VERSION = "1.6.1"
3
+ VERSION = "1.6.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ribose
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.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: isodoc