metanorma-itu 1.3.13 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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/>
@@ -2441,6 +2441,8 @@
2441
2441
 
2442
2442
  <title-list-figures lang="en">List of Figures</title-list-figures>
2443
2443
 
2444
+ <title-table-figures lang="en">Table of Figures</title-table-figures>
2445
+
2444
2446
  <title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
2445
2447
 
2446
2448
  <title-acknowledgements lang="en">Acknowledgements</title-acknowledgements>
@@ -4416,6 +4418,7 @@
4416
4418
  </xsl:if>
4417
4419
 
4418
4420
  <fo:block margin-top="6pt">
4421
+ <xsl:copy-of select="@id"/>
4419
4422
 
4420
4423
 
4421
4424
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -5265,14 +5268,18 @@
5265
5268
  </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
5266
5269
  <fo:inline><xsl:apply-templates/></fo:inline>
5267
5270
  </xsl:template><xsl:template match="*[local-name() = 'terms']">
5271
+ <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
5268
5272
  <fo:block id="{@id}">
5269
5273
  <xsl:apply-templates/>
5270
5274
  </fo:block>
5271
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> -->
5272
5277
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
5273
5278
 
5274
5279
 
5275
-
5280
+ <xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
5281
+
5282
+ </xsl:if>
5276
5283
  <xsl:apply-templates/>
5277
5284
  </fo:block>
5278
5285
  </xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
@@ -5334,6 +5341,7 @@
5334
5341
  <xsl:otherwise>
5335
5342
  <fo:block xsl:use-attribute-sets="image-style">
5336
5343
 
5344
+
5337
5345
  <xsl:variable name="src">
5338
5346
  <xsl:call-template name="image_src"/>
5339
5347
  </xsl:variable>
@@ -5700,7 +5708,7 @@
5700
5708
  <xsl:text> </xsl:text>
5701
5709
  </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']/text()" mode="contents" priority="2">
5702
5710
  <xsl:value-of select="."/>
5703
- </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']/text()" mode="bookmarks" priority="2">
5711
+ </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']//text()" mode="bookmarks" priority="2">
5704
5712
  <xsl:value-of select="."/>
5705
5713
  </xsl:template><xsl:template match="node()" mode="contents">
5706
5714
  <xsl:apply-templates mode="contents"/>
@@ -5798,6 +5806,8 @@
5798
5806
 
5799
5807
 
5800
5808
 
5809
+
5810
+
5801
5811
  </fo:bookmark-tree>
5802
5812
  </xsl:if>
5803
5813
  </xsl:template><xsl:template name="insertFigureBookmarks">
@@ -6243,7 +6253,8 @@
6243
6253
  </fo:block>
6244
6254
  </fo:table-cell>
6245
6255
  </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
6246
- <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
+
6247
6258
  <xsl:apply-templates/>
6248
6259
  </fo:block>
6249
6260
  </xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
@@ -6348,6 +6359,7 @@
6348
6359
  </xsl:choose>
6349
6360
  </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
6350
6361
  <fo:block xsl:use-attribute-sets="termsource-style">
6362
+
6351
6363
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
6352
6364
  <xsl:variable name="termsource_text">
6353
6365
  <xsl:apply-templates/>
@@ -6358,13 +6370,15 @@
6358
6370
  <!-- <xsl:apply-templates /> -->
6359
6371
  <xsl:copy-of select="$termsource_text"/>
6360
6372
  </xsl:when>
6361
- <xsl:otherwise>
6373
+ <xsl:otherwise>
6374
+
6362
6375
 
6363
6376
  <xsl:text>[</xsl:text>
6364
6377
 
6365
6378
  <!-- <xsl:apply-templates /> -->
6366
6379
  <xsl:copy-of select="$termsource_text"/>
6367
6380
 
6381
+
6368
6382
  <xsl:text>]</xsl:text>
6369
6383
 
6370
6384
  </xsl:otherwise>
@@ -6431,12 +6445,20 @@
6431
6445
  </xsl:template><xsl:template match="*[local-name() = 'author']">
6432
6446
  <xsl:text>— </xsl:text>
6433
6447
  <xsl:apply-templates/>
6434
- </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']">
6435
6456
 
6436
6457
  <xsl:variable name="bibitemid">
6437
6458
  <xsl:choose>
6438
- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"/>
6439
- <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]"/>
6440
6462
  <xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
6441
6463
  </xsl:choose>
6442
6464
  </xsl:variable>
@@ -6528,10 +6550,10 @@
6528
6550
  </xsl:choose>
