metanorma-gb 1.5.3 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/gb/gb.recommendation.xsl +95 -19
- data/lib/metanorma/gb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5540fe9a62689a748f36deb94aa697067fadeec8f48e3daa4723fe31934d6f6f
|
4
|
+
data.tar.gz: f7a3059328b3d3103309ea0e4b2765b0e7d9bbb0e4b06f2d0586b3ddb1608fcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6814a66bca93e4824acb2b3bb542337d65f528d2933ac81745ca626ccbfe7f2aaa510d7ebc9354810db4ca973e0ac79c26f78ccf1e86d049e804c3fb42c8b8b4
|
7
|
+
data.tar.gz: eeb2906af56383d32509ce13e58d61d33eaa6481dc18fc9cd53af66612709ed00d7afee06604ebb7056e18baa5b809a67709fa291639407d7eccbc4ddebec5e6
|
@@ -2442,14 +2442,36 @@
|
|
2442
2442
|
<fo:table-cell>
|
2443
2443
|
<fo:block>
|
2444
2444
|
|
2445
|
-
|
2445
|
+
<!-- <xsl:if test="$namespace = 'nist-cswp' or $namespace = 'nist-sp'">
|
2446
|
+
<xsl:if test="local-name(*[1]) != 'stem'">
|
2447
|
+
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
|
2448
|
+
</xsl:if>
|
2449
|
+
</xsl:if> -->
|
2446
2450
|
|
2447
2451
|
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
|
2448
2452
|
|
2449
2453
|
</fo:block>
|
2450
2454
|
</fo:table-cell>
|
2451
2455
|
</fo:table-row>
|
2452
|
-
|
2456
|
+
<!-- <xsl:if test="$namespace = 'nist-cswp' or $namespace = 'nist-sp'">
|
2457
|
+
<xsl:if test="local-name(*[1]) = 'stem'">
|
2458
|
+
<fo:table-row>
|
2459
|
+
<fo:table-cell>
|
2460
|
+
<fo:block margin-top="6pt">
|
2461
|
+
<xsl:if test="normalize-space($key_iso) = 'true'">
|
2462
|
+
<xsl:attribute name="margin-top">0</xsl:attribute>
|
2463
|
+
</xsl:if>
|
2464
|
+
<xsl:text> </xsl:text>
|
2465
|
+
</fo:block>
|
2466
|
+
</fo:table-cell>
|
2467
|
+
<fo:table-cell>
|
2468
|
+
<fo:block>
|
2469
|
+
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
|
2470
|
+
</fo:block>
|
2471
|
+
</fo:table-cell>
|
2472
|
+
</fo:table-row>
|
2473
|
+
</xsl:if>
|
2474
|
+
</xsl:if> -->
|
2453
2475
|
</xsl:template><xsl:template match="*[local-name()='dd']" mode="dl"/><xsl:template match="*[local-name()='dd']" mode="dl_process">
|
2454
2476
|
<xsl:apply-templates/>
|
2455
2477
|
</xsl:template><xsl:template match="*[local-name()='dd']"/><xsl:template match="*[local-name()='dd']" mode="process">
|
@@ -3213,22 +3235,30 @@
|
|
3213
3235
|
</fo:block>
|
3214
3236
|
</xsl:template><xsl:template match="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
3215
3237
|
<fo:block-container margin-left="0mm" margin-right="0mm" margin-bottom="12pt">
|
3238
|
+
<xsl:if test="ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
3239
|
+
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
3240
|
+
</xsl:if>
|
3216
3241
|
<fo:block-container margin-left="0mm" margin-right="0mm">
|
3217
|
-
<fo:table id="{@id}" table-layout="fixed" width="100%" border="
|
3242
|
+
<fo:table id="{@id}" table-layout="fixed" width="100%" border="1pt solid black">
|
3243
|
+
<xsl:if test="ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
3244
|
+
<xsl:attribute name="border">0.5pt solid black</xsl:attribute>
|
3245
|
+
</xsl:if>
|
3218
3246
|
<xsl:variable name="simple-table">
|
3219
3247
|
<xsl:call-template name="getSimpleTable"/>
|
3220
3248
|
</xsl:variable>
|
3221
3249
|
<xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
|
3222
3250
|
<xsl:if test="$cols-count = 2 and not(ancestor::*[local-name()='table'])">
|
3223
|
-
<fo:table-column column-width="35mm"/>
|
3224
|
-
<fo:table-column column-width="115mm"/>
|
3251
|
+
<!-- <fo:table-column column-width="35mm"/>
|
3252
|
+
<fo:table-column column-width="115mm"/> -->
|
3253
|
+
<fo:table-column column-width="25%"/>
|
3254
|
+
<fo:table-column column-width="75%"/>
|
3225
3255
|
</xsl:if>
|
3226
3256
|
<xsl:apply-templates mode="requirement"/>
|
3227
3257
|
</fo:table>
|
3228
3258
|
<!-- fn processing -->
|
3229
3259
|
<xsl:if test=".//*[local-name() = 'fn']">
|
3230
3260
|
<xsl:for-each select="*[local-name() = 'tbody']">
|
3231
|
-
<fo:block font-size="90%" border-bottom="
|
3261
|
+
<fo:block font-size="90%" border-bottom="1pt solid black">
|
3232
3262
|
<xsl:call-template name="fn_display"/>
|
3233
3263
|
</fo:block>
|
3234
3264
|
</xsl:for-each>
|
@@ -3244,17 +3274,20 @@
|
|
3244
3274
|
<xsl:apply-templates mode="requirement"/>
|
3245
3275
|
</fo:table-body>
|
3246
3276
|
</xsl:template><xsl:template match="*[local-name()='tr']" mode="requirement">
|
3247
|
-
<fo:table-row>
|
3277
|
+
<fo:table-row height="7mm">
|
3278
|
+
<xsl:if test="parent::*[local-name()='thead'] and not(ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission'])">
|
3279
|
+
<xsl:attribute name="border">1pt solid black</xsl:attribute>
|
3280
|
+
</xsl:if>
|
3248
3281
|
<xsl:apply-templates mode="requirement"/>
|
3249
3282
|
</fo:table-row>
|
3250
3283
|
</xsl:template><xsl:template match="*[local-name()='th']" mode="requirement">
|
3251
|
-
<fo:table-cell text-align="{@align}">
|
3284
|
+
<fo:table-cell text-align="{@align}" display-align="center" padding="1mm" padding-left="2mm" border="0.5pt solid black">
|
3252
3285
|
<xsl:attribute name="text-align">
|
3253
3286
|
<xsl:choose>
|
3254
3287
|
<xsl:when test="@align">
|
3255
3288
|
<xsl:value-of select="@align"/>
|
3256
3289
|
</xsl:when>
|
3257
|
-
<xsl:otherwise>
|
3290
|
+
<xsl:otherwise>left</xsl:otherwise>
|
3258
3291
|
</xsl:choose>
|
3259
3292
|
</xsl:attribute>
|
3260
3293
|
<xsl:if test="@colspan">
|
@@ -3268,21 +3301,25 @@
|
|
3268
3301
|
</xsl:attribute>
|
3269
3302
|
</xsl:if>
|
3270
3303
|
|
3271
|
-
<xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
|
3304
|
+
<!-- <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
|
3272
3305
|
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
3273
3306
|
<xsl:attribute name="background-color">rgb(165, 165, 165)</xsl:attribute>
|
3274
3307
|
</xsl:if>
|
3275
3308
|
<xsl:if test="ancestor::*[local-name()='table']/@type = 'recommendtest'">
|
3276
3309
|
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
3277
3310
|
<xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
|
3278
|
-
</xsl:if>
|
3311
|
+
</xsl:if> -->
|
3279
3312
|
|
3280
3313
|
<fo:block>
|
3281
3314
|
<xsl:apply-templates/>
|
3282
3315
|
</fo:block>
|
3283
3316
|
</fo:table-cell>
|
3284
3317
|
</xsl:template><xsl:template match="*[local-name()='td']" mode="requirement">
|
3285
|
-
<fo:table-cell text-align="{@align}">
|
3318
|
+
<fo:table-cell text-align="{@align}" display-align="center" padding="1mm" padding-left="2mm" border="0.5pt solid black">
|
3319
|
+
<xsl:if test="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
3320
|
+
<xsl:attribute name="padding">0mm</xsl:attribute>
|
3321
|
+
<xsl:attribute name="padding-left">0mm</xsl:attribute>
|
3322
|
+
</xsl:if>
|
3286
3323
|
<xsl:attribute name="text-align">
|
3287
3324
|
<xsl:choose>
|
3288
3325
|
<xsl:when test="@align">
|
@@ -3302,24 +3339,25 @@
|
|
3302
3339
|
</xsl:attribute>
|
3303
3340
|
</xsl:if>
|
3304
3341
|
|
3305
|
-
<xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
|
3342
|
+
<!-- <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
|
3306
3343
|
<xsl:attribute name="padding-left">0.5mm</xsl:attribute>
|
3307
|
-
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
3308
|
-
<xsl:if test="parent::*[local-name()='tr']/preceding-sibling::*[local-name()='tr'] and not(*[local-name()='table'])">
|
3344
|
+
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
3345
|
+
<xsl:if test="parent::*[local-name()='tr']/preceding-sibling::*[local-name()='tr'] and not(*[local-name()='table'])">
|
3309
3346
|
<xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
|
3310
3347
|
</xsl:if>
|
3311
|
-
</xsl:if>
|
3348
|
+
</xsl:if> -->
|
3349
|
+
<!-- 2nd line and below -->
|
3312
3350
|
|
3313
3351
|
<fo:block>
|
3314
3352
|
<xsl:apply-templates/>
|
3315
3353
|
</fo:block>
|
3316
3354
|
</fo:table-cell>
|
3317
3355
|
</xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
|
3318
|
-
<fo:block font-size="11pt" font-weight="bold"
|
3356
|
+
<fo:block font-size="11pt" font-weight="bold"> <!-- margin-bottom="4pt" text-align="center" -->
|
3319
3357
|
<xsl:apply-templates/>
|
3320
3358
|
</fo:block>
|
3321
|
-
</xsl:template><xsl:template match="*[local-name() = '
|
3322
|
-
<fo:block margin-bottom="10pt"
|
3359
|
+
</xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
|
3360
|
+
<fo:block> <!-- margin-bottom="10pt" -->
|
3323
3361
|
<xsl:apply-templates/>
|
3324
3362
|
</fo:block>
|
3325
3363
|
</xsl:template><xsl:template match="*[local-name() = 'termexample']">
|
@@ -3643,6 +3681,44 @@
|
|
3643
3681
|
<fo:table-cell border="1pt solid black" padding-left="1mm" padding-top="0.5mm">
|
3644
3682
|
<fo:block><xsl:apply-templates/></fo:block>
|
3645
3683
|
</fo:table-cell>
|
3684
|
+
</xsl:template><xsl:template name="processBibitem">
|
3685
|
+
|
3686
|
+
</xsl:template><xsl:template name="processPersonalAuthor">
|
3687
|
+
<xsl:choose>
|
3688
|
+
<xsl:when test="*[local-name() = 'name']/*[local-name() = 'completename']">
|
3689
|
+
<author>
|
3690
|
+
<xsl:apply-templates select="*[local-name() = 'name']/*[local-name() = 'completename']"/>
|
3691
|
+
</author>
|
3692
|
+
</xsl:when>
|
3693
|
+
<xsl:when test="*[local-name() = 'name']/*[local-name() = 'surname'] and *[local-name() = 'name']/*[local-name() = 'initial']">
|
3694
|
+
<author>
|
3695
|
+
<xsl:apply-templates select="*[local-name() = 'name']/*[local-name() = 'surname']"/>
|
3696
|
+
<xsl:text> </xsl:text>
|
3697
|
+
<xsl:apply-templates select="*[local-name() = 'name']/*[local-name() = 'initial']" mode="strip"/>
|
3698
|
+
</author>
|
3699
|
+
</xsl:when>
|
3700
|
+
<xsl:when test="*[local-name() = 'name']/*[local-name() = 'surname'] and *[local-name() = 'name']/*[local-name() = 'forename']">
|
3701
|
+
<author>
|
3702
|
+
<xsl:apply-templates select="*[local-name() = 'name']/*[local-name() = 'surname']"/>
|
3703
|
+
<xsl:text> </xsl:text>
|
3704
|
+
<xsl:apply-templates select="*[local-name() = 'name']/*[local-name() = 'forename']" mode="strip"/>
|
3705
|
+
</author>
|
3706
|
+
</xsl:when>
|
3707
|
+
<xsl:otherwise>
|
3708
|
+
<xsl:apply-templates/>
|
3709
|
+
</xsl:otherwise>
|
3710
|
+
</xsl:choose>
|
3711
|
+
</xsl:template><xsl:template name="renderDate">
|
3712
|
+
<xsl:if test="normalize-space(*[local-name() = 'on']) != ''">
|
3713
|
+
<xsl:value-of select="*[local-name() = 'on']"/>
|
3714
|
+
</xsl:if>
|
3715
|
+
<xsl:if test="normalize-space(*[local-name() = 'from']) != ''">
|
3716
|
+
<xsl:value-of select="concat(*[local-name() = 'from'], '–', *[local-name() = 'to'])"/>
|
3717
|
+
</xsl:if>
|
3718
|
+
</xsl:template><xsl:template match="*[local-name() = 'name']/*[local-name() = 'initial']/text()" mode="strip">
|
3719
|
+
<xsl:value-of select="translate(.,'. ','')"/>
|
3720
|
+
</xsl:template><xsl:template match="*[local-name() = 'name']/*[local-name() = 'forename']/text()" mode="strip">
|
3721
|
+
<xsl:value-of select="substring(.,1,1)"/>
|
3646
3722
|
</xsl:template><xsl:template name="convertDate">
|
3647
3723
|
<xsl:param name="date"/>
|
3648
3724
|
<xsl:param name="format" select="'short'"/>
|
data/lib/metanorma/gb/version.rb
CHANGED