metanorma-ogc 2.9.8 → 2.9.9

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.
@@ -34,133 +34,156 @@
34
34
  <xsl:variable name="copyright-owner" select="java:toUpperCase(java:java.lang.String.new(/mn:metanorma/mn:bibdata/mn:copyright/mn:owner/mn:organization/mn:name))"/>
35
35
  <copyright-owner><xsl:value-of select="$copyright-owner"/></copyright-owner>
36
36
 
37
- </mnx:doc>
38
- </xsl:for-each>
39
- </xsl:for-each>
40
- </xsl:variable>
41
- <xsl:variable name="variables" select="xalan:nodeset($variables_)"/>
37
+ <!---examples: 2013, 2024 -->
38
+ <xsl:variable name="document_scheme" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:document-scheme)"/>
42
39
 
43
- <xsl:variable name="layoutVersion_">
44
- <xsl:choose>
45
- <xsl:when test="$document_scheme = '' or $document_scheme = '2022'">2022</xsl:when>
46
- <xsl:otherwise>2018</xsl:otherwise>
47
- </xsl:choose>
48
- </xsl:variable>
49
- <xsl:variable name="layoutVersion" select="normalize-space($layoutVersion_)"/>
40
+ <xsl:variable name="layoutVersion_">
41
+ <xsl:choose>
42
+ <xsl:when test="$document_scheme = '' or $document_scheme = '2022'">2022</xsl:when>
43
+ <xsl:otherwise>2018</xsl:otherwise>
44
+ </xsl:choose>
45
+ </xsl:variable>
46
+ <xsl:variable name="layoutVersion" select="normalize-space($layoutVersion_)"/>
50
47
 
51
- <xsl:variable name="presentation_metadata_color_text" select="normalize-space(//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-text)"/>
52
- <xsl:variable name="color_main">
53
- <xsl:choose>
54
- <xsl:when test="$presentation_metadata_color_text != ''"><xsl:value-of select="$presentation_metadata_color_text"/></xsl:when>
55
- <xsl:otherwise>rgb(88, 89, 91)</xsl:otherwise>
56
- </xsl:choose>
57
- </xsl:variable>
48
+ <xsl:variable name="presentation_metadata_color_text" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-text)"/>
49
+ <xsl:variable name="color_main">
50
+ <xsl:choose>
51
+ <xsl:when test="$presentation_metadata_color_text != ''"><xsl:value-of select="$presentation_metadata_color_text"/></xsl:when>
52
+ <xsl:otherwise>rgb(88, 89, 91)</xsl:otherwise>
53
+ </xsl:choose>
54
+ </xsl:variable>
55
+ <color_main><xsl:value-of select="$color_main"/></color_main>
58
56
 
59
- <xsl:variable name="presentation_metadata_color_secondary_shade_1" select="normalize-space(//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-secondary-shade-1)"/>
60
- <xsl:variable name="color_design">
61
- <xsl:choose>
62
- <xsl:when test="$presentation_metadata_color_secondary_shade_1 != ''"><xsl:value-of select="$presentation_metadata_color_secondary_shade_1"/></xsl:when>
63
- <xsl:when test="$layoutVersion = '2022'">rgb(0, 177, 255)</xsl:when>
64
- <xsl:otherwise>rgb(237, 193, 35)</xsl:otherwise>
65
- </xsl:choose>
66
- </xsl:variable>
57
+ <xsl:variable name="presentation_metadata_color_secondary_shade_1" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-secondary-shade-1)"/>
58
+ <xsl:variable name="color_design">
59
+ <xsl:choose>
60
+ <xsl:when test="$presentation_metadata_color_secondary_shade_1 != ''"><xsl:value-of select="$presentation_metadata_color_secondary_shade_1"/></xsl:when>
61
+ <xsl:when test="$layoutVersion = '2022'">rgb(0, 177, 255)</xsl:when>
62
+ <xsl:otherwise>rgb(237, 193, 35)</xsl:otherwise>
63
+ </xsl:choose>
64
+ </xsl:variable>
65
+ <color_design><xsl:value-of select="$color_design"/></color_design>
67
66
 
68
- <xsl:variable name="presentation_metadata_color_secondary_shade_2" select="normalize-space(//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-secondary-shade-2)"/>
69
- <xsl:variable name="color_design_light">
70
- <xsl:choose>
71
- <xsl:when test="$presentation_metadata_color_secondary_shade_2 != ''"><xsl:value-of select="$presentation_metadata_color_secondary_shade_2"/></xsl:when>
72
- <xsl:when test="$layoutVersion = '2022'">rgb(0, 177, 255)</xsl:when>
73
- <xsl:otherwise>rgb(246, 223, 140)</xsl:otherwise>
74
- </xsl:choose>
75
- </xsl:variable>
67
+ <xsl:variable name="presentation_metadata_color_secondary_shade_2" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-secondary-shade-2)"/>
68
+ <xsl:variable name="color_design_light">
69
+ <xsl:choose>
70
+ <xsl:when test="$presentation_metadata_color_secondary_shade_2 != ''"><xsl:value-of select="$presentation_metadata_color_secondary_shade_2"/></xsl:when>
71
+ <xsl:when test="$layoutVersion = '2022'">rgb(0, 177, 255)</xsl:when>
72
+ <xsl:otherwise>rgb(246, 223, 140)</xsl:otherwise>
73
+ </xsl:choose>
74
+ </xsl:variable>
75
+ <color_design_light><xsl:value-of select="$color_design_light"/></color_design_light>
76
76
 
77
- <xsl:variable name="presentation_metadata_color_background_definition_term" select="normalize-space(//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-definition-term)"/>
78
- <xsl:variable name="color_dl_dt">
79
- <xsl:choose>
80
- <xsl:when test="$presentation_metadata_color_background_definition_term != ''"><xsl:value-of select="$presentation_metadata_color_background_definition_term"/></xsl:when>
81
- <xsl:otherwise>rgb(215, 243, 255)</xsl:otherwise>
82
- </xsl:choose>
83
- </xsl:variable>
77
+ <xsl:variable name="presentation_metadata_color_background_definition_term" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-definition-term)"/>
78
+ <xsl:variable name="color_dl_dt">
79
+ <xsl:choose>
80
+ <xsl:when test="$presentation_metadata_color_background_definition_term != ''"><xsl:value-of select="$presentation_metadata_color_background_definition_term"/></xsl:when>
81
+ <xsl:otherwise>rgb(215, 243, 255)</xsl:otherwise>
82
+ </xsl:choose>
83
+ </xsl:variable>
84
+ <color_dl_dt><xsl:value-of select="$color_dl_dt"/></color_dl_dt>
84
85
 