6529
6551
  </xsl:variable>
6530
6552
 
6531
- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
6553
+ <!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
6532
6554
 
6533
6555
  <xsl:choose>
6534
- <xsl:when test="$language = 'zh'">
6556
+ <xsl:when test="$lang = 'zh'">
6535
6557
  <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
6536
6558
  </xsl:when>
6537
6559
  <xsl:when test="../../@inline-header = 'true'">
@@ -7522,12 +7544,15 @@
7522
7544
  <xsl:param name="default">left</xsl:param>
7523
7545
  <xsl:attribute name="text-align">
7524
7546
  <xsl:choose>
7525
- <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
7547
+ <xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
7526
7548
  <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
7527
7549
  <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
7528
7550
  <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
7529
7551
  </xsl:choose>
7530
7552
  </xsl:attribute>
7553
+ <xsl:if test="@align = 'indent'">
7554
+ <xsl:attribute name="margin-left">7mm</xsl:attribute>
7555
+ </xsl:if>
7531
7556
  </xsl:template><xsl:template name="number-to-words">
7532
7557
  <xsl:param name="number"/>
7533
7558
  <xsl:param name="first"/>
@@ -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/>
@@ -2441,6 +2441,8 @@
2441
2441
 
2442
2442
  <title-list-figures lang="en">List of Figures</title-list-figures>
2443
2443
 
2444
+ <title-table-figures lang="en">Table of Figures</title-table-figures>
2445
+
2444
2446
  <title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
2445
2447
 
2446
2448
  <title-acknowledgements lang="en">Acknowledgements</title-acknowledgements>
@@ -4416,6 +4418,7 @@
4416
4418
  </xsl:if>
4417
4419
 
4418
4420
  <fo:block margin-top="6pt">
4421
+ <xsl:copy-of select="@id"/>
4419
4422
 
4420
4423
 
4421
4424
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -5265,14 +5268,18 @@
5265
5268
  </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
5266
5269
  <fo:inline><xsl:apply-templates/></fo:inline>
5267
5270
  </xsl:template><xsl:template match="*[local-name() = 'terms']">
5271
+ <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
5268
5272
  <fo:block id="{@id}">
5269
5273
  <xsl:apply-templates/>
5270
5274
  </fo:block>
5271
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> -->
5272
5277
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
5273
5278
 
5274
5279
 
5275
-
5280
+ <xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
5281
+
5282
+ </xsl:if>
5276
5283
  <xsl:apply-templates/>
5277
5284
  </fo:block>
5278
5285
  </xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
@@ -5334,6 +5341,7 @@
5334
5341
  <xsl:otherwise>
5335
5342
  <fo:block xsl:use-attribute-sets="image-style">
5336
5343
 
5344
+
5337
5345
  <xsl:variable name="src">
5338
5346
  <xsl:call-template name="image_src"/>
5339
5347
  </xsl:variable>
@@ -5700,7 +5708,7 @@
5700
5708
  <xsl:text> </xsl:text>
5701
5709
  </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']/text()" mode="contents" priority="2">
5702
5710
  <xsl:value-of select="."/>
5703
- </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']/text()" mode="bookmarks" priority="2">
5711
+ </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']//text()" mode="bookmarks" priority="2">
5704
5712
  <xsl:value-of select="."/>
5705
5713
  </xsl:template><xsl:template match="node()" mode="contents">
5706
5714
  <xsl:apply-templates mode="contents"/>
@@ -5798,6 +5806,8 @@
5798
5806
 
5799
5807
 
5800
5808
 
5809
+
5810
+
5801
5811
  </fo:bookmark-tree>
5802
5812
  </xsl:if>
5803
5813
  </xsl:template><xsl:template name="insertFigureBookmarks">
@@ -6243,7 +6253,8 @@
6243
6253
  </fo:block>
6244
6254
  </fo:table-cell>
6245
6255
  </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
6246
- <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
+
6247
6258
  <xsl:apply-templates/>
6248
6259
  </fo:block>
6249
6260
  </xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
@@ -6348,6 +6359,7 @@
6348
6359
  </xsl:choose>
6349
6360
  </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
6350
6361
  <fo:block xsl:use-attribute-sets="termsource-style">
6362
+
6351
6363
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
6352
6364
  <xsl:variable name="termsource_text">
6353
6365
  <xsl:apply-templates/>
@@ -6358,13 +6370,15 @@
6358
6370
  <!-- <xsl:apply-templates /> -->
6359
6371
  <xsl:copy-of select="$termsource_text"/>
6360
6372
  </xsl:when>
