metanorma-ogc 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab228556b30aeb735ec73bc87b13932b417cbc7f5004e7ca727ab3032c9280e3
4
- data.tar.gz: aed275dc62dd3ba7a365c4b03f291e4dee112494cbb23cefc190fefff9ebabc7
3
+ metadata.gz: 9ef5196a6ffd5ac8b0ad6c6d6aaf0b0e8611c960baefa9e04993ff839ea7d614
4
+ data.tar.gz: dadb5b1fcdad8fa63f855afc36baeeb5260a44ed6e198acb32519bd2c221758f
5
5
  SHA512:
6
- metadata.gz: 412b2eb2a69c2e2e3caba3aecbc5f2592d01c4b6c4f6e88dff383563883a49b3ac07394cf8820699b3f42bb447d3f6805417495c9748a4de7b5032b76e2d20ce
7
- data.tar.gz: 518d1af9d654d76fb93e0ee69981d9f7567d3c845818cbcf5d293def1b509a89ee973826e220706803921ab7d12d5aeb331d50d5e31a2eacdf69398901f78e93
6
+ metadata.gz: 5130f68a47b344522cbf981625250499ea20e504df4642ff31ea191eb118f4c547eec52def376a9fd2931361ee8f721ee43ab190bffc4146685500b526718066
7
+ data.tar.gz: 94c2b23fa7509ba59f3d3130b9ab7857990114a8aa56cbb3ad8bf43f092af1c3afe3755e05ce236da440b4073bdafb4ac67eeb021f6e1f9f034107bd6268cf9f
@@ -787,6 +787,7 @@
787
787
  <value>adapted</value>
788
788
  <value>vote-started</value>
789
789
  <value>vote-ended</value>
790
+ <value>announced</value>
790
791
  </choice>
791
792
  </define>
792
793
  <define name="bdate">
@@ -1191,9 +1191,7 @@
1191
1191
  </define>
1192
1192
  <define name="IsoWorkgroup">
1193
1193
  <optional>
1194
- <attribute name="number">
1195
- <data type="int"/>
1196
- </attribute>
1194
+ <attribute name="number"/>
1197
1195
  </optional>
1198
1196
  <optional>
1199
1197
  <attribute name="type"/>
@@ -1595,6 +1595,9 @@
1595
1595
  <title-continued lang="en">(continued)</title-continued>
1596
1596
  <title-continued lang="fr">(continué)</title-continued>
1597
1597
 
1598
+ </xsl:variable><xsl:variable name="bibdata">
1599
+ <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']"/>
1600
+ <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'localized-strings']"/>
1598
1601
  </xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
1599
1602
  <xsl:param name="name"/>
1600
1603
  <xsl:param name="lang"/>
@@ -1624,6 +1627,7 @@
1624
1627
  </xsl:attribute-set><xsl:attribute-set name="link-style">
1625
1628
 
1626
1629
 
1630
+
1627
1631
  <!-- <xsl:attribute name="color">rgb(33, 55, 92)</xsl:attribute> -->
1628
1632
  <xsl:attribute name="text-decoration">underline</xsl:attribute>
1629
1633
 
@@ -1783,6 +1787,7 @@
1783
1787
 
1784
1788
  </xsl:attribute-set><xsl:attribute-set name="table-name-style">
1785
1789
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
1790
+
1786
1791
 
1787
1792
 
1788
1793
 
@@ -1822,6 +1827,7 @@
1822
1827
 
1823
1828
 
1824
1829
 
1830
+
1825
1831
  </xsl:attribute-set><xsl:attribute-set name="eref-style">
1826
1832
 
1827
1833
 
@@ -1832,6 +1838,7 @@
1832
1838
 
1833
1839
 
1834
1840
 
1841
+
1835
1842
 
1836
1843
 
1837
1844
 
@@ -1856,6 +1863,7 @@
1856
1863
 
1857
1864
 
1858
1865
 
1866
+
1859
1867
  <xsl:attribute name="font-weight">bold</xsl:attribute>
1860
1868
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
1861
1869
 
@@ -1884,12 +1892,14 @@
1884
1892
 
1885
1893
 
1886
1894
 
1895
+
1887
1896
 
1888
1897
  <xsl:attribute name="margin-top">12pt</xsl:attribute>
1889
1898
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1890
1899
 
1891
1900
  </xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
1892
1901
 
1902
+
1893
1903
  <xsl:attribute name="font-weight">bold</xsl:attribute>