85
- <xsl:variable name="presentation_metadata_color_background_definition_description" select="normalize-space(//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-definition-description)"/>
86
- <xsl:variable name="color_dl_dd">
87
- <xsl:choose>
88
- <xsl:when test="$presentation_metadata_color_background_definition_description != ''"><xsl:value-of select="$presentation_metadata_color_background_definition_description"/></xsl:when>
89
- <xsl:otherwise>rgb(242, 251, 255)</xsl:otherwise>
90
- </xsl:choose>
91
- </xsl:variable>
86
+ <xsl:variable name="presentation_metadata_color_background_definition_description" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-definition-description)"/>
87
+ <xsl:variable name="color_dl_dd">
88
+ <xsl:choose>
89
+ <xsl:when test="$presentation_metadata_color_background_definition_description != ''"><xsl:value-of select="$presentation_metadata_color_background_definition_description"/></xsl:when>
90
+ <xsl:otherwise>rgb(242, 251, 255)</xsl:otherwise>
91
+ </xsl:choose>
92
+ </xsl:variable>
93
+ <color_dl_dd><xsl:value-of select="$color_dl_dd"/></color_dl_dd>
92
94
 
93
- <xsl:variable name="presentation_metadata_color_text_title" select="normalize-space(//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-text-title)"/>
94
- <xsl:variable name="color_text_title">
95
- <xsl:choose>
96
- <xsl:when test="$presentation_metadata_color_text_title != ''"><xsl:value-of select="$presentation_metadata_color_text_title"/></xsl:when>
97
- <xsl:otherwise>rgb(33, 55, 92)</xsl:otherwise>
98
- </xsl:choose>
99
- </xsl:variable>
95
+ <xsl:variable name="presentation_metadata_color_text_title" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-text-title)"/>
96
+ <xsl:variable name="color_text_title">
97
+ <xsl:choose>
98
+ <xsl:when test="$presentation_metadata_color_text_title != ''"><xsl:value-of select="$presentation_metadata_color_text_title"/></xsl:when>
99
+ <xsl:otherwise>rgb(33, 55, 92)</xsl:otherwise>
100
+ </xsl:choose>
101
+ </xsl:variable>
102
+ <color_text_title><xsl:value-of select="$color_text_title"/></color_text_title>
100
103
 
101
- <xsl:variable name="presentation_metadata_color_background_page" select="normalize-space(//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-page)"/>
102
- <xsl:variable name="color-background-page">
103
- <xsl:choose>
104
- <xsl:when test="$presentation_metadata_color_background_page != ''"><xsl:value-of select="$presentation_metadata_color_background_page"/></xsl:when>
105
- <xsl:otherwise>rgb(33, 55, 92)</xsl:otherwise>
106
- </xsl:choose>
107
- </xsl:variable>
104
+ <xsl:variable name="presentation_metadata_color_background_page" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-page)"/>
105
+ <xsl:variable name="color_background_page">
106
+ <xsl:choose>
107
+ <xsl:when test="$presentation_metadata_color_background_page != ''"><xsl:value-of select="$presentation_metadata_color_background_page"/></xsl:when>
108
+ <xsl:otherwise>rgb(33, 55, 92)</xsl:otherwise>
109
+ </xsl:choose>
110
+ </xsl:variable>
111
+ <color_background_page><xsl:value-of select="$color_background_page"/></color_background_page>
108
112
 
109
- <xsl:variable name="presentation_metadata_color_background_text_label_legacy" select="normalize-space(//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-text-label-legacy)"/>
110
- <xsl:variable name="color_background_blue">
111
- <xsl:choose>
112
- <xsl:when test="$presentation_metadata_color_background_text_label_legacy != ''"><xsl:value-of select="$presentation_metadata_color_background_text_label_legacy"/></xsl:when>
113
- <xsl:otherwise>rgb(33, 60, 107)</xsl:otherwise>
114
- </xsl:choose>
115
- </xsl:variable>
113
+ <xsl:variable name="presentation_metadata_color_background_text_label_legacy" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-text-label-legacy)"/>
114
+ <xsl:variable name="color_background_blue">
115
+ <xsl:choose>
116
+ <xsl:when test="$presentation_metadata_color_background_text_label_legacy != ''"><xsl:value-of select="$presentation_metadata_color_background_text_label_legacy"/></xsl:when>
117
+ <xsl:otherwise>rgb(33, 60, 107)</xsl:otherwise>
118
+ </xsl:choose>
119
+ </xsl:variable>
120
+ <color_background_blue><xsl:value-of select="$color_background_blue"/></color_background_blue>
116
121
 
117
- <xsl:variable name="presentation_metadata_color_background_term_preferred_label" select="normalize-space(//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-term-preferred-label)"/>
118
- <xsl:variable name="color_term_preferred">
119
- <xsl:choose>
120
- <xsl:when test="$presentation_metadata_color_background_term_preferred_label != ''"><xsl:value-of select="$presentation_metadata_color_background_term_preferred_label"/></xsl:when>
121
- <xsl:otherwise>rgb(249, 235, 187)</xsl:otherwise>
122
- </xsl:choose>
123
- </xsl:variable>
122
+ <xsl:variable name="presentation_metadata_color_background_term_preferred_label" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-term-preferred-label)"/>
123
+ <xsl:variable name="color_term_preferred">
124
+ <xsl:choose>
125
+ <xsl:when test="$presentation_metadata_color_background_term_preferred_label != ''"><xsl:value-of select="$presentation_metadata_color_background_term_preferred_label"/></xsl:when>
126
+ <xsl:otherwise>rgb(249, 235, 187)</xsl:otherwise>
127
+ </xsl:choose>
128
+ </xsl:variable>
129
+ <color_term_preferred><xsl:value-of select="$color_term_preferred"/></color_term_preferred>
124
130
 
