metanorma-iso 3.1.1 → 3.1.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.
@@ -321,10 +321,19 @@
321
321
  </xsl:for-each>
322
322
  </xsl:variable>
323
323
 
324
- <xsl:variable name="editorialgroup_">
324
+ <xsl:variable name="approvalgroup_">
325
325
  <!-- Example: ISO/TC 46/SC 2 -->
326
326
  <!-- ISO/SG SMART/SG TS/AG 1 -->
327
- <xsl:variable name="approvalgroup" select="normalize-space(/mn:metanorma/mn:bibdata/mn:ext/mn:approvalgroup/@identifier)"/>
327
+ <!-- <xsl:variable name="approvalgroup" select="normalize-space(/mn:metanorma/mn:bibdata/mn:ext/mn:approvalgroup/@identifier)"/> -->
328
+ <xsl:variable name="contributor_authorizer_">
329
+ <xsl:copy-of select="/mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'authorizer' and mn:description[normalize-space(@language) = ''] = 'Technical committee']]"/>
330
+ </xsl:variable>
331
+ <xsl:variable name="contributor_authorizer" select="xalan:nodeset($contributor_authorizer_)"/>
332
+ <xsl:variable name="organization_abbreviation" select="normalize-space($contributor_authorizer/mn:contributor/mn:organization/mn:abbreviation)"/>
333
+ <xsl:variable name="approvalgroup">
334
+ <xsl:if test="$organization_abbreviation = 'ISO' or contains($organization_abbreviation, 'ISO/') or contains($organization_abbreviation, '/ISO')"><xsl:value-of select="concat($organization_abbreviation, '/')"/></xsl:if>
335
+ <xsl:value-of select="normalize-space($contributor_authorizer/mn:contributor/mn:organization/mn:subdivision/mn:identifier[@type = 'full'])"/>
336
+ </xsl:variable>
328
337
  <xsl:variable name="parts_by_slash">
329
338
  <xsl:call-template name="split">
330
339
  <xsl:with-param name="pText" select="$approvalgroup"/>
@@ -365,7 +374,7 @@
365
374
  </xsl:choose>
366
375
  </xsl:for-each>
367
376
  </xsl:variable>
368
- <xsl:variable name="editorialgroup" select="xalan:nodeset($editorialgroup_)"/>
377
+ <xsl:variable name="approvalgroup" select="xalan:nodeset($approvalgroup_)"/>
369
378
 
370
379
  <xsl:variable name="secretariat_">
371
380
  <xsl:variable name="value" select="normalize-space(/mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:secretariat)"/>
@@ -882,11 +891,9 @@
882
891
  <xsl:choose>
883
892
  <xsl:when test="$layoutVersion = '1951'">
884
893
  <fo:page-sequence master-reference="document{$document-master-reference_addon}" initial-page-number="auto" force-page-count="no-force">
885
- <fo:static-content flow-name="xsl-footnote-separator">
886
- <fo:block>
887
- <fo:leader leader-pattern="rule" leader-length="30%"/>
888
- </fo:block>
889
- </fo:static-content>
894
+
895
+ <xsl:call-template name="insertFootnoteSeparatorCommon"/>
896
+
890
897
  <xsl:call-template name="insertHeaderFooter">
891
898
  <xsl:with-param name="is_header">false</xsl:with-param>
892
899
  <xsl:with-param name="insert_footer_last">false</xsl:with-param>
@@ -1076,7 +1083,7 @@
1076
1083
  <xsl:attribute name="master-reference">preface-1972-1998</xsl:attribute>
1077
1084
  </xsl:if>
1078
1085
  <xsl:if test="$layoutVersion = '2024'">
1079
- <fo:static-content flow-name="xsl-footnote-separator">
1086
+ <fo:static-content flow-name="xsl-footnote-separator" role="artifact">
1080
1087
  <fo:block margin-bottom="6pt">
1081
1088
  <fo:leader leader-pattern="rule" leader-length="51mm" rule-thickness="0.5pt"/>
1082
1089
  </fo:block>
@@ -1086,7 +1093,7 @@
1086
1093
  <xsl:with-param name="font-weight">normal</xsl:with-param>
1087
1094
  <xsl:with-param name="is_footer">true</xsl:with-param>
1088
1095
  </xsl:call-template>
1089
- <fo:flow flow-name="xsl-region-body" line-height="115%">
1096
+ <fo:flow flow-name="xsl-region-body" line-height="115%" role="SKIP">
1090
1097
 
1091
1098
  <xsl:if test="position() = 1">
1092
1099
 
@@ -1230,7 +1237,7 @@
1230
1237
  <xsl:attribute name="initial-page-number">auto</xsl:attribute>
1231
1238
  <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
1232
1239
  </xsl:if>
1233
- <fo:static-content flow-name="xsl-footnote-separator">
1240
+ <fo:static-content flow-name="xsl-footnote-separator" role="artifact">
1234
1241
  <fo:block>
1235
1242
  <xsl:if test="$layoutVersion = '2024'">
1236
1243
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
@@ -1249,7 +1256,7 @@
1249
1256
  <xsl:with-param name="border_around_page" select="$border_around_page"/>
1250
1257
  <xsl:with-param name="insert_header_first" select="normalize-space(position() = 1)"/>
1251
1258
  </xsl:call-template>
1252
- <fo:flow flow-name="xsl-region-body">
1259
+ <fo:flow flow-name="xsl-region-body" role="SKIP">
1253
1260
 
1254
1261
  <!-- Information and documentation — Codes for transcription systems -->
1255
1262
  <!-- <fo:block-container>
@@ -1874,10 +1881,18 @@
1874
1881
  </xsl:choose>
1875
1882
  </xsl:when>
1876
1883
  <!-- <xsl:when test="$stage-abbreviation = 'FDAmd' or $stage-abbreviation = 'FDAM'"><xsl:value-of select="$doctype_uppercased"/></xsl:when> -->
1877
- <xsl:when test="$stagename-header-coverpage != ''">
1884
+ <xsl:when test="$stagename-header-coverpage != '' or normalize-space($stagename_localized_coverpage) != ''">
1878
1885
  <xsl:attribute name="margin-top">12pt</xsl:attribute>
1879
1886
 
1880
- <xsl:value-of select="$stagename-header-coverpage"/>
1887
+ <xsl:choose>
1888
+ <xsl:when test="normalize-space($stagename_localized_coverpage) != ''">
1889
+ <!-- FINAL DRAFT<br/>International Standard-->
1890
+ <xsl:apply-templates select="xalan:nodeset($stagename_localized_coverpage)/node()"/>
1891
+ </xsl:when>
1892
+ <xsl:otherwise>
1893
+ <xsl:value-of select="$stagename-header-coverpage"/>
1894
+ </xsl:otherwise>
1895
+ </xsl:choose>
1881
1896
 