6361
- <xsl:otherwise>
6373
+ <xsl:otherwise>
6374
+
6362
6375
 
6363
6376
  <xsl:text>[</xsl:text>
6364
6377
 
6365
6378
  <!-- <xsl:apply-templates /> -->
6366
6379
  <xsl:copy-of select="$termsource_text"/>
6367
6380
 
6381
+
6368
6382
  <xsl:text>]</xsl:text>
6369
6383
 
6370
6384
  </xsl:otherwise>
@@ -6431,12 +6445,20 @@
6431
6445
  </xsl:template><xsl:template match="*[local-name() = 'author']">
6432
6446
  <xsl:text>— </xsl:text>
6433
6447
  <xsl:apply-templates/>
6434
- </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']">
6435
6456
 
6436
6457
  <xsl:variable name="bibitemid">
6437
6458
  <xsl:choose>
6438
- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"/>
6439
- <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]"/>
6440
6462
  <xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
6441
6463
  </xsl:choose>
6442
6464
  </xsl:variable>
@@ -6528,10 +6550,10 @@
6528
6550
  </xsl:choose>
6529
6551
  </xsl:variable>
6530
6552
 
6531
- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
6553
+ <!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
6532
6554
 
6533
6555
  <xsl:choose>
6534
- <xsl:when test="$language = 'zh'">
6556
+ <xsl:when test="$lang = 'zh'">
6535
6557
  <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
6536
6558
  </xsl:when>
6537
6559
  <xsl:when test="../../@inline-header = 'true'">
@@ -7522,12 +7544,15 @@
7522
7544
  <xsl:param name="default">left</xsl:param>
7523
7545
  <xsl:attribute name="text-align">
7524
7546
  <xsl:choose>
7525
- <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
7547
+ <xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
7526
7548
  <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
7527
7549
  <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
7528
7550
  <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
7529
7551
  </xsl:choose>
7530
7552
  </xsl:attribute>
7553
+ <xsl:if test="@align = 'indent'">
7554
+ <xsl:attribute name="margin-left">7mm</xsl:attribute>
7555
+ </xsl:if>
7531
7556
  </xsl:template><xsl:template name="number-to-words">
7532
7557
  <xsl:param name="number"/>
7533
7558
  <xsl:param name="first"/>
@@ -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/>
@@ -2441,6 +2441,8 @@
2441
2441
 
2442
2442
  <title-list-figures lang="en">List of Figures</title-list-figures>
2443
2443
 
2444
+ <title-table-figures lang="en">Table of Figures</title-table-figures>
2445
+
2444
2446
  <title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
2445
2447
 
2446
2448
  <title-acknowledgements lang="en">Acknowledgements</title-acknowledgements>
@@ -4416,6 +4418,7 @@
4416
4418
  </xsl:if>
4417
4419
 
4418
4420
  <fo:block margin-top="6pt">
4421
+ <xsl:copy-of select="@id"/>
4419
4422
 
4420
4423
 
4421
4424
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -5265,14 +5268,18 @@
5265
5268
  </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
5266
5269
  <fo:inline><xsl:apply-templates/></fo:inline>
5267
5270
  </xsl:template><xsl:template match="*[local-name() = 'terms']">
5271
+ <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
5268
5272
  <fo:block id="{@id}">
5269
5273
  <xsl:apply-templates/>
5270
5274
  </fo:block>
5271
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> -->
5272
5277
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
5273
5278
 
5274
5279
 
5275
-
5280
+ <xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
5281
+
5282
+ </xsl:if>
5276
5283
  <xsl:apply-templates/>
5277
5284
  </fo:block>
5278
5285
  </xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
@@ -5334,6 +5341,7 @@
5334
5341
  <xsl:otherwise>
5335
5342
  <fo:block xsl:use-attribute-sets="image-style">
5336
5343
 
5344
+
5337
5345
  <xsl:variable name="src">
5338
5346
  <xsl:call-template name="image_src"/>
5339
5347
  </xsl:variable>
@@ -5700,7 +5708,7 @@
5700
5708
  <xsl:text> </xsl:text>
5701
5709
  </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']/text()" mode="contents" priority="2">
5702
5710
  <xsl:value-of select="."/>
5703
- </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']/text()" mode="bookmarks" priority="2">
5711
+ </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']//text()" mode="bookmarks" priority="2">
5704
5712
  <xsl:value-of select="."/>
5705
5713
  </xsl:template><xsl:template match="node()" mode="contents">
5706
5714
  <xsl:apply-templates mode="contents"/>
@@ -5798,6 +5806,8 @@
5798
5806
 
5799
5807
 
5800
5808
 
5809
+
5810
+
5801
5811
  </fo:bookmark-tree>
5802
5812
  </xsl:if>
5803
5813
  </xsl:template><xsl:template name="insertFigureBookmarks">
@@ -6243,7 +6253,8 @@
6243
6253
  </fo:block>
6244
6254
  </fo:table-cell>
6245
6255
  </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
6246
- <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
+
6247
6258
  <xsl:apply-templates/>
6248
6259
  </fo:block>
6249
6260
  </xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
@@ -6348,6 +6359,7 @@
6348
6359
  </xsl:choose>
6349
6360
  </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
6350
6361
  <fo:block xsl:use-attribute-sets="termsource-style">
6362
+
6351
6363
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
6352
6364
  <xsl:variable name="termsource_text">
6353
6365
  <xsl:apply-templates/>
@@ -6358,13 +6370,15 @@
6358
6370
  <!-- <xsl:apply-templates /> -->
6359
6371
  <xsl:copy-of select="$termsource_text"/>
6360
6372
  </xsl:when>
6361
- <xsl:otherwise>
6373
+ <xsl:otherwise>
6374
+
6362
6375
 
6363
6376
  <xsl:text>[</xsl:text>
6364
6377
 
6365
6378
  <!-- <xsl:apply-templates /> -->
6366
6379
  <xsl:copy-of select="$termsource_text"/>
6367
6380
 
6381
+
6368
6382
  <xsl:text>]</xsl:text>
6369
6383
 
6370
6384
  </xsl:otherwise>
@@ -6431,12 +6445,20 @@
6431
6445
  </xsl:template><xsl:template match="*[local-name() = 'author']">
6432
6446
  <xsl:text>— </xsl:text>
6433
6447
  <xsl:apply-templates/>
6434
- </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']">
6435
6456
 
6436
6457
  <xsl:variable name="bibitemid">
6437
6458
  <xsl:choose>
6438
- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"/>
6439
- <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]"/>
6440
6462
  <xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
6441
6463
  </xsl:choose>
6442
6464
  </xsl:variable>
@@ -6528,10 +6550,10 @@
6528
6550
  </xsl:choose>
6529
6551
  </xsl:variable>
6530
6552
 
6531
- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
6553
+ <!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
6532
6554
 
6533
6555
  <xsl:choose>
6534
- <xsl:when test="$language = 'zh'">
6556
+ <xsl:when test="$lang = 'zh'">
6535
6557
  <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
6536
6558
  </xsl:when>
6537
6559
  <xsl:when test="../../@inline-header = 'true'">
@@ -7522,12 +7544,15 @@
7522
7544
  <xsl:param name="default">left</xsl:param>
7523
7545
  <xsl:attribute name="text-align">
7524
7546
  <xsl:choose>
7525
- <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
7547
+ <xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
7526
7548
  <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
7527
7549
  <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
7528
7550
  <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
7529
7551
  </xsl:choose>
7530
7552
  </xsl:attribute>
7553
+ <xsl:if test="@align = 'indent'">
7554
+ <xsl:attribute name="margin-left">7mm</xsl:attribute>
7555
+ </xsl:if>
7531
7556
  </xsl:template><xsl:template name="number-to-words">
7532
7557
  <xsl:param name="number"/>
7533
7558
  <xsl:param name="first"/>
@@ -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/>
@@ -2441,6 +2441,8 @@
2441
2441
 
2442
2442
  <title-list-figures lang="en">List of Figures</title-list-figures>
2443
2443
 
2444
+ <title-table-figures lang="en">Table of Figures</title-table-figures>
2445
+
2444
2446
  <title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
2445
2447
 
2446
2448
  <title-acknowledgements lang="en">Acknowledgements</title-acknowledgements>
@@ -4416,6 +4418,7 @@
4416
4418
  </xsl:if>
4417
4419
 
4418
4420
  <fo:block margin-top="6pt">
4421
+ <xsl:copy-of select="@id"/>
4419
4422
 
4420
4423
 
4421
4424
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -5265,14 +5268,18 @@
5265
5268
  </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
5266
5269
  <fo:inline><xsl:apply-templates/></fo:inline>
5267
5270
  </xsl:template><xsl:template match="*[local-name() = 'terms']">
5271
+ <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
5268
5272
  <fo:block id="{@id}">
5269
5273
  <xsl:apply-templates/>
5270
5274
  </fo:block>
5271
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> -->
5272
5277
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
5273
5278
 
5274
5279
 
5275
-
5280
+ <xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
5281
+
5282
+ </xsl:if>
5276
5283
  <xsl:apply-templates/>
5277
5284
  </fo:block>
5278
5285
  </xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
@@ -5334,6 +5341,7 @@
5334
5341
  <xsl:otherwise>
5335
5342
  <fo:block xsl:use-attribute-sets="image-style">
5336
5343
 
5344
+
5337
5345
  <xsl:variable name="src">
5338
5346
  <xsl:call-template name="image_src"/>
5339
5347
  </xsl:variable>
@@ -5700,7 +5708,7 @@
5700
5708
  <xsl:text> </xsl:text>
5701
5709
  </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']/text()" mode="contents" priority="2">
5702
5710
  <xsl:value-of select="."/>
5703
- </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']/text()" mode="bookmarks" priority="2">
5711
+ </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']//text()" mode="bookmarks" priority="2">
5704
5712
  <xsl:value-of select="."/>
5705
5713
  </xsl:template><xsl:template match="node()" mode="contents">
5706
5714
  <xsl:apply-templates mode="contents"/>
@@ -5798,6 +5806,8 @@
5798
5806
 
5799
5807
 
5800
5808
 
5809
+
5810
+
5801
5811
  </fo:bookmark-tree>
5802
5812
  </xsl:if>
5803
5813
  </xsl:template><xsl:template name="insertFigureBookmarks">
@@ -6243,7 +6253,8 @@
6243
6253
  </fo:block>
6244
6254
  </fo:table-cell>
6245
6255
  </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
6246
- <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
+
6247
6258
  <xsl:apply-templates/>
6248
6259
  </fo:block>
6249
6260
  </xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
@@ -6348,6 +6359,7 @@
6348
6359
  </xsl:choose>
6349
6360
  </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
6350
6361
  <fo:block xsl:use-attribute-sets="termsource-style">
6362
+
6351
6363
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
6352
6364
  <xsl:variable name="termsource_text">
6353
6365
  <xsl:apply-templates/>
@@ -6358,13 +6370,15 @@
6358
6370
  <!-- <xsl:apply-templates /> -->
6359
6371
  <xsl:copy-of select="$termsource_text"/>
6360
6372
  </xsl:when>
6361
- <xsl:otherwise>
6373
+ <xsl:otherwise>
6374
+
6362
6375
 
6363
6376
  <xsl:text>[</xsl:text>
6364
6377
 
6365
6378
  <!-- <xsl:apply-templates /> -->
6366
6379
  <xsl:copy-of select="$termsource_text"/>
6367
6380
 
6381
+
6368
6382
  <xsl:text>]</xsl:text>
6369
6383
 
6370
6384
  </xsl:otherwise>
@@ -6431,12 +6445,20 @@
6431
6445
  </xsl:template><xsl:template match="*[local-name() = 'author']">
6432
6446
  <xsl:text>— </xsl:text>
6433
6447
  <xsl:apply-templates/>
6434
- </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']">
6435
6456
 
6436
6457
  <xsl:variable name="bibitemid">
6437
6458
  <xsl:choose>
6438
- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"/>
6439
- <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]"/>
6440
6462
  <xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
6441
6463
  </xsl:choose>
6442
6464
  </xsl:variable>
@@ -6528,10 +6550,10 @@
6528
6550
  </xsl:choose>
6529
6551
  </xsl:variable>
6530
6552
 
6531
- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
6553
+ <!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
6532
6554
 
6533
6555
  <xsl:choose>
6534
- <xsl:when test="$language = 'zh'">
6556
+ <xsl:when test="$lang = 'zh'">
6535
6557
  <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
6536
6558
  </xsl:when>
6537
6559
  <xsl:when test="../../@inline-header = 'true'">
@@ -7522,12 +7544,15 @@
7522
7544
  <xsl:param name="default">left</xsl:param>
7523
7545
  <xsl:attribute name="text-align">
7524
7546
  <xsl:choose>
7525
- <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
7547
+ <xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
7526
7548
  <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
7527
7549
  <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
7528
7550
  <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
7529
7551
  </xsl:choose>
7530
7552
  </xsl:attribute>
7553
+ <xsl:if test="@align = 'indent'">
7554
+ <xsl:attribute name="margin-left">7mm</xsl:attribute>
7555
+ </xsl:if>
7531
7556
  </xsl:template><xsl:template name="number-to-words">
7532
7557
  <xsl:param name="number"/>
7533
7558
  <xsl:param name="first"/>