1894
1904
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
1895
1905
 
@@ -1915,6 +1925,7 @@
1915
1925
 
1916
1926
  </xsl:attribute-set><xsl:attribute-set name="termsource-style">
1917
1927
 
1928
+
1918
1929
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1919
1930
  <xsl:attribute name="keep-with-previous">always</xsl:attribute>
1920
1931
 
@@ -1931,6 +1942,7 @@
1931
1942
 
1932
1943
  </xsl:attribute-set><xsl:attribute-set name="figure-name-style">
1933
1944
 
1945
+
1934
1946
 
1935
1947
 
1936
1948
  <xsl:attribute name="margin-top">12pt</xsl:attribute>
@@ -1957,6 +1969,7 @@
1957
1969
  </xsl:attribute-set><xsl:attribute-set name="image-style">
1958
1970
  <xsl:attribute name="text-align">center</xsl:attribute>
1959
1971
 
1972
+
1960
1973
  <xsl:attribute name="space-before">12pt</xsl:attribute>
1961
1974
  <xsl:attribute name="space-after">6pt</xsl:attribute>
1962
1975
 
@@ -1968,6 +1981,7 @@
1968
1981
 
1969
1982
  </xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
1970
1983
 
1984
+
1971
1985
  <xsl:attribute name="width">100%</xsl:attribute>
1972
1986
  <xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
1973
1987
  <xsl:attribute name="scaling">uniform</xsl:attribute>
@@ -2003,6 +2017,7 @@
2003
2017
  <xsl:attribute name="space-after">6pt</xsl:attribute>
2004
2018
 
2005
2019
 
2020
+
2006
2021
  </xsl:attribute-set><xsl:variable name="color-added-text">
2007
2022
  <xsl:text>rgb(0, 255, 0)</xsl:text>
2008
2023
  </xsl:variable><xsl:attribute-set name="add-style">
@@ -2143,6 +2158,7 @@
2143
2158
  <fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
2144
2159
 
2145
2160
 
2161
+
2146
2162
 
2147
2163
 
2148
2164
 
@@ -2163,6 +2179,8 @@
2163
2179
 
2164
2180
 
2165
2181
 
2182
+
2183
+
2166
2184
  <xsl:variable name="table_width">
2167
2185
  <!-- for centered table always 100% (@width will be set for middle/second cell of outer table) -->
2168
2186
 
@@ -2186,6 +2204,7 @@
2186
2204
 
2187
2205
 
2188
2206
 
2207
+
2189
2208
  <attribute name="margin-left">0mm</attribute>
2190
2209
  <attribute name="margin-right">0mm</attribute>
2191
2210
 
@@ -2327,11 +2346,22 @@
2327
2346
  </xsl:choose>
2328
2347
 
2329
2348
  </xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']"/><xsl:template match="*[local-name()='table']/*[local-name() = 'name']" mode="presentation">
2349
+ <xsl:param name="continued"/>
2330
2350
  <xsl:if test="normalize-space() != ''">
2331
2351
  <fo:block xsl:use-attribute-sets="table-name-style">
2332
2352
 
2333
2353
 
2334
- <xsl:apply-templates/>
2354
+ <xsl:choose>
2355
+ <xsl:when test="$continued = 'true'">
2356
+ <!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
2357
+
2358
+ </xsl:when>
2359
+ <xsl:otherwise>
2360
+ <xsl:apply-templates/>
2361
+ </xsl:otherwise>
2362
+ </xsl:choose>
2363
+
2364
+
2335
2365
  </fo:block>
2336
2366
  </xsl:if>
2337
2367
  </xsl:template><xsl:template name="calculate-columns-numbers">
@@ -2471,18 +2501,18 @@
2471
2501
  <xsl:apply-templates/>
2472
2502
  </fo:table-header>
2473
2503
  </xsl:template><xsl:template name="table-header-title">
2474
- <xsl:param name="cols-count"/>
2504
+ <xsl:param name="cols-count"/>
2475
2505
  <!-- row for title -->
2476
2506
  <fo:table-row>
2477
2507
  <fo:table-cell number-columns-spanned="{$cols-count}" border-left="1.5pt solid white" border-right="1.5pt solid white" border-top="1.5pt solid white" border-bottom="1.5pt solid black">