125
- <xsl:variable name="presentation_metadata_color_background_term_deprecated_label" select="normalize-space(//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-term-deprecated-label)"/>
126
- <xsl:variable name="color_term_deprecated">
127
- <xsl:choose>
128
- <xsl:when test="$presentation_metadata_color_background_term_deprecated_label != ''"><xsl:value-of select="$presentation_metadata_color_background_term_deprecated_label"/></xsl:when>
129
- <xsl:otherwise>rgb(237, 237, 238)</xsl:otherwise>
130
- </xsl:choose>
131
- </xsl:variable>
131
+ <xsl:variable name="presentation_metadata_color_background_term_deprecated_label" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-term-deprecated-label)"/>
132
+ <xsl:variable name="color_term_deprecated">
133
+ <xsl:choose>
134
+ <xsl:when test="$presentation_metadata_color_background_term_deprecated_label != ''"><xsl:value-of select="$presentation_metadata_color_background_term_deprecated_label"/></xsl:when>
135
+ <xsl:otherwise>rgb(237, 237, 238)</xsl:otherwise>
136
+ </xsl:choose>
137
+ </xsl:variable>
138
+ <color_term_deprecated><xsl:value-of select="$color_term_deprecated"/></color_term_deprecated>
132
139
 
133
- <xsl:variable name="presentation_metadata_color_background_term_admitted_label" select="normalize-space(//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-term-admitted-label)"/>
134
- <xsl:variable name="color_term_admitted">
135
- <xsl:choose>
136
- <xsl:when test="$presentation_metadata_color_background_term_admitted_label != ''"><xsl:value-of select="$presentation_metadata_color_background_term_admitted_label"/></xsl:when>
137
- <xsl:otherwise>rgb(223, 236, 249)</xsl:otherwise>
138
- </xsl:choose>
139
- </xsl:variable>
140
+ <xsl:variable name="presentation_metadata_color_background_term_admitted_label" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-term-admitted-label)"/>
141
+ <xsl:variable name="color_term_admitted">
142
+ <xsl:choose>
143
+ <xsl:when test="$presentation_metadata_color_background_term_admitted_label != ''"><xsl:value-of select="$presentation_metadata_color_background_term_admitted_label"/></xsl:when>
144
+ <xsl:otherwise>rgb(223, 236, 249)</xsl:otherwise>
145
+ </xsl:choose>
146
+ </xsl:variable>
147
+ <color_term_admitted><xsl:value-of select="$color_term_admitted"/></color_term_admitted>
140
148
 
141
- <xsl:variable name="presentation_metadata_color_background_table_header" select="normalize-space(//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-table-header)"/>
142
- <xsl:variable name="color_table_header_row">
143
- <xsl:choose>
144
- <xsl:when test="$presentation_metadata_color_background_table_header != ''"><xsl:value-of select="$presentation_metadata_color_background_table_header"/></xsl:when>
145
- <xsl:otherwise>rgb(33, 55, 92)</xsl:otherwise>
146
- </xsl:choose>
147
- </xsl:variable>
149
+ <xsl:variable name="presentation_metadata_color_background_table_header" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-table-header)"/>
150
+ <xsl:variable name="color_table_header_row">
151
+ <xsl:choose>
152
+ <xsl:when test="$presentation_metadata_color_background_table_header != ''"><xsl:value-of select="$presentation_metadata_color_background_table_header"/></xsl:when>
153
+ <xsl:otherwise>rgb(33, 55, 92)</xsl:otherwise>
154
+ </xsl:choose>
155
+ </xsl:variable>
156
+ <color_table_header_row><xsl:value-of select="$color_table_header_row"/></color_table_header_row>
148
157
 
149
- <xsl:variable name="presentation_metadata_color_background_table_row_even" select="normalize-space(//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-table-row-even)"/>
150
- <xsl:variable name="color_table_row_even">
151
- <xsl:choose>
152
- <xsl:when test="$presentation_metadata_color_background_table_row_even != ''"><xsl:value-of select="$presentation_metadata_color_background_table_row_even"/></xsl:when>
153
- <xsl:otherwise>rgb(252, 246, 222)</xsl:otherwise>
154
- </xsl:choose>
155
- </xsl:variable>
158
+ <xsl:variable name="presentation_metadata_color_background_table_row_even" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-table-row-even)"/>
159
+ <xsl:variable name="color_table_row_even">
160
+ <xsl:choose>
161
+ <xsl:when test="$presentation_metadata_color_background_table_row_even != ''"><xsl:value-of select="$presentation_metadata_color_background_table_row_even"/></xsl:when>
162
+ <xsl:otherwise>rgb(252, 246, 222)</xsl:otherwise>
163
+ </xsl:choose>
164
+ </xsl:variable>
165
+ <color_table_row_even><xsl:value-of select="$color_table_row_even"/></color_table_row_even>
156
166
 
157
- <xsl:variable name="presentation_metadata_color_background_table_row_odd" select="normalize-space(//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-table-row-odd)"/>
158
- <xsl:variable name="color_table_row_odd">
159
- <xsl:choose>
160
- <xsl:when test="$presentation_metadata_color_background_table_row_odd != ''"><xsl:value-of select="$presentation_metadata_color_background_table_row_odd"/></xsl:when>
161
- <xsl:otherwise>rgb(254, 252, 245)</xsl:otherwise>
162
- </xsl:choose>
167
+ <xsl:variable name="presentation_metadata_color_background_table_row_odd" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:color-background-table-row-odd)"/>
168
+ <xsl:variable name="color_table_row_odd">
169
+ <xsl:choose>
170
+ <xsl:when test="$presentation_metadata_color_background_table_row_odd != ''"><xsl:value-of select="$presentation_metadata_color_background_table_row_odd"/></xsl:when>
171
+ <xsl:otherwise>rgb(254, 252, 245)</xsl:otherwise>
172
+ </xsl:choose>
173
+ </xsl:variable>
174
+ <color_table_row_odd><xsl:value-of select="$color_table_row_odd"/></color_table_row_odd>
175
+
176
+ </mnx:doc>
177
+ </xsl:for-each>
178
+ </xsl:for-each>
163
179
  </xsl:variable>
180
+ <xsl:variable name="variables" select="xalan:nodeset($variables_)"/>
181
+
182
+ <xsl:template name="getVariable">
183
+ <xsl:param name="variable"/>
184
+ <xsl:variable name="num" select="number(java:org.metanorma.fop.global.Variables.getVariable('num'))"/>
185
+ <xsl:value-of select="$variables/mnx:doc[@num = $num]/*[local-name() = $variable]"/>
186
+ </xsl:template>
164
187
 
165
188
  <xsl:variable name="toc_recommendations_">
166
189
  <xsl:for-each select="//mn:metanorma">
@@ -416,6 +439,8 @@
416
439
  <xsl:for-each select="xalan:nodeset($updated_xml_step1)//mn:metanorma">
417
440
  <xsl:variable name="num"><xsl:number level="any" count="mn:metanorma"/></xsl:variable>
418
441
 
442
+ <xsl:variable name="setVariable" select="java:org.metanorma.fop.global.Variables.setVariable('num', $num)"/>
443
+
419
444
  <xsl:variable name="current_document">
420
445
  <xsl:copy-of select="."/>
421
446
  </xsl:variable>
@@ -428,6 +453,10 @@
428
453
 
429
454
  <xsl:call-template name="inner-cover-page"/>
430
455
 
456
+ <xsl:variable name="color_design_light">
457
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_design_light</xsl:with-param></xsl:call-template>
458
+ </xsl:variable>
459
+
431
460
  <!-- Copyright, Content, Foreword, etc. pages -->
432
461
  <fo:page-sequence xsl:use-attribute-sets="page-sequence-preface">
433
462
  <xsl:call-template name="refine_page-sequence-preface"/>
@@ -607,6 +636,15 @@
607
636
  <xsl:call-template name="insertCoverPageFullImage"/>
608
637
  </xsl:when>
609
638
  <xsl:otherwise>
639
+
640
+ <xsl:variable name="color_design">
641
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_design</xsl:with-param></xsl:call-template>
642
+ </xsl:variable>
643
+
644
+ <xsl:variable name="color_background_blue">
645
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_background_blue</xsl:with-param></xsl:call-template>
646
+ </xsl:variable>
647
+
610
648
  <fo:page-sequence master-reference="cover-page" force-page-count="no-force" initial-page-number="1">
611
649
  <xsl:call-template name="insertFootnoteSeparatorCommon"/>
612
650
 
@@ -950,6 +988,9 @@
950
988
 
951
989
  <xsl:template match="mn:preface//mn:clause[@type = 'toc']" name="toc" priority="4">
952
990
  <xsl:param name="num"/>
991
+ <xsl:variable name="color_text_title">
992
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_text_title</xsl:with-param></xsl:call-template>
993
+ </xsl:variable>
953
994
  <fo:block color="{$color_text_title}">
954
995
 
955
996
  <xsl:apply-templates/>
@@ -1622,6 +1663,9 @@
1622
1663
  <fo:block xsl:use-attribute-sets="term-number-style">
1623
1664
  <xsl:call-template name="refine_term-number-style"/>
1624
1665
  <xsl:call-template name="setIDforNamedDestination"/>
1666
+ <xsl:variable name="color_text_title">
1667
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_text_title</xsl:with-param></xsl:call-template>
1668
+ </xsl:variable>
1625
1669
  <fo:list-block color="{$color_text_title}" keep-with-next="always" provisional-distance-between-starts="{string-length()*3.25}mm">
1626
1670
  <fo:list-item>
1627
1671
  <fo:list-item-label end-indent="label-end()">
@@ -1686,6 +1730,15 @@
1686
1730
  <fo:inline font-size="11pt" padding="1mm" padding-bottom="0.5mm" baseline-shift="25%">
1687
1731
  <xsl:variable name="kind" select="@class"/>
1688
1732
  <xsl:variable name="label" select="text()"/>
1733
+ <xsl:variable name="color_term_preferred">
1734
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_term_preferred</xsl:with-param></xsl:call-template>
1735
+ </xsl:variable>
1736
+ <xsl:variable name="color_term_deprecated">
1737
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_term_deprecated</xsl:with-param></xsl:call-template>
1738
+ </xsl:variable>
1739
+ <xsl:variable name="color_term_admitted">
1740
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_term_admitted</xsl:with-param></xsl:call-template>
1741
+ </xsl:variable>
1689
1742
  <xsl:attribute name="background-color">
1690
1743
  <xsl:choose>
1691
1744
  <!-- <xsl:when test="$kind = 'PreferredLabel' or $label = 'PREFERRED'">rgb(249, 235, 187)</xsl:when>
@@ -1738,7 +1791,7 @@
1738
1791
 
1739
1792
  <xsl:template name="insertHeaderFooter">
1740
1793
  <xsl:param name="num"/>
1741
- <xsl:param name="color" select="$color_text_title"/>
1794
+ <xsl:param name="color"/>
1742
1795
  <xsl:call-template name="insertHeader"/>
1743
1796
  <xsl:call-template name="insertFooter">
1744
1797
  <xsl:with-param name="num" select="$num"/>
@@ -1751,9 +1804,15 @@
1751
1804
 
1752
1805
  <xsl:template name="insertFooter">
1753
1806
  <xsl:param name="num"/>
1754
- <xsl:param name="color" select="$color_text_title"/>
1807
+ <xsl:param name="color"/>
1755
1808
  <fo:static-content flow-name="footer" role="artifact">
1756
1809
  <fo:block-container font-size="8pt" color="{$color}" padding-top="6mm">
1810
+ <xsl:if test="normalize-space($color) = ''">
1811
+ <xsl:variable name="color_text_title">
1812
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_text_title</xsl:with-param></xsl:call-template>
1813
+ </xsl:variable>
1814
+ <xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
1815
+ </xsl:if>
1757
1816
  <fo:table table-layout="fixed" width="100%">
1758
1817
  <fo:table-column column-width="90%"/>
1759
1818
  <fo:table-column column-width="10%"/>
@@ -1878,6 +1937,10 @@
1878
1937
  </xsl:choose>
1879
1938
  </xsl:variable>
1880
1939
 
1940
+ <xsl:variable name="color_design">
1941
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_design</xsl:with-param></xsl:call-template>
1942
+ </xsl:variable>
1943
+
1881
1944
  <!-- orange circle 14mm -->
1882
1945
  <fo:block>
1883
1946
  <fo:instream-foreign-object content-height="14mm" content-width="14mm" fox:alt-text="Circle">
@@ -1898,9 +1961,12 @@
1898
1961
  <!-- background color -->
1899
1962
  <fo:block-container absolute-position="fixed" left="0" top="0" font-size="0">
1900
1963
  <fo:block>
1964
+ <xsl:variable name="color_background_page">
1965
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_background_page</xsl:with-param></xsl:call-template>
1966
+ </xsl:variable>
1901
1967
  <fo:instream-foreign-object content-height="{$pageHeight}mm" fox:alt-text="Background color">
1902
1968
  <svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="{$pageWidth}mm" height="{$pageHeight}mm">
