metanorma-itu 1.4.0.1 → 1.4.1

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: e486ed509e01e8839797855e65a6431033298b7e307253f64b600fbc195f4caa
4
- data.tar.gz: cbb5b77f6e2d99ded15a6e50375689d9f57f700d3f4f00d320e2ce110713d535
3
+ metadata.gz: c1164c6fb0287be4c0c1f9f8d437cbcfedf5c7905d86c13f8992847a0bfb696d
4
+ data.tar.gz: 06a084cdde9d262683e457ea5b2f9c3d57a1e3f14dcd17fc255854f8ff9c79e2
5
5
  SHA512:
6
- metadata.gz: 550210205331fb08d6e5f9da8614f8f0f9b9883e4b353d79698a8530e4f71dce36cfd5b36d75b0fcce073569cc1f1cf33a83b9baf348179ad3f547a3c9221da6
7
- data.tar.gz: 3900db56104d0d73841f932220178e3ef1e64cb085d60bcbdff5259e36fbdbca539b3dfc26d71a25934f4622a48ba7afb93813ac1bee7d86d66456064fee9692
6
+ metadata.gz: 0b965a8f12e85d64c07ce2b36ebe51151c38e0c43542b3dd7a497cc2b344fbd7a58b2c4087f2f1ee90f9b1d67e4b9c73d1b7b43ddc2d5847af672602427cd357
7
+ data.tar.gz: d3dc91a7831b1f94ec6abffa2f3a925218bb73c002e68c244c7c215ac051c2ac62fb6ba7951da04bf3a2b872d7ce3645bad326872fe50346b7fb8c0b366dade6
@@ -2063,7 +2063,12 @@
2063
2063
  <define name="verbaldefinition">
2064
2064
  <element name="verbaldefinition">
2065
2065
  <oneOrMore>
2066
- <ref name="paragraph"/>
2066
+ <choice>
2067
+ <ref name="paragraph"/>
2068
+ <ref name="dl"/>
2069
+ <ref name="ol"/>
2070
+ <ref name="ul"/>
2071
+ </choice>
2067
2072
  </oneOrMore>
2068
2073
  <zeroOrMore>
2069
2074
  <ref name="termsource"/>
@@ -2163,6 +2168,12 @@
2163
2168
  <value>modified</value>
2164
2169
  </choice>
2165
2170
  </attribute>
2171
+ <attribute name="type">
2172
+ <choice>
2173
+ <value>authoritative</value>
2174
+ <value>lineage</value>
2175
+ </choice>
2176
+ </attribute>
2166
2177
  <ref name="origin"/>
2167
2178
  <optional>
2168
2179
  <ref name="modification"/>
@@ -1768,7 +1768,7 @@
1768
1768
  <xsl:otherwise>5mm</xsl:otherwise>
1769
1769
  </xsl:choose>
1770
1770
  </xsl:attribute>
1771
- <xsl:apply-templates select="ancestor::itu:term/itu:name" mode="presentation"/>
1771
+ <xsl:apply-templates select="ancestor::itu:term[1]/itu:name" mode="presentation"/>
1772
1772
  </fo:inline>
1773
1773
  <fo:inline font-weight="bold">
1774
1774
  <xsl:apply-templates/>
@@ -4418,6 +4418,7 @@
4418
4418
  </xsl:if>
4419
4419
 
4420
4420
  <fo:block margin-top="6pt">
4421
+ <xsl:copy-of select="@id"/>
4421
4422
 
4422
4423
 
4423
4424
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -5267,14 +5268,18 @@
5267
5268
  </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
5268
5269
  <fo:inline><xsl:apply-templates/></fo:inline>
5269
5270
  </xsl:template><xsl:template match="*[local-name() = 'terms']">
5271
+ <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
5270
5272
  <fo:block id="{@id}">
5271
5273
  <xsl:apply-templates/>
5272
5274
  </fo:block>
5273
5275
  </xsl:template><xsl:template match="*[local-name() = 'term']">
5276
+ <!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
5274
5277
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
5275
5278
 
5276
5279
 
5277
-
5280
+ <xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
5281
+
5282
+ </xsl:if>
5278
5283
  <xsl:apply-templates/>
5279
5284
  </fo:block>
5280
5285
  </xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
@@ -6248,7 +6253,8 @@
6248
6253
  </fo:block>
6249
6254
  </fo:table-cell>
6250
6255
  </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
6251
- <fo:block font-size="11pt" color="rgb(237, 193, 35)"> <!-- font-weight="bold" margin-bottom="4pt" text-align="center" -->
6256
+ <fo:block font-size="11pt">
6257
+
6252
6258
  <xsl:apply-templates/>
6253
6259
  </fo:block>
6254
6260
  </xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
@@ -6364,13 +6370,15 @@
6364
6370
  <!-- <xsl:apply-templates /> -->
6365
6371
  <xsl:copy-of select="$termsource_text"/>
6366
6372
  </xsl:when>
6367
- <xsl:otherwise>
6373
+ <xsl:otherwise>
6374
+
6368
6375
 
6369
6376
  <xsl:text>[</xsl:text>
6370
6377
 
6371
6378
  <!-- <xsl:apply-templates /> -->
6372
6379
  <xsl:copy-of select="$termsource_text"/>
6373
6380
 
6381
+
6374
6382
  <xsl:text>]</xsl:text>
6375
6383
 
6376
6384
  </xsl:otherwise>
@@ -6437,12 +6445,20 @@
6437
6445
  </xsl:template><xsl:template match="*[local-name() = 'author']">
6438
6446
  <xsl:text>— </xsl:text>
6439
6447
  <xsl:apply-templates/>
6440
- </xsl:template><xsl:template match="*[local-name() = 'eref']">
6448
+ </xsl:template><xsl:variable name="bibitem_hidden_">
6449
+ <xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
6450
+ <xsl:copy-of select="."/>
6451
+ </xsl:for-each>
6452
+ <xsl:for-each select="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem']">
6453
+ <xsl:copy-of select="."/>
6454
+ </xsl:for-each>
6455
+ </xsl:variable><xsl:variable name="bibitem_hidden" select="xalan:nodeset($bibitem_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
6441
6456
 