2478
- <xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']" mode="presentation"/>
2508
+
2509
+ <xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']" mode="presentation">
2510
+ <xsl:with-param name="continued">true</xsl:with-param>
2511
+ </xsl:apply-templates>
2479
2512
  <xsl:for-each select="ancestor::*[local-name()='table'][1]">
2480
2513
  <xsl:call-template name="fn_name_display"/>
2481
- </xsl:for-each>
2482
- <fo:block text-align="right" font-style="italic">
2483
- <xsl:text> </xsl:text>
2484
- <fo:retrieve-table-marker retrieve-class-name="table_continued"/>
2485
- </fo:block>
2514
+ </xsl:for-each>
2515
+
2486
2516
  </fo:table-cell>
2487
2517
  </fo:table-row>
2488
2518
  </xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
@@ -2707,6 +2737,7 @@
2707
2737
 
2708
2738
 
2709
2739
 
2740
+
2710
2741
  </xsl:if>
2711
2742
  <xsl:if test="$parent-name = 'tfoot'">
2712
2743
 
@@ -2749,6 +2780,7 @@
2749
2780
 
2750
2781
 
2751
2782
 
2783
+
2752
2784
 
2753
2785
  <xsl:attribute name="border">solid black 0pt</xsl:attribute>
2754
2786
 
@@ -3442,6 +3474,7 @@
3442
3474
 
3443
3475
 
3444
3476
 
3477
+
3445
3478
  10
3446
3479
 
3447
3480
 
@@ -3826,11 +3859,15 @@
3826
3859
  </xsl:apply-templates>
3827
3860
  </xsl:template><xsl:template name="getLang">
3828
3861
  <xsl:variable name="language_current" select="normalize-space(//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
3862
+ <xsl:variable name="language_current_2" select="normalize-space(xalan:nodeset($bibdata)//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
3829
3863
  <xsl:variable name="language">
3830
3864
  <xsl:choose>
3831
3865
  <xsl:when test="$language_current != ''">
3832
3866
  <xsl:value-of select="$language_current"/>
3833
3867
  </xsl:when>
3868
+ <xsl:when test="$language_current_2 != ''">
3869
+ <xsl:value-of select="$language_current_2"/>
3870
+ </xsl:when>
3834
3871
  <xsl:otherwise>
3835
3872
  <xsl:value-of select="//*[local-name()='bibdata']//*[local-name()='language']"/>
3836
3873
  </xsl:otherwise>
@@ -4047,6 +4084,7 @@
4047
4084
 
4048
4085
 
4049
4086
  <fo:inline xsl:use-attribute-sets="note-name-style">
4087
+
4050
4088
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
4051
4089
  </fo:inline>
4052
4090
  <xsl:apply-templates/>
@@ -4073,6 +4111,7 @@
4073
4111
  </xsl:template><xsl:template match="*[local-name() = 'termnote']">
4074
4112
  <fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
4075
4113
  <fo:inline xsl:use-attribute-sets="termnote-name-style">
4114
+
4076
4115
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
4077
4116
  </fo:inline>
4078
4117
  <xsl:apply-templates/>
@@ -4154,7 +4193,10 @@
4154
4193
  <xsl:for-each select="*[local-name() = 'note']">
4155
4194
  <xsl:call-template name="note"/>
4156
4195
  </xsl:for-each>
4157
- <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
4196
+
4197
+
4198
+ <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
4199
+
4158
4200
  </fo:block-container>
4159
4201
  </xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']">
4160
4202
  <fo:block id="{@id}">
@@ -4273,15 +4315,15 @@
4273
4315
  </xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="bookmarks">
4274
4316
  <xsl:apply-templates mode="bookmarks"/>
4275
4317
  <xsl:text> </xsl:text>
4276
- </xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="contents" priority="2">
4318
+ </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">
4277
4319
  <xsl:value-of select="."/>
4278
- </xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="bookmarks" priority="2">
4320
+ </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">
4279
4321
  <xsl:value-of select="."/>
4280
4322
  </xsl:template><xsl:template match="node()" mode="contents">
4281
4323
  <xsl:apply-templates mode="contents"/>
4282
4324
  </xsl:template><xsl:template match="node()" mode="bookmarks">
4283
4325
  <xsl:apply-templates mode="bookmarks"/>
4284
- </xsl:template><xsl:template match="*[local-name() = 'stem']" mode="contents">
4326
+ </xsl:template><xsl:template match="*[local-name() = 'title' or local-name() = 'name']//*[local-name() = 'stem']" mode="contents">
4285
4327
  <xsl:apply-templates select="."/>
4286
4328
  </xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" mode="contents" priority="3"/><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
4287
4329
  <xsl:apply-templates mode="bookmarks"/>
@@ -4523,6 +4565,8 @@
4523
4565
  </fo:list-item-body>
4524
4566
  </fo:list-item>
4525
4567
  </fo:list-block>
4568
+ </xsl:template><xsl:template name="extractSection">
4569
+ <xsl:value-of select="*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
4526
4570
  </xsl:template><xsl:template name="extractTitle">
4527
4571
  <xsl:choose>
4528
4572
  <xsl:when test="*[local-name() = 'tab']">
@@ -4570,6 +4614,7 @@
4570
4614
 
4571
4615
 
4572
4616
 
4617
+
4573
4618
 
4574
4619
 
4575
4620
 
@@ -4900,7 +4945,7 @@
4900
4945
  </fo:inline>
4901
4946
  </xsl:otherwise>
4902
4947
  </xsl:choose>
4903
- </xsl:template><xsl:template match="*[local-name() = 'termsource']">
4948
+ </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
4904
4949
  <fo:block xsl:use-attribute-sets="termsource-style">
4905
4950
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
4906
4951
  <xsl:variable name="termsource_text">
@@ -4909,11 +4954,13 @@
4909
4954
 
4910
4955
  <xsl:choose>
4911
4956
  <xsl:when test="starts-with(normalize-space($termsource_text), '[')">
4912
- <xsl:apply-templates/>
4957
+ <!-- <xsl:apply-templates /> -->
4958
+ <xsl:copy-of select="$termsource_text"/>
4913
4959
  </xsl:when>
4914
4960
  <xsl:otherwise>
4915
4961
 
4916
- <xsl:apply-templates/>
4962
+ <!-- <xsl:apply-templates /> -->
4963
+ <xsl:copy-of select="$termsource_text"/>
4917
4964
 
4918
4965
  </xsl:otherwise>
4919
4966
  </xsl:choose>
@@ -4922,8 +4969,15 @@
4922
4969
  <xsl:if test="normalize-space() != ''">
4923
4970
  <xsl:value-of select="."/>
4924
4971
  </xsl:if>
4925
- </xsl:template><xsl:template match="*[local-name() = 'origin']">
4972
+ </xsl:template><xsl:variable name="localized.source">
4973
+ <xsl:call-template name="getLocalizedString">
4974
+ <xsl:with-param name="key">source</xsl:with-param>
4975
+ </xsl:call-template>
4976
+ </xsl:variable><xsl:template match="*[local-name() = 'origin']">
4926
4977
  <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
4978
+ <xsl:if test="normalize-space(@citeas) = ''">
4979
+ <xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
4980
+ </xsl:if>
4927
4981
 
4928
4982
  <fo:inline>
4929
4983
 
@@ -4932,7 +4986,6 @@
4932
4986
 
4933
4987
 
4934
4988
 
4935
-
4936
4989
  <xsl:call-template name="getTitle">
4937
4990
  <xsl:with-param name="name" select="'title-source'"/>
4938
4991
  </xsl:call-template>
@@ -5147,7 +5200,6 @@
5147
5200
 
5148
5201
 
5149
5202
 
5150
-
5151
5203
  <xsl:apply-templates/>
5152
5204
  </fo:block>
5153
5205
 
@@ -5190,7 +5242,7 @@
5190
5242
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
5191
5243
  </xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
5192
5244
  <xsl:choose>
5193
- <xsl:when test="parent::*[local-name() = 'note']">
5245
+ <xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
5194
5246
  <fo:block-container>
5195
5247
  <xsl:attribute name="margin-left">
5196
5248
  <xsl:choose>
@@ -5200,6 +5252,7 @@
5200
5252
  </xsl:attribute>
5201
5253
 
5202
5254
 
5255
+
5203
5256
  <fo:block-container margin-left="0mm">
5204
5257
  <fo:block>
5205
5258
  <xsl:apply-templates select="." mode="ul_ol"/>
@@ -5543,6 +5596,10 @@
5543
5596
 
5544
5597
 
5545
5598
 
5599
+
5600
+
5601
+
5602
+
5546
5603
  </xsl:template><xsl:template name="processBibitemDocId">
5547
5604
  <xsl:variable name="_doc_ident" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]"/>
5548
5605
  <xsl:choose>
