metanorma-itu 2.1.6 → 2.1.7

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: 97dad9daf6f13024d9dba015fff377d431e36aca82452b9c5e4677cb2fcbe751
4
- data.tar.gz: 41c5437bac86059e0a9f9a3686172b604b64a10c4c2daeaec4eac121c6f91f14
3
+ metadata.gz: 832bd24769ff2d7dd5198f17d9ca253956ca8ad5cd8910ed2b8ae50f70b3d31e
4
+ data.tar.gz: 0fcc8da6ca3c528299d3398b75a82e609f43a34c17433a214f58679f6731a247
5
5
  SHA512:
6
- metadata.gz: 1dce95e28d86855f98ff200c77cbf61e63fc48f63d0f3eadd54290eaf2da4b4f445c4470db071d543a5e704ae65e9ac6435c12588ea9d0f2067d9fcc9b5afe8f
7
- data.tar.gz: b685b13ca5ee5a5d780c2c3a1fc275139d1f1e768ddd0d36e2a818e04871aab76998bcfc7e020769a3e8f8eed7d8a8f5e0685c2d7269aa04bec8e30a915174ad
6
+ metadata.gz: 59ad2edd160f124b6b9e6819157d704b5ef0516f74463c3ca56295b7050d344ef5072ea6d63ec9f6b563d0e2fa4e192f6122d9795fbdb8ade280a09c3518b7a4
7
+ data.tar.gz: 929ad93dd821801a65f85fb9288bb99b1aa0aa18f4647e65b368e2c2fd297a1580a71c9e82fd89e13470dd6844dcf1bc870dc40ea6a5fd7200624da14b988870
@@ -2472,6 +2472,9 @@
2472
2472
  <xsl:attribute-set name="import-style">
2473
2473
  </xsl:attribute-set>
2474
2474
 
2475
+ <xsl:attribute-set name="component-style">
2476
+ </xsl:attribute-set>
2477
+
2475
2478
  <xsl:attribute-set name="recommendation-style">
2476
2479
 
2477
2480
  </xsl:attribute-set>
@@ -8381,41 +8384,47 @@
8381
8384
  </fo:block>
8382
8385
  </xsl:template>
8383
8386
 
8384
- <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit']">
8387
+ <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit'] | *[local-name() = 'div'][@type = 'requirement-inherit'] | *[local-name() = 'div'][@type = 'recommendation-inherit'] | *[local-name() = 'div'][@type = 'permission-inherit']">
8385
8388
  <fo:block xsl:use-attribute-sets="inherit-style">
8386
8389
  <xsl:text>Dependency </xsl:text><xsl:apply-templates/>
8387
8390
  </fo:block>
8388
8391
  </xsl:template>
8389
8392
 
8390
- <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description']">
8393
+ <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description'] | *[local-name() = 'div'][@type = 'requirement-description'] | *[local-name() = 'div'][@type = 'recommendation-description'] | *[local-name() = 'div'][@type = 'permission-description']">
8391
8394
  <fo:block xsl:use-attribute-sets="description-style">
8392
8395
  <xsl:apply-templates/>
8393
8396
  </fo:block>
8394
8397
  </xsl:template>
8395
8398
 
8396
- <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification']">
8399
+ <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification'] | *[local-name() = 'div'][@type = 'requirement-specification'] | *[local-name() = 'div'][@type = 'recommendation-specification'] | *[local-name() = 'div'][@type = 'permission-specification']">
8397
8400
  <fo:block xsl:use-attribute-sets="specification-style">
8398
8401
  <xsl:apply-templates/>
8399
8402
  </fo:block>
8400
8403
  </xsl:template>
8401
8404
 
8402
- <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target']">
8405
+ <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target'] | *[local-name() = 'div'][@type = 'requirement-measurement-target'] | *[local-name() = 'div'][@type = 'recommendation-measurement-target'] | *[local-name() = 'div'][@type = 'permission-measurement-target']">
8403
8406
  <fo:block xsl:use-attribute-sets="measurement-target-style">
8404
8407
  <xsl:apply-templates/>
8405
8408
  </fo:block>
8406
8409
  </xsl:template>
8407
8410
 
8408
- <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification']">
8411
+ <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification'] | *[local-name() = 'div'][@type = 'requirement-verification'] | *[local-name() = 'div'][@type = 'recommendation-verification'] | *[local-name() = 'div'][@type = 'permission-verification']">
8409
8412
  <fo:block xsl:use-attribute-sets="verification-style">
8410
8413
  <xsl:apply-templates/>
8411
8414
  </fo:block>
8412
8415
  </xsl:template>
8413
8416
 
8414
- <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import']">
8417
+ <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import'] | *[local-name() = 'div'][@type = 'requirement-import'] | *[local-name() = 'div'][@type = 'recommendation-import'] | *[local-name() = 'div'][@type = 'permission-import']">
8415
8418
  <fo:block xsl:use-attribute-sets="import-style">
8416
8419
  <xsl:apply-templates/>