6442
6457
  <xsl:variable name="bibitemid">
6443
6458
  <xsl:choose>
6444
- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"/>
6445
- <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6459
+ <!-- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"></xsl:when>
6460
+ <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"></xsl:when> -->
6461
+ <xsl:when test="$bibitem_hidden/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6446
6462
  <xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
6447
6463
  </xsl:choose>
6448
6464
  </xsl:variable>
@@ -6534,10 +6550,10 @@
6534
6550
  </xsl:choose>
6535
6551
  </xsl:variable>
6536
6552
 
6537
- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
6553
+ <!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
6538
6554
 
6539
6555
  <xsl:choose>
6540
- <xsl:when test="$language = 'zh'">
6556
+ <xsl:when test="$lang = 'zh'">
6541
6557
  <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
6542
6558
  </xsl:when>
6543
6559
  <xsl:when test="../../@inline-header = 'true'">
@@ -1768,7 +1768,7 @@
1768
1768
  <xsl:otherwise>5mm</xsl:otherwise>
1769
1769
  </xsl:choose>
1770
1770
  </xsl:attribute>
1771
- <xsl:apply-templates select="ancestor::itu:term/itu:name" mode="presentation"/>
1771
+ <xsl:apply-templates select="ancestor::itu:term[1]/itu:name" mode="presentation"/>
1772
1772
  </fo:inline>
1773
1773
  <fo:inline font-weight="bold">
1774
1774
  <xsl:apply-templates/>
@@ -4418,6 +4418,7 @@
4418
4418
  </xsl:if>
4419
4419
 
4420
4420
  <fo:block margin-top="6pt">
4421
+ <xsl:copy-of select="@id"/>
4421
4422
 
4422
4423
 
4423
4424
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -5267,14 +5268,18 @@
5267
5268
  </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
5268
5269
  <fo:inline><xsl:apply-templates/></fo:inline>
5269
5270
  </xsl:template><xsl:template match="*[local-name() = 'terms']">
5271
+ <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
5270
5272
  <fo:block id="{@id}">
5271
5273
  <xsl:apply-templates/>
5272
5274
  </fo:block>
5273
5275
  </xsl:template><xsl:template match="*[local-name() = 'term']">
5276
+ <!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
5274
5277
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
5275
5278
 
5276
5279
 
5277
-
5280
+ <xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
5281
+
5282
+ </xsl:if>
5278
5283
  <xsl:apply-templates/>
5279
5284
  </fo:block>
5280
5285
  </xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
@@ -6248,7 +6253,8 @@
6248
6253
  </fo:block>
6249
6254
  </fo:table-cell>
6250
6255
  </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
6251
- <fo:block font-size="11pt" color="rgb(237, 193, 35)"> <!-- font-weight="bold" margin-bottom="4pt" text-align="center" -->
6256
+ <fo:block font-size="11pt">
6257
+
6252
6258
  <xsl:apply-templates/>
6253
6259
  </fo:block>
6254
6260
  </xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
@@ -6364,13 +6370,15 @@
6364
6370
  <!-- <xsl:apply-templates /> -->
6365
6371
  <xsl:copy-of select="$termsource_text"/>
6366
6372
  </xsl:when>
6367
- <xsl:otherwise>
6373
+ <xsl:otherwise>
6374
+
6368
6375
 
6369
6376
  <xsl:text>[</xsl:text>
6370
6377
 
6371
6378
  <!-- <xsl:apply-templates /> -->
6372
6379
  <xsl:copy-of select="$termsource_text"/>
6373
6380
 
6381
+
6374
6382
  <xsl:text>]</xsl:text>
6375
6383
 
6376
6384
  </xsl:otherwise>
@@ -6437,12 +6445,20 @@
6437
6445
  </xsl:template><xsl:template match="*[local-name() = 'author']">
6438
6446
  <xsl:text>— </xsl:text>
6439
6447
  <xsl:apply-templates/>
6440
- </xsl:template><xsl:template match="*[local-name() = 'eref']">
6448
+ </xsl:template><xsl:variable name="bibitem_hidden_">
6449
+ <xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
6450
+ <xsl:copy-of select="."/>
6451
+ </xsl:for-each>
6452
+ <xsl:for-each select="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem']">
6453
+ <xsl:copy-of select="."/>
6454
+ </xsl:for-each>
6455
+ </xsl:variable><xsl:variable name="bibitem_hidden" select="xalan:nodeset($bibitem_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
6441
6456
 
6442
6457
  <xsl:variable name="bibitemid">
6443
6458
  <xsl:choose>
6444
- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"/>
6445
- <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6459
+ <!-- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"></xsl:when>
6460
+ <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"></xsl:when> -->
6461
+ <xsl:when test="$bibitem_hidden/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6446
6462
  <xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
6447
6463
  </xsl:choose>
6448
6464
  </xsl:variable>
@@ -6534,10 +6550,10 @@
6534
6550
  </xsl:choose>
6535
6551
  </xsl:variable>
6536
6552
 
6537
- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
6553
+ <!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
6538
6554
 
6539
6555
  <xsl:choose>
6540
- <xsl:when test="$language = 'zh'">
6556
+ <xsl:when test="$lang = 'zh'">
6541
6557
  <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
6542
6558
  </xsl:when>
6543
6559
  <xsl:when test="../../@inline-header = 'true'">
@@ -1768,7 +1768,7 @@
1768
1768
  <xsl:otherwise>5mm</xsl:otherwise>
1769
1769
  </xsl:choose>
1770
1770
  </xsl:attribute>
1771
- <xsl:apply-templates select="ancestor::itu:term/itu:name" mode="presentation"/>
1771
+ <xsl:apply-templates select="ancestor::itu:term[1]/itu:name" mode="presentation"/>
1772
1772
  </fo:inline>
1773
1773
  <fo:inline font-weight="bold">
1774
1774
  <xsl:apply-templates/>
@@ -4418,6 +4418,7 @@
4418
4418
  </xsl:if>
4419
4419
 
4420
4420
  <fo:block margin-top="6pt">
4421
+ <xsl:copy-of select="@id"/>
4421
4422
 
4422
4423
 
4423
4424
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -5267,14 +5268,18 @@
5267
5268
  </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
5268
5269
  <fo:inline><xsl:apply-templates/></fo:inline>
5269
5270
  </xsl:template><xsl:template match="*[local-name() = 'terms']">
5271
+ <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
5270
5272
  <fo:block id="{@id}">
5271
5273
  <xsl:apply-templates/>
5272
5274
  </fo:block>
5273
5275
  </xsl:template><xsl:template match="*[local-name() = 'term']">
5276
+ <!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
5274
5277
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
5275
5278
 
5276
5279
 
5277
-
5280
+ <xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
5281
+
5282
+ </xsl:if>
5278
5283
  <xsl:apply-templates/>
5279
5284
  </fo:block>
5280
5285
  </xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
@@ -6248,7 +6253,8 @@
6248
6253
  </fo:block>
6249
6254
  </fo:table-cell>
6250
6255
  </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
6251
- <fo:block font-size="11pt" color="rgb(237, 193, 35)"> <!-- font-weight="bold" margin-bottom="4pt" text-align="center" -->
6256
+ <fo:block font-size="11pt">
6257
+
6252
6258
  <xsl:apply-templates/>
6253
6259
  </fo:block>
6254
6260
  </xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
@@ -6364,13 +6370,15 @@
6364
6370
  <!-- <xsl:apply-templates /> -->
6365
6371
  <xsl:copy-of select="$termsource_text"/>
6366
6372
  </xsl:when>
6367
- <xsl:otherwise>
6373
+ <xsl:otherwise>
6374
+
6368
6375
 
6369
6376
  <xsl:text>[</xsl:text>
6370
6377
 
6371
6378
  <!-- <xsl:apply-templates /> -->
6372
6379
  <xsl:copy-of select="$termsource_text"/>
6373
6380
 
6381
+
6374
6382
  <xsl:text>]</xsl:text>
6375
6383
 
6376
6384
  </xsl:otherwise>
@@ -6437,12 +6445,20 @@
6437
6445
  </xsl:template><xsl:template match="*[local-name() = 'author']">
6438
6446
  <xsl:text>— </xsl:text>
6439
6447
  <xsl:apply-templates/>
6440
- </xsl:template><xsl:template match="*[local-name() = 'eref']">
6448
+ </xsl:template><xsl:variable name="bibitem_hidden_">
6449
+ <xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
6450
+ <xsl:copy-of select="."/>
6451
+ </xsl:for-each>
6452
+ <xsl:for-each select="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem']">
6453
+ <xsl:copy-of select="."/>
6454
+ </xsl:for-each>
6455
+ </xsl:variable><xsl:variable name="bibitem_hidden" select="xalan:nodeset($bibitem_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
6441
6456
 
6442
6457
  <xsl:variable name="bibitemid">
6443
6458
  <xsl:choose>
6444
- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"/>
6445
- <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6459
+ <!-- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"></xsl:when>
6460
+ <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"></xsl:when> -->
6461
+ <xsl:when test="$bibitem_hidden/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6446
6462
  <xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
6447
6463
  </xsl:choose>
6448
6464
  </xsl:variable>
@@ -6534,10 +6550,10 @@
6534
6550
  </xsl:choose>
6535
6551
  </xsl:variable>
6536
6552
 
6537
- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
6553
+ <!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
6538
6554
 
6539
6555
  <xsl:choose>
6540
- <xsl:when test="$language = 'zh'">
6556
+ <xsl:when test="$lang = 'zh'">
6541
6557
  <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
6542
6558
  </xsl:when>
6543
6559
  <xsl:when test="../../@inline-header = 'true'">
@@ -1768,7 +1768,7 @@
1768
1768
  <xsl:otherwise>5mm</xsl:otherwise>
1769
1769
  </xsl:choose>
1770
1770
  </xsl:attribute>
1771
- <xsl:apply-templates select="ancestor::itu:term/itu:name" mode="presentation"/>
1771
+ <xsl:apply-templates select="ancestor::itu:term[1]/itu:name" mode="presentation"/>
1772
1772
  </fo:inline>
1773
1773
  <fo:inline font-weight="bold">
1774
1774
  <xsl:apply-templates/>
@@ -4418,6 +4418,7 @@
4418
4418
  </xsl:if>
4419
4419
 
4420
4420
  <fo:block margin-top="6pt">
4421
+ <xsl:copy-of select="@id"/>
4421
4422
 
4422
4423
 
4423
4424
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -5267,14 +5268,18 @@
5267
5268
  </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
5268
5269
  <fo:inline><xsl:apply-templates/></fo:inline>
5269
5270
  </xsl:template><xsl:template match="*[local-name() = 'terms']">
5271
+ <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
5270
5272
  <fo:block id="{@id}">
5271
5273
  <xsl:apply-templates/>
5272
5274
  </fo:block>
5273
5275
  </xsl:template><xsl:template match="*[local-name() = 'term']">
5276
+ <!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
5274
5277
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
5275
5278
 
5276
5279
 
5277
-
5280
+ <xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
5281
+
5282
+ </xsl:if>
5278
5283
  <xsl:apply-templates/>
5279
5284
  </fo:block>
5280
5285
  </xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
@@ -6248,7 +6253,8 @@
6248
6253
  </fo:block>
6249
6254
  </fo:table-cell>
6250
6255
  </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
6251
- <fo:block font-size="11pt" color="rgb(237, 193, 35)"> <!-- font-weight="bold" margin-bottom="4pt" text-align="center" -->
6256
+ <fo:block font-size="11pt">
6257
+
6252
6258
  <xsl:apply-templates/>
6253
6259
  </fo:block>
6254
6260
  </xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
@@ -6364,13 +6370,15 @@
6364
6370
  <!-- <xsl:apply-templates /> -->
6365
6371
  <xsl:copy-of select="$termsource_text"/>
6366
6372
  </xsl:when>
6367
- <xsl:otherwise>
6373
+ <xsl:otherwise>
6374
+
6368
6375
 
6369
6376
  <xsl:text>[</xsl:text>
6370
6377
 
6371
6378
  <!-- <xsl:apply-templates /> -->
6372
6379
  <xsl:copy-of select="$termsource_text"/>
6373
6380
 
6381
+
6374
6382
  <xsl:text>]</xsl:text>
6375
6383
 
6376
6384
  </xsl:otherwise>
@@ -6437,12 +6445,20 @@
6437
6445
  </xsl:template><xsl:template match="*[local-name() = 'author']">
6438
6446
  <xsl:text>— </xsl:text>
6439
6447
  <xsl:apply-templates/>
6440
- </xsl:template><xsl:template match="*[local-name() = 'eref']">
6448
+ </xsl:template><xsl:variable name="bibitem_hidden_">
6449
+ <xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
6450
+ <xsl:copy-of select="."/>
6451
+ </xsl:for-each>
6452
+ <xsl:for-each select="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem']">
6453
+ <xsl:copy-of select="."/>
6454
+ </xsl:for-each>
6455
+ </xsl:variable><xsl:variable name="bibitem_hidden" select="xalan:nodeset($bibitem_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
6441
6456
 
6442
6457
  <xsl:variable name="bibitemid">
6443
6458
  <xsl:choose>
6444
- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"/>
6445
- <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6459
+ <!-- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"></xsl:when>
6460
+ <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"></xsl:when> -->
6461
+ <xsl:when test="$bibitem_hidden/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6446
6462
  <xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
6447
6463
  </xsl:choose>
6448
6464
  </xsl:variable>
@@ -6534,10 +6550,10 @@
6534
6550
  </xsl:choose>
6535
6551
  </xsl:variable>
6536
6552
 
6537
- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
6553
+ <!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
6538
6554
 
6539
6555
  <xsl:choose>
6540
- <xsl:when test="$language = 'zh'">
6556
+ <xsl:when test="$lang = 'zh'">
6541
6557
  <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
6542
6558
  </xsl:when>
6543
6559
  <xsl:when test="../../@inline-header = 'true'">
@@ -1768,7 +1768,7 @@
1768
1768
  <xsl:otherwise>5mm</xsl:otherwise>
1769
1769
  </xsl:choose>
1770
1770
  </xsl:attribute>
1771
- <xsl:apply-templates select="ancestor::itu:term/itu:name" mode="presentation"/>
1771
+ <xsl:apply-templates select="ancestor::itu:term[1]/itu:name" mode="presentation"/>
1772
1772
  </fo:inline>
1773
1773
  <fo:inline font-weight="bold">
1774
1774
  <xsl:apply-templates/>
@@ -4418,6 +4418,7 @@
4418
4418
  </xsl:if>
4419
4419
 
4420
4420
  <fo:block margin-top="6pt">
4421
+ <xsl:copy-of select="@id"/>
4421
4422
 
4422
4423
 
4423
4424
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -5267,14 +5268,18 @@
5267
5268
  </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
5268
5269
  <fo:inline><xsl:apply-templates/></fo:inline>
5269
5270
  </xsl:template><xsl:template match="*[local-name() = 'terms']">
5271
+ <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
5270
5272
  <fo:block id="{@id}">
5271
5273
  <xsl:apply-templates/>
5272
5274
  </fo:block>
5273
5275
  </xsl:template><xsl:template match="*[local-name() = 'term']">
5276
+ <!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
5274
5277
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
5275
5278
 
5276
5279
 
5277
-
5280
+ <xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
5281
+
5282
+ </xsl:if>
5278
5283
  <xsl:apply-templates/>
5279
5284
  </fo:block>
5280
5285
  </xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
@@ -6248,7 +6253,8 @@
6248
6253
  </fo:block>
6249
6254
  </fo:table-cell>
6250
6255
  </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
6251
- <fo:block font-size="11pt" color="rgb(237, 193, 35)"> <!-- font-weight="bold" margin-bottom="4pt" text-align="center" -->
6256
+ <fo:block font-size="11pt">
6257
+
6252
6258
  <xsl:apply-templates/>
6253
6259
  </fo:block>
6254
6260
  </xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
@@ -6364,13 +6370,15 @@
6364
6370
  <!-- <xsl:apply-templates /> -->
6365
6371
  <xsl:copy-of select="$termsource_text"/>
6366
6372
  </xsl:when>
6367
- <xsl:otherwise>
6373
+ <xsl:otherwise>
6374
+
6368
6375
 
6369
6376
  <xsl:text>[</xsl:text>
6370
6377
 
6371
6378
  <!-- <xsl:apply-templates /> -->
6372
6379
  <xsl:copy-of select="$termsource_text"/>
6373
6380
 
6381
+
6374
6382
  <xsl:text>]</xsl:text>
6375
6383
 
6376
6384
  </xsl:otherwise>
@@ -6437,12 +6445,20 @@
6437
6445
  </xsl:template><xsl:template match="*[local-name() = 'author']">
6438
6446
  <xsl:text>— </xsl:text>
6439
6447
  <xsl:apply-templates/>
6440
- </xsl:template><xsl:template match="*[local-name() = 'eref']">
6448
+ </xsl:template><xsl:variable name="bibitem_hidden_">
6449
+ <xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
6450
+ <xsl:copy-of select="."/>
6451
+ </xsl:for-each>
6452
+ <xsl:for-each select="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem']">
6453
+ <xsl:copy-of select="."/>
6454
+ </xsl:for-each>
6455
+ </xsl:variable><xsl:variable name="bibitem_hidden" select="xalan:nodeset($bibitem_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
6441
6456
 
6442
6457
  <xsl:variable name="bibitemid">
6443
6458
  <xsl:choose>
6444
- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"/>
6445
- <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6459
+ <!-- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"></xsl:when>
6460
+ <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"></xsl:when> -->
6461
+ <xsl:when test="$bibitem_hidden/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6446
6462
  <xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
6447
6463
  </xsl:choose>
6448
6464
  </xsl:variable>
@@ -6534,10 +6550,10 @@
6534
6550
  </xsl:choose>
6535
6551
  </xsl:variable>
6536
6552
 
6537
- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
6553
+ <!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
6538
6554
 
6539
6555
  <xsl:choose>
6540
- <xsl:when test="$language = 'zh'">
6556
+ <xsl:when test="$lang = 'zh'">
6541
6557
  <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
6542
6558
  </xsl:when>
6543
6559
  <xsl:when test="../../@inline-header = 'true'">
@@ -1768,7 +1768,7 @@
1768
1768
  <xsl:otherwise>5mm</xsl:otherwise>
1769
1769
  </xsl:choose>
1770
1770
  </xsl:attribute>
1771
- <xsl:apply-templates select="ancestor::itu:term/itu:name" mode="presentation"/>
1771
+ <xsl:apply-templates select="ancestor::itu:term[1]/itu:name" mode="presentation"/>
1772
1772
  </fo:inline>
1773
1773
  <fo:inline font-weight="bold">
1774
1774
  <xsl:apply-templates/>
@@ -4418,6 +4418,7 @@
4418
4418
  </xsl:if>
4419
4419
 
4420
4420
  <fo:block margin-top="6pt">
4421
+ <xsl:copy-of select="@id"/>
4421
4422
 
4422
4423
 
4423
4424
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -5267,14 +5268,18 @@
5267
5268
  </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
5268
5269
  <fo:inline><xsl:apply-templates/></fo:inline>
5269
5270
  </xsl:template><xsl:template match="*[local-name() = 'terms']">
5271
+ <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
5270
5272
  <fo:block id="{@id}">
5271
5273
  <xsl:apply-templates/>
5272
5274
  </fo:block>
5273
5275
  </xsl:template><xsl:template match="*[local-name() = 'term']">
5276
+ <!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
5274
5277
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
5275
5278
 
5276
5279
 
5277
-
5280
+ <xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
5281
+
5282
+ </xsl:if>
5278
5283
  <xsl:apply-templates/>
5279
5284
  </fo:block>
5280
5285
  </xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
@@ -6248,7 +6253,8 @@
6248
6253
  </fo:block>
6249
6254
  </fo:table-cell>
6250
6255
  </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
6251
- <fo:block font-size="11pt" color="rgb(237, 193, 35)"> <!-- font-weight="bold" margin-bottom="4pt" text-align="center" -->
6256
+ <fo:block font-size="11pt">
6257
+
6252
6258
  <xsl:apply-templates/>
6253
6259
  </fo:block>
6254
6260
  </xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
@@ -6364,13 +6370,15 @@
6364
6370
  <!-- <xsl:apply-templates /> -->
6365
6371
  <xsl:copy-of select="$termsource_text"/>
6366
6372
  </xsl:when>
6367
- <xsl:otherwise>
6373
+ <xsl:otherwise>
6374
+
6368
6375
 
6369
6376
  <xsl:text>[</xsl:text>
6370
6377
 
6371
6378
  <!-- <xsl:apply-templates /> -->
6372
6379
  <xsl:copy-of select="$termsource_text"/>
6373
6380
 
6381
+
6374
6382
  <xsl:text>]</xsl:text>
6375
6383
 
6376
6384
  </xsl:otherwise>
@@ -6437,12 +6445,20 @@
6437
6445
  </xsl:template><xsl:template match="*[local-name() = 'author']">
6438
6446
  <xsl:text>— </xsl:text>
6439
6447
  <xsl:apply-templates/>
6440
- </xsl:template><xsl:template match="*[local-name() = 'eref']">
6448
+ </xsl:template><xsl:variable name="bibitem_hidden_">
6449
+ <xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
6450
+ <xsl:copy-of select="."/>
6451
+ </xsl:for-each>
6452
+ <xsl:for-each select="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem']">
6453
+ <xsl:copy-of select="."/>
6454
+ </xsl:for-each>
6455
+ </xsl:variable><xsl:variable name="bibitem_hidden" select="xalan:nodeset($bibitem_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
6441
6456
 
6442
6457
  <xsl:variable name="bibitemid">
6443
6458
  <xsl:choose>
6444
- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"/>
6445
- <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6459
+ <!-- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"></xsl:when>
6460
+ <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"></xsl:when> -->
6461
+ <xsl:when test="$bibitem_hidden/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6446
6462
  <xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
6447
6463
  </xsl:choose>
6448
6464
  </xsl:variable>
@@ -6534,10 +6550,10 @@
6534
6550
  </xsl:choose>
6535
6551
  </xsl:variable>
6536
6552
 
6537
- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
6553
+ <!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
6538
6554
 
6539
6555
  <xsl:choose>
6540
- <xsl:when test="$language = 'zh'">
6556
+ <xsl:when test="$lang = 'zh'">
6541
6557
  <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
6542
6558
  </xsl:when>
6543
6559
  <xsl:when test="../../@inline-header = 'true'">
@@ -1768,7 +1768,7 @@
1768
1768
  <xsl:otherwise>5mm</xsl:otherwise>
1769
1769
  </xsl:choose>
1770
1770
  </xsl:attribute>
1771
- <xsl:apply-templates select="ancestor::itu:term/itu:name" mode="presentation"/>
1771
+ <xsl:apply-templates select="ancestor::itu:term[1]/itu:name" mode="presentation"/>
1772
1772
  </fo:inline>
1773
1773
  <fo:inline font-weight="bold">
1774
1774
  <xsl:apply-templates/>
@@ -4418,6 +4418,7 @@
4418
4418
  </xsl:if>
4419
4419
 
4420
4420
  <fo:block margin-top="6pt">
4421
+ <xsl:copy-of select="@id"/>
4421
4422
 
4422
4423
 
4423
4424
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -5267,14 +5268,18 @@
5267
5268
  </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
5268
5269
  <fo:inline><xsl:apply-templates/></fo:inline>
5269
5270
  </xsl:template><xsl:template match="*[local-name() = 'terms']">
5271
+ <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
5270
5272
  <fo:block id="{@id}">
5271
5273
  <xsl:apply-templates/>
5272
5274
  </fo:block>
5273
5275
  </xsl:template><xsl:template match="*[local-name() = 'term']">
5276
+ <!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
5274
5277
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
5275
5278
 
5276
5279
 
5277
-
5280
+ <xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
5281
+
5282
+ </xsl:if>
5278
5283
  <xsl:apply-templates/>
5279
5284
  </fo:block>
5280
5285
  </xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
@@ -6248,7 +6253,8 @@
6248
6253
  </fo:block>
6249
6254
  </fo:table-cell>
6250
6255
  </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
6251
- <fo:block font-size="11pt" color="rgb(237, 193, 35)"> <!-- font-weight="bold" margin-bottom="4pt" text-align="center" -->
6256
+ <fo:block font-size="11pt">
6257
+
6252
6258
  <xsl:apply-templates/>
6253
6259
  </fo:block>
6254
6260
  </xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
@@ -6364,13 +6370,15 @@
6364
6370
  <!-- <xsl:apply-templates /> -->
6365
6371
  <xsl:copy-of select="$termsource_text"/>
6366
6372
  </xsl:when>
6367
- <xsl:otherwise>
6373
+ <xsl:otherwise>
6374
+
6368
6375
 
6369
6376
  <xsl:text>[</xsl:text>
6370
6377
 
6371
6378
  <!-- <xsl:apply-templates /> -->
6372
6379
  <xsl:copy-of select="$termsource_text"/>
6373
6380
 
6381
+
6374
6382
  <xsl:text>]</xsl:text>
6375
6383
 
6376
6384
  </xsl:otherwise>
@@ -6437,12 +6445,20 @@
6437
6445
  </xsl:template><xsl:template match="*[local-name() = 'author']">
6438
6446
  <xsl:text>— </xsl:text>
6439
6447
  <xsl:apply-templates/>
6440
- </xsl:template><xsl:template match="*[local-name() = 'eref']">
6448
+ </xsl:template><xsl:variable name="bibitem_hidden_">
6449
+ <xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
6450
+ <xsl:copy-of select="."/>
6451
+ </xsl:for-each>
6452
+ <xsl:for-each select="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem']">
6453
+ <xsl:copy-of select="."/>
6454
+ </xsl:for-each>
6455
+ </xsl:variable><xsl:variable name="bibitem_hidden" select="xalan:nodeset($bibitem_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
6441
6456
 
6442
6457
  <xsl:variable name="bibitemid">
6443
6458
  <xsl:choose>
6444
- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"/>
6445
- <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6459
+ <!-- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"></xsl:when>
6460
+ <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"></xsl:when> -->
6461
+ <xsl:when test="$bibitem_hidden/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6446
6462
  <xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
6447
6463
  </xsl:choose>
6448
6464
  </xsl:variable>
@@ -6534,10 +6550,10 @@
6534
6550
  </xsl:choose>
6535
6551
  </xsl:variable>
6536
6552
 
6537
- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
6553
+ <!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
6538
6554
 
6539
6555
  <xsl:choose>
6540
- <xsl:when test="$language = 'zh'">
6556
+ <xsl:when test="$lang = 'zh'">
6541
6557
  <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
6542
6558
  </xsl:when>
6543
6559
  <xsl:when test="../../@inline-header = 'true'">
@@ -1768,7 +1768,7 @@
1768
1768
  <xsl:otherwise>5mm</xsl:otherwise>
1769
1769
  </xsl:choose>
1770
1770
  </xsl:attribute>
1771
- <xsl:apply-templates select="ancestor::itu:term/itu:name" mode="presentation"/>
1771
+ <xsl:apply-templates select="ancestor::itu:term[1]/itu:name" mode="presentation"/>
1772
1772
  </fo:inline>
1773
1773
  <fo:inline font-weight="bold">
1774
1774
  <xsl:apply-templates/>
@@ -4418,6 +4418,7 @@
4418
4418
  </xsl:if>
4419
4419
 
4420
4420
  <fo:block margin-top="6pt">
4421
+ <xsl:copy-of select="@id"/>
4421
4422
 
4422
4423
 
4423
4424
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -5267,14 +5268,18 @@
5267
5268
  </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
5268
5269
  <fo:inline><xsl:apply-templates/></fo:inline>
5269
5270
  </xsl:template><xsl:template match="*[local-name() = 'terms']">
5271
+ <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
5270
5272
  <fo:block id="{@id}">
5271
5273
  <xsl:apply-templates/>
5272
5274
  </fo:block>
5273
5275
  </xsl:template><xsl:template match="*[local-name() = 'term']">
5276
+ <!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
5274
5277
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
5275
5278
 
5276
5279
 
5277
-
5280
+ <xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
5281
+
5282
+ </xsl:if>
5278
5283
  <xsl:apply-templates/>
5279
5284
  </fo:block>
5280
5285
  </xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
@@ -6248,7 +6253,8 @@
6248
6253
  </fo:block>
6249
6254
  </fo:table-cell>
6250
6255
  </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
6251
- <fo:block font-size="11pt" color="rgb(237, 193, 35)"> <!-- font-weight="bold" margin-bottom="4pt" text-align="center" -->
6256
+ <fo:block font-size="11pt">
6257
+
6252
6258
  <xsl:apply-templates/>
6253
6259
  </fo:block>
6254
6260
  </xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
@@ -6364,13 +6370,15 @@
6364
6370
  <!-- <xsl:apply-templates /> -->
6365
6371
  <xsl:copy-of select="$termsource_text"/>
6366
6372
  </xsl:when>
6367
- <xsl:otherwise>
6373
+ <xsl:otherwise>
6374
+
6368
6375
 
6369
6376
  <xsl:text>[</xsl:text>
6370
6377
 
6371
6378
  <!-- <xsl:apply-templates /> -->
6372
6379
  <xsl:copy-of select="$termsource_text"/>
6373
6380
 
6381
+
6374
6382
  <xsl:text>]</xsl:text>
6375
6383
 
6376
6384
  </xsl:otherwise>
@@ -6437,12 +6445,20 @@
6437
6445
  </xsl:template><xsl:template match="*[local-name() = 'author']">
6438
6446
  <xsl:text>— </xsl:text>
6439
6447
  <xsl:apply-templates/>
6440
- </xsl:template><xsl:template match="*[local-name() = 'eref']">
6448
+ </xsl:template><xsl:variable name="bibitem_hidden_">
6449
+ <xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
6450
+ <xsl:copy-of select="."/>
6451
+ </xsl:for-each>
6452
+ <xsl:for-each select="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem']">
6453
+ <xsl:copy-of select="."/>
6454
+ </xsl:for-each>
6455
+ </xsl:variable><xsl:variable name="bibitem_hidden" select="xalan:nodeset($bibitem_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
6441
6456
 
6442
6457
  <xsl:variable name="bibitemid">
6443
6458
  <xsl:choose>
6444
- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"/>
6445
- <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6459
+ <!-- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"></xsl:when>
6460
+ <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"></xsl:when> -->
6461
+ <xsl:when test="$bibitem_hidden/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6446
6462
  <xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
6447
6463
  </xsl:choose>
6448
6464
  </xsl:variable>
@@ -6534,10 +6550,10 @@
6534
6550
  </xsl:choose>
6535
6551
  </xsl:variable>
6536
6552
 
6537
- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
6553
+ <!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
6538
6554
 
6539
6555
  <xsl:choose>
6540
- <xsl:when test="$language = 'zh'">
6556
+ <xsl:when test="$lang = 'zh'">
6541
6557
  <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
6542
6558
  </xsl:when>
6543
6559
  <xsl:when test="../../@inline-header = 'true'">
@@ -1768,7 +1768,7 @@
1768
1768
  <xsl:otherwise>5mm</xsl:otherwise>
1769
1769
  </xsl:choose>
1770
1770
  </xsl:attribute>
1771
- <xsl:apply-templates select="ancestor::itu:term/itu:name" mode="presentation"/>
1771
+ <xsl:apply-templates select="ancestor::itu:term[1]/itu:name" mode="presentation"/>
1772
1772
  </fo:inline>
1773
1773
  <fo:inline font-weight="bold">
1774
1774
  <xsl:apply-templates/>
@@ -4418,6 +4418,7 @@
4418
4418
  </xsl:if>
4419
4419
 
4420
4420
  <fo:block margin-top="6pt">
4421
+ <xsl:copy-of select="@id"/>
4421
4422
 
4422
4423
 
4423
4424
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -5267,14 +5268,18 @@
5267
5268
  </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
5268
5269
  <fo:inline><xsl:apply-templates/></fo:inline>
5269
5270
  </xsl:template><xsl:template match="*[local-name() = 'terms']">
5271
+ <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
5270
5272
  <fo:block id="{@id}">
5271
5273
  <xsl:apply-templates/>
5272
5274
  </fo:block>
5273
5275
  </xsl:template><xsl:template match="*[local-name() = 'term']">
5276
+ <!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
5274
5277
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
5275
5278
 
5276
5279
 
5277
-
5280
+ <xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
5281
+
5282
+ </xsl:if>
5278
5283
  <xsl:apply-templates/>
5279
5284
  </fo:block>
5280
5285
  </xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
@@ -6248,7 +6253,8 @@
6248
6253
  </fo:block>
6249
6254
  </fo:table-cell>
6250
6255
  </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
6251
- <fo:block font-size="11pt" color="rgb(237, 193, 35)"> <!-- font-weight="bold" margin-bottom="4pt" text-align="center" -->
6256
+ <fo:block font-size="11pt">
6257
+
6252
6258
  <xsl:apply-templates/>
6253
6259
  </fo:block>
6254
6260
  </xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
@@ -6364,13 +6370,15 @@
6364
6370
  <!-- <xsl:apply-templates /> -->
6365
6371
  <xsl:copy-of select="$termsource_text"/>
6366
6372
  </xsl:when>
6367
- <xsl:otherwise>
6373
+ <xsl:otherwise>
6374
+
6368
6375
 
6369
6376
  <xsl:text>[</xsl:text>
6370
6377
 
6371
6378
  <!-- <xsl:apply-templates /> -->
6372
6379
  <xsl:copy-of select="$termsource_text"/>
6373
6380
 
6381
+
6374
6382
  <xsl:text>]</xsl:text>
6375
6383
 
6376
6384
  </xsl:otherwise>
@@ -6437,12 +6445,20 @@
6437
6445
  </xsl:template><xsl:template match="*[local-name() = 'author']">
6438
6446
  <xsl:text>— </xsl:text>
6439
6447
  <xsl:apply-templates/>
6440
- </xsl:template><xsl:template match="*[local-name() = 'eref']">
6448
+ </xsl:template><xsl:variable name="bibitem_hidden_">
6449
+ <xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
6450
+ <xsl:copy-of select="."/>
6451
+ </xsl:for-each>
6452
+ <xsl:for-each select="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem']">
6453
+ <xsl:copy-of select="."/>
6454
+ </xsl:for-each>
6455
+ </xsl:variable><xsl:variable name="bibitem_hidden" select="xalan:nodeset($bibitem_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
6441
6456
 
6442
6457
  <xsl:variable name="bibitemid">
6443
6458
  <xsl:choose>
6444
- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"/>
6445
- <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6459
+ <!-- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"></xsl:when>
6460
+ <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"></xsl:when> -->
6461
+ <xsl:when test="$bibitem_hidden/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6446
6462
  <xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
6447
6463
  </xsl:choose>
6448
6464
  </xsl:variable>
@@ -6534,10 +6550,10 @@
6534
6550
  </xsl:choose>
6535
6551
  </xsl:variable>
6536
6552
 
6537
- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
6553
+ <!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
6538
6554
 
6539
6555
  <xsl:choose>
6540
- <xsl:when test="$language = 'zh'">
6556
+ <xsl:when test="$lang = 'zh'">
6541
6557
  <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
6542
6558
  </xsl:when>
6543
6559
  <xsl:when test="../../@inline-header = 'true'">
@@ -23,18 +23,26 @@ module IsoDoc
23
23
  &.at(ns("//bibdata/ext/structuredidentifier/annexid"))&.text
24
24
  docxml.xpath(ns("//annex")).each { |c| annex_names(c, annexid) }
25
25
  else
26
- i = Counter.new(0, numerals: :roman)
27
- docxml.xpath(ns("//annex[@obligation = 'informative']"))
28
- .each do |c|
29
- i.increment(c)
30
- annex_names(c, i.print.upcase)
31
- end
32
- i = Counter.new("@", skip_i: true)
33
- docxml.xpath(ns("//annex[not(@obligation = 'informative')]"))
34
- .each do |c|
35
- i.increment(c)
36
- annex_names(c, i.print)
37
- end
26
+ informative_annex_names(docxml)
27
+ normative_annex_names(docxml)
28
+ end
29
+ end
30
+
31
+ def informative_annex_names(docxml)
32
+ i = Counter.new(0, numerals: :roman)
33
+ docxml.xpath(ns("//annex[@obligation = 'informative']"))
34
+ .each do |c|
35
+ i.increment(c)
36
+ annex_names(c, i.print.upcase)
37
+ end
38
+ end
39
+
40
+ def normative_annex_names(docxml)
41
+ i = Counter.new("@", skip_i: true)
42
+ docxml.xpath(ns("//annex[not(@obligation = 'informative')]"))
43
+ .each do |c|
44
+ i.increment(c)
45
+ annex_names(c, i.print)
38
46
  end
39
47
  end
40
48
 
@@ -51,7 +59,9 @@ module IsoDoc
51
59
  n = Counter.new
52
60
  n = section_names(doc.at(ns("//clause[@type = 'scope']")), n, 1)
53
61
  n = section_names(doc.at(ns(@klass.norm_ref_xpath)), n, 1)
54
- n = section_names(doc.at(ns("//sections/terms | //sections/clause[descendant::terms]")), n, 1)
62
+ n = section_names(
63
+ doc.at(ns("//sections/terms | //sections/clause[descendant::terms]")), n, 1
64
+ )
55
65
  n = section_names(doc.at(ns("//sections/definitions")), n, 1)
56
66
  clause_names(doc, n)
57
67
  middle_section_asset_names(doc)
@@ -88,7 +98,8 @@ module IsoDoc
88
98
  next if t["id"].nil? || t["id"].empty?
89
99
 
90
100
  @anchors[t["id"]] =
91
- anchor_struct(label, nil, @labels["figure"], "figure", t["unnumbered"])
101
+ anchor_struct(label, nil, @labels["figure"], "figure",
102
+ t["unnumbered"])
92
103
  end
93
104
  end
94
105
 
@@ -105,14 +116,16 @@ module IsoDoc
105
116
  next if t["id"].nil? || t["id"].empty?
106
117
 
107
118
  @anchors[t["id"]] =
108
- anchor_struct(label, nil, @labels["figure"], "figure", t["unnumbered"])
119
+ anchor_struct(label, nil, @labels["figure"], "figure",
120
+ t["unnumbered"])
109
121
  end
110
122
  end
111
123
 
112
124
  def sequential_formula_names(clause)
113
125
  clause&.first&.xpath(ns(middle_sections))&.each do |c|
114
126
  if c["id"] && @anchors[c["id"]]
115
- hierarchical_formula_names(c, @anchors[c["id"]][:label] || @anchors[c["id"]][:xref] || "???")
127
+ hierarchical_formula_names(c,
128
+ @anchors[c["id"]][:label] || @anchors[c["id"]][:xref] || "???")
116
129
  else
117
130
  hierarchical_formula_names(c, "???")
118
131
  end
@@ -121,9 +134,7 @@ module IsoDoc
121
134
 
122
135
  def hierarchical_formula_names(clause, num)
123
136
  c = Counter.new
124
- clause.xpath(ns(".//formula")).each do |t|
125
- next if t["id"].nil? || t["id"].empty?
126
-
137
+ clause.xpath(ns(".//formula")).reject { |n| blank?(n["id"]) }.each do |t|
127
138
  @anchors[t["id"]] = anchor_struct(
128
139
  "#{num}-#{c.increment(t).print}", nil,
129
140
  t["inequality"] ? @labels["inequality"] : @labels["formula"],
@@ -139,12 +150,10 @@ module IsoDoc
139
150
  end
140
151
 
141
152
  def termnote_anchor_names(docxml)
142
- docxml.xpath(ns("//term[descendant::termnote]")).each do |t|
153
+ docxml.xpath(ns("//term[termnote]")).each do |t|
143
154
  c = Counter.new
144
- notes = t.xpath(ns(".//termnote"))
145
- notes.each do |n|
146
- return if n["id"].nil? || n["id"].empty?
147
-
155
+ notes = t.xpath(ns("./termnote"))
156
+ notes.reject { |n| blank?(n["id"]) }.each do |n|
148
157
  idx = notes.size == 1 ? "" : " #{c.increment(n).print}"
149
158
  @anchors[n["id"]] =
150
159
  { label: termnote_label(idx).strip, type: "termnote", value: idx,
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ITU
3
- VERSION = "1.4.0.1".freeze
3
+ VERSION = "1.4.1".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: 1.4.0.1
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-25 00:00:00.000000000 Z
11
+ date: 2021-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities