metanorma-iho 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -125,46 +125,9 @@
125
125
  <fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd-landscape"/>
126
126
  </fo:repeatable-page-master-alternatives>
127
127
  </fo:page-sequence-master>
128
-
129
-
130
128
  </fo:layout-master-set>
131
129
 
132
- <fo:declarations>
133
- <pdf:catalog xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf">
134
- <pdf:dictionary type="normal" key="ViewerPreferences">
135
- <pdf:boolean key="DisplayDocTitle">true</pdf:boolean>
136
- </pdf:dictionary>
137
- </pdf:catalog>
138
- <x:xmpmeta xmlns:x="adobe:ns:meta/">
139
- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
140
- <rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about="">
141
- <!-- Dublin Core properties go here -->
142
- <dc:title>
143
- <xsl:choose>
144
- <xsl:when test="normalize-space($title-en) != ''">
145
- <xsl:value-of select="$title-en"/>
146
- </xsl:when>
147
- <xsl:otherwise> </xsl:otherwise>
148
- </xsl:choose>
149
- </dc:title>
150
- <dc:creator><xsl:value-of select="/iho:iho-standard/iho:bibdata/iho:contributor[iho:role/@type='author']/iho:organization/iho:name"/></dc:creator>
151
- <dc:description>
152
- <xsl:variable name="abstract">
153
- <xsl:copy-of select="/iho:iho-standard/iho:bibliography/iho:references/iho:bibitem/iho:abstract//text()"/>
154
- </xsl:variable>
155
- <xsl:value-of select="normalize-space($abstract)"/>
156
- </dc:description>
157
- <pdf:Keywords>
158
- <xsl:call-template name="insertKeywords"/>
159
- </pdf:Keywords>
160
- </rdf:Description>
161
- <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
162
- <!-- XMP properties go here -->
163
- <xmp:CreatorTool/>
164
- </rdf:Description>
165
- </rdf:RDF>
166
- </x:xmpmeta>
167
- </fo:declarations>
130
+ <xsl:call-template name="addPDFUAmeta"/>
168
131
 
169
132
  <!-- =========================== -->
170
133
  <!-- Cover Page -->
@@ -258,6 +221,11 @@
258
221
  <fo:block-container margin-right="-12.7mm">
259
222
  <fo:block-container margin-right="0mm">
260
223
  <fo:block color="rgb(14, 36, 133)" margin-bottom="15.5pt">
224
+ <xsl:variable name="title-toc">
225
+ <xsl:call-template name="getTitle">
226
+ <xsl:with-param name="name" select="'title-toc'"/>
227
+ </xsl:call-template>
228
+ </xsl:variable>
261
229
  <xsl:value-of select="$title-toc"/>
262
230
  </fo:block>
263
231
  <xsl:if test="$debug = 'true'">
@@ -421,10 +389,20 @@
421
389
  <xsl:variable name="section">
422
390
  <xsl:choose>
423
391
  <xsl:when test="@obligation = 'informative'">
392
+ <xsl:variable name="title-appendix">
393
+ <xsl:call-template name="getTitle">
394
+ <xsl:with-param name="name" select="'title-appendix'"/>
395
+ </xsl:call-template>
396
+ </xsl:variable>
424
397
  <xsl:value-of select="$title-appendix"/>
425
398
  <xsl:number format="1" level="any" count="iho:annex[@obligation = 'informative']"/>
426
399
  </xsl:when>
427
400
  <xsl:otherwise>
401
+ <xsl:variable name="title-annex">
402
+ <xsl:call-template name="getTitle">
403
+ <xsl:with-param name="name" select="'title-annex'"/>
404
+ </xsl:call-template>
405
+ </xsl:variable>
428
406
  <xsl:value-of select="$title-annex"/>
429
407
  <xsl:number format="A" level="any" count="iho:annex[not(@obligation = 'informative')]"/>
430
408
  </xsl:otherwise>
@@ -517,7 +495,12 @@
517
495
  <xsl:param name="sectionNum"/>
518
496
  <xsl:variable name="annex-id" select="ancestor::iho:annex/@id"/>
519
497
  <item level="" id="{@id}" display="false" type="table">
520
- <xsl:attribute name="section">
498
+ <xsl:attribute name="section">
499
+ <xsl:variable name="title-table">
500
+ <xsl:call-template name="getTitle">
501
+ <xsl:with-param name="name" select="'title-table'"/>
502
+ </xsl:call-template>
503
+ </xsl:variable>
521
504
  <xsl:value-of select="$title-table"/>
522
505
  <xsl:call-template name="getTableNumber"/>
523
506
  </xsl:attribute>
@@ -528,7 +511,12 @@
528
511
  <xsl:template match="iho:formula" mode="contents">
529
512
  <item level="" id="{@id}" display="false">
530
513
  <xsl:attribute name="section">
531
- <xsl:text>Formula (</xsl:text><xsl:number format="A.1" level="multiple" count="iho:annex | iho:formula"/><xsl:text>)</xsl:text>
514
+ <xsl:variable name="title-formula">
515
+ <xsl:call-template name="getTitle">
516
+ <xsl:with-param name="name" select="'title-formula'"/>
517
+ </xsl:call-template>
518
+ </xsl:variable>
519
+ <xsl:value-of select="$title-formula"/><xsl:number format="(A.1)" level="multiple" count="iho:annex | iho:formula"/>
532
520
  </xsl:attribute>
533
521
  </item>
534
522
  </xsl:template>
@@ -562,6 +550,11 @@
562
550
 
563
551
 
564
552
  <xsl:template match="/iho:iho-standard/iho:bibdata/iho:edition">
553
+ <xsl:variable name="title-edition">
554
+ <xsl:call-template name="getTitle">
555
+ <xsl:with-param name="name" select="'title-edition'"/>
556
+ </xsl:call-template>
557
+ </xsl:variable>
565
558
  <xsl:value-of select="$title-edition"/>
566
559
  <xsl:apply-templates/>
567
560
  </xsl:template>
@@ -914,6 +907,11 @@
914
907
  </xsl:template>
915
908
 
916
909
  <xsl:template name="getFigureNumber">
910
+ <xsl:variable name="title-figure">
911
+ <xsl:call-template name="getTitle">
912
+ <xsl:with-param name="name" select="'title-figure'"/>
913
+ </xsl:call-template>
914
+ </xsl:variable>
917
915
  <xsl:choose>
918
916
  <xsl:when test="ancestor::iho:annex">
919
917
  <xsl:choose>
@@ -953,6 +951,11 @@
953
951
  </xsl:if>
954
952
  <xsl:variable name="claims_id" select="ancestor::iho:clause[1]/@id"/>
955
953
  <fo:inline font-size="11pt" padding-right="2mm">
954
+ <xsl:variable name="title-note">
955
+ <xsl:call-template name="getTitle">
956
+ <xsl:with-param name="name" select="'title-note'"/>
957
+ </xsl:call-template>
958
+ </xsl:variable>
956
959
  <xsl:value-of select="$title-note"/>
957
960
  <xsl:if test="count(ancestor::iho:clause[1]//iho:note) &gt; 1">
958
961
  <xsl:number count="iho:note[ancestor::iho:clause[@id = $claims_id]]" level="any"/>
@@ -1003,7 +1006,14 @@
1003
1006
  <fo:block margin-bottom="12pt">
1004
1007
  <!-- Example:[SOURCE: [3]] -->
1005
1008
  <fo:basic-link internal-destination="{iho:origin/@bibitemid}" fox:alt-text="{iho:origin/@citeas}">
1006
- <xsl:text>[SOURCE: </xsl:text>
1009
+ <xsl:text>[</xsl:text>
1010
+ <xsl:variable name="title-source">
1011
+ <xsl:call-template name="getTitle">
1012
+ <xsl:with-param name="name" select="'title-source'"/>
1013
+ </xsl:call-template>
1014
+ </xsl:variable>
1015
+ <xsl:value-of select="$title-source"/>
1016
+ <xsl:text>: </xsl:text>
1007
1017
  <fo:inline color="blue" text-decoration="underline"><xsl:value-of select="iho:origin/@citeas"/></fo:inline>
1008
1018
 
1009
1019
  <xsl:apply-templates select="iho:origin/iho:localityStack"/>
@@ -1017,8 +1027,8 @@
1017
1027
  <xsl:template match="iho:admonition">
1018
1028
  <fo:block-container border="0.5pt solid rgb(79, 129, 189)" color="rgb(79, 129, 189)" margin-left="16mm" margin-right="16mm" margin-bottom="12pt">
1019
1029
  <fo:block-container margin-left="0mm" margin-right="0mm" padding="2mm" padding-top="3mm">
1020
- <fo:block font-size="11pt" margin-bottom="6pt" font-weight="bold" font-style="italic" text-align="center">
1021
- <xsl:value-of select="translate(@type, $lower, $upper)"/>
1030
+ <fo:block font-size="11pt" margin-bottom="6pt" font-weight="bold" font-style="italic" text-align="center">
1031
+ <xsl:value-of select="java:toUpperCase(java:java.lang.String.new(@type))"/>
1022
1032
  </fo:block>
1023
1033
  <fo:block font-style="italic">
1024
1034
  <xsl:apply-templates/>
@@ -1027,6 +1037,12 @@
1027
1037
  </fo:block-container>
1028
1038
  </xsl:template>
1029
1039
 
1040
+ <xsl:template match="iho:formula">
1041
+ <fo:block id="{@id}">
1042
+ <xsl:apply-templates/>
1043
+ </fo:block>
1044
+ </xsl:template>
1045
+
1030
1046
  <xsl:template match="iho:formula/iho:dt/iho:stem">
1031
1047
  <fo:inline>
1032
1048
  <xsl:apply-templates/>
@@ -1034,7 +1050,7 @@
1034
1050
  </xsl:template>
1035
1051
 
1036
1052
  <xsl:template match="iho:formula/iho:stem">
1037
- <fo:block id="{../@id}" margin-top="6pt" margin-bottom="12pt" text-align="center">
1053
+ <fo:block margin-top="6pt" margin-bottom="12pt" text-align="center">
1038
1054
  <xsl:apply-templates/>
1039
1055
  </fo:block>
1040
1056
  </xsl:template>
@@ -1059,7 +1075,7 @@
1059
1075
 
1060
1076
  <xsl:template match="iho:source">
1061
1077
  <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
1062
- <xsl:value-of select="@citeas" disable-output-escaping="yes"/>
1078
+ <xsl:value-of select="@citeas"/> <!-- disable-output-escaping="yes" -->
1063
1079
  <xsl:apply-templates select="iho:localityStack"/>
1064
1080
  </fo:basic-link>
1065
1081
  </xsl:template>
@@ -1080,6 +1096,11 @@
1080
1096
  <xsl:variable name="level" select="xalan:nodeset($contents)//item[@id =$target]/@level"/>
1081
1097
  <xsl:choose>
1082
1098
  <xsl:when test="$type = 'clause' and $root != 'annex' and $level = 1 and normalize-space(.) = ''"><!-- and not (ancestor::annex) -->
1099
+ <xsl:variable name="title-clause">
1100
+ <xsl:call-template name="getTitle">
1101
+ <xsl:with-param name="name" select="'title-clause'"/>
1102
+ </xsl:call-template>
1103
+ </xsl:variable>
1083
1104
  <xsl:value-of select="$title-clause"/>
1084
1105
  </xsl:when>
1085
1106
  <xsl:when test="$type = 'li'">
@@ -1116,10 +1137,20 @@
1116
1137
  <fo:block id="{@id}" font-size="13pt" font-weight="bold" text-align="center" margin-bottom="12pt" keep-with-next="always">
1117
1138
  <xsl:choose>
1118
1139
  <xsl:when test="@obligation = 'informative'">
1140
+ <xsl:variable name="title-appendix">
1141
+ <xsl:call-template name="getTitle">
1142
+ <xsl:with-param name="name" select="'title-appendix'"/>
1143
+ </xsl:call-template>
1144
+ </xsl:variable>
1119
1145
  <xsl:value-of select="$title-appendix"/>
1120
1146
  <xsl:number format="1" level="any" count="iho:annex[@obligation = 'informative']"/>
1121
1147
  </xsl:when>
1122
1148
  <xsl:otherwise>
1149
+ <xsl:variable name="title-annex">
1150
+ <xsl:call-template name="getTitle">
1151
+ <xsl:with-param name="name" select="'title-annex'"/>
1152
+ </xsl:call-template>
1153
+ </xsl:variable>
1123
1154
  <xsl:value-of select="$title-annex"/>
1124
1155
  <xsl:number format="A" level="any" count="iho:annex[not(@obligation = 'informative')]"/>
1125
1156
  </xsl:otherwise>
@@ -1180,13 +1211,13 @@
1180
1211
  <xsl:number level="any" count="iho:bibitem/iho:note"/>
1181
1212
  </xsl:variable>
1182
1213
  <fo:inline font-size="8pt" keep-with-previous.within-line="always" baseline-shift="30%"> <!--85% vertical-align="super"-->
1183
- <fo:basic-link internal-destination="footnote_{../@id}" fox:alt-text="footnote {$number}">
1214
+ <fo:basic-link internal-destination="{generate-id()}" fox:alt-text="footnote {$number}">
1184
1215
  <xsl:value-of select="$number"/><xsl:text>)</xsl:text>
1185
1216
  </fo:basic-link>
1186
1217
  </fo:inline>
1187
1218
  <fo:footnote-body>
1188
1219
  <fo:block font-size="10pt" margin-bottom="4pt" start-indent="0pt">
1189
- <fo:inline id="footnote_{../@id}" keep-with-next.within-line="always" alignment-baseline="hanging" padding-right="3mm"><!-- font-size="60%" -->
1220
+ <fo:inline id="{generate-id()}" keep-with-next.within-line="always" alignment-baseline="hanging" padding-right="3mm"><!-- font-size="60%" -->
1190
1221
  <xsl:value-of select="$number"/><xsl:text>)</xsl:text>
1191
1222
  </fo:inline>
1192
1223
  <xsl:apply-templates/>
@@ -1199,7 +1230,12 @@
1199
1230
  <fo:block font-size="11pt" margin-top="8pt" margin-bottom="12pt">
1200
1231
  <xsl:variable name="claims_id" select="ancestor::iho:clause[1]/@id"/>
1201
1232
  <fo:block margin-bottom="12pt" font-weight="bold">
1202
- <fo:inline padding-right="5mm">
1233
+ <fo:inline padding-right="5mm">
1234
+ <xsl:variable name="title-example">
1235
+ <xsl:call-template name="getTitle">
1236
+ <xsl:with-param name="name" select="'title-example'"/>
1237
+ </xsl:call-template>
1238
+ </xsl:variable>
1203
1239
  <xsl:value-of select="$title-example"/>
1204
1240
  <xsl:choose>
1205
1241
  <xsl:when test="iho:name">
@@ -1245,7 +1281,7 @@
1245
1281
  </xsl:if>
1246
1282
  <xsl:choose>
1247
1283
  <xsl:when test="@citeas and normalize-space(text()) = ''">
1248
- <xsl:value-of select="@citeas" disable-output-escaping="yes"/>
1284
+ <xsl:value-of select="@citeas"/> <!-- disable-output-escaping="yes" -->
1249
1285
  </xsl:when>
1250
1286
  <xsl:when test="@bibitemid and normalize-space(text()) = ''">
1251
1287
  <xsl:value-of select="//iho:bibitem[@id = current()/@bibitemid]/iho:docidentifier"/>
@@ -1268,7 +1304,7 @@
1268
1304
 
1269
1305
  <xsl:template match="iho:term">
1270
1306
  <xsl:param name="sectionNum"/>
1271
- <fo:block margin-bottom="10pt">
1307
+ <fo:block id="{@id}" margin-bottom="10pt">
1272
1308
  <xsl:apply-templates>
1273
1309
  <xsl:with-param name="sectionNum" select="$sectionNum"/>
1274
1310
  </xsl:apply-templates>
@@ -1279,7 +1315,7 @@
1279
1315
  <xsl:param name="sectionNum"/>
1280
1316
  <fo:block line-height="1.1">
1281
1317
  <fo:block font-weight="bold" keep-with-next="always">
1282
- <fo:inline id="{../@id}">
1318
+ <fo:inline>
1283
1319
  <xsl:variable name="section">
1284
1320
  <xsl:call-template name="getSection">
1285
1321
  <xsl:with-param name="sectionNum" select="$sectionNum"/>
@@ -1302,7 +1338,12 @@
1302
1338
  </xsl:template>
1303
1339
 
1304
1340
  <xsl:template match="iho:deprecates">
1305
- <fo:block>DEPRECATED: <xsl:apply-templates/></fo:block>
1341
+ <xsl:variable name="title-deprecated">
1342
+ <xsl:call-template name="getTitle">
1343
+ <xsl:with-param name="name" select="'title-deprecated'"/>
1344
+ </xsl:call-template>
1345
+ </xsl:variable>
1346
+ <fo:block><xsl:value-of select="$title-deprecated"/>: <xsl:apply-templates/></fo:block>
1306
1347
  </xsl:template>
1307
1348
 
1308
1349
  <xsl:template match="iho:definition[preceding-sibling::iho:domain]">
@@ -1322,7 +1363,12 @@
1322
1363
  <xsl:template match="iho:termexample">
1323
1364
  <fo:block font-size="10pt" margin-top="8pt" margin-bottom="8pt" text-align="justify">
1324
1365
  <fo:inline padding-right="5mm">
1325
- <xsl:text>EXAMPLE </xsl:text>
1366
+ <xsl:variable name="title-example">
1367
+ <xsl:call-template name="getTitle">
1368
+ <xsl:with-param name="name" select="'title-example'"/>
1369
+ </xsl:call-template>
1370
+ </xsl:variable>
1371
+ <xsl:value-of select="$title-example"/>
1326
1372
  <xsl:if test="count(ancestor::iho:term[1]//iho:termexample) &gt; 1">
1327
1373
  <xsl:number/>
1328
1374
  </xsl:if>
@@ -1342,10 +1388,14 @@
1342
1388
  </xsl:template>
1343
1389
 
1344
1390
  <xsl:template match="iho:termnote">
1345
- <fo:block font-size="10pt" margin-top="8pt" margin-bottom="8pt" text-align="justify">
1346
- <xsl:text>Note </xsl:text>
1347
- <xsl:number/>
1348
- <xsl:text> to entry: </xsl:text>
1391
+ <fo:block font-size="10pt" margin-top="8pt" margin-bottom="8pt" text-align="justify">
1392
+ <xsl:variable name="num"><xsl:number/></xsl:variable>
1393
+ <xsl:variable name="title-note-to-entry">
1394
+ <xsl:call-template name="getTitle">
1395
+ <xsl:with-param name="name" select="'title-note-to-entry'"/>
1396
+ </xsl:call-template>
1397
+ </xsl:variable>
1398
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($title-note-to-entry),'#',$num)"/>
1349
1399
  <xsl:apply-templates/>
1350
1400
  </fo:block>
1351
1401
  </xsl:template>
@@ -1358,15 +1408,32 @@
1358
1408
  </xsl:if> -->
1359
1409
  </xsl:template>
1360
1410
 
1361
- <xsl:template match="iho:modification">
1362
- <xsl:text>, modified — </xsl:text>
1363
- <xsl:apply-templates/>
1364
- </xsl:template>
1411
+
1365
1412
  <xsl:template match="iho:modification/iho:p">
1366
1413
  <fo:inline><xsl:apply-templates/></fo:inline>
1367
1414
  </xsl:template>
1368
1415
 
1369
1416
  <xsl:template match="iho:locality">
1417
+ <xsl:variable name="title-clause">
1418
+ <xsl:call-template name="getTitle">
1419
+ <xsl:with-param name="name" select="'title-clause'"/>
1420
+ </xsl:call-template>
1421
+ </xsl:variable>
1422
+ <xsl:variable name="title-annex">
1423
+ <xsl:call-template name="getTitle">
1424
+ <xsl:with-param name="name" select="'title-annex'"/>
1425
+ </xsl:call-template>
1426
+ </xsl:variable>
1427
+ <xsl:variable name="title-appendix">
1428
+ <xsl:call-template name="getTitle">
1429
+ <xsl:with-param name="name" select="'title-appendix'"/>
1430
+ </xsl:call-template>
1431
+ </xsl:variable>
1432
+ <xsl:variable name="title-table">
1433
+ <xsl:call-template name="getTitle">
1434
+ <xsl:with-param name="name" select="'title-table'"/>
1435
+ </xsl:call-template>
1436
+ </xsl:variable>
1370
1437
  <xsl:choose>
1371
1438
  <xsl:when test="ancestor::iho:termsource"/>
1372
1439
  <xsl:when test="@type ='clause' and ancestor::iho:eref"/>
@@ -1424,38 +1491,6 @@
1424
1491
  </fo:static-content>
1425
1492
  </xsl:template>
1426
1493
 
1427
- <xsl:template name="getId">
1428
- <xsl:choose>
1429
- <xsl:when test="../@id">
1430
- <xsl:value-of select="../@id"/>
1431
- </xsl:when>
1432
- <xsl:otherwise>
1433
- <xsl:value-of select="text()"/>
1434
- </xsl:otherwise>
1435
- </xsl:choose>
1436
- </xsl:template>
1437
-
1438
- <xsl:template name="getLevel">
1439
- <xsl:variable name="level_total" select="count(ancestor::*)"/>
1440
- <xsl:variable name="level">
1441
- <xsl:choose>
1442
- <xsl:when test="ancestor::iho:preface">
1443
- <xsl:value-of select="$level_total - 2"/>
1444
- </xsl:when>
1445
- <xsl:when test="ancestor::iho:sections">
1446
- <xsl:value-of select="$level_total - 2"/>
1447
- </xsl:when>
1448
- <xsl:when test="ancestor::iho:bibliography">
1449
- <xsl:value-of select="$level_total - 2"/>
1450
- </xsl:when>
1451
- <xsl:when test="local-name(ancestor::*[1]) = 'annex'">1</xsl:when>
1452
- <xsl:otherwise>
1453
- <xsl:value-of select="$level_total - 1"/>
1454
- </xsl:otherwise>
1455
- </xsl:choose>
1456
- </xsl:variable>
1457
- <xsl:value-of select="$level"/>
1458
- </xsl:template>
1459
1494
 
1460
1495
  <xsl:template name="getSection">
1461
1496
  <xsl:param name="sectionNum"/>
@@ -1475,7 +1510,7 @@
1475
1510
  </xsl:when>
1476
1511
  <xsl:when test="$level &gt;= 2">
1477
1512
  <xsl:variable name="num">
1478
- <xsl:number format=".1" level="multiple" count="iho:clause/iho:clause | iho:clause/iho:terms | iho:terms/iho:term | iho:clause/iho:term | iho:terms/iho:clause | iho:terms/iho:definitions | iho:definitions/iho:clause | iho:clause/iho:definitions | iho:clause/iho:references"/>
1513
+ <xsl:call-template name="getSubSection"/>
1479
1514
  </xsl:variable>
1480
1515
  <xsl:value-of select="concat($sectionNum, $num)"/><xsl:text>.</xsl:text>
1481
1516
  </xsl:when>
@@ -1501,9 +1536,19 @@
1501
1536
  <xsl:when test="$level = 1">
1502
1537
  <xsl:choose>
1503
1538
  <xsl:when test="ancestor::iho:annex/@obligation = 'informative'">
1539
+ <xsl:variable name="title-appendix">
1540
+ <xsl:call-template name="getTitle">
1541
+ <xsl:with-param name="name" select="'title-appendix'"/>
1542
+ </xsl:call-template>
1543
+ </xsl:variable>
1504
1544
  <xsl:value-of select="$title-appendix"/>
1505
1545
  </xsl:when>
1506
1546
  <xsl:otherwise>
1547
+ <xsl:variable name="title-annex">
1548
+ <xsl:call-template name="getTitle">
1549
+ <xsl:with-param name="name" select="'title-annex'"/>
1550
+ </xsl:call-template>
1551
+ </xsl:variable>
1507
1552
  <xsl:value-of select="$title-annex"/>
1508
1553
  </xsl:otherwise>
1509
1554
  </xsl:choose>
@@ -1663,44 +1708,185 @@
1663
1708
  <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m/feuHr/VXpOHrpj+F6WpnrTRnVeMLkr4Fu382o6aRLKn1cCYo9OiANwxAe+PDbV4o0qulpKmmrKGDrAcxDo1j+v7Ai1ppbA/wM6aRlR7jxGJdIYB1BbeQkumxo6QqDfbKOiz143yp3HULz2/PdnL4UQFKYERGLSVZgVJmWJkQQIOsVIWRLHKkGnxKlcjCpM0ClGypI4Vgk6JU7lYlRhgk4xUpbEsUrQKXEqF6MKE3SKkbIkjlWCTolTuRhVmKBTjJQlcawSdEqcysWowgSdYqQsiWOVoFPiVC5GFSboFCNlSRyrBJ0Sp3IxqjBBpxgpS+JYJeiUOJWLUYUJOsVIWRLHKkGnxKlcjCpM0ClGypI4Vgk6JU7lYlRhgk4xUpbEsUrQKXEqF6MKE3SKkbIkjlWCTolTuRhVmKBTjJQlcawSdEqcysWowgSdYqQsiWOVoFPiVC5GFSboFCNlSRyrBJ0Sp3IxqjBBpxgpS+JYJeiUOJWLUYUJOsVIWRLHKkGnxKlcjCpM0ClGypI4Vgk6JU7lYlRhgk4xUpbEsUrQKXEqF6MKE3SKkbIkjlWCTolTuRhVmKBTjJQlcawSdEqcysWowgSdYqQsiWOVoFPiVC5GFSboFCNlSRyrBJ0Sp3IxqjBBpxgpS+JYJeiUOJWLUYUJOsVIWRLHKkGnxKlcjCpM0ClGypI4Vgk6JU7lYlRhgk4xUpbEsUrQKXEqF6MKE3SKkbIkjlWCTolTuRhVmKBTjJQlcawSdEqcysWowgSdYqQsiWP1f5V8zYCHJlYcAAAAAElFTkSuQmCC</xsl:text>
1664
1709
  </xsl:variable>
1665
1710
 
1666
- <xsl:variable name="title-table">
1711
+ <xsl:variable name="titles" select="xalan:nodeset($titles_)"/><xsl:variable name="titles_">
1667
1712
 
1668
- <xsl:text>Table </xsl:text>
1713
+ <title-table lang="en">Table </title-table>
1714
+ <title-table lang="fr">Tableau </title-table>
1715
+
1716
+ <title-table lang="zh">Table </title-table>
1669
1717
 
1670
1718
 
1671
- </xsl:variable><xsl:variable name="title-note">
1719
+
1720
+ <title-note lang="en">NOTE </title-note>
1721
+ <title-note lang="fr">NOTE </title-note>
1672
1722
 
1673
- <xsl:text>NOTE </xsl:text>
1723
+ <title-note lang="zh">NOTE </title-note>
1674
1724
 
1675
1725
 
1676
- </xsl:variable><xsl:variable name="title-figure">
1677
1726
 
1678
- <xsl:text>Figure </xsl:text>
1727
+ <title-figure lang="en">Figure </title-figure>
1728
+ <title-figure lang="fr">Figure </title-figure>
1679
1729
 
1730
+ <title-figure lang="zh">Figure </title-figure>
1680
1731
 
1681
- </xsl:variable><xsl:variable name="title-example">
1682
1732
 
1683
- <xsl:text>EXAMPLE </xsl:text>
1684
1733
 
1734
+ <title-example lang="en">EXAMPLE </title-example>
1735
+ <title-example lang="fr">EXEMPLE </title-example>
1685
1736
 
1686
- </xsl:variable><xsl:variable name="title-inequality">Inequality </xsl:variable><xsl:variable name="title-equation">Equation </xsl:variable><xsl:variable name="title-annex">
1737
+ <title-example lang="zh">EXAMPLE </title-example>
1687
1738
 
1688
- <xsl:text>Annex </xsl:text>
1689
1739
 
1690
1740
 
1691
- </xsl:variable><xsl:variable name="title-appendix">
1692
- <xsl:text>Appendix </xsl:text>
1693
- </xsl:variable><xsl:variable name="title-clause">
1741
+ <title-example-xref lang="en">Example </title-example-xref>
1742
+ <title-example-xref lang="fr">Exemple </title-example-xref>
1743
+
1744
+ <title-section lang="en">Section </title-section>
1745
+ <title-section lang="fr">Section </title-section>
1746
+
1747
+ <title-inequality lang="en">Inequality </title-inequality>
1748
+ <title-inequality lang="fr">Inequality </title-inequality>
1749
+
1750
+ <title-equation lang="en">Equation </title-equation>
1751
+ <title-equation lang="fr">Equation </title-equation>
1752
+
1753
+ <title-annex lang="en">Annex </title-annex>
1754
+ <title-annex lang="fr">Annexe </title-annex>
1755
+
1756
+ <title-annex lang="zh">Annex </title-annex>
1757
+
1758
+
1759
+
1760
+ <title-appendix lang="en">Appendix </title-appendix>
1761
+ <title-appendix lang="fr">Appendix </title-appendix>
1762
+
1763
+ <title-clause lang="en">Clause </title-clause>
1764
+ <title-clause lang="fr">Article </title-clause>
1694
1765
 
1695
- <xsl:text>Clause </xsl:text>
1766
+ <title-clause lang="zh">Clause </title-clause>
1696
1767
 
1697
1768
 
1698
- </xsl:variable><xsl:variable name="title-edition">
1699
- <xsl:text>Edition </xsl:text>
1700
- </xsl:variable><xsl:variable name="title-toc">
1701
- Contents
1702
1769
 
1703
- </xsl:variable><xsl:variable name="title-page">Page</xsl:variable><xsl:variable name="title-key">Key</xsl:variable><xsl:variable name="title-where">where</xsl:variable><xsl:variable name="title-descriptors">Descriptors</xsl:variable><xsl:variable name="title-part-en">Part </xsl:variable><xsl:variable name="title-part-fr">Partie </xsl:variable><xsl:variable name="title-note-to-entry">Note # to entry: </xsl:variable><xsl:variable name="title-modified">modified</xsl:variable><xsl:variable name="title-source">SOURCE</xsl:variable><xsl:variable name="title-keywords">Keywords</xsl:variable><xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable><xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable><xsl:variable name="en_chars" select="concat($lower,$upper,',.`1234567890-=~!@#$%^*()_+[]{}\|?/')"/><xsl:variable name="linebreak" select="'&#8232;'"/><xsl:attribute-set name="link-style">
1770
+ <title-edition lang="en">
1771
+
1772
+ <xsl:text>Edition </xsl:text>
1773
+
1774
+
1775
+ </title-edition>
1776
+
1777
+ <title-formula lang="en">Formula </title-formula>
1778
+ <title-formula lang="fr">Formula </title-formula>
1779
+
1780
+ <title-toc lang="en">
1781
+
1782
+ <xsl:text>Contents</xsl:text>
1783
+
1784
+
1785
+
1786
+ </title-toc>
1787
+ <title-toc lang="fr">Sommaire</title-toc>
1788
+
1789
+ <title-toc lang="zh">Contents</title-toc>
1790
+
1791
+
1792
+
1793
+ <title-page lang="en">Page</title-page>
1794
+ <title-page lang="fr">Page</title-page>
1795
+
1796
+ <title-key lang="en">Key</title-key>
1797
+ <title-key lang="fr">Légende</title-key>
1798
+
1799
+ <title-where lang="en">where</title-where>
1800
+ <title-where lang="fr">où</title-where>
1801
+
1802
+ <title-descriptors lang="en">Descriptors</title-descriptors>
1803
+
1804
+ <title-part lang="en">
1805
+
1806
+
1807
+ </title-part>
1808
+ <title-part lang="fr">
1809
+
1810
+
1811
+ </title-part>
1812
+ <title-part lang="zh">第 # 部分:</title-part>
1813
+
1814
+ <title-note-to-entry lang="en">Note # to entry: </title-note-to-entry>
1815
+ <title-note-to-entry lang="fr">Note # à l'article: </title-note-to-entry>
1816
+
1817
+ <title-note-to-entry lang="zh">Note # to entry: </title-note-to-entry>
1818
+
1819
+
1820
+
1821
+ <title-modified lang="en">modified</title-modified>
1822
+ <title-modified lang="fr">modifiée</title-modified>
1823
+
1824
+ <title-modified lang="zh">modified</title-modified>
1825
+
1826
+
1827
+
1828
+ <title-source lang="en">SOURCE</title-source>
1829
+
1830
+ <title-keywords lang="en">Keywords</title-keywords>
1831
+
1832
+ <title-deprecated lang="en">DEPRECATED</title-deprecated>
1833
+ <title-deprecated lang="fr">DEPRECATED</title-deprecated>
1834
+
1835
+ <title-submitting-organizations lang="en">Submitting Organizations</title-submitting-organizations>
1836
+
1837
+ <title-list-tables lang="en">List of Tables</title-list-tables>
1838
+
1839
+ <title-list-figures lang="en">List of Figures</title-list-figures>
1840
+
1841
+ <title-recommendation lang="en">Recommendation </title-recommendation>
1842
+
1843
+ <title-acknowledgements lang="en">Acknowledgements</title-acknowledgements>
1844
+
1845
+ <title-abstract lang="en">Abstract</title-abstract>
1846
+
1847
+ <title-summary lang="en">Summary</title-summary>
1848
+
1849
+ <title-in lang="en">in </title-in>
1850
+
1851
+ <title-box lang="en">Box </title-box>
1852
+
1853
+ <title-partly-supercedes lang="en">Partly Supercedes </title-partly-supercedes>
1854
+ <title-partly-supercedes lang="zh">部分代替 </title-partly-supercedes>
1855
+
1856
+ <title-completion-date lang="en">Completion date for this manuscript</title-completion-date>
1857
+ <title-completion-date lang="zh">本稿完成日期</title-completion-date>
1858
+
1859
+ <title-issuance-date lang="en">Issuance Date: #</title-issuance-date>
1860
+ <title-issuance-date lang="zh"># 发布</title-issuance-date>
1861
+
1862
+ <title-implementation-date lang="en">Implementation Date: #</title-implementation-date>
1863
+ <title-implementation-date lang="zh"># 实施</title-implementation-date>
1864
+
1865
+ <title-obligation-normative lang="en">normative</title-obligation-normative>
1866
+ <title-obligation-normative lang="zh">规范性附录</title-obligation-normative>
1867
+
1868
+ <title-caution lang="en">CAUTION</title-caution>
1869
+ <title-caution lang="zh">注意</title-caution>
1870
+
1871
+ <title-warning lang="en">WARNING</title-warning>
1872
+ <title-warning lang="zh">警告</title-warning>
1873
+
1874
+ <title-amendment lang="en">AMENDMENT</title-amendment>
1875
+ </xsl:variable><xsl:template name="getTitle">
1876
+ <xsl:param name="name"/>
1877
+ <xsl:variable name="lang">
1878
+ <xsl:call-template name="getLang"/>
1879
+ </xsl:variable>
1880
+ <xsl:variable name="title_" select="$titles/*[local-name() = $name][@lang = $lang]"/>
1881
+ <xsl:choose>
1882
+ <xsl:when test="normalize-space($title_) != ''">
1883
+ <xsl:value-of select="$title_"/>
1884
+ </xsl:when>
1885
+ <xsl:otherwise>
1886
+ <xsl:value-of select="$titles/*[local-name() = $name][@lang = 'en']"/>
1887
+ </xsl:otherwise>
1888
+ </xsl:choose>
1889
+ </xsl:template><xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable><xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable><xsl:variable name="en_chars" select="concat($lower,$upper,',.`1234567890-=~!@#$%^*()_+[]{}\|?/')"/><xsl:variable name="linebreak" select="'&#8232;'"/><xsl:attribute-set name="link-style">
1704
1890
 
1705
1891
  <xsl:attribute name="color">blue</xsl:attribute>
1706
1892
  <xsl:attribute name="text-decoration">underline</xsl:attribute>
@@ -1772,7 +1958,11 @@
1772
1958
  <xsl:attribute name="font-weight">normal</xsl:attribute>
1773
1959
  <xsl:attribute name="font-size">11pt</xsl:attribute>
1774
1960
 
1775
-
1961
+ <xsl:variable name="title-table">
1962
+ <xsl:call-template name="getTitle">
1963
+ <xsl:with-param name="name" select="'title-table'"/>
1964
+ </xsl:call-template>
1965
+ </xsl:variable>
1776
1966
  <xsl:value-of select="$title-table"/>
1777
1967
 
1778
1968
  <xsl:call-template name="getTableNumber"/>
@@ -1864,9 +2054,9 @@
1864
2054
 
1865
2055
 
1866
2056
 
1867
- <xsl:attribute name="margin-left">0mm</xsl:attribute>
1868
- <xsl:attribute name="margin-right">0mm</xsl:attribute>
1869
-
2057
+ <xsl:attribute name="margin-left">0mm</xsl:attribute>
2058
+ <xsl:attribute name="margin-right">0mm</xsl:attribute>
2059
+
1870
2060
  <xsl:for-each select="xalan:nodeset($colwidths)//column">
1871
2061
  <xsl:choose>
1872
2062
  <xsl:when test=". = 1 or . = 0">
@@ -1877,7 +2067,16 @@
1877
2067
  </xsl:otherwise>
1878
2068
  </xsl:choose>
1879
2069
  </xsl:for-each>
1880
- <xsl:apply-templates/>
2070
+
2071
+ <xsl:choose>
2072
+ <xsl:when test="not(*[local-name()='tbody']) and *[local-name()='thead']">
2073
+ <xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
2074
+ </xsl:when>
2075
+ <xsl:otherwise>
2076
+ <xsl:apply-templates/>
2077
+ </xsl:otherwise>
2078
+ </xsl:choose>
2079
+
1881
2080
  </fo:table>
1882
2081
 
1883
2082
 
@@ -2026,6 +2225,10 @@
2026
2225
 
2027
2226
  <xsl:apply-templates/>
2028
2227
  </fo:table-header>
2228
+ </xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
2229
+ <fo:table-body>
2230
+ <xsl:apply-templates/>
2231
+ </fo:table-body>
2029
2232
  </xsl:template><xsl:template match="*[local-name()='tfoot']"/><xsl:template match="*[local-name()='tfoot']" mode="process">
2030
2233
  <xsl:apply-templates/>
2031
2234
  </xsl:template><xsl:template name="insertTableFooter">
@@ -2197,6 +2400,11 @@
2197
2400
 
2198
2401
  <xsl:attribute name="font-size">11pt</xsl:attribute>
2199
2402
 
2403
+ <xsl:variable name="title-note">
2404
+ <xsl:call-template name="getTitle">
2405
+ <xsl:with-param name="name" select="'title-note'"/>
2406
+ </xsl:call-template>
2407
+ </xsl:variable>
2200
2408
  <xsl:value-of select="$title-note"/>
2201
2409
 
2202
2410
  <xsl:variable name="id" select="ancestor::*[local-name() = 'table'][1]/@id"/>
@@ -2277,6 +2485,36 @@
2277
2485
  </fn>
2278
2486
  </xsl:for-each>
2279
2487
  </xsl:variable>
2488
+
2489
+ <!-- current hierarchy is 'figure' element -->
2490
+ <xsl:variable name="following_dl_colwidths">
2491
+ <xsl:if test="*[local-name() = 'dl']"><!-- if there is a 'dl', then set the same columns width as for 'dl' -->
2492
+ <xsl:variable name="html-table">
2493
+ <xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
2494
+ <xsl:element name="{$ns}:table">
2495
+ <xsl:for-each select="*[local-name() = 'dl'][1]">
2496
+ <tbody>
2497
+ <xsl:apply-templates mode="dl"/>
2498
+ </tbody>
2499
+ </xsl:for-each>
2500
+ </xsl:element>
2501
+ </xsl:variable>
2502
+
2503
+ <xsl:call-template name="calculate-column-widths">
2504
+ <xsl:with-param name="cols-count" select="2"/>
2505
+ <xsl:with-param name="table" select="$html-table"/>
2506
+ </xsl:call-template>
2507
+
2508
+ </xsl:if>
2509
+ </xsl:variable>
2510
+
2511
+
2512
+ <xsl:variable name="maxlength_dt">
2513
+ <xsl:for-each select="*[local-name() = 'dl'][1]">
2514
+ <xsl:call-template name="getMaxLength_dt"/>
2515
+ </xsl:for-each>
2516
+ </xsl:variable>
2517
+
2280
2518
  <xsl:if test="xalan:nodeset($references)//fn">
2281
2519
  <fo:block>
2282
2520
  <fo:table width="95%" table-layout="fixed">
@@ -2284,8 +2522,19 @@
2284
2522
  <xsl:attribute name="font-size">10pt</xsl:attribute>
2285
2523
 
2286
2524
  </xsl:if>
2287
- <fo:table-column column-width="15%"/>
2288
- <fo:table-column column-width="85%"/>
2525
+ <xsl:choose>
2526
+ <!-- if there 'dl', then set same columns width -->
2527
+ <xsl:when test="xalan:nodeset($following_dl_colwidths)//column">
2528
+ <xsl:call-template name="setColumnWidth_dl">
2529
+ <xsl:with-param name="colwidths" select="$following_dl_colwidths"/>
2530
+ <xsl:with-param name="maxlength_dt" select="$maxlength_dt"/>
2531
+ </xsl:call-template>
2532
+ </xsl:when>
2533
+ <xsl:otherwise>
2534
+ <fo:table-column column-width="15%"/>
2535
+ <fo:table-column column-width="85%"/>
2536
+ </xsl:otherwise>
2537
+ </xsl:choose>
2289
2538
  <fo:table-body>
2290
2539
  <xsl:for-each select="xalan:nodeset($references)//fn">
2291
2540
  <xsl:variable name="reference" select="@reference"/>
@@ -2346,6 +2595,11 @@
2346
2595
 
2347
2596
  <fo:block margin-bottom="12pt" text-align="left">
2348
2597
 
2598
+ <xsl:variable name="title-where">
2599
+ <xsl:call-template name="getTitle">
2600
+ <xsl:with-param name="name" select="'title-where'"/>
2601
+ </xsl:call-template>
2602
+ </xsl:variable>
2349
2603
  <xsl:value-of select="$title-where"/><xsl:text> </xsl:text>
2350
2604
  <xsl:apply-templates select="*[local-name()='dt']/*"/>
2351
2605
  <xsl:text/>
@@ -2359,14 +2613,24 @@
2359
2613
 
2360
2614
 
2361
2615
 
2616
+ <xsl:variable name="title-where">
2617
+ <xsl:call-template name="getTitle">
2618
+ <xsl:with-param name="name" select="'title-where'"/>
2619
+ </xsl:call-template>
2620
+ </xsl:variable>
2362
2621
  <xsl:value-of select="$title-where"/>
2363
2622
  </fo:block>
2364
2623
  </xsl:when>
2365
2624
  <xsl:when test="$parent = 'figure' and (not(../@class) or ../@class !='pseudocode')">
2366
- <fo:block font-weight="bold" text-align="left" margin-bottom="12pt">
2625
+ <fo:block font-weight="bold" text-align="left" margin-bottom="12pt" keep-with-next="always">
2367
2626
 
2368
2627
 
2369
2628
 
2629
+ <xsl:variable name="title-key">
2630
+ <xsl:call-template name="getTitle">
2631
+ <xsl:with-param name="name" select="'title-key'"/>
2632
+ </xsl:call-template>
2633
+ </xsl:variable>
2370
2634
  <xsl:value-of select="$title-key"/>
2371
2635
  </fo:block>
2372
2636
  </xsl:when>
@@ -2385,25 +2649,8 @@
2385
2649
 
2386
2650
 
2387
2651
 
2388
- <xsl:attribute name="margin-left">-3.5mm</xsl:attribute>
2389
-
2390
- <!-- create virtual html table for dl/[dt and dd] -->
2391
- <xsl:variable name="html-table">
2392
- <xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
2393
- <xsl:element name="{$ns}:table">
2394
- <tbody>
2395
- <xsl:apply-templates mode="dl"/>
2396
- </tbody>
2397
- </xsl:element>
2398
- </xsl:variable>
2399
- <!-- html-table<xsl:copy-of select="$html-table"/> -->
2400
- <xsl:variable name="colwidths">
2401
- <xsl:call-template name="calculate-column-widths">
2402
- <xsl:with-param name="cols-count" select="2"/>
2403
- <xsl:with-param name="table" select="$html-table"/>
2404
- </xsl:call-template>
2405
- </xsl:variable>
2406
- <!-- colwidths=<xsl:value-of select="$colwidths"/> -->
2652
+ <xsl:attribute name="margin-left">-3.5mm</xsl:attribute>
2653
+
2407
2654
 
2408
2655
  <fo:table width="95%" table-layout="fixed">
2409
2656
 
@@ -2416,42 +2663,30 @@
2416
2663
 
2417
2664
  </xsl:when>
2418
2665
  </xsl:choose>
2419
- <xsl:choose>
2420
- <xsl:when test="ancestor::*[local-name()='dl']"><!-- second level, i.e. inlined table -->
2421
- <fo:table-column column-width="50%"/>
2422
- <fo:table-column column-width="50%"/>
2423
- </xsl:when>
2424
- <xsl:otherwise>
2425
- <xsl:choose>
2426
- <!-- <xsl:when test="xalan:nodeset($colwidths)/column[1] div xalan:nodeset($colwidths)/column[2] &gt; 1.7">
2427
- <fo:table-column column-width="60%"/>
2428
- <fo:table-column column-width="40%"/>
2429
- </xsl:when> -->
2430
- <xsl:when test="xalan:nodeset($colwidths)/column[1] div xalan:nodeset($colwidths)/column[2] &gt; 1.3">
2431
- <fo:table-column column-width="50%"/>
2432
- <fo:table-column column-width="50%"/>
2433
- </xsl:when>
2434
- <xsl:when test="xalan:nodeset($colwidths)/column[1] div xalan:nodeset($colwidths)/column[2] &gt; 0.5">
2435
- <fo:table-column column-width="40%"/>
2436
- <fo:table-column column-width="60%"/>
2437
- </xsl:when>
2438
- <xsl:otherwise>
2439
- <xsl:for-each select="xalan:nodeset($colwidths)//column">
2440
- <xsl:choose>
2441
- <xsl:when test=". = 1 or . = 0">
2442
- <fo:table-column column-width="proportional-column-width(2)"/>
2443
- </xsl:when>
2444
- <xsl:otherwise>
2445
- <fo:table-column column-width="proportional-column-width({.})"/>
2446
- </xsl:otherwise>
2447
- </xsl:choose>
2448
- </xsl:for-each>
2449
- </xsl:otherwise>
2450
- </xsl:choose>
2451
- <!-- <fo:table-column column-width="15%"/>
2452
- <fo:table-column column-width="85%"/> -->
2453
- </xsl:otherwise>
2454
- </xsl:choose>
2666
+ <!-- create virtual html table for dl/[dt and dd] -->
2667
+ <xsl:variable name="html-table">
2668
+ <xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
2669
+ <xsl:element name="{$ns}:table">
2670
+ <tbody>
2671
+ <xsl:apply-templates mode="dl"/>
2672
+ </tbody>
2673
+ </xsl:element>
2674
+ </xsl:variable>
2675
+ <!-- html-table<xsl:copy-of select="$html-table"/> -->
2676
+ <xsl:variable name="colwidths">
2677
+ <xsl:call-template name="calculate-column-widths">
2678
+ <xsl:with-param name="cols-count" select="2"/>
2679
+ <xsl:with-param name="table" select="$html-table"/>
2680
+ </xsl:call-template>
2681
+ </xsl:variable>
2682
+ <!-- colwidths=<xsl:value-of select="$colwidths"/> -->
2683
+ <xsl:variable name="maxlength_dt">
2684
+ <xsl:call-template name="getMaxLength_dt"/>
2685
+ </xsl:variable>
2686
+ <xsl:call-template name="setColumnWidth_dl">
2687
+ <xsl:with-param name="colwidths" select="$colwidths"/>
2688
+ <xsl:with-param name="maxlength_dt" select="$maxlength_dt"/>
2689
+ </xsl:call-template>
2455
2690
  <fo:table-body>
2456
2691
  <xsl:apply-templates>
2457
2692
  <xsl:with-param name="key_iso" select="normalize-space($key_iso)"/>
@@ -2461,6 +2696,60 @@
2461
2696
  </fo:block>
2462
2697
  </fo:block>
2463
2698
  </xsl:if>
2699
+ </xsl:template><xsl:template name="setColumnWidth_dl">
2700
+ <xsl:param name="colwidths"/>
2701
+ <xsl:param name="maxlength_dt"/>
2702
+ <xsl:choose>
2703
+ <xsl:when test="ancestor::*[local-name()='dl']"><!-- second level, i.e. inlined table -->
2704
+ <fo:table-column column-width="50%"/>
2705
+ <fo:table-column column-width="50%"/>
2706
+ </xsl:when>
2707
+ <xsl:otherwise>
2708
+ <xsl:choose>
2709
+ <xsl:when test="normalize-space($maxlength_dt) != '' and number($maxlength_dt) &lt;= 2"> <!-- if dt contains short text like t90, a, etc -->
2710
+ <fo:table-column column-width="5%"/>
2711
+ <fo:table-column column-width="95%"/>
2712
+ </xsl:when>
2713
+ <xsl:when test="normalize-space($maxlength_dt) != '' and number($maxlength_dt) &lt;= 5"> <!-- if dt contains short text like t90, a, etc -->
2714
+ <fo:table-column column-width="10%"/>
2715
+ <fo:table-column column-width="90%"/>
2716
+ </xsl:when>
2717
+ <!-- <xsl:when test="xalan:nodeset($colwidths)/column[1] div xalan:nodeset($colwidths)/column[2] &gt; 1.7">
2718
+ <fo:table-column column-width="60%"/>
2719
+ <fo:table-column column-width="40%"/>
2720
+ </xsl:when> -->
2721
+ <xsl:when test="xalan:nodeset($colwidths)/column[1] div xalan:nodeset($colwidths)/column[2] &gt; 1.3">
2722
+ <fo:table-column column-width="50%"/>
2723
+ <fo:table-column column-width="50%"/>
2724
+ </xsl:when>
2725
+ <xsl:when test="xalan:nodeset($colwidths)/column[1] div xalan:nodeset($colwidths)/column[2] &gt; 0.5">
2726
+ <fo:table-column column-width="40%"/>
2727
+ <fo:table-column column-width="60%"/>
2728
+ </xsl:when>
2729
+ <xsl:otherwise>
2730
+ <xsl:for-each select="xalan:nodeset($colwidths)//column">
2731
+ <xsl:choose>
2732
+ <xsl:when test=". = 1 or . = 0">
2733
+ <fo:table-column column-width="proportional-column-width(2)"/>
2734
+ </xsl:when>
2735
+ <xsl:otherwise>
2736
+ <fo:table-column column-width="proportional-column-width({.})"/>
2737
+ </xsl:otherwise>
2738
+ </xsl:choose>
2739
+ </xsl:for-each>
2740
+ </xsl:otherwise>
2741
+ </xsl:choose>
2742
+ <!-- <fo:table-column column-width="15%"/>
2743
+ <fo:table-column column-width="85%"/> -->
2744
+ </xsl:otherwise>
2745
+ </xsl:choose>
2746
+ </xsl:template><xsl:template name="getMaxLength_dt">
2747
+ <xsl:for-each select="*[local-name()='dt']">
2748
+ <xsl:sort select="string-length(normalize-space(.))" data-type="number" order="descending"/>
2749
+ <xsl:if test="position() = 1">
2750
+ <xsl:value-of select="string-length(normalize-space(.))"/>
2751
+ </xsl:if>
2752
+ </xsl:for-each>
2464
2753
  </xsl:template><xsl:template match="*[local-name()='dl']/*[local-name()='note']">
2465
2754
  <xsl:param name="key_iso"/>
2466
2755
 
@@ -2477,6 +2766,11 @@
2477
2766
  <xsl:if test="normalize-space($key_iso) = 'true'">
2478
2767
  <xsl:attribute name="margin-top">0</xsl:attribute>
2479
2768
  </xsl:if>
2769
+ <xsl:variable name="title-note">
2770
+ <xsl:call-template name="getTitle">
2771
+ <xsl:with-param name="name" select="'title-note'"/>
2772
+ </xsl:call-template>
2773
+ </xsl:variable>
2480
2774
  <xsl:value-of select="$title-note"/>
2481
2775
  </fo:block>
2482
2776
  </fo:table-cell>
@@ -2521,7 +2815,11 @@
2521
2815
 
2522
2816
 
2523
2817
  <xsl:apply-templates/>
2524
-
2818
+ <!-- <xsl:if test="$namespace = 'gb'">
2819
+ <xsl:if test="ancestor::*[local-name()='formula']">
2820
+ <xsl:text>—</xsl:text>
2821
+ </xsl:if>
2822
+ </xsl:if> -->
2525
2823
  </fo:block>
2526
2824
  </fo:table-cell>
2527
2825
  <fo:table-cell>
@@ -2577,7 +2875,8 @@
2577
2875
  </xsl:template><xsl:template name="recursiveSmallCaps">
2578
2876
  <xsl:param name="text"/>
2579
2877
  <xsl:variable name="char" select="substring($text,1,1)"/>
2580
- <xsl:variable name="upperCase" select="translate($char, $lower, $upper)"/>
2878
+ <!-- <xsl:variable name="upperCase" select="translate($char, $lower, $upper)"/> -->
2879
+ <xsl:variable name="upperCase" select="java:toUpperCase(java:java.lang.String.new($char))"/>
2581
2880
  <xsl:choose>
2582
2881
  <xsl:when test="$char=$upperCase">
2583
2882
  <fo:inline font-size="{100 div 0.75}%">
@@ -2860,18 +3159,28 @@
2860
3159
  <xsl:choose>
2861
3160
  <xsl:when test="contains($str2, ' ')">
2862
3161
  <xsl:variable name="substr" select="substring-before($str2, ' ')"/>
2863
- <xsl:value-of select="translate(substring($substr, 1, 1), $lower, $upper)"/>
2864
- <xsl:value-of select="substring($substr, 2)"/>
3162
+ <!-- <xsl:value-of select="translate(substring($substr, 1, 1), $lower, $upper)"/>
3163
+ <xsl:value-of select="substring($substr, 2)"/> -->
3164
+ <xsl:call-template name="capitalize">
3165
+ <xsl:with-param name="str" select="$substr"/>
3166
+ </xsl:call-template>
2865
3167
  <xsl:text> </xsl:text>
2866
3168
  <xsl:call-template name="capitalizeWords">
2867
3169
  <xsl:with-param name="str" select="substring-after($str2, ' ')"/>
2868
3170
  </xsl:call-template>
2869
3171
  </xsl:when>
2870
3172
  <xsl:otherwise>
2871
- <xsl:value-of select="translate(substring($str2, 1, 1), $lower, $upper)"/>
2872
- <xsl:value-of select="substring($str2, 2)"/>
3173
+ <!-- <xsl:value-of select="translate(substring($str2, 1, 1), $lower, $upper)"/>
3174
+ <xsl:value-of select="substring($str2, 2)"/> -->
3175
+ <xsl:call-template name="capitalize">
3176
+ <xsl:with-param name="str" select="$str2"/>
3177
+ </xsl:call-template>
2873
3178
  </xsl:otherwise>
2874
3179
  </xsl:choose>
3180
+ </xsl:template><xsl:template name="capitalize">
3181
+ <xsl:param name="str"/>
3182
+ <xsl:value-of select="java:toUpperCase(java:java.lang.String.new(substring($str, 1, 1)))"/>
3183
+ <xsl:value-of select="substring($str, 2)"/>
2875
3184
  </xsl:template><xsl:template match="mathml:math">
2876
3185
  <fo:inline font-family="STIX2Math">
2877
3186
  <fo:instream-foreign-object fox:alt-text="Math">
@@ -2929,6 +3238,11 @@
2929
3238
  <fo:inline id="{@id}"/>
2930
3239
  </xsl:template><xsl:template match="*[local-name()='appendix']">
2931
3240
  <fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
3241
+ <xsl:variable name="title-appendix">
3242
+ <xsl:call-template name="getTitle">
3243
+ <xsl:with-param name="name" select="'title-appendix'"/>
3244
+ </xsl:call-template>
3245
+ </xsl:variable>
2932
3246
  <fo:inline padding-right="5mm"><xsl:value-of select="$title-appendix"/> <xsl:number/></fo:inline>
2933
3247
  <xsl:apply-templates select="*[local-name()='title']" mode="process"/>
2934
3248
  </fo:block>
@@ -2938,6 +3252,11 @@
2938
3252
  </xsl:template><xsl:template match="*[local-name()='appendix']//*[local-name()='example']">
2939
3253
  <fo:block xsl:use-attribute-sets="appendix-example-style">
2940
3254
  <xsl:variable name="claims_id" select="ancestor::*[local-name()='clause'][1]/@id"/>
3255
+ <xsl:variable name="title-example">
3256
+ <xsl:call-template name="getTitle">
3257
+ <xsl:with-param name="name" select="'title-example'"/>
3258
+ </xsl:call-template>
3259
+ </xsl:variable>
2941
3260
  <xsl:value-of select="$title-example"/>
2942
3261
  <xsl:if test="count(ancestor::*[local-name()='clause'][1]//*[local-name()='example']) &gt; 1">
2943
3262
  <xsl:number count="*[local-name()='example'][ancestor::*[local-name()='clause'][@id = $claims_id]]" level="any"/><xsl:text> </xsl:text>
@@ -2968,6 +3287,17 @@
2968
3287
  <xsl:if test="not(preceding-sibling::*[local-name() = 'p'])"><xsl:value-of select="$callout"/></xsl:if>
2969
3288
  <xsl:apply-templates/>
2970
3289
  </fo:inline>
3290
+ </xsl:template><xsl:template match="*[local-name() = 'modification']">
3291
+ <xsl:variable name="title-modified">
3292
+ <xsl:call-template name="getTitle">
3293
+ <xsl:with-param name="name" select="'title-modified'"/>
3294
+ </xsl:call-template>
3295
+ </xsl:variable>
3296
+ <xsl:choose>
3297
+ <xsl:when test="$lang = 'zh'"><xsl:text>、</xsl:text><xsl:value-of select="$title-modified"/><xsl:text>—</xsl:text></xsl:when>
3298
+ <xsl:otherwise><xsl:text>, </xsl:text><xsl:value-of select="$title-modified"/><xsl:text> — </xsl:text></xsl:otherwise>
3299
+ </xsl:choose>
3300
+ <xsl:apply-templates/>
2971
3301
  </xsl:template><xsl:template name="convertDate">
2972
3302
  <xsl:param name="date"/>
2973
3303
  <xsl:param name="format" select="'short'"/>
@@ -3032,4 +3362,107 @@
3032
3362
  <xsl:when test="position() != last()"><xsl:value-of select="$charDelim"/></xsl:when>
3033
3363
  <xsl:otherwise><xsl:value-of select="$charAtEnd"/></xsl:otherwise>
3034
3364
  </xsl:choose>
3365
+ </xsl:template><xsl:template name="addPDFUAmeta">
3366
+ <fo:declarations>
3367
+ <pdf:catalog xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf">
3368
+ <pdf:dictionary type="normal" key="ViewerPreferences">
3369
+ <pdf:boolean key="DisplayDocTitle">true</pdf:boolean>
3370
+ </pdf:dictionary>
3371
+ </pdf:catalog>
3372
+ <x:xmpmeta xmlns:x="adobe:ns:meta/">
3373
+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
3374
+ <rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about="">
3375
+ <!-- Dublin Core properties go here -->
3376
+ <dc:title>
3377
+ <xsl:variable name="title">
3378
+
3379
+
3380
+ <xsl:value-of select="/*/*[local-name() = 'bibdata']/*[local-name() = 'title'][@language = 'en']"/>
3381
+
3382
+
3383
+
3384
+ </xsl:variable>
3385
+ <xsl:choose>
3386
+ <xsl:when test="normalize-space($title) != ''">
3387
+ <xsl:value-of select="$title"/>
3388
+ </xsl:when>
3389
+ <xsl:otherwise>
3390
+ <xsl:text> </xsl:text>
3391
+ </xsl:otherwise>
3392
+ </xsl:choose>
3393
+ </dc:title>
3394
+ <dc:creator>
3395
+
3396
+ <xsl:value-of select="/*/*[local-name() = 'bibdata']/*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']/*[local-name() = 'organization']/*[local-name() = 'name']"/>
3397
+
3398
+
3399
+ </dc:creator>
3400
+ <dc:description>
3401
+ <xsl:variable name="abstract">
3402
+
3403
+ <xsl:copy-of select="/*/*[local-name() = 'bibliography']/*[local-name() = 'references']/*[local-name() = 'bibitem']/*[local-name() = 'abstract']//text()"/>
3404
+
3405
+
3406
+
3407
+
3408
+ </xsl:variable>
3409
+ <xsl:value-of select="normalize-space($abstract)"/>
3410
+ </dc:description>
3411
+ <pdf:Keywords>
3412
+ <xsl:call-template name="insertKeywords"/>
3413
+ </pdf:Keywords>
3414
+ </rdf:Description>
3415
+ <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
3416
+ <!-- XMP properties go here -->
3417
+ <xmp:CreatorTool/>
3418
+ </rdf:Description>
3419
+ </rdf:RDF>
3420
+ </x:xmpmeta>
3421
+ </fo:declarations>
3422
+ </xsl:template><xsl:template name="getId">
3423
+ <xsl:choose>
3424
+ <xsl:when test="../@id">
3425
+ <xsl:value-of select="../@id"/>
3426
+ </xsl:when>
3427
+ <xsl:otherwise>
3428
+ <!-- <xsl:value-of select="concat(local-name(..), '_', text())"/> -->
3429
+ <xsl:value-of select="concat(generate-id(..), '_', text())"/>
3430
+ </xsl:otherwise>
3431
+ </xsl:choose>
3432
+ </xsl:template><xsl:template name="getLevel">
3433
+ <xsl:variable name="level_total" select="count(ancestor::*)"/>
3434
+ <xsl:variable name="level">
3435
+ <xsl:choose>
3436
+ <xsl:when test="ancestor::*[local-name() = 'preface']">
3437
+ <xsl:value-of select="$level_total - 2"/>
3438
+ </xsl:when>
3439
+ <xsl:when test="ancestor::*[local-name() = 'sections']">
3440
+ <xsl:value-of select="$level_total - 2"/>
3441
+ </xsl:when>
3442
+ <xsl:when test="ancestor::*[local-name() = 'bibliography']">
3443
+ <xsl:value-of select="$level_total - 2"/>
3444
+ </xsl:when>
3445
+ <xsl:when test="local-name(ancestor::*[1]) = 'annex'">1</xsl:when>
3446
+ <xsl:otherwise>
3447
+ <xsl:value-of select="$level_total - 1"/>
3448
+ </xsl:otherwise>
3449
+ </xsl:choose>
3450
+ </xsl:variable>
3451
+ <xsl:value-of select="$level"/>
3452
+ </xsl:template><xsl:template name="getSubSection">
3453
+ <xsl:number format=".1" level="multiple" count="*[local-name() = 'clause']/*[local-name() = 'clause'] | *[local-name() = 'clause']/*[local-name() = 'terms'] | *[local-name() = 'terms']/*[local-name() = 'term'] | *[local-name() = 'clause']/*[local-name() = 'term'] | *[local-name() = 'terms']/*[local-name() = 'clause'] | *[local-name() = 'terms']/*[local-name() = 'definitions'] | *[local-name() = 'definitions']/*[local-name() = 'clause'] | *[local-name() = 'clause']/*[local-name() = 'definitions'] | *[local-name() = 'definitions']/*[local-name() = 'definitions'] | *[local-name() = 'clause']/*[local-name() = 'references']"/>
3454
+ </xsl:template><xsl:template name="split">
3455
+ <xsl:param name="pText" select="."/>
3456
+ <xsl:param name="sep" select="','"/>
3457
+ <xsl:if test="string-length($pText) &gt;0">
3458
+ <item>
3459
+ <xsl:value-of select="normalize-space(substring-before(concat($pText, ','), $sep))"/>
3460
+ </item>
3461
+ <xsl:call-template name="split">
3462
+ <xsl:with-param name="pText" select="substring-after($pText, $sep)"/>
3463
+ <xsl:with-param name="sep" select="$sep"/>
3464
+ </xsl:call-template>
3465
+ </xsl:if>
3466
+ </xsl:template><xsl:template name="getDocumentId">
3467
+ <xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
3035
3468
  </xsl:template></xsl:stylesheet>