8417
8420
  </fo:block>
8418
8421
  </xsl:template>
8422
+
8423
+ <xsl:template match="*[local-name() = 'div'][starts-with(@type, 'requirement-component')] | *[local-name() = 'div'][starts-with(@type, 'recommendation-component')] | *[local-name() = 'div'][starts-with(@type, 'permission-component')]">
8424
+ <fo:block xsl:use-attribute-sets="component-style">
8425
+ <xsl:apply-templates/>
8426
+ </fo:block>
8427
+ </xsl:template>
8419
8428
  <!-- ========== -->
8420
8429
  <!-- END -->
8421
8430
  <!-- ========== -->
@@ -2472,6 +2472,9 @@
2472
2472
  <xsl:attribute-set name="import-style">
2473
2473
  </xsl:attribute-set>
2474
2474
 
2475
+ <xsl:attribute-set name="component-style">
2476
+ </xsl:attribute-set>
2477
+
2475
2478
  <xsl:attribute-set name="recommendation-style">
2476
2479
 
2477
2480
  </xsl:attribute-set>
@@ -8381,41 +8384,47 @@
8381
8384
  </fo:block>
8382
8385
  </xsl:template>
8383
8386
 
8384
- <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit']">
8387
+ <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit'] | *[local-name() = 'div'][@type = 'requirement-inherit'] | *[local-name() = 'div'][@type = 'recommendation-inherit'] | *[local-name() = 'div'][@type = 'permission-inherit']">
8385
8388
  <fo:block xsl:use-attribute-sets="inherit-style">
8386
8389
  <xsl:text>Dependency </xsl:text><xsl:apply-templates/>
8387
8390
  </fo:block>
8388
8391
  </xsl:template>
8389
8392
 
8390
- <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description']">
8393
+ <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description'] | *[local-name() = 'div'][@type = 'requirement-description'] | *[local-name() = 'div'][@type = 'recommendation-description'] | *[local-name() = 'div'][@type = 'permission-description']">
8391
8394
  <fo:block xsl:use-attribute-sets="description-style">
8392
8395
  <xsl:apply-templates/>
8393
8396
  </fo:block>
8394
8397
  </xsl:template>
8395
8398
 
8396
- <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification']">
8399
+ <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification'] | *[local-name() = 'div'][@type = 'requirement-specification'] | *[local-name() = 'div'][@type = 'recommendation-specification'] | *[local-name() = 'div'][@type = 'permission-specification']">
8397
8400
  <fo:block xsl:use-attribute-sets="specification-style">
8398
8401
  <xsl:apply-templates/>
8399
8402
  </fo:block>
8400
8403
  </xsl:template>
8401
8404
 
8402
- <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target']">
8405
+ <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target'] | *[local-name() = 'div'][@type = 'requirement-measurement-target'] | *[local-name() = 'div'][@type = 'recommendation-measurement-target'] | *[local-name() = 'div'][@type = 'permission-measurement-target']">
8403
8406
  <fo:block xsl:use-attribute-sets="measurement-target-style">
8404
8407
  <xsl:apply-templates/>
8405
8408
  </fo:block>
8406
8409
  </xsl:template>
8407
8410
 
8408
- <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification']">
8411
+ <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification'] | *[local-name() = 'div'][@type = 'requirement-verification'] | *[local-name() = 'div'][@type = 'recommendation-verification'] | *[local-name() = 'div'][@type = 'permission-verification']">
8409
8412
  <fo:block xsl:use-attribute-sets="verification-style">
8410
8413
  <xsl:apply-templates/>
8411
8414
  </fo:block>
8412
8415
  </xsl:template>
8413
8416
 
8414
- <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import']">
8417
+ <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import'] | *[local-name() = 'div'][@type = 'requirement-import'] | *[local-name() = 'div'][@type = 'recommendation-import'] | *[local-name() = 'div'][@type = 'permission-import']">
8415
8418
  <fo:block xsl:use-attribute-sets="import-style">
8416
8419
  <xsl:apply-templates/>
8417
8420
  </fo:block>
8418
8421
  </xsl:template>
8422
+
8423
+ <xsl:template match="*[local-name() = 'div'][starts-with(@type, 'requirement-component')] | *[local-name() = 'div'][starts-with(@type, 'recommendation-component')] | *[local-name() = 'div'][starts-with(@type, 'permission-component')]">
8424
+ <fo:block xsl:use-attribute-sets="component-style">
8425
+ <xsl:apply-templates/>
8426
+ </fo:block>
8427
+ </xsl:template>
8419
8428
  <!-- ========== -->
8420
8429
  <!-- END -->
8421
8430
  <!-- ========== -->
@@ -2472,6 +2472,9 @@
2472
2472
  <xsl:attribute-set name="import-style">
2473
2473
  </xsl:attribute-set>
2474
2474
 
2475
+ <xsl:attribute-set name="component-style">
2476
+ </xsl:attribute-set>
2477
+
2475
2478
  <xsl:attribute-set name="recommendation-style">
2476
2479
 
2477
2480
  </xsl:attribute-set>
@@ -8381,41 +8384,47 @@
8381
8384
  </fo:block>
8382
8385
  </xsl:template>
8383
8386
 
8384
- <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit']">
8387
+ <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit'] | *[local-name() = 'div'][@type = 'requirement-inherit'] | *[local-name() = 'div'][@type = 'recommendation-inherit'] | *[local-name() = 'div'][@type = 'permission-inherit']">
8385
8388
  <fo:block xsl:use-attribute-sets="inherit-style">
8386
8389
  <xsl:text>Dependency </xsl:text><xsl:apply-templates/>
8387
8390
  </fo:block>
8388
8391
  </xsl:template>
8389
8392
 
8390
- <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description']">
8393
+ <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description'] | *[local-name() = 'div'][@type = 'requirement-description'] | *[local-name() = 'div'][@type = 'recommendation-description'] | *[local-name() = 'div'][@type = 'permission-description']">
8391
8394
  <fo:block xsl:use-attribute-sets="description-style">
8392
8395
  <xsl:apply-templates/>
8393
8396
  </fo:block>
8394
8397
  </xsl:template>
8395
8398
 
8396
- <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification']">
8399
+ <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification'] | *[local-name() = 'div'][@type = 'requirement-specification'] | *[local-name() = 'div'][@type = 'recommendation-specification'] | *[local-name() = 'div'][@type = 'permission-specification']">
8397
8400
  <fo:block xsl:use-attribute-sets="specification-style">
8398
8401
  <xsl:apply-templates/>
8399
8402
  </fo:block>
8400
8403
  </xsl:template>
8401
8404
 
8402
- <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target']">
8405
+ <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target'] | *[local-name() = 'div'][@type = 'requirement-measurement-target'] | *[local-name() = 'div'][@type = 'recommendation-measurement-target'] | *[local-name() = 'div'][@type = 'permission-measurement-target']">
8403
8406
  <fo:block xsl:use-attribute-sets="measurement-target-style">
8404
8407
  <xsl:apply-templates/>
8405
8408
  </fo:block>
8406
8409
  </xsl:template>
8407
8410
 
8408
- <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification']">
8411
+ <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification'] | *[local-name() = 'div'][@type = 'requirement-verification'] | *[local-name() = 'div'][@type = 'recommendation-verification'] | *[local-name() = 'div'][@type = 'permission-verification']">
8409
8412
  <fo:block xsl:use-attribute-sets="verification-style">
8410
8413
  <xsl:apply-templates/>
8411
8414
  </fo:block>
8412
8415
  </xsl:template>
8413
8416
 
8414
- <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import']">
8417
+ <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import'] | *[local-name() = 'div'][@type = 'requirement-import'] | *[local-name() = 'div'][@type = 'recommendation-import'] | *[local-name() = 'div'][@type = 'permission-import']">
8415
8418
  <fo:block xsl:use-attribute-sets="import-style">
8416
8419
  <xsl:apply-templates/>
8417
8420
  </fo:block>
8418
8421
  </xsl:template>
8422
+
8423
+ <xsl:template match="*[local-name() = 'div'][starts-with(@type, 'requirement-component')] | *[local-name() = 'div'][starts-with(@type, 'recommendation-component')] | *[local-name() = 'div'][starts-with(@type, 'permission-component')]">
8424
+ <fo:block xsl:use-attribute-sets="component-style">
8425
+ <xsl:apply-templates/>
8426
+ </fo:block>
8427
+ </xsl:template>
8419
8428
  <!-- ========== -->
8420
8429
  <!-- END -->
8421
8430
  <!-- ========== -->
@@ -2472,6 +2472,9 @@
2472
2472
  <xsl:attribute-set name="import-style">
2473
2473
  </xsl:attribute-set>
2474
2474
 
2475
+ <xsl:attribute-set name="component-style">
2476
+ </xsl:attribute-set>
2477
+
2475
2478
  <xsl:attribute-set name="recommendation-style">
2476
2479
 
2477
2480
  </xsl:attribute-set>
@@ -8381,41 +8384,47 @@
8381
8384
  </fo:block>
8382
8385
  </xsl:template>
8383
8386
 
8384
- <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit']">
8387
+ <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit'] | *[local-name() = 'div'][@type = 'requirement-inherit'] | *[local-name() = 'div'][@type = 'recommendation-inherit'] | *[local-name() = 'div'][@type = 'permission-inherit']">
8385
8388
  <fo:block xsl:use-attribute-sets="inherit-style">
8386
8389
  <xsl:text>Dependency </xsl:text><xsl:apply-templates/>
8387
8390
  </fo:block>
8388
8391
  </xsl:template>
8389
8392
 
8390
- <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description']">
8393
+ <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description'] | *[local-name() = 'div'][@type = 'requirement-description'] | *[local-name() = 'div'][@type = 'recommendation-description'] | *[local-name() = 'div'][@type = 'permission-description']">
8391
8394
  <fo:block xsl:use-attribute-sets="description-style">