1882
1897
  <!-- if there is iteration number, then print it -->
1883
1898
  <xsl:variable name="iteration" select="number(/mn:metanorma/mn:bibdata/mn:status/mn:iteration)"/>
@@ -1891,6 +1906,7 @@
1891
1906
  <xsl:when test="$doctype = 'amendment'">
1892
1907
  <xsl:value-of select="$updates-document-type_str"/>
1893
1908
  </xsl:when>
1909
+ <xsl:when test="normalize-space($stagename_localized_coverpage) != ''"/>
1894
1910
  <xsl:otherwise>
1895
1911
  <xsl:value-of select="$doctype_localized"/>
1896
1912
  </xsl:otherwise>
@@ -1973,108 +1989,128 @@
1973
1989
  </fo:block>
1974
1990
  </fo:block-container>
1975
1991
  </fo:table-cell>
1976
- <fo:table-cell number-columns-spanned="2" padding-left="6mm">
1977
- <fo:block margin-top="2.5mm" line-height="1.1" role="SKIP">
1992
+ <fo:table-cell number-columns-spanned="2" number-rows-spanned="2" padding-left="6mm">
1978
1993
 
1979
- <xsl:if test="not($stage-abbreviation = 'DIS' or $stage-abbreviation = 'DAMD' or $stage-abbreviation = 'DAM')">
1980
- <xsl:variable name="edition_and_date">
1981
- <xsl:call-template name="insertEditionAndDate"/>
1982
- </xsl:variable>
1983
- <xsl:if test="normalize-space($edition_and_date) != ''">
1984
- <fo:block font-size="18pt" font-weight="bold" margin-bottom="3mm">
1985
- <xsl:value-of select="$edition_and_date"/>
1986
- </fo:block>
1987
- </xsl:if>
1988
- </xsl:if>
1994
+ <fo:table width="100%" table-layout="fixed">
1995
+ <fo:table-body>
1996
+ <fo:table-row height="85mm">
1997
+ <fo:table-cell>
1989
1998
 
1990
- <xsl:if test="$doctype = 'amendment'"> <!-- and not($stage-abbreviation = 'FDAMD' or $stage-abbreviation = 'FDAM') -->
1991
- <fo:block font-size="15pt" font-weight="bold" margin-bottom="3mm">
1992
- <xsl:value-of select="$doctype_uppercased"/>
1993
- <xsl:text> </xsl:text>
1994
- <xsl:variable name="amendment-number" select="/mn:metanorma/mn:bibdata/mn:ext/mn:structuredidentifier/mn:project-number/@amendment"/>
1995
- <xsl:if test="normalize-space($amendment-number) != ''">
1996
- <xsl:value-of select="$amendment-number"/><xsl:text> </xsl:text>
1997
- </xsl:if>
1998
- </fo:block>
1999
- <!-- </xsl:if>
2000
-
2001
- <xsl:if test="$doctype = 'amendment' and not($stage-abbreviation = 'FDAMD' or $stage-abbreviation = 'FDAM')"> -->
2002
- <xsl:if test="/mn:metanorma/mn:bibdata/mn:date[@type = 'updated']">
2003
- <fo:block font-size="18pt" font-weight="bold" margin-bottom="3mm">
2004
- <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:date[@type = 'updated']"/>
2005
- </fo:block>
2006
- </xsl:if>
2007
- </xsl:if>
1999
+ <fo:block margin-top="2.5mm" line-height="1.1" role="SKIP">
2008
2000
 
2009
- <xsl:variable name="date_corrected" select="normalize-space(/mn:metanorma/mn:bibdata/mn:date[@type = 'corrected'])"/>
2010
- <xsl:if test="$date_corrected != ''">
2011
- <fo:block font-size="18pt" font-weight="bold" margin-bottom="3mm">
2012
- <xsl:value-of select="$i18n_corrected_version"/>
2013
- <xsl:value-of select="$linebreak"/>
2014
- <xsl:value-of select="$date_corrected"/>
2015
- </fo:block>
2016
- </xsl:if>
2001
+ <xsl:if test="not($stage-abbreviation = 'DIS' or $stage-abbreviation = 'DAMD' or $stage-abbreviation = 'DAM')">
2002
+ <xsl:variable name="edition_and_date">
2003
+ <xsl:call-template name="insertEditionAndDate"/>
2004
+ </xsl:variable>
2005
+ <xsl:if test="normalize-space($edition_and_date) != ''">
2006
+ <fo:block font-size="18pt" font-weight="bold" margin-bottom="3mm">
2007
+ <xsl:value-of select="$edition_and_date"/>
2008
+ </fo:block>
2009
+ </xsl:if>
2010
+ </xsl:if>
2017
2011
 
2018
- <xsl:if test="$stage-abbreviation = 'DIS' or $stage-abbreviation = 'DAMD' or $stage-abbreviation = 'DAM' or $stagename_abbreviation = 'DIS' or $stage-abbreviation = 'FDIS' or $stage-abbreviation = 'FDAMD' or $stage-abbreviation = 'FDAM' or $stagename_abbreviation = 'FDIS' or $stage-abbreviation = 'NWIP' or $stage-abbreviation = 'NP' or $stage-abbreviation = 'PWI' or $stage-abbreviation = 'AWI' or $stage-abbreviation = 'WD' or $stage-abbreviation = 'CD'">
2019
- <xsl:if test="normalize-space($editorialgroup) != ''">
2020
- <fo:block margin-bottom="3mm">
2021
- <xsl:copy-of select="$editorialgroup"/>
2022
- </fo:block>
2023
- </xsl:if>
2024
- <xsl:if test="normalize-space($secretariat) != ''">
2025
- <fo:block margin-bottom="3mm">
2026
- <xsl:copy-of select="$secretariat"/>
2027
- </fo:block>
2028
- </xsl:if>
2029
- </xsl:if>
2012
+ <xsl:if test="$doctype = 'amendment'"> <!-- and not($stage-abbreviation = 'FDAMD' or $stage-abbreviation = 'FDAM') -->
2013
+ <fo:block font-size="15pt" font-weight="bold" margin-bottom="3mm">
2014
+ <xsl:value-of select="$doctype_uppercased"/>
2015
+ <xsl:text> </xsl:text>
2016
+ <xsl:variable name="amendment-number" select="/mn:metanorma/mn:bibdata/mn:ext/mn:structuredidentifier/mn:project-number/@amendment"/>
2017
+ <xsl:if test="normalize-space($amendment-number) != ''">
2018
+ <xsl:value-of select="$amendment-number"/><xsl:text> </xsl:text>
2019
+ </xsl:if>
2020
+ </fo:block>
2021
+ <!-- </xsl:if>
2022
+
2023
+ <xsl:if test="$doctype = 'amendment' and not($stage-abbreviation = 'FDAMD' or $stage-abbreviation = 'FDAM')"> -->
2024
+ <xsl:if test="/mn:metanorma/mn:bibdata/mn:date[@type = 'updated']">
2025
+ <fo:block font-size="18pt" font-weight="bold" margin-bottom="3mm">
2026
+ <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:date[@type = 'updated']"/>
2027
+ </fo:block>
2028
+ </xsl:if>
2029
+ </xsl:if>
2030
2030
 
2031
- <xsl:if test="$stage-abbreviation = 'DIS' or $stage-abbreviation = 'DAMD' or $stage-abbreviation = 'DAM' or $stagename_abbreviation = 'DIS' or $stage-abbreviation = 'FDIS' or $stage-abbreviation = 'FDAMD' or $stage-abbreviation = 'FDAM' or $stagename_abbreviation = 'FDIS'">
2031
+ <xsl:variable name="date_corrected" select="normalize-space(/mn:metanorma/mn:bibdata/mn:date[@type = 'corrected'])"/>
2032
+ <xsl:if test="$date_corrected != ''">
2033
+ <fo:block font-size="18pt" font-weight="bold" margin-bottom="3mm">
2034
+ <xsl:value-of select="$i18n_corrected_version"/>
2035
+ <xsl:value-of select="$linebreak"/>
2036
+ <xsl:value-of select="$date_corrected"/>
2037
+ </fo:block>
2038
+ </xsl:if>
2032
2039
 
2033
- <fo:block margin-bottom="3mm">
2034
- <!-- Voting begins on: -->
2035
- <xsl:value-of select="concat($i18n_voting_begins_on, ':')"/>
2036
- <fo:block font-weight="bold">
2037
- <xsl:variable name="v_date">
2038
- <xsl:call-template name="split">
2039
- <xsl:with-param name="pText">
2040
- <xsl:call-template name="insertVoteStarted"/>
2041
- </xsl:with-param>
2042
- <xsl:with-param name="sep" select="'-'"/>
2043
- <xsl:with-param name="keep_sep">true</xsl:with-param>
2044
- </xsl:call-template>
2045
- </xsl:variable>
2046
- <xsl:for-each select="xalan:nodeset($v_date)/mnx:item">
2047
- <xsl:choose>
2048
- <xsl:when test=". = '-'"><fo:inline font-weight="normal"><xsl:value-of select="."/></fo:inline></xsl:when>
2049
- <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
2050
- </xsl:choose>
2051
- </xsl:for-each>
2052
- </fo:block>
2053
- </fo:block>
2040
+ <xsl:if test="$stage-abbreviation = 'DIS' or $stage-abbreviation = 'DAMD' or $stage-abbreviation = 'DAM' or $stagename_abbreviation = 'DIS' or $stage-abbreviation = 'FDIS' or $stage-abbreviation = 'FDAMD' or $stage-abbreviation = 'FDAM' or $stagename_abbreviation = 'FDIS' or $stage-abbreviation = 'NWIP' or $stage-abbreviation = 'NP' or $stage-abbreviation = 'PWI' or $stage-abbreviation = 'AWI' or $stage-abbreviation = 'WD' or $stage-abbreviation = 'CD'">
2041
+ <xsl:if test="normalize-space($approvalgroup) != ''">
2042
+ <fo:block margin-bottom="3mm">
2043
+ <xsl:copy-of select="$approvalgroup"/>
2044
+ </fo:block>
2045
+ </xsl:if>
2046
+ <xsl:if test="normalize-space($secretariat) != ''">
2047
+ <fo:block margin-bottom="3mm">
2048
+ <xsl:copy-of select="$secretariat"/>
2049
+ </fo:block>
2050
+ </xsl:if>
2051
+ </xsl:if>
2054
2052
 
2055
- <fo:block margin-bottom="3mm">
2056
- <!-- Voting terminates on: -->
2057
- <xsl:value-of select="concat($i18n_voting_terminates_on, ':')"/>
2058
- <fo:block font-weight="bold">
2059
- <xsl:variable name="v_date">
2060
- <xsl:call-template name="split">
2061
- <xsl:with-param name="pText">
2062
- <xsl:call-template name="insertVoteEnded"/>
2063
- </xsl:with-param>
2064
- <xsl:with-param name="sep" select="'-'"/>
2065
- <xsl:with-param name="keep_sep">true</xsl:with-param>
2066
- </xsl:call-template>
2067
- </xsl:variable>
2068
- <xsl:for-each select="xalan:nodeset($v_date)/mnx:item">
2069
- <xsl:choose>
2070
- <xsl:when test=". = '-'"><fo:inline font-weight="normal"><xsl:value-of select="."/></fo:inline></xsl:when>
2071
- <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
2072
- </xsl:choose>
2073
- </xsl:for-each>
2074
- </fo:block>
2075
- </fo:block>
2076
- </xsl:if>
2077
- </fo:block>
2053
+ <xsl:if test="$stage-abbreviation = 'DIS' or $stage-abbreviation = 'DAMD' or $stage-abbreviation = 'DAM' or $stagename_abbreviation = 'DIS' or $stage-abbreviation = 'FDIS' or $stage-abbreviation = 'FDAMD' or $stage-abbreviation = 'FDAM' or $stagename_abbreviation = 'FDIS'">
2054
+
2055
+ <fo:block margin-bottom="3mm">
2056
+ <!-- Voting begins on: -->
2057
+ <xsl:value-of select="concat($i18n_voting_begins_on, ':')"/>
2058
+ <fo:block font-weight="bold">
2059
+ <xsl:variable name="v_date">
2060
+ <xsl:call-template name="split">
2061
+ <xsl:with-param name="pText">
2062
+ <xsl:call-template name="insertVoteStarted"/>
2063
+ </xsl:with-param>
2064
+ <xsl:with-param name="sep" select="'-'"/>
2065
+ <xsl:with-param name="keep_sep">true</xsl:with-param>
2066
+ </xsl:call-template>
2067
+ </xsl:variable>
2068
+ <xsl:for-each select="xalan:nodeset($v_date)/mnx:item">
2069
+ <xsl:choose>
2070
+ <xsl:when test=". = '-'"><fo:inline font-weight="normal"><xsl:value-of select="."/></fo:inline></xsl:when>
2071
+ <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
2072
+ </xsl:choose>
2073
+ </xsl:for-each>
2074
+ </fo:block>
2075
+ </fo:block>
2076
+
2077
+ <fo:block margin-bottom="3mm">
2078
+ <!-- Voting terminates on: -->
2079
+ <xsl:value-of select="concat($i18n_voting_terminates_on, ':')"/>
2080
+ <fo:block font-weight="bold">
2081
+ <xsl:variable name="v_date">
2082
+ <xsl:call-template name="split">
2083
+ <xsl:with-param name="pText">
2084
+ <xsl:call-template name="insertVoteEnded"/>
2085
+ </xsl:with-param>
2086
+ <xsl:with-param name="sep" select="'-'"/>
2087
+ <xsl:with-param name="keep_sep">true</xsl:with-param>
2088
+ </xsl:call-template>
2089
+ </xsl:variable>
2090
+ <xsl:for-each select="xalan:nodeset($v_date)/mnx:item">
2091
+ <xsl:choose>
2092
+ <xsl:when test=". = '-'"><fo:inline font-weight="normal"><xsl:value-of select="."/></fo:inline></xsl:when>
2093
+ <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
2094
+ </xsl:choose>
2095
+ </xsl:for-each>
2096
+ </fo:block>
2097
+ </fo:block>
2098
+ </xsl:if>
2099
+ </fo:block>
2100
+ </fo:table-cell>
2101
+ </fo:table-row>
2102
+ <fo:table-row height="85mm">
2103
+ <fo:table-cell padding-left="-1mm" display-align="after">
2104
+ <fo:block font-size="7pt" margin-right="20mm" font-family="Cambria">
2105
+ <xsl:if test="$lang = 'ru'">
2106
+ <xsl:attribute name="margin-right">10mm</xsl:attribute>
2107
+ </xsl:if>
2108
+ <xsl:call-template name="insertDraftComments"/>
2109
+ </fo:block>
2110
+ </fo:table-cell>
2111
+ </fo:table-row>
2112
+ </fo:table-body>
2113
+ </fo:table>
2078
2114
 
2079
2115
  </fo:table-cell>
2080
2116
  </fo:table-row>
@@ -2147,14 +2183,7 @@
2147
2183
  </xsl:if>
2148
2184
  </fo:block>
2149
2185
  </fo:table-cell>
2150
- <fo:table-cell number-columns-spanned="2" padding-top="-3mm" padding-left="5mm" display-align="after">
2151
- <xsl:if test="$lang = 'fr'">
2152
- <xsl:attribute name="padding-top">-18mm</xsl:attribute>
2153
- </xsl:if>
2154
- <fo:block font-size="7pt" margin-right="20mm" font-family="Cambria">
2155
- <xsl:call-template name="insertDraftComments"/>
2156
- </fo:block>
2157
- </fo:table-cell>
2186
+
2158
2187
  </fo:table-row>
2159
2188
 
2160
2189
  <fo:table-row height="13mm">
@@ -2199,10 +2228,14 @@
2199
2228
  <xsl:if test="$stage-abbreviation = 'DAMD' or $stage-abbreviation = 'DAM'">
2200
2229
  <xsl:attribute name="font-size">7pt</xsl:attribute>
2201
2230
  </xsl:if>
2202
- <!-- margin-top="-30mm" -->
2203
- <fo:block> <!-- margin-top="-100mm" -->
2231
+ <!-- <fo:block>
2204
2232
  <xsl:call-template name="insertDraftComments"/>
2205
- </fo:block>
2233
+ </fo:block> -->
2234
+ <fo:block-container position="absolute" top="-47mm" width="52mm" height="100mm" role="SKIP">
2235
+ <fo:block>
2236
+ <xsl:call-template name="insertDraftComments"/>
2237
+ </fo:block>
2238
+ </fo:block-container>
2206
2239
  </fo:table-cell>
2207
2240
  <fo:table-cell role="SKIP">
2208
2241
  <fo:block role="SKIP"><fo:wrapper role="artifact"> </fo:wrapper></fo:block>
@@ -2252,46 +2285,10 @@
2252
2285
  </xsl:choose>
2253
2286
  </xsl:variable>
2254
2287
 
2255
- <xsl:for-each select="/mn:metanorma/mn:bibdata/mn:copyright/mn:owner/mn:organization">
2256
- <xsl:choose>
2257
- <xsl:when test="mn:logo/mn:image">
2258
- <xsl:apply-templates select="mn:logo/mn:image"/>
2259
- </xsl:when>
2260
- <xsl:when test="mn:abbreviation = 'ISO'">
2261
- <xsl:choose>
2262
- <xsl:when test="$layoutVersion = '1989' and $revision_date_num &lt; 19930101">
2263
- <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-ISO-Logo-1987))}" content-height="{$content-height}mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image ISO Logo"/>
2264
- </xsl:when>
2265
- <xsl:otherwise>
2266
- <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-ISO-Logo))}" content-height="{$content-height}mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image ISO Logo"/>
2267
- </xsl:otherwise>
2268
- </xsl:choose>
2269
- </xsl:when>
2270
- <xsl:when test="mn:abbreviation = 'IEC'">
2271
- <xsl:choose>
2272
- <xsl:when test="$layoutVersion = '1989' and $revision_date_num &lt; 19930101">
2273
- <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-IEC-Logo-1989))}" content-height="{$content-height}mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image IEC Logo"/>
2274
- </xsl:when>
2275
- <xsl:otherwise>
2276
- <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-IEC-Logo))}" content-height="{$content-height}mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image IEC Logo"/>
2277
- </xsl:otherwise>
2278
- </xsl:choose>
2279
- </xsl:when>
2280
- <xsl:when test="mn:abbreviation = 'IEEE'"/>
2281
- <xsl:when test="mn:abbreviation = 'IDF' or mn:name = 'IDF'">
2282
- <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-IDF-Logo))}" content-height="{$content-height}mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image IDF Logo"/>
2283
- </xsl:when>
2284
- <xsl:otherwise/>
2285
- </xsl:choose>
2286
- <xsl:if test="position() != last()">
2287
- <fo:inline padding-right="1mm" role="SKIP"> </fo:inline>
2288
- </xsl:if>
2289
- </xsl:for-each>
2290
- <xsl:if test="$copyrightAbbrIEEE != ''">
2291
- <fo:block>
2292
- <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-IEEE-Logo))}" content-height="11mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image {@alt}"/>
2293
- </fo:block>
2294
- </xsl:if>
2288
+ <xsl:call-template name="insertLogoImages">
2289
+ <xsl:with-param name="content-height" select="$content-height"/>
2290
+ </xsl:call-template>
2291
+
2295
2292
  </fo:block>
2296
2293
  </fo:table-cell>
2297
2294
  <fo:table-cell display-align="center" role="SKIP">
@@ -2349,7 +2346,7 @@
2349
2346
  </fo:table-cell>
2350
2347
  <fo:table-cell>
2351
2348
  <fo:block margin-bottom="3mm">
2352
- <xsl:copy-of select="$editorialgroup"/>
2349
+ <xsl:copy-of select="$approvalgroup"/>
2353
2350
  </fo:block>
2354
2351
  </fo:table-cell>
2355
2352
  <fo:table-cell>
@@ -2582,7 +2579,7 @@
2582
2579
  <fo:table-row role="SKIP">
2583
2580
  <fo:table-cell role="SKIP">
2584
2581
  <fo:block>
2585
- <xsl:copy-of select="$editorialgroup"/>
2582
+ <xsl:copy-of select="$approvalgroup"/>
2586
2583
  </fo:block>
2587
2584
  </fo:table-cell>
2588
2585
  <fo:table-cell role="SKIP">
@@ -2612,7 +2609,7 @@
2612
2609
  <xsl:if test="$stage-abbreviation = 'FDIS' or $stage-abbreviation = 'FDAMD' or $stage-abbreviation = 'FDAM' or $stagename_abbreviation = 'FDIS'">
2613
2610
  <fo:block-container border="0.5mm solid black" width="51mm" role="SKIP">
2614
2611
  <fo:block margin="2mm" role="SKIP">
2615
- <fo:block margin-bottom="8pt"><xsl:copy-of select="$editorialgroup"/></fo:block>
2612
+ <fo:block margin-bottom="8pt"><xsl:copy-of select="$approvalgroup"/></fo:block>
2616
2613
  <fo:block margin-bottom="6pt"><xsl:copy-of select="$secretariat"/></fo:block>
2617
2614
  <fo:block margin-bottom="6pt">
2618
2615
  <!-- Voting begins on: -->
@@ -2851,10 +2848,10 @@
2851
2848
  </xsl:otherwise>
2852
2849
  </xsl:choose>
2853
2850
 
2854
- <xsl:if test="normalize-space($editorialgroup) != ''">
2851
+ <xsl:if test="normalize-space($approvalgroup) != ''">
2855
2852
  <!-- ISO/TC 34/SC 4/WG 3 -->
2856
2853
  <fo:block margin-bottom="12pt">
2857
- <xsl:copy-of select="$editorialgroup"/>
2854
+ <xsl:copy-of select="$approvalgroup"/>
2858
2855
  </fo:block>
2859
2856
  </xsl:if>
2860
2857
 
@@ -2964,86 +2961,137 @@
2964
2961
  </xsl:choose>
2965
2962
  </xsl:template>
2966
2963
 
2967
- <xsl:template name="insertLogoImages2024">
2968
- <xsl:variable name="content-height">20</xsl:variable>
2969
- <xsl:for-each select="/mn:metanorma/mn:bibdata/mn:copyright/mn:owner/mn:organization">
2970
- <xsl:variable name="owner_number" select="count(ancestor::mn:copyright/preceding-sibling::mn:copyright) + 1"/>
2971
- <!-- https://github.com/metanorma/metanorma-iso/issues/1386 -->
2972
- <xsl:variable name="logo_width_">
2973
- <xsl:for-each select="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/*[starts-with(local-name(), 'logo-publisher-pdf-width-')]">
2974
- <xsl:if test="local-name() = concat('logo-publisher-pdf-width-', $owner_number)">
2975
- <xsl:value-of select="."/>
2964
+ <xsl:template name="insertLogoImages">
2965
+ <xsl:param name="content-height"/>
2966
+ <xsl:choose>
2967
+ <xsl:when test="mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'author']/mn:description[normalize-space(@language) = ''] = 'Technical committee']/mn:organization">
2968
+ <xsl:for-each select="mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'author']/mn:description[normalize-space(@language) = ''] = 'Technical committee']/mn:organization">
2969
+
2970
+ <xsl:variable name="items">
2971
+ <xsl:call-template name="split_abbreviation"/>
2972
+ </xsl:variable>
2973
+
2974
+ <xsl:for-each select="xalan:nodeset($items)//mnx:item">
2975
+ <xsl:call-template name="insertLogoImage">
2976
+ <xsl:with-param name="content-height" select="$content-height"/>
2977
+ </xsl:call-template>
2978
+ <xsl:if test="position() != last()">
2979
+ <fo:inline padding-right="1mm" role="SKIP"> </fo:inline>
2980
+ </xsl:if>
2981
+ </xsl:for-each>
2982
+ <xsl:if test="position() != last()">
2983
+ <fo:inline padding-right="1mm" role="SKIP"> </fo:inline>
2976
2984
  </xsl:if>
2977
2985
  </xsl:for-each>
2978
- </xsl:variable>
2979
- <xsl:variable name="logo_width">
2980
- <xsl:choose>
2981
- <xsl:when test="normalize-space($logo_width_) != '' and normalize-space(translate($logo_width_, '1234567890', '')) = ''"><xsl:value-of select="$logo_width_"/>px</xsl:when>
2982
- <xsl:otherwise><xsl:value-of select="$logo_width_"/></xsl:otherwise>
2983
- </xsl:choose>
2984
- </xsl:variable>
2985
- <xsl:variable name="logo_height_">
2986
- <xsl:for-each select="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/*[starts-with(local-name(), 'logo-publisher-pdf-height-')]">
2987
- <xsl:if test="local-name() = concat('logo-publisher-pdf-height-', $owner_number)">
2988
- <xsl:value-of select="."/>
2986
+ </xsl:when>
2987
+ <xsl:otherwise>
2988
+ <xsl:for-each select="/mn:metanorma/mn:bibdata/mn:copyright/mn:owner/mn:organization">
2989
+ <xsl:call-template name="insertLogoImage">
2990
+ <xsl:with-param name="content-height" select="$content-height"/>
2991
+ </xsl:call-template>
2992
+ <xsl:if test="position() != last()">
2993
+ <fo:inline padding-right="1mm" role="SKIP"> </fo:inline>
2989
2994
  </xsl:if>
2990
2995
  </xsl:for-each>
2991
- </xsl:variable>
2992
- <xsl:variable name="logo_height">
2993
- <xsl:choose>
2994
- <xsl:when test="normalize-space($logo_height_) != '' and normalize-space(translate($logo_height_, '1234567890', '')) = ''"><xsl:value-of select="$logo_height_"/>px</xsl:when>
2995
- <xsl:otherwise><xsl:value-of select="$logo_height_"/></xsl:otherwise>
2996
- </xsl:choose>
2997
- </xsl:variable>
2998
- <!-- <fo:block>logo_width=<xsl:value-of select="$logo_width"/></fo:block>
2999
- <fo:block>logo_height=<xsl:value-of select="$logo_height"/></fo:block> -->
2996
+ </xsl:otherwise>
2997
+ </xsl:choose>
2998
+ <xsl:if test="$copyrightAbbrIEEE != ''">
2999
+ <fo:block>
3000
+ <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-IEEE-Logo))}" content-height="11mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image {@alt}"/>
3001
+ </fo:block>
3002
+ </xsl:if>
3003
+ </xsl:template>
3004
+
3005
+ <xsl:template name="split_abbreviation">
3006
+ <xsl:variable name="items">
3000
3007
  <xsl:choose>
3001
- <xsl:when test="mn:logo/mn:image">
3002
- <xsl:choose>
3003
- <xsl:when test="normalize-space($logo_width) != '' or normalize-space($logo_height) != ''">
3004
- <xsl:variable name="logo_image">
3005
- <xsl:for-each select="mn:logo/mn:image"> <!-- set context to logo/image -->
3006
- <xsl:element name="logo" namespace="{$namespace_full}">
3007
- <xsl:element name="image" namespace="{$namespace_full}">
3008
- <xsl:copy-of select="@*"/>
3009
- <xsl:if test="$logo_width != ''">
3010
- <xsl:attribute name="width"><xsl:value-of select="$logo_width"/></xsl:attribute>
3011
- </xsl:if>
3012
- <xsl:if test="$logo_height != ''">
3013
- <xsl:attribute name="height"><xsl:value-of select="$logo_height"/></xsl:attribute>
3014
- </xsl:if>
3015
- <xsl:copy-of select="node()"/>
3016
- </xsl:element>
3017
- </xsl:element>
3018
- </xsl:for-each>
3019
- </xsl:variable>
3020
- <xsl:apply-templates select="xalan:nodeset($logo_image)//mn:logo/mn:image"/>
3021
- </xsl:when>
3022
- <xsl:otherwise>
3023
- <xsl:apply-templates select="mn:logo/mn:image"/>
3024
- </xsl:otherwise>
3025
- </xsl:choose>
3026
- </xsl:when>
3027
- <xsl:when test="mn:abbreviation = 'ISO'">
3028
- <fo:instream-foreign-object content-height="{$content-height}mm" fox:alt-text="Image ISO Logo">
3029
- <xsl:copy-of select="$Image-ISO-Logo-SVG"/>
3030
- </fo:instream-foreign-object>
3031
- </xsl:when>
3032
- <xsl:when test="mn:abbreviation = 'IEC'">
3033
- <fo:instream-foreign-object content-height="{$content-height}mm" fox:alt-text="Image IEC Logo">
3034
- <xsl:copy-of select="$Image-IEC-Logo-SVG"/>
3035
- </fo:instream-foreign-object>
3036
- </xsl:when>
3037
- <xsl:when test="mn:abbreviation = 'IEEE'"/>
3038
- <xsl:when test="mn:abbreviation = 'IDF' or mn:name = 'IDF'">
3039
- <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-IDF-Logo))}" content-height="{$content-height}mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image IDF Logo"/>
3008
+ <!-- ISO/IEC -->
3009
+ <xsl:when test="contains(mn:abbreviation, '/')">
3010
+ <xsl:call-template name="split">
3011
+ <xsl:with-param name="pText" select="mn:abbreviation"/>
3012
+ <xsl:with-param name="sep">/</xsl:with-param>
3013
+ </xsl:call-template>
3040
3014
  </xsl:when>
3041
- <xsl:otherwise/>
3015
+ <xsl:otherwise>
3016
+ <mnx:item><xsl:value-of select="mn:abbreviation"/></mnx:item>
3017
+ </xsl:otherwise>
3042
3018
  </xsl:choose>
3043
- <xsl:if test="position() != last()">
3044
- <fo:inline padding-right="1mm" role="SKIP"> </fo:inline>
3045
- </xsl:if>
3019
+ </xsl:variable>
3020
+ <xsl:for-each select="xalan:nodeset($items)//mnx:item">
3021
+ <xsl:copy>
3022
+ <mn:abbreviation><xsl:value-of select="."/></mn:abbreviation>
3023
+ </xsl:copy>
3046
3024
  </xsl:for-each>
3025
+ </xsl:template>
3026
+
3027
+ <xsl:template name="insertLogoImage">
3028
+ <xsl:param name="content-height"/>
3029
+ <xsl:choose>
3030
+ <xsl:when test="mn:logo/mn:image">
3031
+ <xsl:apply-templates select="mn:logo/mn:image"/>
3032
+ </xsl:when>
3033
+ <xsl:when test="mn:abbreviation = 'ISO'">
3034
+ <xsl:choose>
3035
+ <xsl:when test="$layoutVersion = '1989' and $revision_date_num &lt; 19930101">
3036
+ <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-ISO-Logo-1987))}" content-height="{$content-height}mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image ISO Logo"/>
3037
+ </xsl:when>
3038
+ <xsl:otherwise>
3039
+ <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-ISO-Logo))}" content-height="{$content-height}mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image ISO Logo"/>
3040
+ </xsl:otherwise>
3041
+ </xsl:choose>
3042
+ </xsl:when>
3043
+ <xsl:when test="mn:abbreviation = 'IEC'">
3044
+ <xsl:choose>
3045
+ <xsl:when test="$layoutVersion = '1989' and $revision_date_num &lt; 19930101">
3046
+ <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-IEC-Logo-1989))}" content-height="{$content-height}mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image IEC Logo"/>
3047
+ </xsl:when>
3048
+ <xsl:otherwise>
3049
+ <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-IEC-Logo))}" content-height="{$content-height}mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image IEC Logo"/>
3050
+ </xsl:otherwise>
3051
+ </xsl:choose>
3052
+ </xsl:when>
3053
+ <xsl:when test="mn:abbreviation = 'IEEE'"/>
3054
+ <xsl:when test="mn:abbreviation = 'IDF' or mn:name = 'IDF'">
3055
+ <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-IDF-Logo))}" content-height="{$content-height}mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image IDF Logo"/>
3056
+ </xsl:when>
3057
+ <xsl:otherwise/>
3058
+ </xsl:choose>
3059
+ </xsl:template>
3060
+
3061
+ <xsl:template name="insertLogoImages2024">
3062
+ <xsl:variable name="content-height">20</xsl:variable>
3063
+ <xsl:choose>
3064
+ <xsl:when test="mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'author']/mn:description[normalize-space(@language) = ''] = 'Technical committee']/mn:organization">
3065
+ <xsl:for-each select="mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'author']/mn:description[normalize-space(@language) = ''] = 'Technical committee']/mn:organization">
3066
+
3067
+ <xsl:variable name="items">
3068
+ <xsl:call-template name="split_abbreviation"/>
3069
+ </xsl:variable>
3070
+
3071
+ <xsl:for-each select="xalan:nodeset($items)//mnx:item">
3072
+ <xsl:call-template name="insertLogoImage2024">
3073
+ <xsl:with-param name="content-height" select="$content-height"/>
3074
+ </xsl:call-template>
3075
+ <xsl:if test="position() != last()">
3076
+ <fo:inline padding-right="1mm" role="SKIP"> </fo:inline>
3077
+ </xsl:if>
3078
+ </xsl:for-each>
3079
+ <xsl:if test="position() != last()">
3080
+ <fo:inline padding-right="1mm" role="SKIP"> </fo:inline>
3081
+ </xsl:if>
3082
+ </xsl:for-each>
3083
+ </xsl:when>
3084
+ <xsl:otherwise>
3085
+ <xsl:for-each select="/mn:metanorma/mn:bibdata/mn:copyright/mn:owner/mn:organization">
3086
+ <xsl:call-template name="insertLogoImage2024">
3087
+ <xsl:with-param name="content-height" select="$content-height"/>
3088
+ </xsl:call-template>
3089
+ <xsl:if test="position() != last()">
3090
+ <fo:inline padding-right="1mm" role="SKIP"> </fo:inline>
3091
+ </xsl:if>
3092
+ </xsl:for-each>
3093
+ </xsl:otherwise>
3094
+ </xsl:choose>
3047
3095
  <xsl:if test="$copyrightAbbrIEEE != ''">
3048
3096
  <fo:block margin-top="2mm">
3049
3097
  <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-IEEE-Logo2))}" content-width="{$content-height * 2 + 2}mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image IEEE Logo"/>
@@ -3051,6 +3099,84 @@
3051
3099
  </xsl:if>
3052
3100
  </xsl:template>
3053
3101
 
3102
+ <xsl:template name="insertLogoImage2024">
3103
+ <xsl:param name="content-height"/>
3104
+ <xsl:variable name="owner_number" select="count(ancestor::mn:copyright/preceding-sibling::mn:copyright) + 1"/>
3105
+ <!-- https://github.com/metanorma/metanorma-iso/issues/1386 -->
3106
+ <xsl:variable name="logo_width_">
3107
+ <xsl:for-each select="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/*[starts-with(local-name(), 'logo-publisher-pdf-width-')]">
3108
+ <xsl:if test="local-name() = concat('logo-publisher-pdf-width-', $owner_number)">
3109
+ <xsl:value-of select="."/>
3110
+ </xsl:if>
3111
+ </xsl:for-each>
3112
+ </xsl:variable>
3113
+ <xsl:variable name="logo_width">
3114
+ <xsl:choose>
3115
+ <xsl:when test="normalize-space($logo_width_) != '' and normalize-space(translate($logo_width_, '1234567890', '')) = ''"><xsl:value-of select="$logo_width_"/>px</xsl:when>
3116
+ <xsl:otherwise><xsl:value-of select="$logo_width_"/></xsl:otherwise>
3117
+ </xsl:choose>
3118
+ </xsl:variable>
3119
+ <xsl:variable name="logo_height_">
3120
+ <xsl:for-each select="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/*[starts-with(local-name(), 'logo-publisher-pdf-height-')]">
3121
+ <xsl:if test="local-name() = concat('logo-publisher-pdf-height-', $owner_number)">
3122
+ <xsl:value-of select="."/>
3123
+ </xsl:if>
3124
+ </xsl:for-each>
3125
+ </xsl:variable>
3126
+ <xsl:variable name="logo_height">
3127
+ <xsl:choose>
3128
+ <xsl:when test="normalize-space($logo_height_) != '' and normalize-space(translate($logo_height_, '1234567890', '')) = ''"><xsl:value-of select="$logo_height_"/>px</xsl:when>
3129
+ <xsl:otherwise><xsl:value-of select="$logo_height_"/></xsl:otherwise>
3130
+ </xsl:choose>
3131
+ </xsl:variable>
3132
+ <!-- <fo:block>logo_width=<xsl:value-of select="$logo_width"/></fo:block>
3133
+ <fo:block>logo_height=<xsl:value-of select="$logo_height"/></fo:block> -->
3134
+ <xsl:choose>
3135
+ <xsl:when test="mn:logo/mn:image">
3136
+ <xsl:choose>
3137
+ <xsl:when test="normalize-space($logo_width) != '' or normalize-space($logo_height) != ''">
3138
+ <xsl:variable name="logo_image">
3139
+ <xsl:for-each select="mn:logo/mn:image"> <!-- set context to logo/image -->
3140
+ <xsl:element name="logo" namespace="{$namespace_full}">
3141
+ <xsl:element name="image" namespace="{$namespace_full}">
3142
+ <xsl:copy-of select="@*"/>
3143
+ <xsl:if test="$logo_width != ''">
3144
+ <xsl:attribute name="width"><xsl:value-of select="$logo_width"/></xsl:attribute>
3145
+ </xsl:if>
3146
+ <xsl:if test="$logo_height != ''">
3147
+ <xsl:attribute name="height"><xsl:value-of select="$logo_height"/></xsl:attribute>
3148
+ </xsl:if>
3149
+ <xsl:copy-of select="node()"/>
3150
+ </xsl:element>
3151
+ </xsl:element>
3152
+ </xsl:for-each>
3153
+ </xsl:variable>
3154
+ <xsl:apply-templates select="xalan:nodeset($logo_image)//mn:logo/mn:image"/>
3155
+ </xsl:when>
3156
+ <xsl:otherwise>
3157
+ <xsl:apply-templates select="mn:logo/mn:image"/>
3158
+ </xsl:otherwise>
3159
+ </xsl:choose>
3160
+ </xsl:when>
3161
+ <xsl:when test="mn:abbreviation = 'ISO'">
3162
+ <fo:instream-foreign-object content-height="{$content-height}mm" fox:alt-text="Image ISO Logo">
3163
+ <xsl:copy-of select="$Image-ISO-Logo-SVG"/>
3164
+ </fo:instream-foreign-object>
3165
+ </xsl:when>
3166
+ <xsl:when test="mn:abbreviation = 'IEC'">
3167
+ <fo:instream-foreign-object content-height="{$content-height}mm" fox:alt-text="Image IEC Logo">
3168
+ <xsl:copy-of select="$Image-IEC-Logo-SVG"/>
3169
+ </fo:instream-foreign-object>
3170
+ </xsl:when>
3171
+ <xsl:when test="mn:abbreviation = 'IEEE'"/>
3172
+ <xsl:when test="mn:abbreviation = 'IDF' or mn:name = 'IDF'">
3173
+ <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-IDF-Logo))}" content-height="{$content-height}mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image IDF Logo"/>
3174
+ </xsl:when>
3175
+ <xsl:otherwise/>
3176
+ </xsl:choose>
3177
+
3178
+ </xsl:template>
3179
+
3054
3180
  <xsl:template name="insertTitlesLangMain">
3055
3181
  <xsl:apply-templates select="/mn:metanorma/mn:bibdata/mn:title[@language = $lang and @type = 'title-intro']"/>
3056
3182
  <xsl:apply-templates select="/mn:metanorma/mn:bibdata/mn:title[@language = $lang and @type = 'title-main']"/>
@@ -15773,7 +15899,7 @@
15773
15899
 
15774
15900
  <xsl:template name="insertFootnoteSeparatorCommon">
15775
15901
  <xsl:param name="leader_length">30%</xsl:param>
15776
- <fo:static-content flow-name="xsl-footnote-separator">
15902
+ <fo:static-content flow-name="xsl-footnote-separator" role="artifact">
15777
15903
  <fo:block>
15778
15904
  <fo:leader leader-pattern="rule" leader-length="{$leader_length}"/>
15779
15905
  </fo:block>
@@ -16674,12 +16800,18 @@
16674
16800
  <xsl:attribute name="margin-bottom">18pt</xsl:attribute>
16675
16801
  </xsl:attribute-set>
16676
16802
 
16803
+ <xsl:template name="refine_toc-title-style">
16804
+ </xsl:template>
16805
+
16677
16806
  <xsl:attribute-set name="toc-title-page-style">
16678
16807
  <xsl:attribute name="font-weight">normal</xsl:attribute>
16679
16808
  <xsl:attribute name="font-size">10pt</xsl:attribute>
16680
16809
  <xsl:attribute name="role">SKIP</xsl:attribute>
16681
16810
  </xsl:attribute-set> <!-- toc-title-page-style -->
16682
16811
 
16812
+ <xsl:template name="refine_toc-title-page-style">
16813
+ </xsl:template>
16814
+
16683
16815
  <xsl:attribute-set name="toc-item-block-style">
16684
16816
  </xsl:attribute-set>
16685
16817
 
@@ -16709,7 +16841,7 @@
16709
16841
  <xsl:attribute-set name="toc-leader-style">
16710
16842
  <xsl:attribute name="font-size">9pt</xsl:attribute>
16711
16843
  <xsl:attribute name="font-weight">normal</xsl:attribute>
16712
- <xsl:attribute name="leader-pattern">dots</xsl:attribute>
16844
+ <xsl:attribute name="leader-pattern">dots</xsl:attribute>
16713
16845
  </xsl:attribute-set> <!-- END: toc-leader-style -->
16714
16846
 
16715
16847
  <xsl:attribute-set name="toc-pagenumber-style">
@@ -16722,6 +16854,9 @@
16722
16854
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
16723
16855
  </xsl:attribute-set>
16724
16856
 
16857
+ <xsl:template name="refine_toc-listof-title-style">
16858
+ </xsl:template>
16859
+
16725
16860
  <xsl:attribute-set name="toc-listof-item-block-style">
16726
16861
  </xsl:attribute-set>
16727
16862
 
@@ -17069,7 +17204,7 @@
17069
17204
  </xsl:if>
17070
17205
 
17071
17206
  <xsl:for-each select="$contents_nodes/mnx:doc">
17072
- <fo:bookmark internal-destination="{contents/mnx:item[@display = 'true'][1]/@id}" starting-state="hide">
17207
+ <fo:bookmark internal-destination="{mnx:contents/mnx:item[@display = 'true'][1]/@id}" starting-state="hide">
17073
17208
  <xsl:if test="@bundle = 'true'">
17074
17209
  <xsl:attribute name="internal-destination"><xsl:value-of select="@firstpage_id"/></xsl:attribute>
17075
17210
  </xsl:if>
@@ -17103,7 +17238,7 @@
17103
17238
  </xsl:choose>
17104
17239
  </fo:bookmark-title>
17105
17240
 
17106
- <xsl:apply-templates select="contents/mnx:item" mode="bookmark"/>
17241
+ <xsl:apply-templates select="mnx:contents/mnx:item" mode="bookmark"/>
17107
17242
 
17108
17243
  <xsl:call-template name="insertFigureBookmarks">
17109
17244
  <xsl:with-param name="contents" select="mnx:contents"/>
@@ -18265,6 +18400,7 @@
18265
18400
  <xsl:if test="$pos &gt;= 2">
18266
18401
  <xsl:attribute name="space-before">18pt</xsl:attribute>
18267
18402
  </xsl:if>
18403
+ <xsl:attribute name="role">Sect</xsl:attribute>
18268
18404
  </xsl:template> <!-- sections_element_style -->
18269
18405
 
18270
18406
  <xsl:template match="//mn:metanorma/mn:preface/*" priority="2" name="preface_node"> <!-- /*/mn:preface/* -->
@@ -18278,6 +18414,7 @@
18278
18414
 
18279
18415
  <xsl:call-template name="setNamedDestination"/>
18280
18416
  <fo:block>
18417
+ <xsl:attribute name="role">Sect</xsl:attribute>
18281
18418
  <xsl:call-template name="setId"/>
18282
18419
  <xsl:call-template name="addReviewHelper"/>
18283
18420
  <xsl:apply-templates/>
@@ -18339,6 +18476,7 @@
18339
18476
  <xsl:call-template name="setNamedDestination"/>
18340
18477
 
18341
18478
  <fo:block id="{@id}">
18479
+ <xsl:attribute name="role">Sect</xsl:attribute>
18342
18480
 
18343
18481
  <xsl:call-template name="setBlockSpanAll"/>
18344
18482