1903
- <rect width="{$pageWidth}mm" height="{$pageHeight}mm" style="fill:{$color-background-page};stroke-width:0;fill-opacity:{$opacity}"/>
1969
+ <rect width="{$pageWidth}mm" height="{$pageHeight}mm" style="fill:{$color_background_page};stroke-width:0;fill-opacity:{$opacity}"/>
1904
1970
  </svg>
1905
1971
  </fo:instream-foreign-object>
1906
1972
  </fo:block>
@@ -1908,6 +1974,9 @@
1908
1974
  </xsl:template>
1909
1975
 
1910
1976
  <xsl:template name="insertCrossingLines">
1977
+ <xsl:variable name="color_design">
1978
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_design</xsl:with-param></xsl:call-template>
1979
+ </xsl:variable>
1911
1980
  <fo:block-container absolute-position="fixed" width="{$pageWidth}mm" height="{$pageHeight}mm" font-size="0">
1912
1981
  <fo:block>
1913
1982
  <fo:instream-foreign-object content-height="{$pageHeight}mm" content-width="{$pageWidth}mm" fox:alt-text="Crossing lines">
@@ -1961,7 +2030,13 @@
1961
2030
  <xsl:param name="title"/>
1962
2031
  <xsl:param name="level">1</xsl:param>
1963
2032
  <fo:block>
1964
- <xsl:variable name="title_styles"><styles xsl:use-attribute-sets="title-style"/></xsl:variable>
2033
+ <xsl:variable name="title_styles">
2034
+ <styles xsl:use-attribute-sets="title-style">
2035
+ <xsl:variable name="color_text_title">
2036
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_text_title</xsl:with-param></xsl:call-template>
2037
+ </xsl:variable>
2038
+ <xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
2039
+ </styles></xsl:variable>
1965
2040
  <fo:block line-height="150%">
1966
2041
  <xsl:copy-of select="xalan:nodeset($title_styles)/styles/@*[local-name() = 'font-size' or local-name() = 'color' or local-name() = 'keep-with-next']"/>
1967
2042
  <xsl:if test="$section != ''">
@@ -2063,18 +2138,27 @@
2063
2138
  </xsl:template>
2064
2139
 
2065
2140
  <xsl:template name="insertShortHorizontalLine">
2141
+ <xsl:variable name="color_design">
2142
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_design</xsl:with-param></xsl:call-template>
2143
+ </xsl:variable>
2066
2144
  <fo:block-container width="12.7mm" border-top="1pt solid {$color_design}" margin-top="3mm" role="SKIP">
2067
2145
  <fo:block font-size="1pt" role="SKIP"><fo:wrapper role="artifact"> </fo:wrapper></fo:block>
2068
2146
  </fo:block-container>
2069
2147
  </xsl:template>
2070
2148
 
2071
2149
  <xsl:template name="insertBigHorizontalLine">
2150
+ <xsl:variable name="color_design">
2151
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_design</xsl:with-param></xsl:call-template>
2152
+ </xsl:variable>
2072
2153
  <fo:block-container width="22.5mm" border-bottom="2pt solid {$color_design}" role="SKIP">
2073
2154
  <fo:block margin-top="4pt" role="SKIP"><fo:wrapper role="artifact"> </fo:wrapper></fo:block>
2074
2155
  </fo:block-container>
2075
2156
  </xsl:template>
2076
2157
 
2077
2158
  <xsl:template name="insertFootnoteSeparator">
2159
+ <xsl:variable name="color_design">
2160
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_design</xsl:with-param></xsl:call-template>
2161
+ </xsl:variable>
2078
2162
  <fo:static-content flow-name="xsl-footnote-separator" role="artifact">
2079
2163
  <fo:block>
2080
2164
  <fo:leader leader-pattern="rule" leader-length="20%" color="{$color_design}"/>
@@ -2374,6 +2458,10 @@
2374
2458
  <xsl:param name="doctype"/>
2375
2459
  <xsl:param name="num"/>
2376
2460
  <xsl:param name="skip_force_page_count">false</xsl:param>
2461
+ <xsl:variable name="color_main">
2462
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_main</xsl:with-param></xsl:call-template>
2463
+ </xsl:variable>
2464
+ <xsl:attribute name="color"><xsl:value-of select="$color_main"/></xsl:attribute>
2377
2465
  </xsl:template> <!-- refine_page-sequence-preface -->
2378
2466
 
2379
2467
  <xsl:attribute-set name="page-sequence-main">
@@ -2389,6 +2477,10 @@
2389
2477
  <xsl:text>document</xsl:text>
2390
2478
  <xsl:call-template name="getPageSequenceOrientation"/>
2391
2479
  </xsl:attribute>
2480
+ <xsl:variable name="color_main">
2481
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_main</xsl:with-param></xsl:call-template>
2482
+ </xsl:variable>
2483
+ <xsl:attribute name="color"><xsl:value-of select="$color_main"/></xsl:attribute>
2392
2484
  </xsl:template> <!-- refine_page-sequence-main -->
2393
2485
 
2394
2486
  <xsl:variable name="font_noto_sans">Noto Sans, Noto Sans HK, Noto Sans JP, Noto Sans KR, Noto Sans SC, Noto Sans TC</xsl:variable>
@@ -2398,7 +2490,6 @@
2398
2490
  <xsl:attribute name="font-family">Lato, STIX Two Math, <xsl:value-of select="$font_noto_sans"/></xsl:attribute>
2399
2491
  <xsl:attribute name="font-family-generic">Sans</xsl:attribute>
2400
2492
  <xsl:attribute name="font-size">11pt</xsl:attribute>
2401
- <xsl:attribute name="color"><xsl:value-of select="$color_main"/></xsl:attribute>
2402
2493
  </xsl:attribute-set> <!-- root-style -->
2403
2494
 
2404
2495
  <xsl:template name="insertRootStyle">
@@ -3754,11 +3845,14 @@
3754
3845
 
3755
3846
  <xsl:attribute-set name="copyright-statement-title-style">
3756
3847
  <xsl:attribute name="font-weight">bold</xsl:attribute>
3757
- <xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
3758
3848
  <xsl:attribute name="margin-top">24pt</xsl:attribute>
3759
3849
  </xsl:attribute-set> <!-- copyright-statement-title-style -->
3760
3850
 
3761
3851
  <xsl:template name="refine_copyright-statement-title-style">
3852
+ <xsl:variable name="color_text_title">
3853
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_text_title</xsl:with-param></xsl:call-template>
3854
+ </xsl:variable>
3855
+ <xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
3762
3856
  </xsl:template>
3763
3857
 
3764
3858
  <xsl:attribute-set name="copyright-statement-p-style">
@@ -3780,10 +3874,13 @@
3780
3874
  <xsl:attribute-set name="license-statement-title-style">
3781
3875
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
3782
3876
  <xsl:attribute name="font-weight">bold</xsl:attribute>
3783
- <xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
3784
3877
  </xsl:attribute-set> <!-- license-statement-title-style -->
3785
3878
 
3786
3879
  <xsl:template name="refine_license-statement-title-style">
3880
+ <xsl:variable name="color_text_title">
3881
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_text_title</xsl:with-param></xsl:call-template>
3882
+ </xsl:variable>
3883
+ <xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
3787
3884
  </xsl:template>
3788
3885
 
3789
3886
  <xsl:attribute-set name="license-statement-p-style">
@@ -3864,6 +3961,7 @@
3864
3961
  <xsl:call-template name="getLevel"/>
3865
3962
  </xsl:variable>
3866
3963
  <fo:block role="H{$level}" xsl:use-attribute-sets="copyright-statement-title-style">
3964
+ <xsl:call-template name="refine_copyright-statement-title-style"/>
3867
3965
  <xsl:apply-templates/>
3868
3966
  </fo:block>
3869
3967
 
@@ -5663,6 +5761,9 @@
5663
5761
  <xsl:attribute name="font-weight">bold</xsl:attribute>
5664
5762
  <xsl:attribute name="font-weight">normal</xsl:attribute>
5665
5763
  <xsl:if test="parent::*[local-name()='thead']"> <!-- and not(ancestor::mn:table[@class = 'recommendation' or @class='requirement' or @class='permission']) -->
5764
+ <xsl:variable name="color_table_header_row">
5765
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_table_header_row</xsl:with-param></xsl:call-template>
5766
+ </xsl:variable>
5666
5767
  <xsl:attribute name="background-color"><xsl:value-of select="$color_table_header_row"/></xsl:attribute>
5667
5768
  </xsl:if>
5668
5769
  <xsl:if test="starts-with(*[local-name()='td'][1], 'Requirement ')">
@@ -6410,7 +6511,6 @@
6410
6511
  <xsl:attribute name="text-align">left</xsl:attribute>
6411
6512
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
6412
6513
  <xsl:attribute name="font-weight">normal</xsl:attribute>
6413
- <xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
6414
6514
  <xsl:attribute name="font-size">11pt</xsl:attribute>
6415
6515
  </xsl:attribute-set> <!-- table-name-style -->
6416
6516
 
@@ -6419,6 +6519,10 @@
6419
6519
  <xsl:if test="$continued = 'true'">
6420
6520
  <xsl:attribute name="role">SKIP</xsl:attribute>
6421
6521
  </xsl:if>
6522
+ <xsl:variable name="color_text_title">
6523
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_text_title</xsl:with-param></xsl:call-template>
6524
+ </xsl:variable>
6525
+ <xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
6422
6526
  </xsl:template> <!-- refine_table-name-style -->
6423
6527
 
6424
6528
  <xsl:attribute-set name="table-row-style">
@@ -6428,13 +6532,16 @@
6428
6532
 
6429
6533
  <xsl:attribute-set name="table-header-row-style" use-attribute-sets="table-row-style">
6430
6534
  <xsl:attribute name="font-weight">bold</xsl:attribute>
6431
- <xsl:attribute name="background-color"><xsl:value-of select="$color_table_header_row"/></xsl:attribute>
6432
6535
  <xsl:attribute name="color">white</xsl:attribute>
6433
6536
  </xsl:attribute-set>
6434
6537
 
6435
6538
  <xsl:template name="refine_table-header-row-style">
6436
6539
 
6437
6540
  <xsl:call-template name="setBordersTableArray"/>
6541
+ <xsl:variable name="color_table_header_row">
6542
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_table_header_row</xsl:with-param></xsl:call-template>
6543
+ </xsl:variable>
6544
+ <xsl:attribute name="background-color"><xsl:value-of select="$color_table_header_row"/></xsl:attribute>
6438
6545
 
6439
6546
  <xsl:call-template name="setNoBordersForTableList"/>
6440
6547
  </xsl:template> <!-- refine_table-header-row-style -->
@@ -6455,6 +6562,12 @@
6455
6562
 
6456
6563
  <xsl:call-template name="setBordersTableArray"/>
6457
6564
  <xsl:variable name="number"><xsl:number/></xsl:variable>
6565
+ <xsl:variable name="color_table_row_even">
6566
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_table_row_even</xsl:with-param></xsl:call-template>
6567
+ </xsl:variable>
6568
+ <xsl:variable name="color_table_row_odd">
6569
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_table_row_odd</xsl:with-param></xsl:call-template>
6570
+ </xsl:variable>
6458
6571
  <xsl:attribute name="background-color">
6459
6572
  <xsl:choose>
6460
6573
  <xsl:when test="$number mod 2 = 0"><xsl:value-of select="$color_table_row_even"/></xsl:when>
@@ -7763,6 +7876,12 @@
7763
7876
  <style name="{$key}-left"><xsl:value-of select="$value"/></style>
7764
7877
  <style name="{$key}-bottom"><xsl:value-of select="$value"/></style>
7765
7878
  </xsl:if>
7879
+ <xsl:if test="$key = 'page-break-inside' and $value = 'avoid'">
7880
+ <style name="keep-together.within-page">always</style>
7881
+ </xsl:if>
7882
+ <xsl:if test="$key = 'page-break-after' and $value = 'always'">
7883
+ <style name="break-after">page</style>
7884
+ </xsl:if>
7766
7885
  </xsl:for-each>
7767
7886
  </xsl:variable>
7768
7887
  <xsl:variable name="styles" select="xalan:nodeset($styles_)"/>
@@ -7806,6 +7925,11 @@
7806
7925
 
7807
7926
  <fo:block role="SKIP">
7808
7927
 
7928
+ <xsl:variable name="styles">
7929
+ <styles><xsl:call-template name="setTableStyles"/></styles>
7930
+ </xsl:variable>
7931
+ <xsl:copy-of select="xalan:nodeset($styles)/styles/@break-after"/>
7932
+
7809
7933
  <xsl:if test="$isGenerateTableIF = 'true'">
7810
7934
  <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
7811
7935
  </xsl:if>
@@ -8799,6 +8923,9 @@
8799
8923
  <xsl:template name="refine_dt-cell-style">
8800
8924
  <xsl:if test="not(ancestor::mn:sourcecode)">
8801
8925
  <!-- <xsl:attribute name="border-left">1pt solid <xsl:value-of select="$color_design"/></xsl:attribute> -->
8926
+ <xsl:variable name="color_dl_dt">
8927
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_dl_dt</xsl:with-param></xsl:call-template>
8928
+ </xsl:variable>
8802
8929
  <xsl:attribute name="background-color"><xsl:value-of select="$color_dl_dt"/></xsl:attribute>
8803
8930
  </xsl:if>
8804
8931
  </xsl:template> <!-- refine_dt-cell-style -->
@@ -8821,10 +8948,13 @@
8821
8948
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
8822
8949
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
8823
8950
  <xsl:attribute name="font-weight">normal</xsl:attribute>
8824
- <xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
8825
8951
  </xsl:attribute-set> <!-- dl-name-style -->
8826
8952
 
8827
8953
  <xsl:template name="refine_dl-name-style">
8954
+ <xsl:variable name="color_text_title">
8955
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_text_title</xsl:with-param></xsl:call-template>
8956
+ </xsl:variable>
8957
+ <xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
8828
8958
  </xsl:template>
8829
8959
 
8830
8960
  <xsl:attribute-set name="dd-cell-style">
@@ -8834,6 +8964,9 @@
8834
8964
 
8835
8965
  <xsl:template name="refine_dd-cell-style">
8836
8966
  <xsl:if test="not(ancestor::mn:sourcecode)">
8967
+ <xsl:variable name="color_dl_dd">
8968
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_dl_dd</xsl:with-param></xsl:call-template>
8969
+ </xsl:variable>
8837
8970
  <xsl:attribute name="background-color"><xsl:value-of select="$color_dl_dd"/></xsl:attribute>
8838
8971
  </xsl:if>
8839
8972
  </xsl:template> <!-- refine_dd-cell-style -->
@@ -9976,11 +10109,27 @@
9976
10109
  <!-- ====== -->
9977
10110
  <!-- ====== -->
9978
10111
 
9979
- <xsl:attribute-set name="quote-style">
10112
+ <xsl:attribute-set name="quote-container-style">
9980
10113
  <xsl:attribute name="margin-left">12mm</xsl:attribute>
9981
10114
  <xsl:attribute name="margin-right">12mm</xsl:attribute>
9982
- <xsl:attribute name="margin-top">12pt</xsl:attribute>
10115
+ <xsl:attribute name="role">SKIP</xsl:attribute>
10116
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
9983
10117
  <xsl:attribute name="margin-left">13mm</xsl:attribute>
10118
+ </xsl:attribute-set>
10119
+
10120
+ <xsl:template name="refine_quote-container-style">
10121
+ <xsl:if test="parent::mn:note">
10122
+ <xsl:if test="not(ancestor::mn:table)">
10123
+ <xsl:attribute name="margin-left">5mm</xsl:attribute>
10124
+ </xsl:if>
10125
+ </xsl:if>
10126
+ </xsl:template>
10127
+
10128
+ <xsl:attribute-set name="quote-style">
10129
+ <xsl:attribute name="margin-left">0mm</xsl:attribute>
10130
+ <xsl:attribute name="margin-right">0mm</xsl:attribute>
10131
+ <xsl:attribute name="margin-top">12pt</xsl:attribute>
10132
+
9984
10133
  </xsl:attribute-set> <!-- quote-style -->
9985
10134
 
9986
10135
  <xsl:template name="refine_quote-style">
@@ -9988,7 +10137,8 @@
9988
10137
 
9989
10138
  <xsl:attribute-set name="quote-source-style">
9990
10139
  <xsl:attribute name="text-align">right</xsl:attribute>
9991
- <xsl:attribute name="margin-right">25mm</xsl:attribute>
10140
+ <xsl:attribute name="margin-right">-12mm</xsl:attribute>
10141
+ <xsl:attribute name="margin-right">13mm</xsl:attribute>
9992
10142
  </xsl:attribute-set> <!-- quote-source-style -->
9993
10143
 
9994
10144
  <xsl:template name="refine_quote-source-style">
@@ -10011,12 +10161,9 @@
10011
10161
 
10012
10162
  <xsl:call-template name="setBlockSpanAll"/>
10013
10163
 
10014
- <xsl:if test="parent::mn:note">
10015
- <xsl:if test="not(ancestor::mn:table)">
10016
- <xsl:attribute name="margin-left">5mm</xsl:attribute>
10017
- </xsl:if>
10018
- </xsl:if>
10019
- <fo:block-container margin-left="0mm" role="SKIP">
10164
+ <fo:block-container xsl:use-attribute-sets="quote-container-style">
10165
+ <xsl:call-template name="refine_quote-container-style"/>
10166
+
10020
10167
  <fo:block-container xsl:use-attribute-sets="quote-style" role="SKIP">
10021
10168
 
10022
10169
  <xsl:call-template name="refine_quote-style"/>
@@ -10028,14 +10175,16 @@
10028
10175
  </fo:block-container>
10029
10176
  </fo:block-container>
10030
10177
  <xsl:if test="mn:author or mn:fmt-source or mn:attribution">
10031
- <fo:block xsl:use-attribute-sets="quote-source-style">
10032
- <xsl:call-template name="refine_quote-source-style"/>
10033
- <!-- — ISO, ISO 7301:2011, Clause 1 -->
10034
- <xsl:apply-templates select="mn:author"/>
10035
- <xsl:apply-templates select="mn:fmt-source"/>
10036
- <!-- added for https://github.com/metanorma/isodoc/issues/607 -->
10037
- <xsl:apply-templates select="mn:attribution/mn:p/node()"/>
10038
- </fo:block>
10178
+ <fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
10179
+ <fo:block xsl:use-attribute-sets="quote-source-style">
10180
+ <xsl:call-template name="refine_quote-source-style"/>
10181
+ <!-- — ISO, ISO 7301:2011, Clause 1 -->
10182
+ <xsl:apply-templates select="mn:author"/>
10183
+ <xsl:apply-templates select="mn:fmt-source"/>
10184
+ <!-- added for https://github.com/metanorma/isodoc/issues/607 -->
10185
+ <xsl:apply-templates select="mn:attribution/mn:p/node()"/>
10186
+ </fo:block>
10187
+ </fo:block-container>
10039
10188
  </xsl:if>
10040
10189
 
10041
10190
  </fo:block-container>
@@ -10105,7 +10254,6 @@
10105
10254
 
10106
10255
  <xsl:attribute-set name="figure-name-style">
10107
10256
  <xsl:attribute name="role">Caption</xsl:attribute>
10108
- <xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
10109
10257
  <!-- <xsl:attribute name="margin-top">12pt</xsl:attribute> -->
10110
10258
  <xsl:attribute name="margin-top">6pt</xsl:attribute>
10111
10259
  <xsl:attribute name="space-after">12pt</xsl:attribute>
@@ -10115,6 +10263,10 @@
10115
10263
  </xsl:attribute-set> <!-- figure-name-style -->
10116
10264
 
10117
10265
  <xsl:template name="refine_figure-name-style">
10266
+ <xsl:variable name="color_text_title">
10267
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_text_title</xsl:with-param></xsl:call-template>
10268
+ </xsl:variable>
10269
+ <xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
10118
10270
  </xsl:template> <!-- refine_figure-name-style -->
10119
10271
 
10120
10272
  <xsl:attribute-set name="image-style">
@@ -11829,10 +11981,13 @@
11829
11981
  <xsl:attribute-set name="list-name-style">
11830
11982
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
11831
11983
  <xsl:attribute name="font-weight">normal</xsl:attribute>
11832
- <xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
11833
11984
  </xsl:attribute-set> <!-- list-name-style -->
11834
11985
 
11835
11986
  <xsl:template name="refine_list-name-style">
11987
+ <xsl:variable name="color_text_title">
11988
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_text_title</xsl:with-param></xsl:call-template>
11989
+ </xsl:variable>
11990
+ <xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
11836
11991
  </xsl:template>
11837
11992
 
11838
11993
  <xsl:attribute-set name="list-item-style">
@@ -11865,7 +12020,7 @@
11865
12020
  <!-- Lists processing -->
11866
12021
  <!-- ===================================== -->
11867
12022
  <xsl:variable name="ul_labels_">
11868
- <label color="{$color_design}">•</label>
12023
+ <label>•</label> <!-- color="{$color_design}" -->
11869
12024
 
11870
12025
  </xsl:variable>
11871
12026
  <xsl:variable name="ul_labels" select="xalan:nodeset($ul_labels_)"/>
@@ -11902,6 +12057,10 @@
11902
12057
  </xsl:template>
11903
12058
  <xsl:template match="label" mode="ul_labels">
11904
12059
  <xsl:copy-of select="@*[not(local-name() = 'level')]"/>
12060
+ <xsl:variable name="color_design">
12061
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_design</xsl:with-param></xsl:call-template>
12062
+ </xsl:variable>
12063
+ <xsl:attribute name="color"><xsl:value-of select="$color_design"/></xsl:attribute>
11905
12064
  <xsl:value-of select="."/>
11906
12065
  </xsl:template>
11907
12066
 
@@ -12259,12 +12418,15 @@
12259
12418
  <xsl:attribute name="start-indent">0</xsl:attribute>
12260
12419
  <xsl:attribute name="font-size">10pt</xsl:attribute>
12261
12420
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
12262
- <xsl:attribute name="color"><xsl:value-of select="$color_main"/></xsl:attribute>
12263
12421
  <xsl:attribute name="line-height">124%</xsl:attribute>
12264
12422
  <xsl:attribute name="text-align">justify</xsl:attribute>
12265
12423
  </xsl:attribute-set> <!-- fn-body-style" -->
12266
12424
 
12267
12425
  <xsl:template name="refine_fn-body-style">
12426
+ <xsl:variable name="color_main">
12427
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_main</xsl:with-param></xsl:call-template>
12428
+ </xsl:variable>
12429
+ <xsl:attribute name="color"><xsl:value-of select="$color_main"/></xsl:attribute>
12268
12430
  </xsl:template> <!-- refine_fn-body-style -->
12269
12431
 
12270
12432
  <xsl:attribute-set name="fn-body-num-style">
@@ -13026,10 +13188,13 @@
13026
13188
  <xsl:attribute name="margin-bottom">24pt</xsl:attribute>
13027
13189
  <xsl:attribute name="font-size">18pt</xsl:attribute>
13028
13190
  <xsl:attribute name="font-weight">normal</xsl:attribute>
13029
- <xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
13030
13191
  </xsl:attribute-set> <!-- indexsect-title-style -->
13031
13192
 
13032
13193
  <xsl:template name="refine_indexsect-title-style">
13194
+ <xsl:variable name="color_text_title">
13195
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_text_title</xsl:with-param></xsl:call-template>
13196
+ </xsl:variable>
13197
+ <xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
13033
13198
  </xsl:template>
13034
13199
 
13035
13200
  <xsl:attribute-set name="indexsect-clause-title-style">
@@ -14866,7 +15031,6 @@
14866
15031
  <xsl:attribute name="font-size">18pt</xsl:attribute>
14867
15032
  <xsl:attribute name="font-weight">normal</xsl:attribute>
14868
15033
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
14869
- <xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
14870
15034
  </xsl:attribute-set> <!-- title-style -->
14871
15035
 
14872
15036
  <xsl:template name="refine_title-style">
@@ -14875,6 +15039,11 @@
14875
15039
  <xsl:call-template name="getLevel"/>
14876
15040
  </xsl:variable>
14877
15041
 
15042
+ <xsl:variable name="color_text_title">
15043
+ <xsl:call-template name="getVariable"><xsl:with-param name="variable">color_text_title</xsl:with-param></xsl:call-template>
15044
+ </xsl:variable>
15045
+ <xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
15046
+
14878
15047
  <xsl:if test="$level = 1">
14879
15048
  <xsl:attribute name="space-before">36pt</xsl:attribute>
14880
15049
  <xsl:attribute name="margin-bottom">10pt</xsl:attribute>
@@ -15130,6 +15299,10 @@
15130
15299
  <fo:block break-after="page"/>
15131
15300
  </xsl:template>
15132
15301
 
15302
+ <xsl:template match="mn:pagebreak[ancestor::mn:table]" priority="2">
15303
+ <fo:block break-after="page"/>
15304
+ </xsl:template>
15305
+
15133
15306
  <xsl:variable name="font_main_root_style">
15134
15307
  <root-style xsl:use-attribute-sets="root-style">
15135
15308
  </root-style>