8392
8395
  <xsl:apply-templates/>
8393
8396
  </fo:block>
8394
8397
  </xsl:template>
8395
8398
 
8396
- <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification']">
8399
+ <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification'] | *[local-name() = 'div'][@type = 'requirement-specification'] | *[local-name() = 'div'][@type = 'recommendation-specification'] | *[local-name() = 'div'][@type = 'permission-specification']">
8397
8400
  <fo:block xsl:use-attribute-sets="specification-style">
8398
8401
  <xsl:apply-templates/>
8399
8402
  </fo:block>
8400
8403
  </xsl:template>
8401
8404
 
8402
- <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target']">
8405
+ <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target'] | *[local-name() = 'div'][@type = 'requirement-measurement-target'] | *[local-name() = 'div'][@type = 'recommendation-measurement-target'] | *[local-name() = 'div'][@type = 'permission-measurement-target']">
8403
8406
  <fo:block xsl:use-attribute-sets="measurement-target-style">
8404
8407
  <xsl:apply-templates/>
8405
8408
  </fo:block>
8406
8409
  </xsl:template>
8407
8410
 
8408
- <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification']">
8411
+ <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification'] | *[local-name() = 'div'][@type = 'requirement-verification'] | *[local-name() = 'div'][@type = 'recommendation-verification'] | *[local-name() = 'div'][@type = 'permission-verification']">
8409
8412
  <fo:block xsl:use-attribute-sets="verification-style">
8410
8413
  <xsl:apply-templates/>
8411
8414
  </fo:block>
8412
8415
  </xsl:template>
8413
8416
 
8414
- <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import']">
8417
+ <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import'] | *[local-name() = 'div'][@type = 'requirement-import'] | *[local-name() = 'div'][@type = 'recommendation-import'] | *[local-name() = 'div'][@type = 'permission-import']">
8415
8418
  <fo:block xsl:use-attribute-sets="import-style">
8416
8419
  <xsl:apply-templates/>
8417
8420
  </fo:block>
8418
8421
  </xsl:template>
8422
+
8423
+ <xsl:template match="*[local-name() = 'div'][starts-with(@type, 'requirement-component')] | *[local-name() = 'div'][starts-with(@type, 'recommendation-component')] | *[local-name() = 'div'][starts-with(@type, 'permission-component')]">
8424
+ <fo:block xsl:use-attribute-sets="component-style">
8425
+ <xsl:apply-templates/>
8426
+ </fo:block>
8427
+ </xsl:template>
8419
8428
  <!-- ========== -->
8420
8429
  <!-- END -->
8421
8430
  <!-- ========== -->
@@ -2472,6 +2472,9 @@
2472
2472
  <xsl:attribute-set name="import-style">
2473
2473
  </xsl:attribute-set>
2474
2474
 
2475
+ <xsl:attribute-set name="component-style">
2476
+ </xsl:attribute-set>
2477
+
2475
2478
  <xsl:attribute-set name="recommendation-style">
2476
2479
 
2477
2480
  </xsl:attribute-set>
@@ -8381,41 +8384,47 @@
8381
8384
  </fo:block>
8382
8385
  </xsl:template>
8383
8386
 
8384
- <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit']">
8387
+ <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit'] | *[local-name() = 'div'][@type = 'requirement-inherit'] | *[local-name() = 'div'][@type = 'recommendation-inherit'] | *[local-name() = 'div'][@type = 'permission-inherit']">
8385
8388
  <fo:block xsl:use-attribute-sets="inherit-style">
8386
8389
  <xsl:text>Dependency </xsl:text><xsl:apply-templates/>
8387
8390
  </fo:block>
8388
8391
  </xsl:template>
8389
8392
 
8390
- <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description']">
8393
+ <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description'] | *[local-name() = 'div'][@type = 'requirement-description'] | *[local-name() = 'div'][@type = 'recommendation-description'] | *[local-name() = 'div'][@type = 'permission-description']">
8391
8394
  <fo:block xsl:use-attribute-sets="description-style">
8392
8395
  <xsl:apply-templates/>
8393
8396
  </fo:block>
8394
8397
  </xsl:template>
8395
8398
 
8396
- <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification']">
8399
+ <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification'] | *[local-name() = 'div'][@type = 'requirement-specification'] | *[local-name() = 'div'][@type = 'recommendation-specification'] | *[local-name() = 'div'][@type = 'permission-specification']">
8397
8400
  <fo:block xsl:use-attribute-sets="specification-style">
8398
8401
  <xsl:apply-templates/>
8399
8402
  </fo:block>
8400
8403
  </xsl:template>
8401
8404
 
8402
- <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target']">
8405
+ <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target'] | *[local-name() = 'div'][@type = 'requirement-measurement-target'] | *[local-name() = 'div'][@type = 'recommendation-measurement-target'] | *[local-name() = 'div'][@type = 'permission-measurement-target']">
8403
8406
  <fo:block xsl:use-attribute-sets="measurement-target-style">