@@ -5930,6 +5987,7 @@
5930
5987
 
5931
5988
 
5932
5989
 
5990
+
5933
5991
  <xsl:value-of select="document('')//*/namespace::ogc"/>
5934
5992
 
5935
5993
 
@@ -5994,13 +6052,18 @@
5994
6052
  </xsl:call-template>
5995
6053
  </xsl:if>
5996
6054
  </xsl:template><xsl:template name="getLocalizedString">
5997
- <xsl:param name="key"/>
6055
+ <xsl:param name="key"/>
5998
6056
 
5999
6057
  <xsl:variable name="curr_lang">
6000
6058
  <xsl:call-template name="getLang"/>
6001
6059
  </xsl:variable>
6002
6060
 
6061
+ <xsl:variable name="data_value" select="normalize-space(xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang])"/>
6062
+
6003
6063
  <xsl:choose>
6064
+ <xsl:when test="$data_value != ''">
6065
+ <xsl:value-of select="$data_value"/>
6066
+ </xsl:when>
6004
6067
  <xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
6005
6068
  <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
6006
6069
  </xsl:when>
@@ -1595,6 +1595,9 @@
1595
1595
  <title-continued lang="en">(continued)</title-continued>
1596
1596
  <title-continued lang="fr">(continué)</title-continued>
1597
1597
 
1598
+ </xsl:variable><xsl:variable name="bibdata">
1599
+ <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']"/>
1600
+ <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'localized-strings']"/>
1598
1601
  </xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
1599
1602
  <xsl:param name="name"/>
1600
1603
  <xsl:param name="lang"/>
@@ -1624,6 +1627,7 @@
1624
1627
  </xsl:attribute-set><xsl:attribute-set name="link-style">
1625
1628
 
1626
1629
 
1630
+
1627
1631
  <!-- <xsl:attribute name="color">rgb(33, 55, 92)</xsl:attribute> -->
1628
1632
  <xsl:attribute name="text-decoration">underline</xsl:attribute>
1629
1633
 
@@ -1783,6 +1787,7 @@
1783
1787
 
1784
1788
  </xsl:attribute-set><xsl:attribute-set name="table-name-style">
1785
1789
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
1790
+
1786
1791
 
1787
1792
 
1788
1793
 
@@ -1822,6 +1827,7 @@
1822
1827
 
1823
1828
 
1824
1829
 
1830
+
1825
1831
  </xsl:attribute-set><xsl:attribute-set name="eref-style">
1826
1832
 
1827
1833
 
@@ -1832,6 +1838,7 @@
1832
1838
 
1833
1839
 
1834
1840
 
1841
+
1835
1842
 
1836
1843
 
1837
1844
 
@@ -1856,6 +1863,7 @@
1856
1863
 
1857
1864
 
1858
1865
 
1866
+
1859
1867
  <xsl:attribute name="font-weight">bold</xsl:attribute>
1860
1868
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
1861
1869
 
@@ -1884,12 +1892,14 @@
1884
1892
 
1885
1893
 
1886
1894
 
1895
+
1887
1896
 
1888
1897
  <xsl:attribute name="margin-top">12pt</xsl:attribute>
1889
1898
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1890
1899
 
1891
1900
  </xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
1892
1901
 
1902
+
1893
1903
  <xsl:attribute name="font-weight">bold</xsl:attribute>
1894
1904
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
1895
1905
 
@@ -1915,6 +1925,7 @@
1915
1925
 
1916
1926
  </xsl:attribute-set><xsl:attribute-set name="termsource-style">
1917
1927
 
1928
+
1918
1929
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1919
1930
  <xsl:attribute name="keep-with-previous">always</xsl:attribute>
1920
1931
 
@@ -1931,6 +1942,7 @@
1931
1942
 
1932
1943
  </xsl:attribute-set><xsl:attribute-set name="figure-name-style">
1933
1944
 
1945
+
1934
1946
 
1935
1947
 
1936
1948
  <xsl:attribute name="margin-top">12pt</xsl:attribute>
@@ -1957,6 +1969,7 @@
1957
1969
  </xsl:attribute-set><xsl:attribute-set name="image-style">
1958
1970
  <xsl:attribute name="text-align">center</xsl:attribute>
1959
1971
 
1972
+
1960
1973
  <xsl:attribute name="space-before">12pt</xsl:attribute>
1961
1974
  <xsl:attribute name="space-after">6pt</xsl:attribute>