8404
8407
  <xsl:apply-templates/>
8405
8408
  </fo:block>
8406
8409
  </xsl:template>
8407
8410
 
8408
- <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification']">
8411
+ <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification'] | *[local-name() = 'div'][@type = 'requirement-verification'] | *[local-name() = 'div'][@type = 'recommendation-verification'] | *[local-name() = 'div'][@type = 'permission-verification']">
8409
8412
  <fo:block xsl:use-attribute-sets="verification-style">
8410
8413
  <xsl:apply-templates/>
8411
8414
  </fo:block>
8412
8415
  </xsl:template>
8413
8416
 
8414
- <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import']">
8417
+ <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import'] | *[local-name() = 'div'][@type = 'requirement-import'] | *[local-name() = 'div'][@type = 'recommendation-import'] | *[local-name() = 'div'][@type = 'permission-import']">
8415
8418
  <fo:block xsl:use-attribute-sets="import-style">
8416
8419
  <xsl:apply-templates/>
8417
8420
  </fo:block>
8418
8421
  </xsl:template>
8422
+
8423
+ <xsl:template match="*[local-name() = 'div'][starts-with(@type, 'requirement-component')] | *[local-name() = 'div'][starts-with(@type, 'recommendation-component')] | *[local-name() = 'div'][starts-with(@type, 'permission-component')]">
8424
+ <fo:block xsl:use-attribute-sets="component-style">
8425
+ <xsl:apply-templates/>
8426
+ </fo:block>
8427
+ </xsl:template>
8419
8428
  <!-- ========== -->
8420
8429
  <!-- END -->
8421
8430
  <!-- ========== -->
@@ -2472,6 +2472,9 @@
2472
2472
  <xsl:attribute-set name="import-style">
2473
2473
  </xsl:attribute-set>
2474
2474
 
2475
+ <xsl:attribute-set name="component-style">
2476
+ </xsl:attribute-set>
2477
+
2475
2478
  <xsl:attribute-set name="recommendation-style">
2476
2479
 
2477
2480
  </xsl:attribute-set>
@@ -8381,41 +8384,47 @@
8381
8384
  </fo:block>
8382
8385
  </xsl:template>
8383
8386
 
8384
- <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit']">
8387
+ <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit'] | *[local-name() = 'div'][@type = 'requirement-inherit'] | *[local-name() = 'div'][@type = 'recommendation-inherit'] | *[local-name() = 'div'][@type = 'permission-inherit']">
8385
8388
  <fo:block xsl:use-attribute-sets="inherit-style">
8386
8389
  <xsl:text>Dependency </xsl:text><xsl:apply-templates/>
8387
8390
  </fo:block>
8388
8391
  </xsl:template>
8389
8392
 
8390
- <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description']">
8393
+ <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description'] | *[local-name() = 'div'][@type = 'requirement-description'] | *[local-name() = 'div'][@type = 'recommendation-description'] | *[local-name() = 'div'][@type = 'permission-description']">
8391
8394
  <fo:block xsl:use-attribute-sets="description-style">
8392
8395
  <xsl:apply-templates/>
8393
8396
  </fo:block>
8394
8397
  </xsl:template>
8395
8398
 
8396
- <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification']">
8399
+ <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification'] | *[local-name() = 'div'][@type = 'requirement-specification'] | *[local-name() = 'div'][@type = 'recommendation-specification'] | *[local-name() = 'div'][@type = 'permission-specification']">
8397
8400
  <fo:block xsl:use-attribute-sets="specification-style">
8398
8401
  <xsl:apply-templates/>
8399
8402
  </fo:block>
8400
8403
  </xsl:template>
8401
8404
 
8402
- <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target']">
8405
+ <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target'] | *[local-name() = 'div'][@type = 'requirement-measurement-target'] | *[local-name() = 'div'][@type = 'recommendation-measurement-target'] | *[local-name() = 'div'][@type = 'permission-measurement-target']">
8403
8406
  <fo:block xsl:use-attribute-sets="measurement-target-style">
8404
8407
  <xsl:apply-templates/>
8405
8408
  </fo:block>
8406
8409
  </xsl:template>
8407
8410
 
8408
- <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification']">
8411
+ <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification'] | *[local-name() = 'div'][@type = 'requirement-verification'] | *[local-name() = 'div'][@type = 'recommendation-verification'] | *[local-name() = 'div'][@type = 'permission-verification']">
8409
8412
  <fo:block xsl:use-attribute-sets="verification-style">
8410
8413
  <xsl:apply-templates/>
8411
8414
  </fo:block>
8412
8415
  </xsl:template>
8413
8416
 
8414
- <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import']">
8417
+ <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import'] | *[local-name() = 'div'][@type = 'requirement-import'] | *[local-name() = 'div'][@type = 'recommendation-import'] | *[local-name() = 'div'][@type = 'permission-import']">
8415
8418
  <fo:block xsl:use-attribute-sets="import-style">
8416
8419
  <xsl:apply-templates/>
8417
8420
  </fo:block>
8418
8421
  </xsl:template>
8422
+
8423
+ <xsl:template match="*[local-name() = 'div'][starts-with(@type, 'requirement-component')] | *[local-name() = 'div'][starts-with(@type, 'recommendation-component')] | *[local-name() = 'div'][starts-with(@type, 'permission-component')]">
8424
+ <fo:block xsl:use-attribute-sets="component-style">
8425
+ <xsl:apply-templates/>
8426
+ </fo:block>
8427
+ </xsl:template>
8419
8428
  <!-- ========== -->
8420
8429
  <!-- END -->
8421
8430
  <!-- ========== -->
@@ -2472,6 +2472,9 @@
2472
2472
  <xsl:attribute-set name="import-style">
2473
2473
  </xsl:attribute-set>
2474
2474
 
2475
+ <xsl:attribute-set name="component-style">
2476
+ </xsl:attribute-set>
2477
+
2475
2478
  <xsl:attribute-set name="recommendation-style">
2476
2479
 
2477
2480
  </xsl:attribute-set>
@@ -8381,41 +8384,47 @@
8381
8384
  </fo:block>
8382
8385
  </xsl:template>
8383
8386
 
8384
- <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit']">
8387
+ <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit'] | *[local-name() = 'div'][@type = 'requirement-inherit'] | *[local-name() = 'div'][@type = 'recommendation-inherit'] | *[local-name() = 'div'][@type = 'permission-inherit']">
8385
8388
  <fo:block xsl:use-attribute-sets="inherit-style">
8386
8389
  <xsl:text>Dependency </xsl:text><xsl:apply-templates/>
8387
8390
  </fo:block>
8388
8391
  </xsl:template>
8389
8392
 
8390
- <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description']">
8393
+ <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description'] | *[local-name() = 'div'][@type = 'requirement-description'] | *[local-name() = 'div'][@type = 'recommendation-description'] | *[local-name() = 'div'][@type = 'permission-description']">
8391
8394
  <fo:block xsl:use-attribute-sets="description-style">
8392
8395
  <xsl:apply-templates/>
8393
8396
  </fo:block>
8394
8397
  </xsl:template>
8395
8398
 
8396
- <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification']">
8399
+ <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification'] | *[local-name() = 'div'][@type = 'requirement-specification'] | *[local-name() = 'div'][@type = 'recommendation-specification'] | *[local-name() = 'div'][@type = 'permission-specification']">
8397
8400
  <fo:block xsl:use-attribute-sets="specification-style">
8398
8401
  <xsl:apply-templates/>
8399
8402
  </fo:block>
8400
8403
  </xsl:template>
8401
8404
 
8402
- <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target']">
8405
+ <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target'] | *[local-name() = 'div'][@type = 'requirement-measurement-target'] | *[local-name() = 'div'][@type = 'recommendation-measurement-target'] | *[local-name() = 'div'][@type = 'permission-measurement-target']">
8403
8406
  <fo:block xsl:use-attribute-sets="measurement-target-style">
8404
8407
  <xsl:apply-templates/>
8405
8408
  </fo:block>
8406
8409
  </xsl:template>
8407
8410
 
8408
- <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification']">
8411
+ <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification'] | *[local-name() = 'div'][@type = 'requirement-verification'] | *[local-name() = 'div'][@type = 'recommendation-verification'] | *[local-name() = 'div'][@type = 'permission-verification']">
8409
8412
  <fo:block xsl:use-attribute-sets="verification-style">
8410
8413
  <xsl:apply-templates/>
8411
8414
  </fo:block>
8412
8415
  </xsl:template>
8413
8416
 
8414
- <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import']">
8417
+ <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import'] | *[local-name() = 'div'][@type = 'requirement-import'] | *[local-name() = 'div'][@type = 'recommendation-import'] | *[local-name() = 'div'][@type = 'permission-import']">
8415
8418
  <fo:block xsl:use-attribute-sets="import-style">
8416
8419
  <xsl:apply-templates/>
8417
8420
  </fo:block>
8418
8421
  </xsl:template>
8422
+
8423
+ <xsl:template match="*[local-name() = 'div'][starts-with(@type, 'requirement-component')] | *[local-name() = 'div'][starts-with(@type, 'recommendation-component')] | *[local-name() = 'div'][starts-with(@type, 'permission-component')]">
8424
+ <fo:block xsl:use-attribute-sets="component-style">
8425
+ <xsl:apply-templates/>
8426
+ </fo:block>
8427
+ </xsl:template>
8419
8428
  <!-- ========== -->
8420
8429
  <!-- END -->
8421
8430
  <!-- ========== -->
@@ -2472,6 +2472,9 @@
2472
2472
  <xsl:attribute-set name="import-style">
2473
2473
  </xsl:attribute-set>
2474
2474
 
2475
+ <xsl:attribute-set name="component-style">
2476
+ </xsl:attribute-set>
2477
+
2475
2478
  <xsl:attribute-set name="recommendation-style">
2476
2479
 
2477
2480
  </xsl:attribute-set>
@@ -8381,41 +8384,47 @@
8381
8384
  </fo:block>
8382
8385
  </xsl:template>
8383
8386
 
8384
- <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit']">
8387
+ <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit'] | *[local-name() = 'div'][@type = 'requirement-inherit'] | *[local-name() = 'div'][@type = 'recommendation-inherit'] | *[local-name() = 'div'][@type = 'permission-inherit']">
8385
8388
  <fo:block xsl:use-attribute-sets="inherit-style">
8386
8389
  <xsl:text>Dependency </xsl:text><xsl:apply-templates/>
8387
8390
  </fo:block>
8388
8391
  </xsl:template>
8389
8392
 
8390
- <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description']">
8393
+ <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description'] | *[local-name() = 'div'][@type = 'requirement-description'] | *[local-name() = 'div'][@type = 'recommendation-description'] | *[local-name() = 'div'][@type = 'permission-description']">
8391
8394
  <fo:block xsl:use-attribute-sets="description-style">
8392
8395
  <xsl:apply-templates/>
8393
8396
  </fo:block>
8394
8397
  </xsl:template>
8395
8398
 
8396
- <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification']">
8399
+ <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification'] | *[local-name() = 'div'][@type = 'requirement-specification'] | *[local-name() = 'div'][@type = 'recommendation-specification'] | *[local-name() = 'div'][@type = 'permission-specification']">
8397
8400
  <fo:block xsl:use-attribute-sets="specification-style">
8398
8401
  <xsl:apply-templates/>
8399
8402
  </fo:block>
8400
8403
  </xsl:template>
8401
8404
 
8402
- <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target']">
8405
+ <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target'] | *[local-name() = 'div'][@type = 'requirement-measurement-target'] | *[local-name() = 'div'][@type = 'recommendation-measurement-target'] | *[local-name() = 'div'][@type = 'permission-measurement-target']">
8403
8406
  <fo:block xsl:use-attribute-sets="measurement-target-style">
8404
8407
  <xsl:apply-templates/>
8405
8408
  </fo:block>
8406
8409
  </xsl:template>
8407
8410
 
8408
- <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification']">
8411
+ <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification'] | *[local-name() = 'div'][@type = 'requirement-verification'] | *[local-name() = 'div'][@type = 'recommendation-verification'] | *[local-name() = 'div'][@type = 'permission-verification']">
8409
8412
  <fo:block xsl:use-attribute-sets="verification-style">
8410
8413
  <xsl:apply-templates/>
8411
8414
  </fo:block>
8412
8415
  </xsl:template>
8413
8416
 
8414
- <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import']">
8417
+ <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import'] | *[local-name() = 'div'][@type = 'requirement-import'] | *[local-name() = 'div'][@type = 'recommendation-import'] | *[local-name() = 'div'][@type = 'permission-import']">
8415
8418
  <fo:block xsl:use-attribute-sets="import-style">
8416
8419
  <xsl:apply-templates/>
8417
8420
  </fo:block>
8418
8421
  </xsl:template>
8422
+
8423
+ <xsl:template match="*[local-name() = 'div'][starts-with(@type, 'requirement-component')] | *[local-name() = 'div'][starts-with(@type, 'recommendation-component')] | *[local-name() = 'div'][starts-with(@type, 'permission-component')]">
8424
+ <fo:block xsl:use-attribute-sets="component-style">
8425
+ <xsl:apply-templates/>
8426
+ </fo:block>
8427
+ </xsl:template>
8419
8428
  <!-- ========== -->
8420
8429
  <!-- END -->
8421
8430
  <!-- ========== -->
@@ -2472,6 +2472,9 @@
2472
2472
  <xsl:attribute-set name="import-style">
2473
2473
  </xsl:attribute-set>
2474
2474
 
2475
+ <xsl:attribute-set name="component-style">
2476
+ </xsl:attribute-set>
2477
+
2475
2478
  <xsl:attribute-set name="recommendation-style">
2476
2479
 
2477
2480
  </xsl:attribute-set>
@@ -8381,41 +8384,47 @@
8381
8384
  </fo:block>
8382
8385
  </xsl:template>
8383
8386
 
8384
- <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit']">
8387
+ <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit'] | *[local-name() = 'div'][@type = 'requirement-inherit'] | *[local-name() = 'div'][@type = 'recommendation-inherit'] | *[local-name() = 'div'][@type = 'permission-inherit']">
8385
8388
  <fo:block xsl:use-attribute-sets="inherit-style">
8386
8389
  <xsl:text>Dependency </xsl:text><xsl:apply-templates/>
8387
8390
  </fo:block>
8388
8391
  </xsl:template>
8389
8392
 