1962
1975
 
@@ -1968,6 +1981,7 @@
1968
1981
 
1969
1982
  </xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
1970
1983
 
1984
+
1971
1985
  <xsl:attribute name="width">100%</xsl:attribute>
1972
1986
  <xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
1973
1987
  <xsl:attribute name="scaling">uniform</xsl:attribute>
@@ -2003,6 +2017,7 @@
2003
2017
  <xsl:attribute name="space-after">6pt</xsl:attribute>
2004
2018
 
2005
2019
 
2020
+
2006
2021
  </xsl:attribute-set><xsl:variable name="color-added-text">
2007
2022
  <xsl:text>rgb(0, 255, 0)</xsl:text>
2008
2023
  </xsl:variable><xsl:attribute-set name="add-style">
@@ -2143,6 +2158,7 @@
2143
2158
  <fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
2144
2159
 
2145
2160
 
2161
+
2146
2162
 
2147
2163
 
2148
2164
 
@@ -2163,6 +2179,8 @@
2163
2179
 
2164
2180
 
2165
2181
 
2182
+
2183
+
2166
2184
  <xsl:variable name="table_width">
2167
2185
  <!-- for centered table always 100% (@width will be set for middle/second cell of outer table) -->
2168
2186
 
@@ -2186,6 +2204,7 @@
2186
2204
 
2187
2205
 
2188
2206
 
2207
+
2189
2208
  <attribute name="margin-left">0mm</attribute>
2190
2209
  <attribute name="margin-right">0mm</attribute>
2191
2210
 
@@ -2327,11 +2346,22 @@
2327
2346
  </xsl:choose>
2328
2347
 
2329
2348
  </xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']"/><xsl:template match="*[local-name()='table']/*[local-name() = 'name']" mode="presentation">
2349
+ <xsl:param name="continued"/>
2330
2350
  <xsl:if test="normalize-space() != ''">
2331
2351
  <fo:block xsl:use-attribute-sets="table-name-style">
2332
2352
 
2333
2353
 
2334
- <xsl:apply-templates/>
2354
+ <xsl:choose>
2355
+ <xsl:when test="$continued = 'true'">
2356
+ <!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
2357
+
2358
+ </xsl:when>
2359
+ <xsl:otherwise>
2360
+ <xsl:apply-templates/>
2361
+ </xsl:otherwise>
2362
+ </xsl:choose>
2363
+
2364
+
2335
2365
  </fo:block>
2336
2366
  </xsl:if>
2337
2367
  </xsl:template><xsl:template name="calculate-columns-numbers">
@@ -2471,18 +2501,18 @@
2471
2501
  <xsl:apply-templates/>
2472
2502
  </fo:table-header>
2473
2503
  </xsl:template><xsl:template name="table-header-title">
2474
- <xsl:param name="cols-count"/>
2504
+ <xsl:param name="cols-count"/>
2475
2505
  <!-- row for title -->
2476
2506
  <fo:table-row>
2477
2507
  <fo:table-cell number-columns-spanned="{$cols-count}" border-left="1.5pt solid white" border-right="1.5pt solid white" border-top="1.5pt solid white" border-bottom="1.5pt solid black">
2478
- <xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']" mode="presentation"/>
2508
+
2509
+ <xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']" mode="presentation">
2510
+ <xsl:with-param name="continued">true</xsl:with-param>
2511
+ </xsl:apply-templates>
2479
2512
  <xsl:for-each select="ancestor::*[local-name()='table'][1]">
2480
2513
  <xsl:call-template name="fn_name_display"/>
2481
- </xsl:for-each>
2482
- <fo:block text-align="right" font-style="italic">
2483
- <xsl:text> </xsl:text>
2484
- <fo:retrieve-table-marker retrieve-class-name="table_continued"/>
2485
- </fo:block>
2514
+ </xsl:for-each>
2515
+
2486
2516
  </fo:table-cell>
2487
2517
  </fo:table-row>
2488
2518
  </xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
@@ -2707,6 +2737,7 @@
2707
2737
 
2708
2738
 
2709
2739
 
2740
+
2710
2741
  </xsl:if>
2711
2742
  <xsl:if test="$parent-name = 'tfoot'">
2712
2743
 
@@ -2749,6 +2780,7 @@
2749
2780
 
2750
2781
 
2751
2782
 
2783
+
2752
2784
 
2753
2785
  <xsl:attribute name="border">solid black 0pt</xsl:attribute>
2754
2786
 
@@ -3442,6 +3474,7 @@
3442
3474
 
3443
3475
 
3444
3476
 
3477
+
3445
3478
  10
3446
3479
 
3447
3480
 
@@ -3826,11 +3859,15 @@
3826
3859
  </xsl:apply-templates>
3827
3860
  </xsl:template><xsl:template name="getLang">
3828
3861
  <xsl:variable name="language_current" select="normalize-space(//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
3862
+ <xsl:variable name="language_current_2" select="normalize-space(xalan:nodeset($bibdata)//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
3829
3863
  <xsl:variable name="language">
3830
3864
  <xsl:choose>
3831
3865
  <xsl:when test="$language_current != ''">
3832
3866
  <xsl:value-of select="$language_current"/>
3833
3867
  </xsl:when>
3868
+ <xsl:when test="$language_current_2 != ''">
3869
+ <xsl:value-of select="$language_current_2"/>
3870
+ </xsl:when>
3834
3871
  <xsl:otherwise>
3835
3872
  <xsl:value-of select="//*[local-name()='bibdata']//*[local-name()='language']"/>
3836
3873
  </xsl:otherwise>
@@ -4047,6 +4084,7 @@
4047
4084
 
4048
4085
 
4049
4086
  <fo:inline xsl:use-attribute-sets="note-name-style">
4087
+
4050
4088
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
4051
4089
  </fo:inline>
4052
4090
  <xsl:apply-templates/>
@@ -4073,6 +4111,7 @@
4073
4111
  </xsl:template><xsl:template match="*[local-name() = 'termnote']">
4074
4112
  <fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
4075
4113
  <fo:inline xsl:use-attribute-sets="termnote-name-style">
4114
+
4076
4115
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
4077
4116
  </fo:inline>
4078
4117
  <xsl:apply-templates/>
@@ -4154,7 +4193,10 @@
4154
4193
  <xsl:for-each select="*[local-name() = 'note']">
4155
4194
  <xsl:call-template name="note"/>
4156
4195
  </xsl:for-each>
4157
- <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
4196
+
4197
+
4198
+ <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
4199
+
4158
4200
  </fo:block-container>
4159
4201
  </xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']">
4160
4202
  <fo:block id="{@id}">
@@ -4273,15 +4315,15 @@
4273
4315
  </xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="bookmarks">
4274
4316
  <xsl:apply-templates mode="bookmarks"/>
4275
4317
  <xsl:text> </xsl:text>
4276
- </xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="contents" priority="2">
4318
+ </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">
4277
4319
  <xsl:value-of select="."/>
4278
- </xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="bookmarks" priority="2">
4320
+ </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">
4279
4321
  <xsl:value-of select="."/>
4280
4322
  </xsl:template><xsl:template match="node()" mode="contents">
4281
4323
  <xsl:apply-templates mode="contents"/>
4282
4324
  </xsl:template><xsl:template match="node()" mode="bookmarks">
4283
4325
  <xsl:apply-templates mode="bookmarks"/>
4284
- </xsl:template><xsl:template match="*[local-name() = 'stem']" mode="contents">
4326
+ </xsl:template><xsl:template match="*[local-name() = 'title' or local-name() = 'name']//*[local-name() = 'stem']" mode="contents">
4285
4327
  <xsl:apply-templates select="."/>
4286
4328
  </xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" mode="contents" priority="3"/><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
4287
4329
  <xsl:apply-templates mode="bookmarks"/>
@@ -4523,6 +4565,8 @@
4523
4565
  </fo:list-item-body>
4524
4566
  </fo:list-item>
4525
4567
  </fo:list-block>
4568
+ </xsl:template><xsl:template name="extractSection">
4569
+ <xsl:value-of select="*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
4526
4570
  </xsl:template><xsl:template name="extractTitle">
4527
4571
  <xsl:choose>
4528
4572
  <xsl:when test="*[local-name() = 'tab']">
@@ -4570,6 +4614,7 @@
4570
4614
 
4571
4615
 
4572
4616
 
4617
+
4573
4618
 
4574
4619
 
4575
4620
 
@@ -4900,7 +4945,7 @@
4900
4945
  </fo:inline>
4901
4946
  </xsl:otherwise>
4902
4947
  </xsl:choose>
4903
- </xsl:template><xsl:template match="*[local-name() = 'termsource']">
4948
+ </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
4904
4949
  <fo:block xsl:use-attribute-sets="termsource-style">
4905
4950
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
4906
4951
  <xsl:variable name="termsource_text">
@@ -4909,11 +4954,13 @@
4909
4954
 
4910
4955
  <xsl:choose>
4911
4956
  <xsl:when test="starts-with(normalize-space($termsource_text), '[')">
4912
- <xsl:apply-templates/>
4957
+ <!-- <xsl:apply-templates /> -->
4958
+ <xsl:copy-of select="$termsource_text"/>
4913
4959
  </xsl:when>
4914
4960
  <xsl:otherwise>
4915
4961
 
4916
- <xsl:apply-templates/>
4962
+ <!-- <xsl:apply-templates /> -->
4963
+ <xsl:copy-of select="$termsource_text"/>
4917
4964
 
4918
4965
  </xsl:otherwise>
4919
4966
  </xsl:choose>
@@ -4922,8 +4969,15 @@
4922
4969
  <xsl:if test="normalize-space() != ''">
4923
4970
  <xsl:value-of select="."/>
4924
4971
  </xsl:if>
4925
- </xsl:template><xsl:template match="*[local-name() = 'origin']">
4972
+ </xsl:template><xsl:variable name="localized.source">
4973
+ <xsl:call-template name="getLocalizedString">
4974
+ <xsl:with-param name="key">source</xsl:with-param>
4975
+ </xsl:call-template>
4976
+ </xsl:variable><xsl:template match="*[local-name() = 'origin']">
4926
4977
  <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
4978
+ <xsl:if test="normalize-space(@citeas) = ''">
4979
+ <xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
4980
+ </xsl:if>
4927
4981
 
4928
4982
  <fo:inline>
4929
4983
 
@@ -4932,7 +4986,6 @@
4932
4986
 
4933
4987
 
4934
4988
 
4935
-
4936
4989
  <xsl:call-template name="getTitle">
4937
4990
  <xsl:with-param name="name" select="'title-source'"/>
4938
4991
  </xsl:call-template>
@@ -5147,7 +5200,6 @@
5147
5200
 
5148
5201
 
5149
5202
 
5150
-
5151
5203
  <xsl:apply-templates/>
5152
5204
  </fo:block>
5153
5205
 
@@ -5190,7 +5242,7 @@
5190
5242
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
5191
5243
  </xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
5192
5244
  <xsl:choose>
5193
- <xsl:when test="parent::*[local-name() = 'note']">
5245
+ <xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
5194
5246
  <fo:block-container>
5195
5247
  <xsl:attribute name="margin-left">
5196
5248
  <xsl:choose>
@@ -5200,6 +5252,7 @@
5200
5252
  </xsl:attribute>
5201
5253
 
5202
5254
 
5255
+
5203
5256
  <fo:block-container margin-left="0mm">
5204
5257
  <fo:block>
5205
5258
  <xsl:apply-templates select="." mode="ul_ol"/>
@@ -5543,6 +5596,10 @@
5543
5596
 
5544
5597
 
5545
5598
 
5599
+
5600
+
5601
+
5602
+
5546
5603
  </xsl:template><xsl:template name="processBibitemDocId">
5547
5604
  <xsl:variable name="_doc_ident" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]"/>
5548
5605
  <xsl:choose>
@@ -5930,6 +5987,7 @@
5930
5987
 
5931
5988
 
5932
5989
 
5990
+
5933
5991
  <xsl:value-of select="document('')//*/namespace::ogc"/>
5934
5992
 
5935
5993
 
@@ -5994,13 +6052,18 @@
5994
6052
  </xsl:call-template>
5995
6053
  </xsl:if>
5996
6054
  </xsl:template><xsl:template name="getLocalizedString">
5997
- <xsl:param name="key"/>
6055
+ <xsl:param name="key"/>
5998
6056
 
5999
6057
  <xsl:variable name="curr_lang">
6000
6058
  <xsl:call-template name="getLang"/>
6001
6059
  </xsl:variable>
6002
6060
 
6061
+ <xsl:variable name="data_value" select="normalize-space(xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang])"/>
6062
+
6003
6063
  <xsl:choose>
6064
+ <xsl:when test="$data_value != ''">
6065
+ <xsl:value-of select="$data_value"/>
6066
+ </xsl:when>
6004
6067
  <xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
6005
6068
  <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
6006
6069
  </xsl:when>