8390
- <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description']">
8393
+ <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description'] | *[local-name() = 'div'][@type = 'requirement-description'] | *[local-name() = 'div'][@type = 'recommendation-description'] | *[local-name() = 'div'][@type = 'permission-description']">
8391
8394
  <fo:block xsl:use-attribute-sets="description-style">
8392
8395
  <xsl:apply-templates/>
8393
8396
  </fo:block>
8394
8397
  </xsl:template>
8395
8398
 
8396
- <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification']">
8399
+ <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification'] | *[local-name() = 'div'][@type = 'requirement-specification'] | *[local-name() = 'div'][@type = 'recommendation-specification'] | *[local-name() = 'div'][@type = 'permission-specification']">
8397
8400
  <fo:block xsl:use-attribute-sets="specification-style">
8398
8401
  <xsl:apply-templates/>
8399
8402
  </fo:block>
8400
8403
  </xsl:template>
8401
8404
 
8402
- <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target']">
8405
+ <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target'] | *[local-name() = 'div'][@type = 'requirement-measurement-target'] | *[local-name() = 'div'][@type = 'recommendation-measurement-target'] | *[local-name() = 'div'][@type = 'permission-measurement-target']">
8403
8406
  <fo:block xsl:use-attribute-sets="measurement-target-style">
8404
8407
  <xsl:apply-templates/>
8405
8408
  </fo:block>
8406
8409
  </xsl:template>
8407
8410
 
8408
- <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification']">
8411
+ <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification'] | *[local-name() = 'div'][@type = 'requirement-verification'] | *[local-name() = 'div'][@type = 'recommendation-verification'] | *[local-name() = 'div'][@type = 'permission-verification']">
8409
8412
  <fo:block xsl:use-attribute-sets="verification-style">
8410
8413
  <xsl:apply-templates/>
8411
8414
  </fo:block>
8412
8415
  </xsl:template>
8413
8416
 
8414
- <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import']">
8417
+ <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import'] | *[local-name() = 'div'][@type = 'requirement-import'] | *[local-name() = 'div'][@type = 'recommendation-import'] | *[local-name() = 'div'][@type = 'permission-import']">
8415
8418
  <fo:block xsl:use-attribute-sets="import-style">
8416
8419
  <xsl:apply-templates/>
8417
8420
  </fo:block>
8418
8421
  </xsl:template>
8422
+
8423
+ <xsl:template match="*[local-name() = 'div'][starts-with(@type, 'requirement-component')] | *[local-name() = 'div'][starts-with(@type, 'recommendation-component')] | *[local-name() = 'div'][starts-with(@type, 'permission-component')]">
8424
+ <fo:block xsl:use-attribute-sets="component-style">
8425
+ <xsl:apply-templates/>
8426
+ </fo:block>
8427
+ </xsl:template>
8419
8428
  <!-- ========== -->
8420
8429
  <!-- END -->
8421
8430
  <!-- ========== -->
@@ -126,26 +126,24 @@ module IsoDoc
126
126
  ::Relaton::Render::ITU::General.new(language: @lang)
127
127
  end
128
128
 
129
- def bibrender(xml)
130
- if f = xml.at(ns("./formattedref"))
131
- f << "." unless /\.$/.match?(f.text)
132
- else
133
- # retain date in order to generate reference tag
134
- xml.children =
135
- "#{bibrenderer.render(xml.to_xml)}"\
136
- "#{xml.xpath(ns('./docidentifier | ./uri | ./note | ./date')).to_xml}"
137
- end
129
+ def bibrender_formattedref(formattedref, _xml)
130
+ formattedref << "." unless /\.$/.match?(formattedref.text)
131
+ end
132
+
133
+ def bibrender_relaton(xml, renderings)
134
+ f = renderings[xml["id"]][:formattedref]
135
+ f &&= "<formattedref>#{f}</formattedref>"
136
+ # retain date in order to generate reference tag
137
+ xml.children =
138
+ "#{f}#{xml.xpath(ns('./docidentifier | ./uri | ./note | ./date')).to_xml}"
138
139
  end
139
140
 
140
141
  def ddmmmmyyyy(date)
141
- if @lang == "zh"
142
- ddMMMyyyy(date)
143
- else
144
- d = date.split("-")
145
- d[1] = @meta.months[d[1].to_sym] if d[1]
146
- d[2] = d[2].sub(/^0/, "") if d[2]
147
- l10n(d.reverse.join(" "))
148
- end
142
+ @lang == "zh" and return ddMMMyyyy(date)
143
+ d = date.split("-")
144
+ d[1] &&= @meta.months[d[1].to_sym]
145
+ d[2] &&= d[2].sub(/^0/, "")
146
+ l10n(d.reverse.join(" "))
149
147
  end
150
148
 
151
149
  def amendment_id(bib)
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ITU
3
- VERSION = "2.1.6".freeze
3
+ VERSION = "2.1.7".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-itu
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.6
4
+ version: 2.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-08 00:00:00.000000000 Z
11
+ date: 2022-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities