metanorma-iec 2.6.9 → 2.7.0
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.
- checksums.yaml +4 -4
- data/lib/isodoc/iec/iec.international-standard.xsl +1132 -1037
- data/lib/metanorma/iec/converter.rb +1 -0
- data/lib/metanorma/iec/isodoc.rng +51 -6
- data/lib/metanorma/iec/version.rb +1 -1
- data/metanorma-iec.gemspec +1 -1
- metadata +4 -4
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
<xsl:param name="additionalXMLs" select="''"/> <!-- iec-rice.fr.xml -->
|
6
6
|
|
7
|
-
<xsl:key name="kfn" match="mn:fn[not(ancestor::*[self::mn:table or self::mn:figure or self::mn:localized-strings] and not(ancestor::mn:name))]" use="@reference"/>
|
7
|
+
<xsl:key name="kfn" match="mn:fn[not(ancestor::*[self::mn:table or self::mn:figure or self::mn:localized-strings] and not(ancestor::mn:fmt-name))]" use="@reference"/>
|
8
8
|
|
9
9
|
<xsl:variable name="additionalXMLsArray">
|
10
10
|
<xsl:call-template name="split">
|
@@ -115,6 +115,93 @@
|
|
115
115
|
|
116
116
|
<xsl:variable name="isIEV" select="normalize-space((//mn:metanorma/mn:bibdata/mn:title[@language = 'en' and @type = 'title-main'] = 'International Electrotechnical Vocabulary') and 1 = 1)"/>
|
117
117
|
|
118
|
+
<xsl:template name="layout-master-set">
|
119
|
+
<fo:layout-master-set>
|
120
|
+
<!-- cover pages -->
|
121
|
+
<fo:simple-page-master master-name="cover" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
122
|
+
<fo:region-body margin-top="17.5mm" margin-bottom="12.5mm" margin-left="18mm" margin-right="20.5mm"/>
|
123
|
+
<fo:region-before region-name="header" extent="17.5mm"/>
|
124
|
+
<fo:region-after region-name="footer" extent="12.5mm" precedence="true"/>
|
125
|
+
<fo:region-start region-name="left-region" extent="18mm"/>
|
126
|
+
<fo:region-end region-name="right-region" extent="20.5mm"/>
|
127
|
+
</fo:simple-page-master>
|
128
|
+
<fo:simple-page-master master-name="cover_2nd" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
129
|
+
<fo:region-body margin-top="17.5mm" margin-bottom="12.5mm" margin-left="25mm" margin-right="25mm" column-count="2" column-gap="5mm"/>
|
130
|
+
<fo:region-before region-name="header" extent="17.5mm"/>
|
131
|
+
<fo:region-after region-name="footer" extent="12.5mm" precedence="true"/>
|
132
|
+
<fo:region-start region-name="left-region" extent="25mm"/>
|
133
|
+
<fo:region-end region-name="right-region" extent="25mm"/>
|
134
|
+
</fo:simple-page-master>
|
135
|
+
|
136
|
+
<fo:simple-page-master master-name="cover-FDIS" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
137
|
+
<fo:region-body margin-top="17.5mm" margin-bottom="29mm" margin-left="18mm" margin-right="19mm"/>
|
138
|
+
<fo:region-before region-name="header" extent="17.5mm"/>
|
139
|
+
<fo:region-after region-name="footer-FDIS" extent="29mm"/>
|
140
|
+
<fo:region-start region-name="left-region" extent="18mm"/>
|
141
|
+
<fo:region-end region-name="right-region" extent="19mm"/>
|
142
|
+
</fo:simple-page-master>
|
143
|
+
|
144
|
+
<!-- odd pages -->
|
145
|
+
<fo:simple-page-master master-name="odd" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
146
|
+
<fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm"/>
|
147
|
+
<fo:region-before region-name="header-odd" extent="{$marginTop}mm"/>
|
148
|
+
<fo:region-after region-name="footer" extent="{$marginBottom}mm"/>
|
149
|
+
<fo:region-start region-name="left-region" extent="{$marginLeftRight1}mm"/>
|
150
|
+
<fo:region-end region-name="right-region" extent="{$marginLeftRight2}mm"/>
|
151
|
+
</fo:simple-page-master>
|
152
|
+
<fo:simple-page-master master-name="odd-landscape" page-width="{$pageHeight}mm" page-height="{$pageWidth}mm">
|
153
|
+
<fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm"/>
|
154
|
+
<fo:region-before region-name="header-odd" extent="{$marginTop}mm"/>
|
155
|
+
<fo:region-after region-name="footer" extent="{$marginBottom}mm"/>
|
156
|
+
<fo:region-start region-name="left-region" extent="{$marginLeftRight1}mm"/>
|
157
|
+
<fo:region-end region-name="right-region" extent="{$marginLeftRight2}mm"/>
|
158
|
+
</fo:simple-page-master>
|
159
|
+
<!-- even pages -->
|
160
|
+
<fo:simple-page-master master-name="even" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
161
|
+
<fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm"/>
|
162
|
+
<fo:region-before region-name="header-even" extent="{$marginTop}mm"/>
|
163
|
+
<fo:region-after region-name="footer" extent="{$marginBottom}mm"/>
|
164
|
+
<fo:region-start region-name="left-region" extent="{$marginLeftRight1}mm"/>
|
165
|
+
<fo:region-end region-name="right-region" extent="{$marginLeftRight2}mm"/>
|
166
|
+
</fo:simple-page-master>
|
167
|
+
<fo:simple-page-master master-name="even-landscape" page-width="{$pageHeight}mm" page-height="{$pageWidth}mm">
|
168
|
+
<fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm"/>
|
169
|
+
<fo:region-before region-name="header-even" extent="{$marginTop}mm"/>
|
170
|
+
<fo:region-after region-name="footer" extent="{$marginBottom}mm"/>
|
171
|
+
<fo:region-start region-name="left-region" extent="{$marginLeftRight1}mm"/>
|
172
|
+
<fo:region-end region-name="right-region" extent="{$marginLeftRight2}mm"/>
|
173
|
+
</fo:simple-page-master>
|
174
|
+
<fo:page-sequence-master master-name="document">
|
175
|
+
<fo:repeatable-page-master-alternatives>
|
176
|
+
<fo:conditional-page-master-reference odd-or-even="even" master-reference="even"/>
|
177
|
+
<fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd"/>
|
178
|
+
</fo:repeatable-page-master-alternatives>
|
179
|
+
</fo:page-sequence-master>
|
180
|
+
<fo:page-sequence-master master-name="document-portrait">
|
181
|
+
<fo:repeatable-page-master-alternatives>
|
182
|
+
<fo:conditional-page-master-reference odd-or-even="even" master-reference="even"/>
|
183
|
+
<fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd"/>
|
184
|
+
</fo:repeatable-page-master-alternatives>
|
185
|
+
</fo:page-sequence-master>
|
186
|
+
<fo:page-sequence-master master-name="document-landscape">
|
187
|
+
<fo:repeatable-page-master-alternatives>
|
188
|
+
<fo:conditional-page-master-reference odd-or-even="even" master-reference="even-landscape"/>
|
189
|
+
<fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd-landscape"/>
|
190
|
+
</fo:repeatable-page-master-alternatives>
|
191
|
+
</fo:page-sequence-master>
|
192
|
+
|
193
|
+
<fo:simple-page-master master-name="blank-page" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
194
|
+
<fo:region-body margin-top="107mm" margin-bottom="0mm" margin-left="18mm" margin-right="0mm"/>
|
195
|
+
</fo:simple-page-master>
|
196
|
+
|
197
|
+
<fo:simple-page-master master-name="last-page" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
198
|
+
<fo:region-body margin-top="107mm" margin-bottom="0mm" margin-left="18mm" margin-right="0mm" background-color="rgb(236, 236, 236)"/>
|
199
|
+
<fo:region-before region-name="header" extent="107mm"/>
|
200
|
+
<fo:region-start region-name="left-region" extent="18mm"/>
|
201
|
+
</fo:simple-page-master>
|
202
|
+
</fo:layout-master-set>
|
203
|
+
</xsl:template> <!-- END: layout-master-set -->
|
204
|
+
|
118
205
|
<xsl:template match="/">
|
119
206
|
|
120
207
|
<!-- <xsl:variable name="xslfo"> -->
|
@@ -127,90 +214,8 @@
|
|
127
214
|
<xsl:call-template name="insertRootStyle">
|
128
215
|
<xsl:with-param name="root-style" select="$root-style"/>
|
129
216
|
</xsl:call-template>
|
130
|
-
|
131
|
-
|
132
|
-
<fo:simple-page-master master-name="cover" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
133
|
-
<fo:region-body margin-top="17.5mm" margin-bottom="12.5mm" margin-left="18mm" margin-right="20.5mm"/>
|
134
|
-
<fo:region-before region-name="header" extent="17.5mm"/>
|
135
|
-
<fo:region-after region-name="footer" extent="12.5mm" precedence="true"/>
|
136
|
-
<fo:region-start region-name="left-region" extent="18mm"/>
|
137
|
-
<fo:region-end region-name="right-region" extent="20.5mm"/>
|
138
|
-
</fo:simple-page-master>
|
139
|
-
<fo:simple-page-master master-name="cover_2nd" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
140
|
-
<fo:region-body margin-top="17.5mm" margin-bottom="12.5mm" margin-left="25mm" margin-right="25mm" column-count="2" column-gap="5mm"/>
|
141
|
-
<fo:region-before region-name="header" extent="17.5mm"/>
|
142
|
-
<fo:region-after region-name="footer" extent="12.5mm" precedence="true"/>
|
143
|
-
<fo:region-start region-name="left-region" extent="25mm"/>
|
144
|
-
<fo:region-end region-name="right-region" extent="25mm"/>
|
145
|
-
</fo:simple-page-master>
|
146
|
-
|
147
|
-
<fo:simple-page-master master-name="cover-FDIS" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
148
|
-
<fo:region-body margin-top="17.5mm" margin-bottom="29mm" margin-left="18mm" margin-right="19mm"/>
|
149
|
-
<fo:region-before region-name="header" extent="17.5mm"/>
|
150
|
-
<fo:region-after region-name="footer-FDIS" extent="29mm"/>
|
151
|
-
<fo:region-start region-name="left-region" extent="18mm"/>
|
152
|
-
<fo:region-end region-name="right-region" extent="19mm"/>
|
153
|
-
</fo:simple-page-master>
|
154
|
-
|
155
|
-
<!-- odd pages -->
|
156
|
-
<fo:simple-page-master master-name="odd" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
157
|
-
<fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm"/>
|
158
|
-
<fo:region-before region-name="header-odd" extent="{$marginTop}mm"/>
|
159
|
-
<fo:region-after region-name="footer" extent="{$marginBottom}mm"/>
|
160
|
-
<fo:region-start region-name="left-region" extent="{$marginLeftRight1}mm"/>
|
161
|
-
<fo:region-end region-name="right-region" extent="{$marginLeftRight2}mm"/>
|
162
|
-
</fo:simple-page-master>
|
163
|
-
<fo:simple-page-master master-name="odd-landscape" page-width="{$pageHeight}mm" page-height="{$pageWidth}mm">
|
164
|
-
<fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm"/>
|
165
|
-
<fo:region-before region-name="header-odd" extent="{$marginTop}mm"/>
|
166
|
-
<fo:region-after region-name="footer" extent="{$marginBottom}mm"/>
|
167
|
-
<fo:region-start region-name="left-region" extent="{$marginLeftRight1}mm"/>
|
168
|
-
<fo:region-end region-name="right-region" extent="{$marginLeftRight2}mm"/>
|
169
|
-
</fo:simple-page-master>
|
170
|
-
<!-- even pages -->
|
171
|
-
<fo:simple-page-master master-name="even" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
172
|
-
<fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm"/>
|
173
|
-
<fo:region-before region-name="header-even" extent="{$marginTop}mm"/>
|
174
|
-
<fo:region-after region-name="footer" extent="{$marginBottom}mm"/>
|
175
|
-
<fo:region-start region-name="left-region" extent="{$marginLeftRight1}mm"/>
|
176
|
-
<fo:region-end region-name="right-region" extent="{$marginLeftRight2}mm"/>
|
177
|
-
</fo:simple-page-master>
|
178
|
-
<fo:simple-page-master master-name="even-landscape" page-width="{$pageHeight}mm" page-height="{$pageWidth}mm">
|
179
|
-
<fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm"/>
|
180
|
-
<fo:region-before region-name="header-even" extent="{$marginTop}mm"/>
|
181
|
-
<fo:region-after region-name="footer" extent="{$marginBottom}mm"/>
|
182
|
-
<fo:region-start region-name="left-region" extent="{$marginLeftRight1}mm"/>
|
183
|
-
<fo:region-end region-name="right-region" extent="{$marginLeftRight2}mm"/>
|
184
|
-
</fo:simple-page-master>
|
185
|
-
<fo:page-sequence-master master-name="document">
|
186
|
-
<fo:repeatable-page-master-alternatives>
|
187
|
-
<fo:conditional-page-master-reference odd-or-even="even" master-reference="even"/>
|
188
|
-
<fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd"/>
|
189
|
-
</fo:repeatable-page-master-alternatives>
|
190
|
-
</fo:page-sequence-master>
|
191
|
-
<fo:page-sequence-master master-name="document-portrait">
|
192
|
-
<fo:repeatable-page-master-alternatives>
|
193
|
-
<fo:conditional-page-master-reference odd-or-even="even" master-reference="even"/>
|
194
|
-
<fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd"/>
|
195
|
-
</fo:repeatable-page-master-alternatives>
|
196
|
-
</fo:page-sequence-master>
|
197
|
-
<fo:page-sequence-master master-name="document-landscape">
|
198
|
-
<fo:repeatable-page-master-alternatives>
|
199
|
-
<fo:conditional-page-master-reference odd-or-even="even" master-reference="even-landscape"/>
|
200
|
-
<fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd-landscape"/>
|
201
|
-
</fo:repeatable-page-master-alternatives>
|
202
|
-
</fo:page-sequence-master>
|
203
|
-
|
204
|
-
<fo:simple-page-master master-name="blank-page" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
205
|
-
<fo:region-body margin-top="107mm" margin-bottom="0mm" margin-left="18mm" margin-right="0mm"/>
|
206
|
-
</fo:simple-page-master>
|
207
|
-
|
208
|
-
<fo:simple-page-master master-name="last-page" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
|
209
|
-
<fo:region-body margin-top="107mm" margin-bottom="0mm" margin-left="18mm" margin-right="0mm" background-color="rgb(236, 236, 236)"/>
|
210
|
-
<fo:region-before region-name="header" extent="107mm"/>
|
211
|
-
<fo:region-start region-name="left-region" extent="18mm"/>
|
212
|
-
</fo:simple-page-master>
|
213
|
-
</fo:layout-master-set>
|
217
|
+
|
218
|
+
<xsl:call-template name="layout-master-set"/>
|
214
219
|
|
215
220
|
<fo:declarations>
|
216
221
|
<xsl:call-template name="addPDFUAmeta"/>
|
@@ -226,755 +231,713 @@
|
|
226
231
|
</redirect:write>
|
227
232
|
</xsl:if>
|
228
233
|
|
229
|
-
|
230
|
-
<xsl:if test="$stage >= 60">
|
234
|
+
<xsl:call-template name="cover-page"/>
|
231
235
|
|
232
|
-
|
233
|
-
<
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
<xsl:value-of select="(//mn:metanorma)[1]/mn:bibdata/mn:docidentifier[@type = 'iso-revdate']"/>
|
238
|
-
</fo:block>
|
239
|
-
</fo:block-container>
|
240
|
-
</fo:static-content>
|
241
|
-
<fo:flow flow-name="xsl-region-body">
|
242
|
-
<fo:block-container absolute-position="fixed" left="18mm" top="107mm">
|
243
|
-
<fo:block>
|
244
|
-
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Cover-Background))}" width="192mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
|
245
|
-
</fo:block>
|
246
|
-
</fo:block-container>
|
247
|
-
<xsl:call-template name="insertCoverPart1"/>
|
248
|
-
</fo:flow>
|
249
|
-
</fo:page-sequence> <!-- END: 1st Cover Page -->
|
236
|
+
<xsl:for-each select="//mn:metanorma">
|
237
|
+
<xsl:variable name="lang" select="mn:bibdata/mn:language[@current = 'true']"/>
|
238
|
+
<xsl:variable name="current_document">
|
239
|
+
<xsl:copy-of select="."/>
|
240
|
+
</xsl:variable>
|
250
241
|
|
251
|
-
|
252
|
-
<fo:page-sequence master-reference="cover_2nd" force-page-count="no-force" font-size="8pt">
|
253
|
-
<fo:flow flow-name="xsl-region-body">
|
254
|
-
<fo:block span="all">
|
255
|
-
<fo:block-container border="0.5pt solid black" margin-top="7mm">
|
256
|
-
<fo:block-container margin-left="2.5mm" margin-right="2.5mm" margin-top="1mm" margin-bottom="1mm">
|
257
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
258
|
-
<fo:table table-layout="fixed" width="100%">
|
259
|
-
<fo:table-column column-width="20mm"/>
|
260
|
-
<fo:table-column column-width="130mm"/>
|
261
|
-
<fo:table-body>
|
262
|
-
<fo:table-row>
|
263
|
-
<fo:table-cell>
|
264
|
-
<fo:block>
|
265
|
-
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Attention))}" width="17.8mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
|
266
|
-
</fo:block>
|
267
|
-
</fo:table-cell>
|
268
|
-
<fo:table-cell font-size="10pt" font-weight="bold" display-align="after">
|
269
|
-
<fo:block margin-bottom="3pt">THIS PUBLICATION IS COPYRIGHT PROTECTED</fo:block>
|
270
|
-
<fo:block margin-bottom="10pt">
|
271
|
-
<!-- Example: Copyright © 2014 IEC, Geneva, Switzerland -->
|
272
|
-
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-year')]"/>
|
273
|
-
</fo:block>
|
274
|
-
</fo:table-cell>
|
275
|
-
</fo:table-row>
|
276
|
-
</fo:table-body>
|
277
|
-
</fo:table>
|
278
|
-
<fo:block>
|
279
|
-
<fo:block margin-bottom="8pt" text-align="justify">
|
280
|
-
<!-- Example: All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form
|
281
|
-
or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from
|
282
|
-
either IEC or IEC's member National Committee in the country of the requester. If you have any questions about IEC
|
283
|
-
copyright or have an enquiry about obtaining additional rights to this publication, please contact the address below or
|
284
|
-
your local IEC member National Committee for further information. -->
|
285
|
-
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-message')]"/>
|
286
|
-
</fo:block>
|
287
|
-
<!-- Droits de reproduction réservés. Sauf indication contraire, aucune partie de cette publication ne peut être reproduite
|
288
|
-
ni utilisée sous quelque forme que ce soit et par aucun procédé, électronique ou mécanique, y compris la photocopie
|
289
|
-
et les microfilms, sans l'accord écrit de l'IEC ou du Comité national de l'IEC du pays du demandeur. Si vous avez des
|
290
|
-
questions sur le copyright de l'IEC ou si vous désirez obtenir des droits supplémentaires sur cette publication, utilisez
|
291
|
-
les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pays de résidence. -->
|
292
|
-
<fo:block margin-bottom="8pt" text-align="justify">
|
293
|
-
<xsl:apply-templates select="(//mn:metanorma)[2]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-message')]"/>
|
294
|
-
</fo:block>
|
242
|
+
<xsl:variable name="num"><xsl:number count="mn:metanorma" level="any"/></xsl:variable>
|
295
243
|
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
<fo:table-row>
|
302
|
-
<fo:table-cell>
|
303
|
-
<fo:block>
|
304
|
-
<!-- Example: IEC Central Office
|
305
|
-
3, rue de Varembé
|
306
|
-
CH-1211 Geneva 20
|
307
|
-
Switzerland -->
|
308
|
-
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-name')]" mode="coverpage"/>
|
309
|
-
<xsl:choose>
|
310
|
-
<xsl:when test="$telpos != 0">
|
311
|
-
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]/node()[position() < $telpos]" mode="coverpage"/>
|
312
|
-
</xsl:when>
|
313
|
-
<xsl:otherwise>
|
314
|
-
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]" mode="coverpage"/>
|
315
|
-
</xsl:otherwise>
|
316
|
-
</xsl:choose>
|
317
|
-
</fo:block>
|
318
|
-
</fo:table-cell>
|
319
|
-
<fo:table-cell>
|
320
|
-
<fo:block>
|
321
|
-
<!-- Example: Tel.: +41 22 919 02 11
|
322
|
-
Fax: +41 22 919 0
|
323
|
-
info@iec.ch
|
324
|
-
www.iec.ch -->
|
325
|
-
<xsl:choose>
|
326
|
-
<xsl:when test="$telpos != 0">
|
327
|
-
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]/node()[position() > $telpos]" mode="coverpage"/>
|
328
|
-
</xsl:when>
|
329
|
-
<xsl:otherwise> </xsl:otherwise>
|
330
|
-
</xsl:choose>
|
331
|
-
</fo:block>
|
332
|
-
</fo:table-cell>
|
333
|
-
</fo:table-row>
|
334
|
-
</fo:table-body>
|
335
|
-
</fo:table>
|
244
|
+
<xsl:variable name="updated_xml">
|
245
|
+
<xsl:for-each select="xalan:nodeset($current_document)">
|
246
|
+
<xsl:call-template name="updateXML"/>
|
247
|
+
</xsl:for-each>
|
248
|
+
</xsl:variable>
|
336
249
|
|
337
|
-
|
338
|
-
</fo:block-container>
|
339
|
-
</fo:block-container>
|
340
|
-
</fo:block-container>
|
341
|
-
</fo:block>
|
250
|
+
<xsl:for-each select="xalan:nodeset($updated_xml)/*">
|
342
251
|
|
343
|
-
|
344
|
-
<fo:block span="all" border-bottom="0.5pt solid black"/>
|
345
|
-
<!-- About the IEC
|
346
|
-
The International Electrotechnical Commission (IEC) is the leading global organization that prepares and publishes
|
347
|
-
International Standards for all electrical, electronic and related technologies.
|
348
|
-
About IEC publications
|
349
|
-
The technical content of IEC publications is kept under constant review by the IEC. Please make sure that you have the
|
350
|
-
latest edition, a corrigenda or an amendment might have been published.
|
351
|
-
...
|
352
|
-
-->
|
353
|
-
<xsl:if test="(//mn:metanorma)[2]/mn:boilerplate/mn:feedback-statement">
|
354
|
-
<xsl:apply-templates select="(//mn:metanorma)[2]/mn:boilerplate/mn:feedback-statement"/>
|
355
|
-
<fo:block span="all"/>
|
356
|
-
</xsl:if>
|
252
|
+
<!-- <xsl:for-each select="xalan:nodeset($current_document)"> -->
|
357
253
|
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
<xsl:variable name="lang_second" select="(//mn:metanorma)[2]/mn:bibdata/mn:language[@current = 'true']"/>
|
362
|
-
<!-- For 'Published' documents insert 3rd Cover Page
|
363
|
-
OR insert first Cover Page for FDIS -->
|
364
|
-
<xsl:if test="$stage >= 60 or $stage-abbreviation = 'FDIS'">
|
365
|
-
<fo:page-sequence master-reference="cover" force-page-count="no-force">
|
366
|
-
<fo:flow flow-name="xsl-region-body">
|
367
|
-
<xsl:call-template name="insertCoverPart1"/>
|
368
|
-
<fo:block-container absolute-position="fixed" left="26.5mm" top="214mm" width="163mm">
|
369
|
-
<fo:block-container height="32mm" display-align="after">
|
370
|
-
<fo:block font-size="9pt" color="{$color_blue}" line-height="150%">
|
371
|
-
<fo:block-container width="40mm">
|
372
|
-
<fo:block>
|
373
|
-
<xsl:call-template name="getLocalizedString">
|
374
|
-
<xsl:with-param name="key">IEC</xsl:with-param>
|
375
|
-
<xsl:with-param name="lang"><xsl:value-of select="$lang"/></xsl:with-param>
|
376
|
-
</xsl:call-template>
|
377
|
-
</fo:block>
|
378
|
-
</fo:block-container>
|
379
|
-
</fo:block>
|
254
|
+
<!-- <xsl:variable name="docid">
|
255
|
+
<xsl:call-template name="getDocumentId"/>
|
256
|
+
</xsl:variable> -->
|
380
257
|
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
<xsl:with-param name="returnEmptyIfNotFound">true</xsl:with-param>
|
386
|
-
</xsl:call-template>
|
387
|
-
</xsl:variable>
|
258
|
+
<xsl:variable name="updated_xml_with_pages">
|
259
|
+
<xsl:call-template name="processPrefaceAndMainSectionsDefault_items"/>
|
260
|
+
<xsl:copy-of select="//mn:indexsect"/>
|
261
|
+
</xsl:variable>
|
388
262
|
|
389
|
-
|
390
|
-
<fo:block font-size="9pt" line-height="150%" margin-top="8pt">
|
391
|
-
<fo:block-container width="40mm">
|
392
|
-
<fo:block>
|
393
|
-
<!-- 'COMMISSION ELECTROTECHNIQUE INTERNATIONALE' -->
|
394
|
-
<xsl:value-of select="$IEC_lang_second"/>
|
395
|
-
</fo:block>
|
396
|
-
</fo:block-container>
|
397
|
-
</fo:block>
|
398
|
-
</xsl:if>
|
399
|
-
</fo:block-container>
|
263
|
+
<xsl:for-each select="xalan:nodeset($updated_xml_with_pages)"> <!-- set context to preface/sections -->
|
400
264
|
|
401
|
-
|
402
|
-
<
|
403
|
-
|
404
|
-
<fo:table-column column-width="16mm"/>
|
405
|
-
<fo:table-body>
|
406
|
-
<fo:table-row border-bottom="0.5pt solid {$color_gray}" height="16mm">
|
407
|
-
<fo:table-cell font-size="8pt" text-align="right" display-align="center">
|
408
|
-
<fo:block padding-top="1mm">
|
409
|
-
<xsl:if test="normalize-space($price_code_value) != ''">
|
410
|
-
<fo:block color="{$color_blue}" margin-bottom="3pt">
|
411
|
-
<!-- PRICE CODE -->
|
412
|
-
<xsl:variable name="price_code">
|
413
|
-
<xsl:call-template name="getLocalizedString">
|
414
|
-
<xsl:with-param name="key">price-code</xsl:with-param>
|
415
|
-
<xsl:with-param name="lang"><xsl:value-of select="$lang"/></xsl:with-param>
|
416
|
-
</xsl:call-template>
|
417
|
-
</xsl:variable>
|
418
|
-
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new($price_code))"/>
|
419
|
-
</fo:block>
|
265
|
+
<xsl:call-template name="insertPrefacepages">
|
266
|
+
<xsl:with-param name="num" select="$num"/>
|
267
|
+
</xsl:call-template>
|
420
268
|
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
<fo:block padding-top="1mm"><xsl:value-of select="$price_code_value"/></fo:block>
|
438
|
-
</fo:table-cell>
|
439
|
-
</fo:table-row>
|
440
|
-
</fo:table-body>
|
441
|
-
</fo:table>
|
442
|
-
<fo:block font-size="8pt" text-align-last="justify">
|
443
|
-
<xsl:for-each select="//mn:metanorma/mn:bibdata/mn:ext/mn:ics">
|
444
|
-
<xsl:if test="position() = 1">ICS </xsl:if>
|
445
|
-
<xsl:value-of select="mn:code"/>
|
446
|
-
<xsl:if test="position() != last()"><xsl:text>; </xsl:text></xsl:if>
|
447
|
-
</xsl:for-each>
|
448
|
-
<xsl:text> </xsl:text>
|
449
|
-
<fo:inline keep-together.within-line="always"><fo:leader leader-pattern="space"/>
|
450
|
-
<xsl:text> </xsl:text>
|
451
|
-
<xsl:if test="//mn:metanorma/mn:bibdata/mn:docidentifier[@type='ISBN']">
|
452
|
-
<!-- Example: ISBN 978-2-8322-1532-6 -->
|
453
|
-
<xsl:text>ISBN </xsl:text>
|
454
|
-
<xsl:value-of select="//mn:metanorma/mn:bibdata/mn:docidentifier[@type='ISBN']"/>
|
455
|
-
</xsl:if>
|
456
|
-
</fo:inline>
|
457
|
-
</fo:block>
|
458
|
-
<fo:block-container margin-left="1.5mm">
|
459
|
-
<fo:block-container margin-left="0mm">
|
460
|
-
<fo:block-container border="0.5pt solid black" font-size="10pt" margin-top="8mm" font-weight="bold" padding-left="1.5mm" padding-top="0.5mm" width="102%" height="11mm" display-align="center" id="__internal_layout__warning_block">
|
461
|
-
<fo:block margin-left="1mm">Warning! Make sure that you obtained this publication from an authorized distributor.</fo:block>
|
462
|
-
<xsl:if test="//mn:metanorma/mn:bibdata/mn:title[@language = 'fr']">
|
463
|
-
<fo:block margin-left="1mm" margin-top="3pt">Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agréé.</fo:block>
|
464
|
-
</xsl:if>
|
465
|
-
</fo:block-container>
|
466
|
-
</fo:block-container>
|
467
|
-
</fo:block-container>
|
468
|
-
<fo:block font-size="6pt" margin-top="6mm" margin-left="1mm">
|
469
|
-
<xsl:if test="count((//mn:metanorma)[1]/mn:bibdata/mn:copyright) = 1">
|
470
|
-
<fo:block>® Registered trademark of the International Electrotechnical Commission</fo:block>
|
471
|
-
<xsl:if test="//mn:metanorma/mn:bibdata/mn:title[@language = 'fr']">
|
472
|
-
<fo:block margin-left="2mm">Marque déposée de la Commission Electrotechnique Internationale</fo:block>
|
473
|
-
</xsl:if>
|
474
|
-
</xsl:if>
|
475
|
-
</fo:block>
|
476
|
-
</fo:block-container>
|
269
|
+
<xsl:call-template name="insertBodypages">
|
270
|
+
<xsl:with-param name="lang" select="$lang"/>
|
271
|
+
</xsl:call-template>
|
272
|
+
|
273
|
+
</xsl:for-each>
|
274
|
+
|
275
|
+
</xsl:for-each>
|
276
|
+
</xsl:for-each>
|
277
|
+
|
278
|
+
<xsl:call-template name="back-page"/>
|
279
|
+
|
280
|
+
<!-- namespace document doesn't equal to xslt namespace -->
|
281
|
+
<xsl:if test="not(//mn:metanorma)">
|
282
|
+
<fo:page-sequence master-reference="blank-page">
|
283
|
+
<fo:flow flow-name="xsl-region-body">
|
284
|
+
<fo:block> </fo:block>
|
477
285
|
</fo:flow>
|
478
|
-
</fo:page-sequence>
|
286
|
+
</fo:page-sequence>
|
479
287
|
</xsl:if>
|
480
288
|
|
481
|
-
|
482
|
-
|
483
|
-
<!-- circulation cover page -->
|
484
|
-
<fo:page-sequence master-reference="cover-FDIS" force-page-count="no-force">
|
485
|
-
<fo:static-content flow-name="footer-FDIS">
|
486
|
-
<fo:block-container background-color="rgb(236, 232, 232)" padding="2mm" border="1.5pt solid white">
|
487
|
-
<fo:block font-size="8pt" margin-bottom="6pt">
|
289
|
+
</fo:root>
|
290
|
+
<!-- </xsl:variable> -->
|
488
291
|
|
489
|
-
|
292
|
+
</xsl:template>
|
490
293
|
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
<fo:flow flow-name="xsl-region-body">
|
294
|
+
<xsl:template name="cover-page">
|
295
|
+
<!-- For 'Published' documents insert two cover pages -->
|
296
|
+
<xsl:if test="$stage >= 60">
|
495
297
|
|
496
|
-
|
497
|
-
|
298
|
+
<!-- 1st Cover Page -->
|
299
|
+
<fo:page-sequence master-reference="cover" force-page-count="no-force">
|
300
|
+
<fo:static-content flow-name="left-region">
|
301
|
+
<fo:block-container reference-orientation="90">
|
302
|
+
<fo:block font-size="7pt" margin-left="3.5mm" margin-top="5.5mm">
|
303
|
+
<xsl:value-of select="(//mn:metanorma)[1]/mn:bibdata/mn:docidentifier[@type = 'iso-revdate']"/>
|
304
|
+
</fo:block>
|
305
|
+
</fo:block-container>
|
306
|
+
</fo:static-content>
|
307
|
+
<fo:flow flow-name="xsl-region-body">
|
308
|
+
<fo:block-container absolute-position="fixed" left="18mm" top="107mm">
|
309
|
+
<fo:block>
|
310
|
+
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Cover-Background))}" width="192mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
|
311
|
+
</fo:block>
|
312
|
+
</fo:block-container>
|
313
|
+
<xsl:call-template name="insertCoverPart1"/>
|
314
|
+
</fo:flow>
|
315
|
+
</fo:page-sequence> <!-- END: 1st Cover Page -->
|
498
316
|
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
<!-- Examples: 'FINAL DRAFT INTERNATIONAL STANDARD (FDIS)', 'COMMITTEE DRAFT FOR VOTE (CDV)' -->
|
510
|
-
<xsl:call-template name="addLetterSpacing">
|
511
|
-
<xsl:with-param name="text" select="concat($stage-fullname-uppercased, ' (', $stage-abbreviation ,')')"/>
|
512
|
-
</xsl:call-template>
|
513
|
-
<xsl:text> </xsl:text>
|
514
|
-
</fo:block>
|
515
|
-
<fo:block-container margin-left="57mm">
|
516
|
-
<fo:block-container margin-left="0mm">
|
517
|
-
<fo:table table-layout="fixed" width="118mm" background-color="rgb(219, 229, 241)" id="__internal_layout__project_{generate-id()}">
|
518
|
-
<fo:table-column column-width="50%"/>
|
519
|
-
<fo:table-column column-width="50%"/>
|
317
|
+
<!-- 2nd Cover Page -->
|
318
|
+
<fo:page-sequence master-reference="cover_2nd" force-page-count="no-force" font-size="8pt">
|
319
|
+
<fo:flow flow-name="xsl-region-body">
|
320
|
+
<fo:block span="all">
|
321
|
+
<fo:block-container border="0.5pt solid black" margin-top="7mm">
|
322
|
+
<fo:block-container margin-left="2.5mm" margin-right="2.5mm" margin-top="1mm" margin-bottom="1mm">
|
323
|
+
<fo:block-container margin-left="0mm" margin-right="0mm">
|
324
|
+
<fo:table table-layout="fixed" width="100%">
|
325
|
+
<fo:table-column column-width="20mm"/>
|
326
|
+
<fo:table-column column-width="130mm"/>
|
520
327
|
<fo:table-body>
|
521
|
-
<fo:table-row
|
522
|
-
<fo:table-cell
|
523
|
-
<fo:block
|
524
|
-
<
|
525
|
-
<xsl:with-param name="text" select="'Project number:'"/>
|
526
|
-
</xsl:call-template>
|
527
|
-
</fo:block>
|
528
|
-
<fo:block font-size="9pt" font-weight="bold">
|
529
|
-
<xsl:call-template name="addLetterSpacing">
|
530
|
-
<xsl:with-param name="text"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:ext/mn:structuredidentifier/mn:project-number"/></xsl:with-param>
|
531
|
-
</xsl:call-template>
|
532
|
-
</fo:block>
|
533
|
-
</fo:table-cell>
|
534
|
-
</fo:table-row>
|
535
|
-
<fo:table-row height="12mm">
|
536
|
-
<fo:table-cell border="1.5pt solid white" padding="1.5mm" padding-bottom="0mm">
|
537
|
-
<fo:block font-size="6.5pt" margin-bottom="6pt">
|
538
|
-
<xsl:call-template name="addLetterSpacingSmallCaps">
|
539
|
-
<xsl:with-param name="text" select="'Date of circulation:'"/>
|
540
|
-
</xsl:call-template>
|
541
|
-
</fo:block>
|
542
|
-
<fo:block font-size="9pt" font-weight="bold">
|
543
|
-
<xsl:call-template name="addLetterSpacing">
|
544
|
-
<xsl:with-param name="text"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:date[@type ='circulated']/mn:on"/></xsl:with-param>
|
545
|
-
</xsl:call-template>
|
546
|
-
</fo:block>
|
547
|
-
</fo:table-cell>
|
548
|
-
<fo:table-cell border="1.5pt solid white" padding="1.5mm" padding-bottom="0mm">
|
549
|
-
<fo:block font-size="6.5pt" margin-bottom="6pt">
|
550
|
-
<xsl:call-template name="addLetterSpacingSmallCaps">
|
551
|
-
<xsl:with-param name="text" select="'Closing date for voting:'"/>
|
552
|
-
</xsl:call-template>
|
553
|
-
</fo:block>
|
554
|
-
<fo:block font-size="9pt" font-weight="bold">
|
555
|
-
<xsl:call-template name="addLetterSpacing">
|
556
|
-
<!-- 2019-12-06 -->
|
557
|
-
<xsl:with-param name="text"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:date[@type='vote-ended']/mn:on"/></xsl:with-param>
|
558
|
-
</xsl:call-template>
|
328
|
+
<fo:table-row>
|
329
|
+
<fo:table-cell>
|
330
|
+
<fo:block>
|
331
|
+
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Attention))}" width="17.8mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
|
559
332
|
</fo:block>
|
560
333
|
</fo:table-cell>
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
<xsl:
|
566
|
-
<xsl:with-param name="text" select="'Supersedes documents:'"/>
|
567
|
-
</xsl:call-template>
|
568
|
-
</fo:block>
|
569
|
-
<fo:block font-size="9pt" font-weight="bold">
|
570
|
-
<xsl:variable name="supersedes_documents">
|
571
|
-
<!-- <xsl:for-each select="//mn:metanorma/mn:bibdata/mn:relation[@type='supersedes']/mn:bibitem/mn:docnumber"> -->
|
572
|
-
<xsl:for-each select="//mn:metanorma/mn:bibdata/mn:relation[@type='obsoletes']/mn:bibitem/mn:docidentifier">
|
573
|
-
<xsl:value-of select="."/>
|
574
|
-
<xsl:if test="position() != last()">,</xsl:if>
|
575
|
-
</xsl:for-each>
|
576
|
-
</xsl:variable>
|
577
|
-
<xsl:call-template name="addLetterSpacing">
|
578
|
-
<xsl:with-param name="text"><xsl:value-of select="$supersedes_documents"/></xsl:with-param>
|
579
|
-
</xsl:call-template>
|
334
|
+
<fo:table-cell font-size="10pt" font-weight="bold" display-align="after">
|
335
|
+
<fo:block margin-bottom="3pt">THIS PUBLICATION IS COPYRIGHT PROTECTED</fo:block>
|
336
|
+
<fo:block margin-bottom="10pt">
|
337
|
+
<!-- Example: Copyright © 2014 IEC, Geneva, Switzerland -->
|
338
|
+
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-year')]"/>
|
580
339
|
</fo:block>
|
581
340
|
</fo:table-cell>
|
582
341
|
</fo:table-row>
|
583
342
|
</fo:table-body>
|
584
343
|
</fo:table>
|
585
|
-
|
586
|
-
|
344
|
+
<fo:block>
|
345
|
+
<fo:block margin-bottom="8pt" text-align="justify">
|
346
|
+
<!-- Example: All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form
|
347
|
+
or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from
|
348
|
+
either IEC or IEC's member National Committee in the country of the requester. If you have any questions about IEC
|
349
|
+
copyright or have an enquiry about obtaining additional rights to this publication, please contact the address below or
|
350
|
+
your local IEC member National Committee for further information. -->
|
351
|
+
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-message')]"/>
|
352
|
+
</fo:block>
|
353
|
+
<!-- Droits de reproduction réservés. Sauf indication contraire, aucune partie de cette publication ne peut être reproduite
|
354
|
+
ni utilisée sous quelque forme que ce soit et par aucun procédé, électronique ou mécanique, y compris la photocopie
|
355
|
+
et les microfilms, sans l'accord écrit de l'IEC ou du Comité national de l'IEC du pays du demandeur. Si vous avez des
|
356
|
+
questions sur le copyright de l'IEC ou si vous désirez obtenir des droits supplémentaires sur cette publication, utilisez
|
357
|
+
les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pays de résidence. -->
|
358
|
+
<fo:block margin-bottom="8pt" text-align="justify">
|
359
|
+
<xsl:apply-templates select="(//mn:metanorma)[2]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-message')]"/>
|
360
|
+
</fo:block>
|
587
361
|
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
<fo:table-row height="4mm">
|
596
|
-
<fo:table-cell number-columns-spanned="2" border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
|
597
|
-
<fo:block>
|
598
|
-
<!-- If //bibdata/ext/editorialgroup/subcommittee exists, use "IEC SC" + //bibdata/ext/editorialgroup/subcommittee/@number + //bibdata/ext/editorialgroup/subcommittee,
|
599
|
-
else use "IEC TC" + //bibdata/ext/editorialgroup/technical-committee/@number + //bibdata/ext/editorialgroup/technical-committee -->
|
600
|
-
<xsl:choose>
|
601
|
-
<xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:subcommittee">
|
602
|
-
<fo:block font-size="6.5pt">
|
603
|
-
<fo:inline font-size="8pt">IEC SC <xsl:value-of select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:subcommittee/@number"/> : </fo:inline>
|
604
|
-
<xsl:call-template name="addLetterSpacingSmallCaps">
|
605
|
-
<xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:subcommittee"/>
|
606
|
-
</xsl:call-template>
|
607
|
-
</fo:block>
|
608
|
-
</xsl:when>
|
609
|
-
<xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:technical-committee">
|
610
|
-
<fo:block font-size="6.5pt">
|
611
|
-
<fo:inline font-size="8pt">IEC TC <xsl:value-of select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:technical-committee/@number"/> : </fo:inline>
|
612
|
-
<xsl:call-template name="addLetterSpacingSmallCaps">
|
613
|
-
<xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:technical-committee"/>
|
614
|
-
</xsl:call-template>
|
615
|
-
</fo:block>
|
616
|
-
</xsl:when>
|
617
|
-
</xsl:choose>
|
618
|
-
</fo:block>
|
619
|
-
</fo:table-cell>
|
620
|
-
</fo:table-row>
|
621
|
-
<fo:table-row height="12mm">
|
622
|
-
<fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
|
623
|
-
<fo:block font-size="6.5pt" margin-bottom="6pt">
|
624
|
-
<xsl:call-template name="addLetterSpacingSmallCaps">
|
625
|
-
<xsl:with-param name="text" select="'Secretariat:'"/>
|
626
|
-
</xsl:call-template>
|
627
|
-
</fo:block>
|
628
|
-
<fo:block font-size="9pt">
|
629
|
-
<xsl:call-template name="addLetterSpacing">
|
630
|
-
<xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:secretariat"/>
|
631
|
-
</xsl:call-template>
|
632
|
-
</fo:block>
|
633
|
-
</fo:table-cell>
|
634
|
-
<fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
|
635
|
-
<fo:block font-size="6.5pt" margin-bottom="6pt">
|
636
|
-
<xsl:call-template name="addLetterSpacingSmallCaps">
|
637
|
-
<xsl:with-param name="text" select="'Secretary:'"/>
|
638
|
-
</xsl:call-template>
|
639
|
-
</fo:block>
|
640
|
-
<fo:block font-size="9pt">
|
641
|
-
<!-- Example: Ms Shanti Conn -->
|
642
|
-
<xsl:call-template name="addLetterSpacing">
|
643
|
-
<xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:secretary"/>
|
644
|
-
</xsl:call-template>
|
645
|
-
</fo:block>
|
646
|
-
</fo:table-cell>
|
647
|
-
</fo:table-row>
|
648
|
-
<fo:table-row height="12mm">
|
649
|
-
<fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
|
650
|
-
<xsl:if test="not($stage-abbreviation = 'FDIS' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD')">
|
651
|
-
<xsl:attribute name="number-columns-spanned">2</xsl:attribute>
|
652
|
-
</xsl:if>
|
653
|
-
<fo:block font-size="6.5pt" margin-bottom="6pt">
|
654
|
-
<xsl:call-template name="addLetterSpacingSmallCaps">
|
655
|
-
<xsl:with-param name="text" select="'Of interest to the following committees:'"/>
|
656
|
-
</xsl:call-template>
|
657
|
-
</fo:block>
|
658
|
-
<fo:block font-size="9pt">
|
659
|
-
<xsl:call-template name="addLetterSpacing">
|
660
|
-
<xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:interest-to-committees"/>
|
661
|
-
</xsl:call-template>
|
662
|
-
</fo:block>
|
663
|
-
</fo:table-cell>
|
664
|
-
<xsl:if test="$stage-abbreviation = 'FDIS' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD'">
|
665
|
-
<fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
|
666
|
-
<fo:block font-size="6.5pt" margin-bottom="6pt">
|
667
|
-
<xsl:if test="$stage-abbreviation = 'FDIS'">
|
668
|
-
<xsl:call-template name="addLetterSpacingSmallCaps">
|
669
|
-
<xsl:with-param name="text" select="'horizontal standard:'"/>
|
670
|
-
</xsl:call-template>
|
671
|
-
</xsl:if>
|
672
|
-
<xsl:if test="$stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD'">
|
673
|
-
<xsl:call-template name="addLetterSpacingSmallCaps">
|
674
|
-
<xsl:with-param name="text" select="'Proposed horizontal standard:'"/>
|
675
|
-
</xsl:call-template>
|
676
|
-
</xsl:if>
|
677
|
-
</fo:block>
|
362
|
+
<xsl:variable name="telpos" select="count((//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]/text()[contains(., 'Tel.')]/preceding-sibling::node())"/>
|
363
|
+
<fo:table table-layout="fixed" width="100%">
|
364
|
+
<fo:table-column column-width="59mm"/>
|
365
|
+
<fo:table-column column-width="90mm"/>
|
366
|
+
<fo:table-body>
|
367
|
+
<fo:table-row>
|
368
|
+
<fo:table-cell>
|
678
369
|
<fo:block>
|
370
|
+
<!-- Example: IEC Central Office
|
371
|
+
3, rue de Varembé
|
372
|
+
CH-1211 Geneva 20
|
373
|
+
Switzerland -->
|
374
|
+
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-name')]" mode="coverpage"/>
|
679
375
|
<xsl:choose>
|
680
|
-
<xsl:when test="
|
681
|
-
<xsl:
|
376
|
+
<xsl:when test="$telpos != 0">
|
377
|
+
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]/node()[position() < $telpos]" mode="coverpage"/>
|
682
378
|
</xsl:when>
|
683
379
|
<xsl:otherwise>
|
684
|
-
<xsl:
|
380
|
+
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]" mode="coverpage"/>
|
685
381
|
</xsl:otherwise>
|
686
382
|
</xsl:choose>
|
687
383
|
</fo:block>
|
688
|
-
|
689
|
-
<xsl:if test="$stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD'">
|
690
|
-
<fo:block-container background-color="rgb(236, 232, 232)" margin-left="-2mm" margin-right="-2mm">
|
691
|
-
<fo:block-container margin-left="1mm" margin-right="1mm">
|
692
|
-
<fo:block font-size="8pt" padding="2mm">
|
693
|
-
<xsl:call-template name="addLetterSpacing">
|
694
|
-
<xsl:with-param name="text" select="'Other TC/SCs are requested to indicate their interest, if any, in this CDV to the secretary.'"/>
|
695
|
-
</xsl:call-template>
|
696
|
-
</fo:block>
|
697
|
-
</fo:block-container>
|
698
|
-
</fo:block-container>
|
699
|
-
</xsl:if>
|
700
384
|
</fo:table-cell>
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
<fo:block font-size="6.5pt" margin-bottom="4pt">
|
708
|
-
<xsl:call-template name="addLetterSpacingSmallCaps">
|
709
|
-
<xsl:with-param name="text" select="'Functions concerned:'"/>
|
710
|
-
</xsl:call-template>
|
711
|
-
</fo:block>
|
712
|
-
<!-- function: { emc | safety | environment | quality-assurance } -->
|
713
|
-
<fo:block font-size="6.5pt">
|
714
|
-
<xsl:choose>
|
715
|
-
<xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:function = 'emc'">
|
716
|
-
<xsl:call-template name="insertCheckBoxOn"/>
|
717
|
-
</xsl:when>
|
718
|
-
<xsl:otherwise>
|
719
|
-
<xsl:call-template name="insertCheckBoxOff"/>
|
720
|
-
</xsl:otherwise>
|
721
|
-
</xsl:choose>
|
722
|
-
<xsl:call-template name="addLetterSpacingSmallCaps">
|
723
|
-
<xsl:with-param name="text" select="'EMC'"/>
|
724
|
-
</xsl:call-template>
|
725
|
-
<fo:inline padding-right="33mm"> </fo:inline>
|
726
|
-
<xsl:choose>
|
727
|
-
<xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:function = 'environment'">
|
728
|
-
<xsl:call-template name="insertCheckBoxOn"/>
|
729
|
-
</xsl:when>
|
730
|
-
<xsl:otherwise>
|
731
|
-
<xsl:call-template name="insertCheckBoxOff"/>
|
732
|
-
</xsl:otherwise>
|
733
|
-
</xsl:choose>
|
734
|
-
<xsl:call-template name="addLetterSpacingSmallCaps">
|
735
|
-
<xsl:with-param name="text" select="'Environment'"/>
|
736
|
-
</xsl:call-template>
|
737
|
-
</fo:block>
|
738
|
-
</fo:table-cell>
|
739
|
-
<fo:table-cell padding="1.5mm" padding-bottom="0mm">
|
740
|
-
<fo:block font-size="6.5pt" margin-bottom="6pt"> </fo:block>
|
741
|
-
<fo:block font-size="6.5pt">
|
742
|
-
<xsl:choose>
|
743
|
-
<xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:function = 'quality-assurance'">
|
744
|
-
<xsl:call-template name="insertCheckBoxOn"/>
|
745
|
-
</xsl:when>
|
746
|
-
<xsl:otherwise>
|
747
|
-
<xsl:call-template name="insertCheckBoxOff"/>
|
748
|
-
</xsl:otherwise>
|
749
|
-
</xsl:choose>
|
750
|
-
<xsl:call-template name="addLetterSpacingSmallCaps">
|
751
|
-
<xsl:with-param name="text" select="'Quality assurance'"/>
|
752
|
-
</xsl:call-template>
|
753
|
-
<fo:inline padding-right="13mm"> </fo:inline>
|
385
|
+
<fo:table-cell>
|
386
|
+
<fo:block>
|
387
|
+
<!-- Example: Tel.: +41 22 919 02 11
|
388
|
+
Fax: +41 22 919 0
|
389
|
+
info@iec.ch
|
390
|
+
www.iec.ch -->
|
754
391
|
<xsl:choose>
|
755
|
-
<xsl:when test="
|
756
|
-
<xsl:
|
392
|
+
<xsl:when test="$telpos != 0">
|
393
|
+
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]/node()[position() > $telpos]" mode="coverpage"/>
|
757
394
|
</xsl:when>
|
758
|
-
<xsl:otherwise>
|
759
|
-
<xsl:call-template name="insertCheckBoxOff"/>
|
760
|
-
</xsl:otherwise>
|
395
|
+
<xsl:otherwise> </xsl:otherwise>
|
761
396
|
</xsl:choose>
|
762
|
-
<xsl:call-template name="addLetterSpacingSmallCaps">
|
763
|
-
<xsl:with-param name="text" select="'Safety'"/>
|
764
|
-
</xsl:call-template>
|
765
397
|
</fo:block>
|
766
398
|
</fo:table-cell>
|
767
399
|
</fo:table-row>
|
768
|
-
</
|
769
|
-
|
770
|
-
<xsl:if test="not($stage-abbreviation = 'CD' or $stage-abbreviation = 'CD-TSTR' or $stage-abbreviation = 'DTS' or $stage-abbreviation = 'DTR' or $stage-abbreviation = 'DPAS')">
|
400
|
+
</fo:table-body>
|
401
|
+
</fo:table>
|
771
402
|
|
772
|
-
|
773
|
-
<fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
|
774
|
-
<fo:block font-size="6.5pt" margin-bottom="12pt">
|
775
|
-
<xsl:choose>
|
776
|
-
<xsl:when test="/mn:metanorma/mn:bibdata/mn:ext/mn:cen-processing = 'true'">
|
777
|
-
<xsl:call-template name="insertCheckBoxOn"/>
|
778
|
-
</xsl:when>
|
779
|
-
<xsl:otherwise>
|
780
|
-
<xsl:call-template name="insertCheckBoxOff"/>
|
781
|
-
</xsl:otherwise>
|
782
|
-
</xsl:choose>
|
783
|
-
<xsl:call-template name="addLetterSpacingSmallCaps">
|
784
|
-
<xsl:with-param name="text" select="'Submitted for CENELEC parallel voting'"/>
|
785
|
-
</xsl:call-template>
|
786
|
-
</fo:block>
|
787
|
-
|
788
|
-
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:feedback-statement/mn:clause[@id = 'boilerplate-cenelec-attention']"/>
|
789
|
-
|
790
|
-
</fo:table-cell>
|
791
|
-
<fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
|
792
|
-
<fo:block font-size="6.5pt" margin-bottom="6pt">
|
793
|
-
<xsl:choose>
|
794
|
-
<xsl:when test="/mn:metanorma/mn:bibdata/mn:ext/mn:cen-processing = 'true'">
|
795
|
-
<xsl:call-template name="insertCheckBoxOff"/>
|
796
|
-
</xsl:when>
|
797
|
-
<xsl:otherwise>
|
798
|
-
<xsl:call-template name="insertCheckBoxOn"/>
|
799
|
-
</xsl:otherwise>
|
800
|
-
</xsl:choose>
|
801
|
-
<xsl:call-template name="addLetterSpacingSmallCaps">
|
802
|
-
<xsl:with-param name="text" select="'Not submitted for CENELEC parallel voting'"/>
|
803
|
-
</xsl:call-template>
|
804
|
-
</fo:block>
|
805
|
-
</fo:table-cell>
|
806
|
-
</fo:table-row>
|
807
|
-
</xsl:if>
|
808
|
-
</fo:table-body>
|
809
|
-
</fo:table>
|
403
|
+
</fo:block>
|
810
404
|
</fo:block-container>
|
811
405
|
</fo:block-container>
|
406
|
+
</fo:block-container>
|
407
|
+
</fo:block>
|
812
408
|
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
<xsl:text>:</xsl:text>
|
828
|
-
</xsl:with-param>
|
829
|
-
</xsl:call-template>
|
830
|
-
</fo:block>
|
831
|
-
<fo:block font-size="9pt" font-weight="bold">
|
832
|
-
<xsl:call-template name="addLetterSpacing">
|
833
|
-
<xsl:with-param name="text"><xsl:value-of select="(//mn:metanorma)[1]/mn:bibdata/mn:title[@language = $lang and @type = 'main']"/></xsl:with-param>
|
834
|
-
</xsl:call-template>
|
835
|
-
</fo:block>
|
836
|
-
</fo:block-container>
|
409
|
+
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:feedback-statement"/> <!-- //mn:clause[not(@id) or @id != 'boilerplate-cenelec-attention'] -->
|
410
|
+
<fo:block span="all" border-bottom="0.5pt solid black"/>
|
411
|
+
<!-- About the IEC
|
412
|
+
The International Electrotechnical Commission (IEC) is the leading global organization that prepares and publishes
|
413
|
+
International Standards for all electrical, electronic and related technologies.
|
414
|
+
About IEC publications
|
415
|
+
The technical content of IEC publications is kept under constant review by the IEC. Please make sure that you have the
|
416
|
+
latest edition, a corrigenda or an amendment might have been published.
|
417
|
+
...
|
418
|
+
-->
|
419
|
+
<xsl:if test="(//mn:metanorma)[2]/mn:boilerplate/mn:feedback-statement">
|
420
|
+
<xsl:apply-templates select="(//mn:metanorma)[2]/mn:boilerplate/mn:feedback-statement"/>
|
421
|
+
<fo:block span="all"/>
|
422
|
+
</xsl:if>
|
837
423
|
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
424
|
+
</fo:flow>
|
425
|
+
</fo:page-sequence> <!-- END: 2nd Cover Page -->
|
426
|
+
</xsl:if>
|
427
|
+
<xsl:variable name="lang_second" select="(//mn:metanorma)[2]/mn:bibdata/mn:language[@current = 'true']"/>
|
428
|
+
<!-- For 'Published' documents insert 3rd Cover Page
|
429
|
+
OR insert first Cover Page for FDIS -->
|
430
|
+
<xsl:if test="$stage >= 60 or $stage-abbreviation = 'FDIS'">
|
431
|
+
<fo:page-sequence master-reference="cover" force-page-count="no-force">
|
432
|
+
<fo:flow flow-name="xsl-region-body">
|
433
|
+
<xsl:call-template name="insertCoverPart1"/>
|
434
|
+
<fo:block-container absolute-position="fixed" left="26.5mm" top="214mm" width="163mm">
|
435
|
+
<fo:block-container height="32mm" display-align="after">
|
436
|
+
<fo:block font-size="9pt" color="{$color_blue}" line-height="150%">
|
437
|
+
<fo:block-container width="40mm">
|
438
|
+
<fo:block>
|
439
|
+
<xsl:call-template name="getLocalizedString">
|
440
|
+
<xsl:with-param name="key">IEC</xsl:with-param>
|
441
|
+
<xsl:with-param name="lang"><xsl:value-of select="$lang"/></xsl:with-param>
|
849
442
|
</xsl:call-template>
|
850
|
-
<!-- 2023 -->
|
851
|
-
<fo:inline font-size="9pt"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:date[@type='unchanged']/mn:on"/></fo:inline>
|
852
443
|
</fo:block>
|
853
444
|
</fo:block-container>
|
854
|
-
</
|
445
|
+
</fo:block>
|
855
446
|
|
856
|
-
<
|
857
|
-
<
|
858
|
-
<xsl:
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
447
|
+
<xsl:variable name="IEC_lang_second">
|
448
|
+
<xsl:call-template name="getLocalizedString">
|
449
|
+
<xsl:with-param name="key">IEC</xsl:with-param>
|
450
|
+
<xsl:with-param name="lang"><xsl:value-of select="$lang_second"/></xsl:with-param>
|
451
|
+
<xsl:with-param name="returnEmptyIfNotFound">true</xsl:with-param>
|
452
|
+
</xsl:call-template>
|
453
|
+
</xsl:variable>
|
454
|
+
|
455
|
+
<xsl:if test="normalize-space($IEC_lang_second) != ''">
|
456
|
+
<fo:block font-size="9pt" line-height="150%" margin-top="8pt">
|
457
|
+
<fo:block-container width="40mm">
|
458
|
+
<fo:block>
|
459
|
+
<!-- 'COMMISSION ELECTROTECHNIQUE INTERNATIONALE' -->
|
460
|
+
<xsl:value-of select="$IEC_lang_second"/>
|
461
|
+
</fo:block>
|
462
|
+
</fo:block-container>
|
867
463
|
</fo:block>
|
868
|
-
|
869
|
-
|
464
|
+
</xsl:if>
|
465
|
+
</fo:block-container>
|
466
|
+
|
467
|
+
<xsl:variable name="price_code_value" select="//mn:metanorma/mn:bibdata/mn:ext/mn:price-code"/>
|
468
|
+
<fo:table table-layout="fixed" width="102%" margin-top="-9mm" margin-bottom="2mm" id="__internal_layout__price_code">
|
469
|
+
<fo:table-column column-width="148mm"/>
|
470
|
+
<fo:table-column column-width="16mm"/>
|
471
|
+
<fo:table-body>
|
472
|
+
<fo:table-row border-bottom="0.5pt solid {$color_gray}" height="16mm">
|
473
|
+
<fo:table-cell font-size="8pt" text-align="right" display-align="center">
|
474
|
+
<fo:block padding-top="1mm">
|
475
|
+
<xsl:if test="normalize-space($price_code_value) != ''">
|
476
|
+
<fo:block color="{$color_blue}" margin-bottom="3pt">
|
477
|
+
<!-- PRICE CODE -->
|
478
|
+
<xsl:variable name="price_code">
|
479
|
+
<xsl:call-template name="getLocalizedString">
|
480
|
+
<xsl:with-param name="key">price-code</xsl:with-param>
|
481
|
+
<xsl:with-param name="lang"><xsl:value-of select="$lang"/></xsl:with-param>
|
482
|
+
</xsl:call-template>
|
483
|
+
</xsl:variable>
|
484
|
+
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new($price_code))"/>
|
485
|
+
</fo:block>
|
486
|
+
|
487
|
+
<xsl:variable name="price_code_lang_second">
|
488
|
+
<xsl:call-template name="getLocalizedString">
|
489
|
+
<xsl:with-param name="key">price-code</xsl:with-param>
|
490
|
+
<xsl:with-param name="lang"><xsl:value-of select="$lang_second"/></xsl:with-param>
|
491
|
+
<xsl:with-param name="returnEmptyIfNotFound">true</xsl:with-param>
|
492
|
+
</xsl:call-template>
|
493
|
+
</xsl:variable>
|
494
|
+
<xsl:if test="normalize-space($price_code_lang_second) != ''">
|
495
|
+
<fo:block>
|
496
|
+
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new($price_code_lang_second))"/>
|
497
|
+
</fo:block>
|
498
|
+
</xsl:if>
|
499
|
+
</xsl:if>
|
500
|
+
</fo:block>
|
501
|
+
</fo:table-cell>
|
502
|
+
<fo:table-cell font-size="25pt" font-weight="bold" color="{$color_gray}" text-align="right" display-align="center">
|
503
|
+
<fo:block padding-top="1mm"><xsl:value-of select="$price_code_value"/></fo:block>
|
504
|
+
</fo:table-cell>
|
505
|
+
</fo:table-row>
|
506
|
+
</fo:table-body>
|
507
|
+
</fo:table>
|
508
|
+
<fo:block font-size="8pt" text-align-last="justify">
|
509
|
+
<xsl:for-each select="//mn:metanorma/mn:bibdata/mn:ext/mn:ics">
|
510
|
+
<xsl:if test="position() = 1">ICS </xsl:if>
|
511
|
+
<xsl:value-of select="mn:code"/>
|
512
|
+
<xsl:if test="position() != last()"><xsl:text>; </xsl:text></xsl:if>
|
513
|
+
</xsl:for-each>
|
514
|
+
<xsl:text> </xsl:text>
|
515
|
+
<fo:inline keep-together.within-line="always"><fo:leader leader-pattern="space"/>
|
516
|
+
<xsl:text> </xsl:text>
|
517
|
+
<xsl:if test="//mn:metanorma/mn:bibdata/mn:docidentifier[@type='ISBN']">
|
518
|
+
<!-- Example: ISBN 978-2-8322-1532-6 -->
|
519
|
+
<xsl:text>ISBN </xsl:text>
|
520
|
+
<xsl:value-of select="//mn:metanorma/mn:bibdata/mn:docidentifier[@type='ISBN']"/>
|
521
|
+
</xsl:if>
|
522
|
+
</fo:inline>
|
523
|
+
</fo:block>
|
524
|
+
<fo:block-container margin-left="1.5mm">
|
525
|
+
<fo:block-container margin-left="0mm">
|
526
|
+
<fo:block-container border="0.5pt solid black" font-size="10pt" margin-top="8mm" font-weight="bold" padding-left="1.5mm" padding-top="0.5mm" width="102%" height="11mm" display-align="center" id="__internal_layout__warning_block">
|
527
|
+
<fo:block margin-left="1mm">Warning! Make sure that you obtained this publication from an authorized distributor.</fo:block>
|
528
|
+
<xsl:if test="//mn:metanorma/mn:bibdata/mn:title[@language = 'fr']">
|
529
|
+
<fo:block margin-left="1mm" margin-top="3pt">Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agréé.</fo:block>
|
530
|
+
</xsl:if>
|
531
|
+
</fo:block-container>
|
870
532
|
</fo:block-container>
|
533
|
+
</fo:block-container>
|
534
|
+
<fo:block font-size="6pt" margin-top="6mm" margin-left="1mm">
|
535
|
+
<xsl:if test="count((//mn:metanorma)[1]/mn:bibdata/mn:copyright) = 1">
|
536
|
+
<fo:block>® Registered trademark of the International Electrotechnical Commission</fo:block>
|
537
|
+
<xsl:if test="//mn:metanorma/mn:bibdata/mn:title[@language = 'fr']">
|
538
|
+
<fo:block margin-left="2mm">Marque déposée de la Commission Electrotechnique Internationale</fo:block>
|
539
|
+
</xsl:if>
|
540
|
+
</xsl:if>
|
541
|
+
</fo:block>
|
542
|
+
</fo:block-container>
|
543
|
+
</fo:flow>
|
544
|
+
</fo:page-sequence> <!-- END: cover -->
|
545
|
+
</xsl:if>
|
871
546
|
|
872
|
-
|
873
|
-
|
874
|
-
|
547
|
+
<!-- for non-published documents insert cover page (2nd for FDIS) ) -->
|
548
|
+
<xsl:if test="$stage-abbreviation = 'NWIP' or $stage-abbreviation = 'PWI' or $stage-abbreviation = 'NP' or $stage-abbreviation = 'AWI' or $stage-abbreviation = 'WD' or $stage-abbreviation = 'CD' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD-TSTR' or $stage-abbreviation = 'DTS' or $stage-abbreviation = 'DTR' or $stage-abbreviation = 'DPAS' or $stage-abbreviation = 'FDIS'">
|
549
|
+
<!-- circulation cover page -->
|
550
|
+
<fo:page-sequence master-reference="cover-FDIS" force-page-count="no-force">
|
551
|
+
<fo:static-content flow-name="footer-FDIS">
|
552
|
+
<fo:block-container background-color="rgb(236, 232, 232)" padding="2mm" border="1.5pt solid white">
|
553
|
+
<fo:block font-size="8pt" margin-bottom="6pt">
|
875
554
|
|
876
|
-
|
877
|
-
<xsl:variable name="lang" select="mn:bibdata/mn:language[@current = 'true']"/>
|
878
|
-
<xsl:variable name="current_document">
|
879
|
-
<xsl:copy-of select="."/>
|
880
|
-
</xsl:variable>
|
555
|
+
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[not(@id)]"/>
|
881
556
|
|
882
|
-
|
557
|
+
</fo:block>
|
558
|
+
</fo:block-container>
|
559
|
+
</fo:static-content>
|
560
|
+
<fo:flow flow-name="xsl-region-body">
|
883
561
|
|
884
|
-
<
|
885
|
-
<xsl:
|
886
|
-
|
887
|
-
|
888
|
-
|
562
|
+
<fo:block text-align-last="justify" margin-left="-0.5mm">
|
563
|
+
<xsl:call-template name="outputLogo"/>
|
564
|
+
|
565
|
+
<xsl:if test="$stage-abbreviation = 'FDIS'">
|
566
|
+
<fo:inline font-size="8pt" padding-left="0.5mm" color="{$color_blue}">®</fo:inline>
|
567
|
+
</xsl:if>
|
568
|
+
<fo:inline keep-together.within-line="always" font-size="18pt" font-weight="bold" baseline-shift="10mm"><fo:leader leader-pattern="space"/>
|
569
|
+
<!-- Ex: 34D/1511/FDIS -->
|
570
|
+
<xsl:value-of select="//mn:metanorma/mn:bibdata/mn:docidentifier[@type='iso-tc']"/>
|
571
|
+
<xsl:text> </xsl:text>
|
572
|
+
</fo:inline>
|
573
|
+
</fo:block>
|
574
|
+
<fo:block font-size="10pt" text-align="right" margin-top="-2mm" margin-bottom="8pt">
|
575
|
+
<!-- Examples: 'FINAL DRAFT INTERNATIONAL STANDARD (FDIS)', 'COMMITTEE DRAFT FOR VOTE (CDV)' -->
|
576
|
+
<xsl:call-template name="addLetterSpacing">
|
577
|
+
<xsl:with-param name="text" select="concat($stage-fullname-uppercased, ' (', $stage-abbreviation ,')')"/>
|
578
|
+
</xsl:call-template>
|
579
|
+
<xsl:text> </xsl:text>
|
580
|
+
</fo:block>
|
581
|
+
<fo:block-container margin-left="57mm">
|
582
|
+
<fo:block-container margin-left="0mm">
|
583
|
+
<fo:table table-layout="fixed" width="118mm" background-color="rgb(219, 229, 241)" id="__internal_layout__project_{generate-id()}">
|
584
|
+
<fo:table-column column-width="50%"/>
|
585
|
+
<fo:table-column column-width="50%"/>
|
586
|
+
<fo:table-body>
|
587
|
+
<fo:table-row height="12mm">
|
588
|
+
<fo:table-cell number-columns-spanned="2" border="1.5pt solid white" padding="1.5mm" padding-bottom="0mm">
|
589
|
+
<fo:block font-size="6.5pt" margin-bottom="6pt">
|
590
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
591
|
+
<xsl:with-param name="text" select="'Project number:'"/>
|
592
|
+
</xsl:call-template>
|
593
|
+
</fo:block>
|
594
|
+
<fo:block font-size="9pt" font-weight="bold">
|
595
|
+
<xsl:call-template name="addLetterSpacing">
|
596
|
+
<xsl:with-param name="text"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:ext/mn:structuredidentifier/mn:project-number"/></xsl:with-param>
|
597
|
+
</xsl:call-template>
|
598
|
+
</fo:block>
|
599
|
+
</fo:table-cell>
|
600
|
+
</fo:table-row>
|
601
|
+
<fo:table-row height="12mm">
|
602
|
+
<fo:table-cell border="1.5pt solid white" padding="1.5mm" padding-bottom="0mm">
|
603
|
+
<fo:block font-size="6.5pt" margin-bottom="6pt">
|
604
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
605
|
+
<xsl:with-param name="text" select="'Date of circulation:'"/>
|
606
|
+
</xsl:call-template>
|
607
|
+
</fo:block>
|
608
|
+
<fo:block font-size="9pt" font-weight="bold">
|
609
|
+
<xsl:call-template name="addLetterSpacing">
|
610
|
+
<xsl:with-param name="text"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:date[@type ='circulated']/mn:on"/></xsl:with-param>
|
611
|
+
</xsl:call-template>
|
612
|
+
</fo:block>
|
613
|
+
</fo:table-cell>
|
614
|
+
<fo:table-cell border="1.5pt solid white" padding="1.5mm" padding-bottom="0mm">
|
615
|
+
<fo:block font-size="6.5pt" margin-bottom="6pt">
|
616
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
617
|
+
<xsl:with-param name="text" select="'Closing date for voting:'"/>
|
618
|
+
</xsl:call-template>
|
619
|
+
</fo:block>
|
620
|
+
<fo:block font-size="9pt" font-weight="bold">
|
621
|
+
<xsl:call-template name="addLetterSpacing">
|
622
|
+
<!-- 2019-12-06 -->
|
623
|
+
<xsl:with-param name="text"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:date[@type='vote-ended']/mn:on"/></xsl:with-param>
|
624
|
+
</xsl:call-template>
|
625
|
+
</fo:block>
|
626
|
+
</fo:table-cell>
|
627
|
+
</fo:table-row>
|
628
|
+
<fo:table-row height="12mm">
|
629
|
+
<fo:table-cell number-columns-spanned="2" border="1.5pt solid white" padding="1.5mm" padding-bottom="0mm">
|
630
|
+
<fo:block font-size="6.5pt" margin-bottom="6pt">
|
631
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
632
|
+
<xsl:with-param name="text" select="'Supersedes documents:'"/>
|
633
|
+
</xsl:call-template>
|
634
|
+
</fo:block>
|
635
|
+
<fo:block font-size="9pt" font-weight="bold">
|
636
|
+
<xsl:variable name="supersedes_documents">
|
637
|
+
<!-- <xsl:for-each select="//mn:metanorma/mn:bibdata/mn:relation[@type='supersedes']/mn:bibitem/mn:docnumber"> -->
|
638
|
+
<xsl:for-each select="//mn:metanorma/mn:bibdata/mn:relation[@type='obsoletes']/mn:bibitem/mn:docidentifier">
|
639
|
+
<xsl:value-of select="."/>
|
640
|
+
<xsl:if test="position() != last()">,</xsl:if>
|
641
|
+
</xsl:for-each>
|
642
|
+
</xsl:variable>
|
643
|
+
<xsl:call-template name="addLetterSpacing">
|
644
|
+
<xsl:with-param name="text"><xsl:value-of select="$supersedes_documents"/></xsl:with-param>
|
645
|
+
</xsl:call-template>
|
646
|
+
</fo:block>
|
647
|
+
</fo:table-cell>
|
648
|
+
</fo:table-row>
|
649
|
+
</fo:table-body>
|
650
|
+
</fo:table>
|
651
|
+
</fo:block-container>
|
652
|
+
</fo:block-container>
|
653
|
+
|
654
|
+
<fo:block-container margin-left="-2mm" margin-right="-2mm" margin-top="5mm">
|
655
|
+
<fo:block-container margin-left="0mm" margin-right="0mm">
|
656
|
+
<xsl:variable name="border-color">rgb(221, 213, 213)</xsl:variable>
|
657
|
+
<fo:table table-layout="fixed" width="100%" border="1.5pt solid {$border-color}">
|
658
|
+
<fo:table-column column-width="50%"/>
|
659
|
+
<fo:table-column column-width="50%"/>
|
660
|
+
<fo:table-body>
|
661
|
+
<fo:table-row height="4mm">
|
662
|
+
<fo:table-cell number-columns-spanned="2" border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
|
663
|
+
<fo:block>
|
664
|
+
<!-- If //bibdata/ext/editorialgroup/subcommittee exists, use "IEC SC" + //bibdata/ext/editorialgroup/subcommittee/@number + //bibdata/ext/editorialgroup/subcommittee,
|
665
|
+
else use "IEC TC" + //bibdata/ext/editorialgroup/technical-committee/@number + //bibdata/ext/editorialgroup/technical-committee -->
|
666
|
+
<xsl:choose>
|
667
|
+
<xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:subcommittee">
|
668
|
+
<fo:block font-size="6.5pt">
|
669
|
+
<fo:inline font-size="8pt">IEC SC <xsl:value-of select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:subcommittee/@number"/> : </fo:inline>
|
670
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
671
|
+
<xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:subcommittee"/>
|
672
|
+
</xsl:call-template>
|
673
|
+
</fo:block>
|
674
|
+
</xsl:when>
|
675
|
+
<xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:technical-committee">
|
676
|
+
<fo:block font-size="6.5pt">
|
677
|
+
<fo:inline font-size="8pt">IEC TC <xsl:value-of select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:technical-committee/@number"/> : </fo:inline>
|
678
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
679
|
+
<xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:technical-committee"/>
|
680
|
+
</xsl:call-template>
|
681
|
+
</fo:block>
|
682
|
+
</xsl:when>
|
683
|
+
</xsl:choose>
|
684
|
+
</fo:block>
|
685
|
+
</fo:table-cell>
|
686
|
+
</fo:table-row>
|
687
|
+
<fo:table-row height="12mm">
|
688
|
+
<fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
|
689
|
+
<fo:block font-size="6.5pt" margin-bottom="6pt">
|
690
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
691
|
+
<xsl:with-param name="text" select="'Secretariat:'"/>
|
692
|
+
</xsl:call-template>
|
693
|
+
</fo:block>
|
694
|
+
<fo:block font-size="9pt">
|
695
|
+
<xsl:call-template name="addLetterSpacing">
|
696
|
+
<xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:secretariat"/>
|
697
|
+
</xsl:call-template>
|
698
|
+
</fo:block>
|
699
|
+
</fo:table-cell>
|
700
|
+
<fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
|
701
|
+
<fo:block font-size="6.5pt" margin-bottom="6pt">
|
702
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
703
|
+
<xsl:with-param name="text" select="'Secretary:'"/>
|
704
|
+
</xsl:call-template>
|
705
|
+
</fo:block>
|
706
|
+
<fo:block font-size="9pt">
|
707
|
+
<!-- Example: Ms Shanti Conn -->
|
708
|
+
<xsl:call-template name="addLetterSpacing">
|
709
|
+
<xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:secretary"/>
|
710
|
+
</xsl:call-template>
|
711
|
+
</fo:block>
|
712
|
+
</fo:table-cell>
|
713
|
+
</fo:table-row>
|
714
|
+
<fo:table-row height="12mm">
|
715
|
+
<fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
|
716
|
+
<xsl:if test="not($stage-abbreviation = 'FDIS' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD')">
|
717
|
+
<xsl:attribute name="number-columns-spanned">2</xsl:attribute>
|
718
|
+
</xsl:if>
|
719
|
+
<fo:block font-size="6.5pt" margin-bottom="6pt">
|
720
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
721
|
+
<xsl:with-param name="text" select="'Of interest to the following committees:'"/>
|
722
|
+
</xsl:call-template>
|
723
|
+
</fo:block>
|
724
|
+
<fo:block font-size="9pt">
|
725
|
+
<xsl:call-template name="addLetterSpacing">
|
726
|
+
<xsl:with-param name="text" select="//mn:metanorma/mn:bibdata/mn:ext/mn:interest-to-committees"/>
|
727
|
+
</xsl:call-template>
|
728
|
+
</fo:block>
|
729
|
+
</fo:table-cell>
|
730
|
+
<xsl:if test="$stage-abbreviation = 'FDIS' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD'">
|
731
|
+
<fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
|
732
|
+
<fo:block font-size="6.5pt" margin-bottom="6pt">
|
733
|
+
<xsl:if test="$stage-abbreviation = 'FDIS'">
|
734
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
735
|
+
<xsl:with-param name="text" select="'horizontal standard:'"/>
|
736
|
+
</xsl:call-template>
|
737
|
+
</xsl:if>
|
738
|
+
<xsl:if test="$stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD'">
|
739
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
740
|
+
<xsl:with-param name="text" select="'Proposed horizontal standard:'"/>
|
741
|
+
</xsl:call-template>
|
742
|
+
</xsl:if>
|
743
|
+
</fo:block>
|
744
|
+
<fo:block>
|
745
|
+
<xsl:choose>
|
746
|
+
<xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:horizontal = 'true'">
|
747
|
+
<xsl:call-template name="insertCheckBoxOn"/>
|
748
|
+
</xsl:when>
|
749
|
+
<xsl:otherwise>
|
750
|
+
<xsl:call-template name="insertCheckBoxOff"/>
|
751
|
+
</xsl:otherwise>
|
752
|
+
</xsl:choose>
|
753
|
+
</fo:block>
|
889
754
|
|
890
|
-
|
755
|
+
<xsl:if test="$stage-abbreviation = 'CDV' or $stage-abbreviation = 'CD'">
|
756
|
+
<fo:block-container background-color="rgb(236, 232, 232)" margin-left="-2mm" margin-right="-2mm">
|
757
|
+
<fo:block-container margin-left="1mm" margin-right="1mm">
|
758
|
+
<fo:block font-size="8pt" padding="2mm">
|
759
|
+
<xsl:call-template name="addLetterSpacing">
|
760
|
+
<xsl:with-param name="text" select="'Other TC/SCs are requested to indicate their interest, if any, in this CDV to the secretary.'"/>
|
761
|
+
</xsl:call-template>
|
762
|
+
</fo:block>
|
763
|
+
</fo:block-container>
|
764
|
+
</fo:block-container>
|
765
|
+
</xsl:if>
|
766
|
+
</fo:table-cell>
|
767
|
+
</xsl:if>
|
768
|
+
</fo:table-row>
|
769
|
+
|
770
|
+
<xsl:if test="not($stage-abbreviation = 'DPAS')">
|
771
|
+
<fo:table-row height="10mm">
|
772
|
+
<fo:table-cell padding="1.5mm" padding-bottom="0mm">
|
773
|
+
<fo:block font-size="6.5pt" margin-bottom="4pt">
|
774
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
775
|
+
<xsl:with-param name="text" select="'Functions concerned:'"/>
|
776
|
+
</xsl:call-template>
|
777
|
+
</fo:block>
|
778
|
+
<!-- function: { emc | safety | environment | quality-assurance } -->
|
779
|
+
<fo:block font-size="6.5pt">
|
780
|
+
<xsl:choose>
|
781
|
+
<xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:function = 'emc'">
|
782
|
+
<xsl:call-template name="insertCheckBoxOn"/>
|
783
|
+
</xsl:when>
|
784
|
+
<xsl:otherwise>
|
785
|
+
<xsl:call-template name="insertCheckBoxOff"/>
|
786
|
+
</xsl:otherwise>
|
787
|
+
</xsl:choose>
|
788
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
789
|
+
<xsl:with-param name="text" select="'EMC'"/>
|
790
|
+
</xsl:call-template>
|
791
|
+
<fo:inline padding-right="33mm"> </fo:inline>
|
792
|
+
<xsl:choose>
|
793
|
+
<xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:function = 'environment'">
|
794
|
+
<xsl:call-template name="insertCheckBoxOn"/>
|
795
|
+
</xsl:when>
|
796
|
+
<xsl:otherwise>
|
797
|
+
<xsl:call-template name="insertCheckBoxOff"/>
|
798
|
+
</xsl:otherwise>
|
799
|
+
</xsl:choose>
|
800
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
801
|
+
<xsl:with-param name="text" select="'Environment'"/>
|
802
|
+
</xsl:call-template>
|
803
|
+
</fo:block>
|
804
|
+
</fo:table-cell>
|
805
|
+
<fo:table-cell padding="1.5mm" padding-bottom="0mm">
|
806
|
+
<fo:block font-size="6.5pt" margin-bottom="6pt"> </fo:block>
|
807
|
+
<fo:block font-size="6.5pt">
|
808
|
+
<xsl:choose>
|
809
|
+
<xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:function = 'quality-assurance'">
|
810
|
+
<xsl:call-template name="insertCheckBoxOn"/>
|
811
|
+
</xsl:when>
|
812
|
+
<xsl:otherwise>
|
813
|
+
<xsl:call-template name="insertCheckBoxOff"/>
|
814
|
+
</xsl:otherwise>
|
815
|
+
</xsl:choose>
|
816
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
817
|
+
<xsl:with-param name="text" select="'Quality assurance'"/>
|
818
|
+
</xsl:call-template>
|
819
|
+
<fo:inline padding-right="13mm"> </fo:inline>
|
820
|
+
<xsl:choose>
|
821
|
+
<xsl:when test="//mn:metanorma/mn:bibdata/mn:ext/mn:function = 'safety'">
|
822
|
+
<xsl:call-template name="insertCheckBoxOn"/>
|
823
|
+
</xsl:when>
|
824
|
+
<xsl:otherwise>
|
825
|
+
<xsl:call-template name="insertCheckBoxOff"/>
|
826
|
+
</xsl:otherwise>
|
827
|
+
</xsl:choose>
|
828
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
829
|
+
<xsl:with-param name="text" select="'Safety'"/>
|
830
|
+
</xsl:call-template>
|
831
|
+
</fo:block>
|
832
|
+
</fo:table-cell>
|
833
|
+
</fo:table-row>
|
834
|
+
</xsl:if>
|
891
835
|
|
892
|
-
|
836
|
+
<xsl:if test="not($stage-abbreviation = 'CD' or $stage-abbreviation = 'CD-TSTR' or $stage-abbreviation = 'DTS' or $stage-abbreviation = 'DTR' or $stage-abbreviation = 'DPAS')">
|
893
837
|
|
894
|
-
|
895
|
-
|
896
|
-
|
838
|
+
<fo:table-row>
|
839
|
+
<fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
|
840
|
+
<fo:block font-size="6.5pt" margin-bottom="12pt">
|
841
|
+
<xsl:choose>
|
842
|
+
<xsl:when test="/mn:metanorma/mn:bibdata/mn:ext/mn:cen-processing = 'true'">
|
843
|
+
<xsl:call-template name="insertCheckBoxOn"/>
|
844
|
+
</xsl:when>
|
845
|
+
<xsl:otherwise>
|
846
|
+
<xsl:call-template name="insertCheckBoxOff"/>
|
847
|
+
</xsl:otherwise>
|
848
|
+
</xsl:choose>
|
849
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
850
|
+
<xsl:with-param name="text" select="'Submitted for CENELEC parallel voting'"/>
|
851
|
+
</xsl:call-template>
|
852
|
+
</fo:block>
|
897
853
|
|
898
|
-
|
899
|
-
<xsl:call-template name="processPrefaceAndMainSectionsDefault_items"/>
|
900
|
-
</xsl:variable>
|
854
|
+
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:feedback-statement/mn:clause[@id = 'boilerplate-cenelec-attention']"/>
|
901
855
|
|
902
|
-
|
856
|
+
</fo:table-cell>
|
857
|
+
<fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
|
858
|
+
<fo:block font-size="6.5pt" margin-bottom="6pt">
|
859
|
+
<xsl:choose>
|
860
|
+
<xsl:when test="/mn:metanorma/mn:bibdata/mn:ext/mn:cen-processing = 'true'">
|
861
|
+
<xsl:call-template name="insertCheckBoxOff"/>
|
862
|
+
</xsl:when>
|
863
|
+
<xsl:otherwise>
|
864
|
+
<xsl:call-template name="insertCheckBoxOn"/>
|
865
|
+
</xsl:otherwise>
|
866
|
+
</xsl:choose>
|
867
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
868
|
+
<xsl:with-param name="text" select="'Not submitted for CENELEC parallel voting'"/>
|
869
|
+
</xsl:call-template>
|
870
|
+
</fo:block>
|
871
|
+
</fo:table-cell>
|
872
|
+
</fo:table-row>
|
873
|
+
</xsl:if>
|
874
|
+
</fo:table-body>
|
875
|
+
</fo:table>
|
876
|
+
</fo:block-container>
|
877
|
+
</fo:block-container>
|
903
878
|
|
904
|
-
|
905
|
-
|
906
|
-
|
879
|
+
<fo:block-container font-size="8pt" background-color="rgb(236, 232, 232)" margin-top="5mm" padding="2mm" text-align="justify" border="1.5pt solid white">
|
880
|
+
<fo:block>
|
881
|
+
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:license-statement" mode="cover-page-internal"/>
|
882
|
+
</fo:block>
|
883
|
+
</fo:block-container>
|
907
884
|
|
908
|
-
|
909
|
-
|
885
|
+
<fo:block-container background-color="rgb(219, 229, 241)" margin-top="4mm" padding="2mm" padding-top="1mm" border="1.5pt solid white">
|
886
|
+
<fo:block font-size="6.5pt" margin-bottom="6pt">
|
887
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
888
|
+
<xsl:with-param name="text">
|
889
|
+
<!-- Title: -->
|
890
|
+
<xsl:call-template name="getLocalizedString">
|
891
|
+
<xsl:with-param name="key">title</xsl:with-param>
|
892
|
+
</xsl:call-template>
|
893
|
+
<xsl:text>:</xsl:text>
|
894
|
+
</xsl:with-param>
|
910
895
|
</xsl:call-template>
|
896
|
+
</fo:block>
|
897
|
+
<fo:block font-size="9pt" font-weight="bold">
|
898
|
+
<xsl:call-template name="addLetterSpacing">
|
899
|
+
<xsl:with-param name="text"><xsl:value-of select="(//mn:metanorma)[1]/mn:bibdata/mn:title[@language = $lang and @type = 'main']"/></xsl:with-param>
|
900
|
+
</xsl:call-template>
|
901
|
+
</fo:block>
|
902
|
+
</fo:block-container>
|
911
903
|
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
<fo:block-container width="42mm">
|
930
|
-
<fo:block>
|
931
|
-
<xsl:variable name="publisher" select="java:toUpperCase(java:java.lang.String.new(//mn:metanorma/mn:bibdata/mn:contributor[mn:role/@type = 'publisher']/mn:organization/mn:name))"/>
|
932
|
-
<xsl:value-of select="$publisher"/>
|
933
|
-
</fo:block>
|
934
|
-
</fo:block-container>
|
935
|
-
</fo:block>
|
936
|
-
<fo:block font-size="9pt" line-height="150%">
|
937
|
-
<!-- Example:
|
938
|
-
3, rue de Varembé
|
939
|
-
PO Box 131
|
940
|
-
CH-1211 Geneva 20
|
941
|
-
Switzerland
|
942
|
-
|
943
|
-
Tel: + 41 22 919 02 11
|
944
|
-
Fax: + 41 22 919 03 00
|
945
|
-
info@iec.ch
|
946
|
-
www.iec.ch -->
|
947
|
-
<xsl:variable name="telpos" select="count((//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]/text()[contains(., 'Tel.')]/preceding-sibling::node())"/>
|
948
|
-
<xsl:choose>
|
949
|
-
<xsl:when test="$telpos != 0">
|
950
|
-
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]/node()[position() <= $telpos]" mode="coverpage"/>
|
951
|
-
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]/node()[position() >= $telpos]" mode="coverpage">
|
952
|
-
<xsl:with-param name="lastpage">true</xsl:with-param>
|
953
|
-
</xsl:apply-templates>
|
954
|
-
</xsl:when>
|
955
|
-
<xsl:otherwise>
|
956
|
-
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]" mode="coverpage"/>
|
957
|
-
</xsl:otherwise>
|
958
|
-
</xsl:choose>
|
959
|
-
</fo:block>
|
960
|
-
</fo:block-container>
|
961
|
-
</fo:block-container>
|
962
|
-
</fo:flow>
|
963
|
-
</fo:page-sequence>
|
964
|
-
</xsl:if>
|
965
|
-
|
966
|
-
<!-- namespace document doesn't equal to xslt namespace -->
|
967
|
-
<xsl:if test="not(//mn:metanorma)">
|
968
|
-
<fo:page-sequence master-reference="blank-page">
|
969
|
-
<fo:flow flow-name="xsl-region-body">
|
970
|
-
<fo:block> </fo:block>
|
971
|
-
</fo:flow>
|
972
|
-
</fo:page-sequence>
|
973
|
-
</xsl:if>
|
904
|
+
<xsl:if test="$stage-abbreviation = 'FDIS' or $stage-abbreviation = 'CDV' or $stage-abbreviation = 'DTS' or $stage-abbreviation = 'DTR' or $stage-abbreviation = 'DPAS'">
|
905
|
+
<fo:block-container border="1.5 solid" border-color="rgb(221, 213, 213)" height="6.5mm" padding="1mm" margin-top="3mm" display-align="center">
|
906
|
+
<fo:block font-size="6.5pt">
|
907
|
+
<xsl:call-template name="addLetterSpacing">
|
908
|
+
<xsl:with-param name="text">
|
909
|
+
<!-- PROPOSED STABILITY DATE: -->
|
910
|
+
<xsl:call-template name="getLocalizedString">
|
911
|
+
<xsl:with-param name="key">proposed_stability_date</xsl:with-param>
|
912
|
+
</xsl:call-template>
|
913
|
+
<xsl:text>: </xsl:text>
|
914
|
+
</xsl:with-param>
|
915
|
+
</xsl:call-template>
|
916
|
+
<!-- 2023 -->
|
917
|
+
<fo:inline font-size="9pt"><xsl:value-of select="//mn:metanorma/mn:bibdata/mn:date[@type='unchanged']/mn:on"/></fo:inline>
|
918
|
+
</fo:block>
|
919
|
+
</fo:block-container>
|
920
|
+
</xsl:if>
|
974
921
|
|
975
|
-
|
976
|
-
|
922
|
+
<fo:block-container border="1.5 solid" border-color="rgb(221, 213, 213)" padding="1mm" margin-top="3mm">
|
923
|
+
<fo:block font-size="6.5pt" margin-bottom="6pt">
|
924
|
+
<xsl:call-template name="addLetterSpacingSmallCaps">
|
925
|
+
<xsl:with-param name="text">
|
926
|
+
<!-- Note from TC/SC officers: -->
|
927
|
+
<xsl:call-template name="getLocalizedString">
|
928
|
+
<xsl:with-param name="key">tc_sc_note</xsl:with-param>
|
929
|
+
</xsl:call-template>
|
930
|
+
<xsl:text>:</xsl:text>
|
931
|
+
</xsl:with-param>
|
932
|
+
</xsl:call-template>
|
933
|
+
</fo:block>
|
934
|
+
<!-- Example: This FDIS is the result of the discussion between the IEC SC21A experts WG 3 during the meeting held in -->
|
935
|
+
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:bibdata/mn:ext/mn:tc-sc-officers-note"/>
|
936
|
+
</fo:block-container>
|
977
937
|
|
938
|
+
</fo:flow>
|
939
|
+
</fo:page-sequence> <!-- END: cover-FDIS -->
|
940
|
+
</xsl:if>
|
978
941
|
</xsl:template>
|
979
942
|
|
980
943
|
<xsl:template match="mn:pagebreak" priority="2">
|
@@ -1321,7 +1284,7 @@
|
|
1321
1284
|
|
1322
1285
|
<xsl:template name="insertListOf_Item">
|
1323
1286
|
<fo:block text-align-last="justify" margin-bottom="5pt" margin-left="8mm" text-indent="-8mm" role="TOCI">
|
1324
|
-
<xsl:variable name="alt_text" select="normalize-space(translate(normalize-space(mn:name), ' —', ' -'))"/>
|
1287
|
+
<xsl:variable name="alt_text" select="normalize-space(translate(normalize-space(mn:fmt-name), ' —', ' -'))"/>
|
1325
1288
|
<fo:basic-link internal-destination="{@id}" fox:alt-text="{$alt_text}"> <!-- {local-name()} {@id} -->
|
1326
1289
|
<xsl:apply-templates select="." mode="contents"/>
|
1327
1290
|
<fo:inline keep-together.within-line="always" role="SKIP">
|
@@ -1337,11 +1300,11 @@
|
|
1337
1300
|
<xsl:template match="mn:preface//mn:clause[@type = 'toc']" priority="3">
|
1338
1301
|
<fo:block-container role="SKIP">
|
1339
1302
|
<!-- render 'Contents' outside if role="TOC" -->
|
1340
|
-
<xsl:apply-templates select="mn:title"/>
|
1303
|
+
<xsl:apply-templates select="mn:fmt-title"/>
|
1341
1304
|
<fo:block role="TOC">
|
1342
|
-
<xsl:apply-templates select="node()[not(self::mn:title)]"/>
|
1305
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-title)]"/>
|
1343
1306
|
|
1344
|
-
<xsl:if test="count(*) = 1 and mn:title"> <!-- if there isn't user ToC -->
|
1307
|
+
<xsl:if test="count(*) = 1 and mn:fmt-title"> <!-- if there isn't user ToC -->
|
1345
1308
|
<xsl:variable name="docid">
|
1346
1309
|
<xsl:call-template name="getDocumentId"/>
|
1347
1310
|
</xsl:variable>
|
@@ -1353,7 +1316,7 @@
|
|
1353
1316
|
</fo:block-container>
|
1354
1317
|
</xsl:template>
|
1355
1318
|
|
1356
|
-
<xsl:template match="mn:preface//mn:clause[@type = 'toc']/mn:title" priority="3">
|
1319
|
+
<xsl:template match="mn:preface//mn:clause[@type = 'toc']/mn:fmt-title" priority="3">
|
1357
1320
|
<fo:block font-size="12pt" text-align="center" margin-bottom="22pt">
|
1358
1321
|
<xsl:call-template name="addLetterSpacing">
|
1359
1322
|
<xsl:with-param name="text" select="java:toUpperCase(java:java.lang.String.new(.))"/>
|
@@ -1546,7 +1509,7 @@
|
|
1546
1509
|
</fo:block>
|
1547
1510
|
</xsl:template>
|
1548
1511
|
|
1549
|
-
<xsl:template match="mn:feedback-statement/mn:clause[@id = 'boilerplate-cenelec-attention']//mn:title" priority="3">
|
1512
|
+
<xsl:template match="mn:feedback-statement/mn:clause[@id = 'boilerplate-cenelec-attention']//mn:fmt-title" priority="3">
|
1550
1513
|
<xsl:variable name="level">
|
1551
1514
|
<xsl:call-template name="getLevel"/>
|
1552
1515
|
</xsl:variable>
|
@@ -1682,7 +1645,7 @@
|
|
1682
1645
|
<!-- ============================= -->
|
1683
1646
|
<!-- ============================= -->
|
1684
1647
|
|
1685
|
-
<xsl:template match="mn:license-statement//mn:title" mode="cover-page-internal">
|
1648
|
+
<xsl:template match="mn:license-statement//mn:fmt-title" mode="cover-page-internal">
|
1686
1649
|
<xsl:variable name="level">
|
1687
1650
|
<xsl:call-template name="getLevel"/>
|
1688
1651
|
</xsl:variable>
|
@@ -1719,7 +1682,7 @@
|
|
1719
1682
|
<xsl:template match="mn:br" mode="coverpage">
|
1720
1683
|
<xsl:value-of select="$linebreak"/>
|
1721
1684
|
</xsl:template>
|
1722
|
-
<xsl:template match="mn:link" mode="coverpage">
|
1685
|
+
<xsl:template match="mn:fmt-link" mode="coverpage">
|
1723
1686
|
<xsl:param name="lastpage">false</xsl:param>
|
1724
1687
|
<xsl:choose>
|
1725
1688
|
<xsl:when test="$lastpage = 'true'">
|
@@ -1756,7 +1719,7 @@
|
|
1756
1719
|
<fo:block id="{@id}" margin-bottom="12pt" font-size="12pt" text-align="center">
|
1757
1720
|
<xsl:call-template name="addLetterSpacing">
|
1758
1721
|
<!-- <xsl:with-param name="text" select="java:toUpperCase(java:java.lang.String.new(mn:title))"/> -->
|
1759
|
-
<xsl:with-param name="text" select="mn:title"/>
|
1722
|
+
<xsl:with-param name="text" select="mn:fmt-title"/>
|
1760
1723
|
</xsl:call-template>
|
1761
1724
|
</fo:block>
|
1762
1725
|
<!-- margin-left="6.3mm" -->
|
@@ -1764,7 +1727,7 @@
|
|
1764
1727
|
<xsl:apply-templates select="/mn:metanorma/mn:boilerplate/mn:legal-statement/*"/>
|
1765
1728
|
</fo:block> -->
|
1766
1729
|
<fo:block>
|
1767
|
-
<xsl:apply-templates select="*[not(self::mn:title)]"/>
|
1730
|
+
<xsl:apply-templates select="*[not(self::mn:fmt-title)]"/>
|
1768
1731
|
</fo:block>
|
1769
1732
|
</xsl:template>
|
1770
1733
|
|
@@ -1789,19 +1752,19 @@
|
|
1789
1752
|
<!-- ====== -->
|
1790
1753
|
<!-- title -->
|
1791
1754
|
<!-- ====== -->
|
1792
|
-
<xsl:template match="mn:introduction/mn:title">
|
1755
|
+
<xsl:template match="mn:introduction/mn:fmt-title">
|
1793
1756
|
<fo:block font-size="12pt" text-align="center" margin-bottom="12pt" role="H1">
|
1794
1757
|
<xsl:apply-templates/>
|
1795
1758
|
<xsl:apply-templates select="following-sibling::*[1][self::mn:variant-title][@type = 'sub']" mode="subtitle"/>
|
1796
1759
|
</fo:block>
|
1797
1760
|
</xsl:template>
|
1798
|
-
<xsl:template match="mn:introduction/mn:title/text()">
|
1761
|
+
<xsl:template match="mn:introduction/mn:fmt-title/text()">
|
1799
1762
|
<xsl:call-template name="addLetterSpacing">
|
1800
1763
|
<xsl:with-param name="text" select="."/>
|
1801
1764
|
</xsl:call-template>
|
1802
1765
|
</xsl:template>
|
1803
1766
|
|
1804
|
-
<xsl:template match="mn:annex/mn:title">
|
1767
|
+
<xsl:template match="mn:annex/mn:fmt-title">
|
1805
1768
|
<fo:block font-size="12pt" text-align="center" margin-bottom="32pt" keep-with-next="always" role="H1">
|
1806
1769
|
<xsl:apply-templates/>
|
1807
1770
|
<xsl:apply-templates select="following-sibling::*[1][self::mn:variant-title][@type = 'sub']" mode="subtitle"/>
|
@@ -1809,18 +1772,18 @@
|
|
1809
1772
|
</xsl:template>
|
1810
1773
|
|
1811
1774
|
<!-- Bibliography -->
|
1812
|
-
<xsl:template match="mn:references[not(@normative='true')]/mn:title">
|
1775
|
+
<xsl:template match="mn:references[not(@normative='true')]/mn:fmt-title">
|
1813
1776
|
<fo:block font-size="12pt" text-align="center" margin-bottom="12pt" keep-with-next="always" role="H1">
|
1814
1777
|
<xsl:apply-templates/>
|
1815
1778
|
</fo:block>
|
1816
1779
|
</xsl:template>
|
1817
|
-
<xsl:template match="mn:references[not(@normative='true')]/mn:title/text()">
|
1780
|
+
<xsl:template match="mn:references[not(@normative='true')]/mn:fmt-title/text()">
|
1818
1781
|
<xsl:call-template name="addLetterSpacing">
|
1819
1782
|
<xsl:with-param name="text" select="."/>
|
1820
1783
|
</xsl:call-template>
|
1821
1784
|
</xsl:template>
|
1822
1785
|
|
1823
|
-
<xsl:template match="mn:title" name="title">
|
1786
|
+
<xsl:template match="mn:fmt-title" name="title">
|
1824
1787
|
|
1825
1788
|
<xsl:variable name="level">
|
1826
1789
|
<xsl:call-template name="getLevel"/>
|
@@ -1874,7 +1837,7 @@
|
|
1874
1837
|
<xsl:variable name="element-name">
|
1875
1838
|
<xsl:choose>
|
1876
1839
|
<xsl:when test="$inline = 'true'">fo:inline</xsl:when>
|
1877
|
-
<xsl:when test="../@inline-header = 'true' and $previous-element = 'title'">fo:inline</xsl:when> <!-- first paragraph after inline title -->
|
1840
|
+
<xsl:when test="../@inline-header = 'true' and $previous-element = 'fmt-title'">fo:inline</xsl:when> <!-- first paragraph after inline title -->
|
1878
1841
|
<xsl:when test="parent::mn:admonition and $previous-element = 'p'">fo:block</xsl:when>
|
1879
1842
|
<xsl:when test="parent::mn:admonition">fo:inline</xsl:when>
|
1880
1843
|
<xsl:otherwise>fo:block</xsl:otherwise>
|
@@ -1890,7 +1853,7 @@
|
|
1890
1853
|
</xsl:call-template>
|
1891
1854
|
|
1892
1855
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
1893
|
-
<xsl:if test="ancestor::mn:definition">
|
1856
|
+
<xsl:if test="ancestor::mn:fmt-definition">
|
1894
1857
|
<xsl:attribute name="margin-top">1pt</xsl:attribute>
|
1895
1858
|
</xsl:if>
|
1896
1859
|
<xsl:if test="ancestor::mn:dl">
|
@@ -1978,7 +1941,7 @@
|
|
1978
1941
|
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new(.))"/>
|
1979
1942
|
</xsl:template>
|
1980
1943
|
|
1981
|
-
<xsl:template match="mn:xref[@pagenumber = 'true']" priority="2">
|
1944
|
+
<xsl:template match="mn:xref[@pagenumber = 'true'] | mn:fmt-xref[@pagenumber = 'true']" priority="2">
|
1982
1945
|
<xsl:call-template name="insert_basic_link">
|
1983
1946
|
<xsl:with-param name="element">
|
1984
1947
|
<fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
|
@@ -2047,6 +2010,57 @@
|
|
2047
2010
|
</fo:static-content>
|
2048
2011
|
</xsl:template>
|
2049
2012
|
|
2013
|
+
<xsl:template name="back-page">
|
2014
|
+
<xsl:if test="$stage >= 60">
|
2015
|
+
<fo:page-sequence master-reference="blank-page">
|
2016
|
+
<fo:flow flow-name="xsl-region-body">
|
2017
|
+
<fo:block> </fo:block>
|
2018
|
+
</fo:flow>
|
2019
|
+
</fo:page-sequence>
|
2020
|
+
|
2021
|
+
<fo:page-sequence master-reference="last-page">
|
2022
|
+
<fo:flow flow-name="xsl-region-body">
|
2023
|
+
<fo:block-container margin-left="20mm" margin-top="19mm">
|
2024
|
+
<fo:block-container margin-left="0mm" margin-top="0mm">
|
2025
|
+
<fo:block font-size="11pt" color="{$color_blue}" margin-bottom="12pt" line-height="150%">
|
2026
|
+
<fo:block-container width="42mm">
|
2027
|
+
<fo:block>
|
2028
|
+
<xsl:variable name="publisher" select="java:toUpperCase(java:java.lang.String.new(//mn:metanorma/mn:bibdata/mn:contributor[mn:role/@type = 'publisher']/mn:organization/mn:name))"/>
|
2029
|
+
<xsl:value-of select="$publisher"/>
|
2030
|
+
</fo:block>
|
2031
|
+
</fo:block-container>
|
2032
|
+
</fo:block>
|
2033
|
+
<fo:block font-size="9pt" line-height="150%">
|
2034
|
+
<!-- Example:
|
2035
|
+
3, rue de Varembé
|
2036
|
+
PO Box 131
|
2037
|
+
CH-1211 Geneva 20
|
2038
|
+
Switzerland
|
2039
|
+
|
2040
|
+
Tel: + 41 22 919 02 11
|
2041
|
+
Fax: + 41 22 919 03 00
|
2042
|
+
info@iec.ch
|
2043
|
+
www.iec.ch -->
|
2044
|
+
<xsl:variable name="telpos" select="count((//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]/text()[contains(., 'Tel.')]/preceding-sibling::node())"/>
|
2045
|
+
<xsl:choose>
|
2046
|
+
<xsl:when test="$telpos != 0">
|
2047
|
+
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]/node()[position() <= $telpos]" mode="coverpage"/>
|
2048
|
+
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]/node()[position() >= $telpos]" mode="coverpage">
|
2049
|
+
<xsl:with-param name="lastpage">true</xsl:with-param>
|
2050
|
+
</xsl:apply-templates>
|
2051
|
+
</xsl:when>
|
2052
|
+
<xsl:otherwise>
|
2053
|
+
<xsl:apply-templates select="(//mn:metanorma)[1]/mn:boilerplate/mn:copyright-statement/mn:clause/mn:p[contains(@id, 'boilerplate-address')]" mode="coverpage"/>
|
2054
|
+
</xsl:otherwise>
|
2055
|
+
</xsl:choose>
|
2056
|
+
</fo:block>
|
2057
|
+
</fo:block-container>
|
2058
|
+
</fo:block-container>
|
2059
|
+
</fo:flow>
|
2060
|
+
</fo:page-sequence>
|
2061
|
+
</xsl:if>
|
2062
|
+
</xsl:template>
|
2063
|
+
|
2050
2064
|
<!--<xsl:variable name="Image-Logo-IEC">
|
2051
2065
|
<xsl:text>iVBORw0KGgoAAAANSUhEUgAAAJwAAACcCAMAAAC9ZjJ/AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4RpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE0IDc5LjE1Njc5NywgMjAxNC8wOC8yMC0wOTo1MzowMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpjNTIxY2ZhYi04NGZmLWZiNDctYWQwZi0xMDQxODQ5MjJlNzkiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RjFDQzJCRTE4MzA2MTFFQTlENjc4RjAzNEJDNTMwNUYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RjFDQzJCRTA4MzA2MTFFQTlENjc4RjAzNEJDNTMwNUYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6ZjkyOWQwNjktMzcxYy0xMzRlLWExMTEtMDFjMzM4ZTc0NzZjIiBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6NTEwYjk4MGQtODMwNi0xMWVhLWFhOGEt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</xsl:text>
|
2052
2066
|
</xsl:variable>-->
|
@@ -2150,7 +2164,7 @@
|
|
2150
2164
|
<xsl:template match="@*" mode="change_id">
|
2151
2165
|
<xsl:param name="lang"/>
|
2152
2166
|
<xsl:choose>
|
2153
|
-
<xsl:when test="local-name() = 'id' or local-name() = 'bibitemid' or (local-name() = 'target' and parent::mn:xref)">
|
2167
|
+
<xsl:when test="local-name() = 'id' or local-name() = 'bibitemid' or (local-name() = 'target' and parent::mn:fmt-xref)">
|
2154
2168
|
<xsl:attribute name="{local-name()}">
|
2155
2169
|
<xsl:value-of select="."/>_<xsl:value-of select="$lang"/>
|
2156
2170
|
</xsl:attribute>
|
@@ -2316,10 +2330,6 @@
|
|
2316
2330
|
<xsl:text>Часть #: </xsl:text>
|
2317
2331
|
</title-part>
|
2318
2332
|
<title-part lang="zh">第 # 部分:</title-part>
|
2319
|
-
|
2320
|
-
<title-subpart lang="en">Sub-part #</title-subpart>
|
2321
|
-
<title-subpart lang="fr">Partie de sub #</title-subpart>
|
2322
|
-
|
2323
2333
|
</xsl:variable>
|
2324
2334
|
<xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
|
2325
2335
|
|
@@ -2772,7 +2782,8 @@
|
|
2772
2782
|
<xsl:template match="mn:stem" mode="update_xml_step1"/>
|
2773
2783
|
|
2774
2784
|
<xsl:template match="mn:fmt-stem" mode="update_xml_step1">
|
2775
|
-
<xsl:element name="stem" namespace="{$namespace_full}">
|
2785
|
+
<!-- <xsl:element name="stem" namespace="{$namespace_full}"> -->
|
2786
|
+
<xsl:copy>
|
2776
2787
|
<xsl:copy-of select="@*"/>
|
2777
2788
|
<xsl:choose>
|
2778
2789
|
<xsl:when test="mn:semx and count(node()) = 1">
|
@@ -2796,7 +2807,8 @@
|
|
2796
2807
|
</xsl:choose>
|
2797
2808
|
</xsl:otherwise>
|
2798
2809
|
</xsl:choose>
|
2799
|
-
</xsl:
|
2810
|
+
</xsl:copy>
|
2811
|
+
<!-- </xsl:element> -->
|
2800
2812
|
</xsl:template>
|
2801
2813
|
|
2802
2814
|
<xsl:template match="mn:image[not(.//mn:passthrough)] | mn:bibdata[not(.//mn:passthrough)] | mn:localized-strings" mode="update_xml_step1">
|
@@ -2958,12 +2970,14 @@
|
|
2958
2970
|
</xsl:template>
|
2959
2971
|
|
2960
2972
|
<xsl:template match="mn:fmt-title" mode="update_xml_step1">
|
2961
|
-
<xsl:element name="title" namespace="{$namespace_full}">
|
2973
|
+
<!-- <xsl:element name="title" namespace="{$namespace_full}"> -->
|
2974
|
+
<xsl:copy>
|
2962
2975
|
<xsl:copy-of select="@*"/>
|
2963
2976
|
<xsl:call-template name="addNamedDestinationAttribute"/>
|
2964
2977
|
|
2965
2978
|
<xsl:apply-templates mode="update_xml_step1"/>
|
2966
|
-
</xsl:
|
2979
|
+
</xsl:copy>
|
2980
|
+
<!-- </xsl:element> -->
|
2967
2981
|
</xsl:template>
|
2968
2982
|
|
2969
2983
|
<xsl:template name="addNamedDestinationAttribute">
|
@@ -2975,12 +2989,14 @@
|
|
2975
2989
|
<xsl:apply-templates mode="update_xml_step1"/>
|
2976
2990
|
</xsl:when>
|
2977
2991
|
<xsl:otherwise>
|
2978
|
-
<xsl:element name="name" namespace="{$namespace_full}">
|
2992
|
+
<!-- <xsl:element name="name" namespace="{$namespace_full}"> -->
|
2993
|
+
<xsl:copy>
|
2979
2994
|
<xsl:copy-of select="@*"/>
|
2980
2995
|
<xsl:call-template name="addNamedDestinationAttribute"/>
|
2981
2996
|
|
2982
2997
|
<xsl:apply-templates mode="update_xml_step1"/>
|
2983
|
-
</xsl:
|
2998
|
+
</xsl:copy>
|
2999
|
+
<!-- </xsl:element> -->
|
2984
3000
|
</xsl:otherwise>
|
2985
3001
|
</xsl:choose>
|
2986
3002
|
</xsl:template>
|
@@ -2995,7 +3011,7 @@
|
|
2995
3011
|
<xsl:apply-templates mode="update_xml_step1"/>
|
2996
3012
|
</xsl:template>
|
2997
3013
|
<xsl:template match="mn:fmt-preferred[not(mn:p)] | mn:fmt-preferred/mn:p" mode="update_xml_step1">
|
2998
|
-
<xsl:element name="preferred" namespace="{$namespace_full}">
|
3014
|
+
<xsl:element name="fmt-preferred" namespace="{$namespace_full}">
|
2999
3015
|
<xsl:copy-of select="@*"/>
|
3000
3016
|
<xsl:apply-templates mode="update_xml_step1"/>
|
3001
3017
|
</xsl:element>
|
@@ -3005,7 +3021,7 @@
|
|
3005
3021
|
<xsl:apply-templates mode="update_xml_step1"/>
|
3006
3022
|
</xsl:template>
|
3007
3023
|
<xsl:template match="mn:fmt-admitted[not(mn:p)] | mn:fmt-admitted/mn:p" mode="update_xml_step1">
|
3008
|
-
<xsl:element name="admitted" namespace="{$namespace_full}">
|
3024
|
+
<xsl:element name="fmt-admitted" namespace="{$namespace_full}">
|
3009
3025
|
<xsl:copy-of select="@*"/>
|
3010
3026
|
<xsl:apply-templates mode="update_xml_step1"/>
|
3011
3027
|
</xsl:element>
|
@@ -3015,32 +3031,32 @@
|
|
3015
3031
|
<xsl:apply-templates mode="update_xml_step1"/>
|
3016
3032
|
</xsl:template>
|
3017
3033
|
<xsl:template match="mn:fmt-deprecates[not(mn:p)] | mn:fmt-deprecates/mn:p" mode="update_xml_step1">
|
3018
|
-
<xsl:element name="deprecates" namespace="{$namespace_full}">
|
3034
|
+
<xsl:element name="fmt-deprecates" namespace="{$namespace_full}">
|
3019
3035
|
<xsl:copy-of select="@*"/>
|
3020
3036
|
<xsl:apply-templates mode="update_xml_step1"/>
|
3021
3037
|
</xsl:element>
|
3022
3038
|
</xsl:template>
|
3023
3039
|
|
3024
|
-
<xsl:template match="mn:fmt-definition" mode="update_xml_step1">
|
3040
|
+
<!-- <xsl:template match="mn:fmt-definition" mode="update_xml_step1">
|
3025
3041
|
<xsl:element name="definition" namespace="{$namespace_full}">
|
3026
3042
|
<xsl:copy-of select="@*"/>
|
3027
3043
|
<xsl:apply-templates mode="update_xml_step1"/>
|
3028
3044
|
</xsl:element>
|
3029
3045
|
</xsl:template>
|
3030
|
-
|
3046
|
+
|
3031
3047
|
<xsl:template match="mn:fmt-termsource" mode="update_xml_step1">
|
3032
3048
|
<xsl:element name="termsource" namespace="{$namespace_full}">
|
3033
3049
|
<xsl:copy-of select="@*"/>
|
3034
3050
|
<xsl:apply-templates mode="update_xml_step1"/>
|
3035
3051
|
</xsl:element>
|
3036
3052
|
</xsl:template>
|
3037
|
-
|
3053
|
+
|
3038
3054
|
<xsl:template match="mn:fmt-source" mode="update_xml_step1">
|
3039
3055
|
<xsl:element name="source" namespace="{$namespace_full}">
|
3040
3056
|
<xsl:copy-of select="@*"/>
|
3041
3057
|
<xsl:apply-templates mode="update_xml_step1"/>
|
3042
3058
|
</xsl:element>
|
3043
|
-
</xsl:template>
|
3059
|
+
</xsl:template> -->
|
3044
3060
|
|
3045
3061
|
<xsl:template match="mn:span[ @class = 'fmt-caption-label' or @class = 'fmt-element-name' or @class = 'fmt-caption-delim' or @class = 'fmt-autonum-delim']" mode="update_xml_step1" priority="3">
|
3046
3062
|
<xsl:apply-templates mode="update_xml_step1"/>
|
@@ -3063,12 +3079,12 @@
|
|
3063
3079
|
</xsl:template>
|
3064
3080
|
|
3065
3081
|
<xsl:template match="mn:identifier" mode="update_xml_step1"/>
|
3066
|
-
<xsl:template match="mn:fmt-identifier" mode="update_xml_step1">
|
3082
|
+
<!-- <xsl:template match="mn:fmt-identifier" mode="update_xml_step1">
|
3067
3083
|
<xsl:element name="identifier" namespace="{$namespace_full}">
|
3068
3084
|
<xsl:copy-of select="@*"/>
|
3069
3085
|
<xsl:apply-templates mode="update_xml_step1"/>
|
3070
3086
|
</xsl:element>
|
3071
|
-
</xsl:template>
|
3087
|
+
</xsl:template> -->
|
3072
3088
|
|
3073
3089
|
<xsl:template match="mn:concept" mode="update_xml_step1"/>
|
3074
3090
|
|
@@ -3078,51 +3094,53 @@
|
|
3078
3094
|
|
3079
3095
|
<xsl:template match="mn:eref" mode="update_xml_step1"/>
|
3080
3096
|
|
3081
|
-
<xsl:template match="mn:fmt-eref" mode="update_xml_step1">
|
3097
|
+
<!-- <xsl:template match="mn:fmt-eref" mode="update_xml_step1">
|
3082
3098
|
<xsl:element name="eref" namespace="{$namespace_full}">
|
3083
3099
|
<xsl:copy-of select="@*"/>
|
3084
3100
|
<xsl:apply-templates mode="update_xml_step1"/>
|
3085
3101
|
</xsl:element>
|
3086
|
-
</xsl:template>
|
3102
|
+
</xsl:template> -->
|
3087
3103
|
|
3088
3104
|
<xsl:template match="mn:xref" mode="update_xml_step1"/>
|
3089
3105
|
|
3090
|
-
<xsl:template match="mn:fmt-xref" mode="update_xml_step1">
|
3106
|
+
<!-- <xsl:template match="mn:fmt-xref" mode="update_xml_step1">
|
3091
3107
|
<xsl:element name="xref" namespace="{$namespace_full}">
|
3092
3108
|
<xsl:copy-of select="@*"/>
|
3093
3109
|
<xsl:apply-templates mode="update_xml_step1"/>
|
3094
3110
|
</xsl:element>
|
3095
|
-
</xsl:template>
|
3111
|
+
</xsl:template> -->
|
3096
3112
|
|
3097
3113
|
<xsl:template match="mn:link" mode="update_xml_step1"/>
|
3098
3114
|
|
3099
|
-
<xsl:template match="mn:fmt-link" mode="update_xml_step1">
|
3115
|
+
<!-- <xsl:template match="mn:fmt-link" mode="update_xml_step1">
|
3100
3116
|
<xsl:element name="link" namespace="{$namespace_full}">
|
3101
3117
|
<xsl:copy-of select="@*"/>
|
3102
3118
|
<xsl:apply-templates mode="update_xml_step1"/>
|
3103
3119
|
</xsl:element>
|
3104
|
-
</xsl:template>
|
3120
|
+
</xsl:template> -->
|
3105
3121
|
|
3106
3122
|
<xsl:template match="mn:origin" mode="update_xml_step1"/>
|
3107
3123
|
|
3108
|
-
<xsl:template match="mn:fmt-origin" mode="update_xml_step1">
|
3124
|
+
<!-- <xsl:template match="mn:fmt-origin" mode="update_xml_step1">
|
3109
3125
|
<xsl:element name="origin" namespace="{$namespace_full}">
|
3110
3126
|
<xsl:copy-of select="@*"/>
|
3111
3127
|
<xsl:apply-templates mode="update_xml_step1"/>
|
3112
3128
|
</xsl:element>
|
3113
|
-
</xsl:template>
|
3129
|
+
</xsl:template> -->
|
3114
3130
|
|
3115
3131
|
<xsl:template match="mn:erefstack" mode="update_xml_step1"/>
|
3116
3132
|
|
3117
3133
|
<xsl:template match="mn:svgmap" mode="update_xml_step1"/>
|
3118
3134
|
|
3119
|
-
<xsl:template match="mn:
|
3135
|
+
<xsl:template match="mn:annotation-container" mode="update_xml_step1"/>
|
3120
3136
|
|
3121
|
-
|
3122
|
-
|
3123
|
-
|
3124
|
-
|
3125
|
-
|
3137
|
+
<xsl:template match="mn:fmt-identifier[not(ancestor::*[local-name() = 'bibdata'])]//text()" mode="update_xml_step1">
|
3138
|
+
<xsl:element name="{$element_name_keep-together_within-line}" namespace="{$namespace_full}">
|
3139
|
+
<xsl:value-of select="."/>
|
3140
|
+
</xsl:element>
|
3141
|
+
</xsl:template>
|
3142
|
+
|
3143
|
+
<xsl:template match="@semx-id | @anchor" mode="update_xml_step1"/>
|
3126
3144
|
|
3127
3145
|
<!-- END: update new Presentation XML -->
|
3128
3146
|
|
@@ -3318,7 +3336,7 @@
|
|
3318
3336
|
<xsl:variable name="non_white_space">[^\s\u3000-\u9FFF]</xsl:variable>
|
3319
3337
|
<xsl:variable name="regex_dots_units">((\b((<xsl:value-of select="$non_white_space"/>{1,3}\.<xsl:value-of select="$non_white_space"/>+)|(<xsl:value-of select="$non_white_space"/>+\.<xsl:value-of select="$non_white_space"/>{1,3}))\b)|(\.<xsl:value-of select="$non_white_space"/>{1,3})\b)</xsl:variable>
|
3320
3338
|
|
3321
|
-
<xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:link[not(contains(
|
3339
|
+
<xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
|
3322
3340
|
|
3323
3341
|
<xsl:variable name="parent" select="local-name(..)"/>
|
3324
3342
|
|
@@ -3437,7 +3455,7 @@
|
|
3437
3455
|
</xsl:if>
|
3438
3456
|
</xsl:template>
|
3439
3457
|
|
3440
|
-
<xsl:template match="mn:stem | mn:image" mode="update_xml_enclose_keep-together_within-line">
|
3458
|
+
<xsl:template match="mn:fmt-stem | mn:image" mode="update_xml_enclose_keep-together_within-line">
|
3441
3459
|
<xsl:copy-of select="."/>
|
3442
3460
|
</xsl:template>
|
3443
3461
|
|
@@ -3766,7 +3784,7 @@
|
|
3766
3784
|
</fo:block>
|
3767
3785
|
</xsl:template> <!-- copyright-statement -->
|
3768
3786
|
|
3769
|
-
<xsl:template match="mn:copyright-statement//mn:title">
|
3787
|
+
<xsl:template match="mn:copyright-statement//mn:fmt-title">
|
3770
3788
|
<!-- process in the template 'title' -->
|
3771
3789
|
<xsl:call-template name="title"/>
|
3772
3790
|
</xsl:template> <!-- copyright-statement//title -->
|
@@ -3782,7 +3800,7 @@
|
|
3782
3800
|
</fo:block>
|
3783
3801
|
</xsl:template> <!-- license-statement -->
|
3784
3802
|
|
3785
|
-
<xsl:template match="mn:license-statement//mn:title">
|
3803
|
+
<xsl:template match="mn:license-statement//mn:fmt-title">
|
3786
3804
|
<!-- process in the template 'title' -->
|
3787
3805
|
<xsl:call-template name="title"/>
|
3788
3806
|
</xsl:template> <!-- license-statement/title -->
|
@@ -3799,7 +3817,7 @@
|
|
3799
3817
|
</fo:block>
|
3800
3818
|
</xsl:template> <!-- legal-statement -->
|
3801
3819
|
|
3802
|
-
<xsl:template match="mn:legal-statement//mn:title">
|
3820
|
+
<xsl:template match="mn:legal-statement//mn:fmt-title">
|
3803
3821
|
<!-- process in the template 'title' -->
|
3804
3822
|
<xsl:call-template name="title"/>
|
3805
3823
|
|
@@ -3819,7 +3837,7 @@
|
|
3819
3837
|
</fo:block>
|
3820
3838
|
</xsl:template> <!-- feedback-statement -->
|
3821
3839
|
|
3822
|
-
<xsl:template match="mn:feedback-statement//mn:title">
|
3840
|
+
<xsl:template match="mn:feedback-statement//mn:fmt-title">
|
3823
3841
|
<xsl:variable name="level">
|
3824
3842
|
<xsl:call-template name="getLevel"/>
|
3825
3843
|
</xsl:variable>
|
@@ -3850,7 +3868,7 @@
|
|
3850
3868
|
</xsl:if>
|
3851
3869
|
</xsl:template> <!-- refine_link-style -->
|
3852
3870
|
|
3853
|
-
<xsl:template match="mn:link" name="link">
|
3871
|
+
<xsl:template match="mn:fmt-link" name="link">
|
3854
3872
|
<xsl:variable name="target_normalized" select="translate(@target, '\', '/')"/>
|
3855
3873
|
<xsl:variable name="target_attachment_name" select="substring-after($target_normalized, '_attachments/')"/>
|
3856
3874
|
<xsl:variable name="isLinkToEmbeddedFile" select="normalize-space(@attachment = 'true' and $pdfAttachmentsList//attachment[@filename = current()/@target])"/>
|
@@ -4071,7 +4089,7 @@
|
|
4071
4089
|
<xsl:value-of select="."/>
|
4072
4090
|
</xsl:attribute>
|
4073
4091
|
</xsl:for-each>
|
4074
|
-
<xsl:apply-templates select="node()[not(self::mn:name)]"/>
|
4092
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
4075
4093
|
</xsl:when>
|
4076
4094
|
|
4077
4095
|
<xsl:otherwise>
|
@@ -4113,11 +4131,11 @@
|
|
4113
4131
|
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
4114
4132
|
</xsl:if>
|
4115
4133
|
|
4116
|
-
<xsl:apply-templates select="node()[not(self::mn:name or self::mn:dl)]"/>
|
4134
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name or self::mn:dl)]"/>
|
4117
4135
|
</fo:block>
|
4118
4136
|
|
4119
4137
|
<xsl:apply-templates select="mn:dl"/> <!-- Key table -->
|
4120
|
-
<xsl:apply-templates select="mn:name"/> <!-- show sourcecode's name AFTER content -->
|
4138
|
+
<xsl:apply-templates select="mn:fmt-name"/> <!-- show sourcecode's name AFTER content -->
|
4121
4139
|
|
4122
4140
|
</fo:block-container>
|
4123
4141
|
</fo:block-container>
|
@@ -4418,7 +4436,7 @@
|
|
4418
4436
|
|
4419
4437
|
<!-- end mode="syntax_highlight" -->
|
4420
4438
|
|
4421
|
-
<xsl:template match="mn:sourcecode/mn:name">
|
4439
|
+
<xsl:template match="mn:sourcecode/mn:fmt-name">
|
4422
4440
|
<xsl:if test="normalize-space() != ''">
|
4423
4441
|
<fo:block xsl:use-attribute-sets="sourcecode-name-style">
|
4424
4442
|
<xsl:apply-templates/>
|
@@ -4436,7 +4454,7 @@
|
|
4436
4454
|
</xsl:choose>
|
4437
4455
|
</xsl:template>
|
4438
4456
|
|
4439
|
-
<xsl:template match="mn:annotation">
|
4457
|
+
<xsl:template match="mn:callout-annotation">
|
4440
4458
|
<xsl:variable name="annotation-id" select="@id"/>
|
4441
4459
|
<xsl:variable name="callout" select="//*[@target = $annotation-id]/text()"/>
|
4442
4460
|
<fo:block id="{$annotation-id}" white-space="nowrap">
|
@@ -4448,7 +4466,7 @@
|
|
4448
4466
|
</fo:block>
|
4449
4467
|
</xsl:template>
|
4450
4468
|
|
4451
|
-
<xsl:template match="mn:annotation/mn:p">
|
4469
|
+
<xsl:template match="mn:callout-annotation/mn:p">
|
4452
4470
|
<xsl:param name="callout"/>
|
4453
4471
|
<fo:inline id="{@id}">
|
4454
4472
|
<xsl:call-template name="setNamedDestination"/>
|
@@ -4601,7 +4619,7 @@
|
|
4601
4619
|
<xsl:when test="starts-with(., $ace_tag) or self::mn:change-open-tag or self::mn:change-close-tag"> <!-- examples: ace-tag_A1_start, ace-tag_A2_end, C1_start, AC_start, or
|
4602
4620
|
<change-open-tag>A<sub>1</sub></change-open-tag>, <change-close-tag>A<sub>1</sub></change-close-tag> -->
|
4603
4621
|
<xsl:choose>
|
4604
|
-
<xsl:when test="$skip = 'true' and ((local-name(../..) = 'note' and not(preceding-sibling::node())) or (
|
4622
|
+
<xsl:when test="$skip = 'true' and ((local-name(../..) = 'note' and not(preceding-sibling::node())) or (parent::mn:fmt-title and preceding-sibling::node()[1][self::mn:tab]) or local-name(..) = 'formattedref' and not(preceding-sibling::node())) and ../node()[last()][self::mn:add][starts-with(text(), $ace_tag)]"><!-- start tag displayed in template name="note" and title --></xsl:when>
|
4605
4623
|
<xsl:otherwise>
|
4606
4624
|
<xsl:variable name="tag">
|
4607
4625
|
<xsl:call-template name="insertTag">
|
@@ -5002,12 +5020,12 @@
|
|
5002
5020
|
<xsl:template match="mn:permission">
|
5003
5021
|
<xsl:call-template name="setNamedDestination"/>
|
5004
5022
|
<fo:block id="{@id}" xsl:use-attribute-sets="permission-style">
|
5005
|
-
<xsl:apply-templates select="mn:name"/>
|
5006
|
-
<xsl:apply-templates select="node()[not(self::mn:name)]"/>
|
5023
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
5024
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
5007
5025
|
</fo:block>
|
5008
5026
|
</xsl:template>
|
5009
5027
|
|
5010
|
-
<xsl:template match="mn:permission/mn:name">
|
5028
|
+
<xsl:template match="mn:permission/mn:fmt-name">
|
5011
5029
|
<xsl:if test="normalize-space() != ''">
|
5012
5030
|
<fo:block xsl:use-attribute-sets="permission-name-style">
|
5013
5031
|
<xsl:apply-templates/>
|
@@ -5029,15 +5047,15 @@
|
|
5029
5047
|
<xsl:template match="mn:requirement">
|
5030
5048
|
<xsl:call-template name="setNamedDestination"/>
|
5031
5049
|
<fo:block id="{@id}" xsl:use-attribute-sets="requirement-style">
|
5032
|
-
<xsl:apply-templates select="mn:name"/>
|
5050
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
5033
5051
|
<xsl:apply-templates select="mn:label"/>
|
5034
5052
|
<xsl:apply-templates select="@obligation"/>
|
5035
5053
|
<xsl:apply-templates select="mn:subject"/>
|
5036
|
-
<xsl:apply-templates select="node()[not(self::mn:name) and not(self::mn:label) and not(self::mn:subject)]"/>
|
5054
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name) and not(self::mn:label) and not(self::mn:subject)]"/>
|
5037
5055
|
</fo:block>
|
5038
5056
|
</xsl:template>
|
5039
5057
|
|
5040
|
-
<xsl:template match="mn:requirement/mn:name">
|
5058
|
+
<xsl:template match="mn:requirement/mn:fmt-name">
|
5041
5059
|
<xsl:if test="normalize-space() != ''">
|
5042
5060
|
|
5043
5061
|
<fo:block xsl:use-attribute-sets="requirement-name-style">
|
@@ -5073,12 +5091,12 @@
|
|
5073
5091
|
<xsl:template match="mn:recommendation">
|
5074
5092
|
<xsl:call-template name="setNamedDestination"/>
|
5075
5093
|
<fo:block id="{@id}" xsl:use-attribute-sets="recommendation-style">
|
5076
|
-
<xsl:apply-templates select="mn:name"/>
|
5077
|
-
<xsl:apply-templates select="node()[not(self::mn:name)]"/>
|
5094
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
5095
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
5078
5096
|
</fo:block>
|
5079
5097
|
</xsl:template>
|
5080
5098
|
|
5081
|
-
<xsl:template match="mn:recommendation/mn:name">
|
5099
|
+
<xsl:template match="mn:recommendation/mn:fmt-name">
|
5082
5100
|
<xsl:if test="normalize-space() != ''">
|
5083
5101
|
|
5084
5102
|
<fo:block xsl:use-attribute-sets="recommendation-name-style">
|
@@ -5335,11 +5353,11 @@
|
|
5335
5353
|
|
5336
5354
|
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:term)">
|
5337
5355
|
</xsl:if>
|
5338
|
-
<xsl:apply-templates select="node()[not(self::mn:name)]"/>
|
5356
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
5339
5357
|
</fo:block>
|
5340
5358
|
</xsl:template>
|
5341
5359
|
|
5342
|
-
<xsl:template match="mn:term/mn:name">
|
5360
|
+
<xsl:template match="mn:term/mn:fmt-name">
|
5343
5361
|
<xsl:if test="normalize-space() != ''">
|
5344
5362
|
<!-- <xsl:variable name="level">
|
5345
5363
|
<xsl:call-template name="getLevelTermName"/>
|
@@ -5358,7 +5376,7 @@
|
|
5358
5376
|
<!-- origin -->
|
5359
5377
|
<!-- modification -->
|
5360
5378
|
<!-- ====== -->
|
5361
|
-
<xsl:template match="mn:termsource" name="termsource">
|
5379
|
+
<xsl:template match="mn:fmt-termsource" name="termsource">
|
5362
5380
|
<fo:block xsl:use-attribute-sets="termsource-style">
|
5363
5381
|
|
5364
5382
|
<xsl:call-template name="refine_termsource-style"/>
|
@@ -5397,24 +5415,24 @@
|
|
5397
5415
|
</fo:block>
|
5398
5416
|
</xsl:template>
|
5399
5417
|
|
5400
|
-
<xsl:template match="mn:termsource/text()[starts-with(., '[SOURCE: Adapted from: ') or starts-with(., '[SOURCE: Quoted from: ') or starts-with(., '[SOURCE: Modified from: ')]" priority="2">
|
5418
|
+
<xsl:template match="mn:fmt-termsource/text()[starts-with(., '[SOURCE: Adapted from: ') or starts-with(., '[SOURCE: Quoted from: ') or starts-with(., '[SOURCE: Modified from: ')]" priority="2">
|
5401
5419
|
<xsl:text>[</xsl:text><xsl:value-of select="substring-after(., '[SOURCE: ')"/>
|
5402
5420
|
</xsl:template>
|
5403
5421
|
|
5404
|
-
<xsl:template match="mn:termsource/text()">
|
5422
|
+
<xsl:template match="mn:fmt-termsource/text()">
|
5405
5423
|
<xsl:if test="normalize-space() != ''">
|
5406
5424
|
<xsl:value-of select="."/>
|
5407
5425
|
</xsl:if>
|
5408
5426
|
</xsl:template>
|
5409
5427
|
|
5410
5428
|
<!-- text SOURCE: -->
|
5411
|
-
<xsl:template match="mn:termsource/mn:strong[1][following-sibling::*[1][self::mn:origin]]/text()">
|
5429
|
+
<xsl:template match="mn:fmt-termsource/mn:strong[1][following-sibling::*[1][self::mn:fmt-origin]]/text()">
|
5412
5430
|
<fo:inline xsl:use-attribute-sets="termsource-text-style">
|
5413
5431
|
<xsl:value-of select="."/>
|
5414
5432
|
</fo:inline>
|
5415
5433
|
</xsl:template>
|
5416
5434
|
|
5417
|
-
<xsl:template match="mn:origin">
|
5435
|
+
<xsl:template match="mn:fmt-origin">
|
5418
5436
|
<xsl:call-template name="insert_basic_link">
|
5419
5437
|
<xsl:with-param name="element">
|
5420
5438
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
@@ -5460,7 +5478,7 @@
|
|
5460
5478
|
<!-- ====== -->
|
5461
5479
|
|
5462
5480
|
<!-- Preferred, admitted, deprecated -->
|
5463
|
-
<xsl:template match="mn:preferred">
|
5481
|
+
<xsl:template match="mn:fmt-preferred">
|
5464
5482
|
<xsl:variable name="level">
|
5465
5483
|
<xsl:call-template name="getLevel"/>
|
5466
5484
|
</xsl:variable>
|
@@ -5470,19 +5488,19 @@
|
|
5470
5488
|
<xsl:call-template name="getLevelTermName"/>
|
5471
5489
|
</xsl:variable>
|
5472
5490
|
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
5473
|
-
<xsl:if test="preceding-sibling::*[1][self::mn:preferred]">
|
5491
|
+
<xsl:if test="preceding-sibling::*[1][self::mn:fmt-preferred]">
|
5474
5492
|
<xsl:attribute name="space-before">1pt</xsl:attribute>
|
5475
5493
|
</xsl:if>
|
5476
5494
|
|
5477
|
-
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:preferred)"> <!-- if first preffered in term, then display term's name -->
|
5495
|
+
<xsl:if test="parent::mn:term and not(preceding-sibling::mn:fmt-preferred)"> <!-- if first preffered in term, then display term's name -->
|
5478
5496
|
|
5479
5497
|
<fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
|
5480
5498
|
|
5481
|
-
<xsl:for-each select="ancestor::mn:term[1]/mn:name"><!-- change context -->
|
5499
|
+
<xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
|
5482
5500
|
<xsl:call-template name="setIDforNamedDestination"/>
|
5483
5501
|
</xsl:for-each>
|
5484
5502
|
|
5485
|
-
<xsl:apply-templates select="ancestor::mn:term[1]/mn:name"/>
|
5503
|
+
<xsl:apply-templates select="ancestor::mn:term[1]/mn:fmt-name"/>
|
5486
5504
|
</fo:block>
|
5487
5505
|
</xsl:if>
|
5488
5506
|
|
@@ -5506,13 +5524,13 @@
|
|
5506
5524
|
<!-- https://github.com/metanorma/isodoc/issues/632#issuecomment-2567163931 -->
|
5507
5525
|
<xsl:template match="mn:domain"/>
|
5508
5526
|
|
5509
|
-
<xsl:template match="mn:admitted">
|
5527
|
+
<xsl:template match="mn:fmt-admitted">
|
5510
5528
|
<fo:block xsl:use-attribute-sets="admitted-style">
|
5511
5529
|
<xsl:apply-templates/>
|
5512
5530
|
</fo:block>
|
5513
5531
|
</xsl:template>
|
5514
5532
|
|
5515
|
-
<xsl:template match="mn:deprecates">
|
5533
|
+
<xsl:template match="mn:fmt-deprecates">
|
5516
5534
|
<fo:block xsl:use-attribute-sets="deprecates-style">
|
5517
5535
|
<xsl:apply-templates/>
|
5518
5536
|
</fo:block>
|
@@ -5526,7 +5544,7 @@
|
|
5526
5544
|
|
5527
5545
|
<!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
|
5528
5546
|
<!-- in metanorma xml preferred terms delimited by semicolons -->
|
5529
|
-
<xsl:template match="mn:preferred/text()[contains(., ';')] | mn:preferred/mn:strong/text()[contains(., ';')]">
|
5547
|
+
<xsl:template match="mn:fmt-preferred/text()[contains(., ';')] | mn:fmt-preferred/mn:strong/text()[contains(., ';')]">
|
5530
5548
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.), ';', $linebreak)"/>
|
5531
5549
|
</xsl:template>
|
5532
5550
|
<!-- End Preferred, admitted, deprecated -->
|
@@ -5545,16 +5563,16 @@
|
|
5545
5563
|
<!-- ========== -->
|
5546
5564
|
<!-- definition -->
|
5547
5565
|
<!-- ========== -->
|
5548
|
-
<xsl:template match="mn:definition">
|
5566
|
+
<xsl:template match="mn:fmt-definition">
|
5549
5567
|
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
5550
5568
|
<xsl:apply-templates/>
|
5551
5569
|
</fo:block>
|
5552
5570
|
</xsl:template>
|
5553
5571
|
|
5554
|
-
<xsl:template match="mn:definition[preceding-sibling::mn:domain]">
|
5572
|
+
<xsl:template match="mn:fmt-definition[preceding-sibling::mn:domain]">
|
5555
5573
|
<xsl:apply-templates/>
|
5556
5574
|
</xsl:template>
|
5557
|
-
<xsl:template match="mn:definition[preceding-sibling::mn:domain]/mn:p[1]">
|
5575
|
+
<xsl:template match="mn:fmt-definition[preceding-sibling::mn:domain]/mn:p[1]">
|
5558
5576
|
<fo:inline> <xsl:apply-templates/></fo:inline>
|
5559
5577
|
<fo:block/>
|
5560
5578
|
</xsl:template>
|
@@ -5621,12 +5639,12 @@
|
|
5621
5639
|
<xsl:call-template name="refine_termexample-style"/>
|
5622
5640
|
<xsl:call-template name="setBlockSpanAll"/>
|
5623
5641
|
|
5624
|
-
<xsl:apply-templates select="mn:name"/>
|
5625
|
-
<xsl:apply-templates select="node()[not(self::mn:name)]"/>
|
5642
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
5643
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
5626
5644
|
</fo:block>
|
5627
5645
|
</xsl:template>
|
5628
5646
|
|
5629
|
-
<xsl:template match="mn:termexample/mn:name">
|
5647
|
+
<xsl:template match="mn:termexample/mn:fmt-name">
|
5630
5648
|
<xsl:if test="normalize-space() != ''">
|
5631
5649
|
<fo:inline xsl:use-attribute-sets="termexample-name-style">
|
5632
5650
|
<xsl:call-template name="refine_termexample-name-style"/>
|
@@ -5677,10 +5695,10 @@
|
|
5677
5695
|
<xsl:call-template name="refine_example-style"/>
|
5678
5696
|
|
5679
5697
|
<xsl:variable name="fo_element">
|
5680
|
-
<xsl:if test=".//mn:table or .//mn:dl or *[not(self::mn:name)][1][self::mn:sourcecode]">block</xsl:if>
|
5698
|
+
<xsl:if test=".//mn:table or .//mn:dl or *[not(self::mn:fmt-name)][1][self::mn:sourcecode]">block</xsl:if>
|
5681
5699
|
<xsl:choose>
|
5682
5700
|
<!-- if example contains only one (except 'name') element (paragraph for example), then display it on the same line as EXAMPLE title -->
|
5683
|
-
<xsl:when test="count(*[not(self::mn:name)]) = 1">inline</xsl:when>
|
5701
|
+
<xsl:when test="count(*[not(self::mn:fmt-name)]) = 1">inline</xsl:when>
|
5684
5702
|
<xsl:otherwise>block</xsl:otherwise>
|
5685
5703
|
</xsl:choose>
|
5686
5704
|
|
@@ -5694,7 +5712,7 @@
|
|
5694
5712
|
|
5695
5713
|
<!-- display name 'EXAMPLE' in a separate block -->
|
5696
5714
|
<fo:block>
|
5697
|
-
<xsl:apply-templates select="mn:name">
|
5715
|
+
<xsl:apply-templates select="mn:fmt-name">
|
5698
5716
|
<xsl:with-param name="fo_element" select="$fo_element"/>
|
5699
5717
|
</xsl:apply-templates>
|
5700
5718
|
</fo:block>
|
@@ -5702,7 +5720,7 @@
|
|
5702
5720
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
5703
5721
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
5704
5722
|
<xsl:variable name="example_body">
|
5705
|
-
<xsl:apply-templates select="node()[not(self::mn:name)]">
|
5723
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]">
|
5706
5724
|
<xsl:with-param name="fo_element" select="$fo_element"/>
|
5707
5725
|
</xsl:apply-templates>
|
5708
5726
|
</xsl:variable>
|
@@ -5729,14 +5747,14 @@
|
|
5729
5747
|
<fo:list-item>
|
5730
5748
|
<fo:list-item-label start-indent="{$indent}mm" end-indent="label-end()">
|
5731
5749
|
<fo:block>
|
5732
|
-
<xsl:apply-templates select="mn:name">
|
5750
|
+
<xsl:apply-templates select="mn:fmt-name">
|
5733
5751
|
<xsl:with-param name="fo_element">block</xsl:with-param>
|
5734
5752
|
</xsl:apply-templates>
|
5735
5753
|
</fo:block>
|
5736
5754
|
</fo:list-item-label>
|
5737
5755
|
<fo:list-item-body start-indent="body-start()">
|
5738
5756
|
<fo:block>
|
5739
|
-
<xsl:apply-templates select="node()[not(self::mn:name)]">
|
5757
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]">
|
5740
5758
|
<xsl:with-param name="fo_element" select="$fo_element"/>
|
5741
5759
|
</xsl:apply-templates>
|
5742
5760
|
</fo:block>
|
@@ -5749,21 +5767,21 @@
|
|
5749
5767
|
|
5750
5768
|
<!-- display 'EXAMPLE' and first element in the same line -->
|
5751
5769
|
<fo:block>
|
5752
|
-
<xsl:apply-templates select="mn:name">
|
5770
|
+
<xsl:apply-templates select="mn:fmt-name">
|
5753
5771
|
<xsl:with-param name="fo_element" select="$fo_element"/>
|
5754
5772
|
</xsl:apply-templates>
|
5755
5773
|
<fo:inline>
|
5756
|
-
<xsl:apply-templates select="*[not(self::mn:name)][1]">
|
5774
|
+
<xsl:apply-templates select="*[not(self::mn:fmt-name)][1]">
|
5757
5775
|
<xsl:with-param name="fo_element" select="$fo_element"/>
|
5758
5776
|
</xsl:apply-templates>
|
5759
5777
|
</fo:inline>
|
5760
5778
|
</fo:block>
|
5761
5779
|
|
5762
|
-
<xsl:if test="*[not(self::mn:name)][position() > 1]">
|
5780
|
+
<xsl:if test="*[not(self::mn:fmt-name)][position() > 1]">
|
5763
5781
|
<!-- display further elements in blocks -->
|
5764
5782
|
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
5765
5783
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
5766
|
-
<xsl:apply-templates select="*[not(self::mn:name)][position() > 1]">
|
5784
|
+
<xsl:apply-templates select="*[not(self::mn:fmt-name)][position() > 1]">
|
5767
5785
|
<xsl:with-param name="fo_element" select="'block'"/>
|
5768
5786
|
</xsl:apply-templates>
|
5769
5787
|
</fo:block-container>
|
@@ -5777,7 +5795,7 @@
|
|
5777
5795
|
</xsl:template>
|
5778
5796
|
|
5779
5797
|
<!-- example/name -->
|
5780
|
-
<xsl:template match="mn:example/mn:name">
|
5798
|
+
<xsl:template match="mn:example/mn:fmt-name">
|
5781
5799
|
<xsl:param name="fo_element">block</xsl:param>
|
5782
5800
|
|
5783
5801
|
<xsl:choose>
|
@@ -5802,7 +5820,7 @@
|
|
5802
5820
|
</xsl:template>
|
5803
5821
|
|
5804
5822
|
<!-- table/example/name, table/tfoot//example/name -->
|
5805
|
-
<xsl:template match="mn:table/mn:example/mn:name | mn:table/mn:tfoot//mn:example/mn:name">
|
5823
|
+
<xsl:template match="mn:table/mn:example/mn:fmt-name | mn:table/mn:tfoot//mn:example/mn:fmt-name">
|
5806
5824
|
<fo:inline xsl:use-attribute-sets="example-name-style">
|
5807
5825
|
<xsl:apply-templates/>
|
5808
5826
|
</fo:inline>
|
@@ -6107,7 +6125,7 @@
|
|
6107
6125
|
|
6108
6126
|
<!-- Display table's name before table as standalone block -->
|
6109
6127
|
<!-- $namespace = 'iso' or -->
|
6110
|
-
<xsl:apply-templates select="mn:name"/> <!-- table's title rendered before table -->
|
6128
|
+
<xsl:apply-templates select="mn:fmt-name"/> <!-- table's title rendered before table -->
|
6111
6129
|
<xsl:call-template name="table_name_fn_display"/>
|
6112
6130
|
|
6113
6131
|
<xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)/*/mn:tr[1]/mn:td)"/>
|
@@ -6149,7 +6167,7 @@
|
|
6149
6167
|
|
6150
6168
|
<fo:block-container xsl:use-attribute-sets="table-container-style" role="SKIP">
|
6151
6169
|
|
6152
|
-
<xsl:for-each select="mn:name">
|
6170
|
+
<xsl:for-each select="mn:fmt-name">
|
6153
6171
|
<xsl:call-template name="setIDforNamedDestination"/>
|
6154
6172
|
</xsl:for-each>
|
6155
6173
|
|
@@ -6179,6 +6197,10 @@
|
|
6179
6197
|
<xsl:with-param name="margin-side" select="$margin-side"/>
|
6180
6198
|
</xsl:call-template>
|
6181
6199
|
|
6200
|
+
<xsl:call-template name="setTableStyles">
|
6201
|
+
<xsl:with-param name="scope">table</xsl:with-param>
|
6202
|
+
</xsl:call-template>
|
6203
|
+
|
6182
6204
|
</xsl:element>
|
6183
6205
|
</xsl:variable>
|
6184
6206
|
|
@@ -6199,7 +6221,7 @@
|
|
6199
6221
|
</xsl:attribute>
|
6200
6222
|
</xsl:for-each>
|
6201
6223
|
|
6202
|
-
<xsl:variable name="isNoteOrFnExist" select="./mn:note[not(@type = 'units')] or ./mn:example or .//mn:fn[
|
6224
|
+
<xsl:variable name="isNoteOrFnExist" select="./mn:note[not(@type = 'units')] or ./mn:example or .//mn:fn[not(parent::mn:fmt-name)] or ./mn:fmt-source"/>
|
6203
6225
|
<xsl:if test="$isNoteOrFnExist = 'true'">
|
6204
6226
|
<!-- <xsl:choose>
|
6205
6227
|
<xsl:when test="$namespace = 'plateau'"></xsl:when>
|
@@ -6255,7 +6277,7 @@
|
|
6255
6277
|
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
6256
6278
|
</xsl:when>
|
6257
6279
|
<xsl:otherwise>
|
6258
|
-
<xsl:apply-templates select="node()[not(self::mn:name) and not(self::mn:note) and not(self::mn:example) and not(self::mn:dl) and not(self::mn:source) and not(self::mn:p) and not(self::mn:thead) and not(self::mn:tfoot) and not(self::mn:fmt-footnote-container)]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
6280
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name) and not(self::mn:note) and not(self::mn:example) and not(self::mn:dl) and not(self::mn:fmt-source) and not(self::mn:p) and not(self::mn:thead) and not(self::mn:tfoot) and not(self::mn:fmt-footnote-container)]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
6259
6281
|
</xsl:otherwise>
|
6260
6282
|
</xsl:choose>
|
6261
6283
|
|
@@ -6356,7 +6378,7 @@
|
|
6356
6378
|
</xsl:template>
|
6357
6379
|
|
6358
6380
|
<!-- table/name-->
|
6359
|
-
<xsl:template match="*[local-name()='table']/mn:name">
|
6381
|
+
<xsl:template match="*[local-name()='table']/mn:fmt-name">
|
6360
6382
|
<xsl:param name="continued"/>
|
6361
6383
|
<xsl:param name="cols-count"/>
|
6362
6384
|
<xsl:if test="normalize-space() != ''">
|
@@ -6430,7 +6452,7 @@
|
|
6430
6452
|
</xsl:template>
|
6431
6453
|
|
6432
6454
|
<!-- SOURCE: ... -->
|
6433
|
-
<xsl:template match="*[local-name()='table']/mn:source" priority="2">
|
6455
|
+
<xsl:template match="*[local-name()='table']/mn:fmt-source" priority="2">
|
6434
6456
|
<xsl:call-template name="termsource"/>
|
6435
6457
|
</xsl:template>
|
6436
6458
|
|
@@ -6595,11 +6617,11 @@
|
|
6595
6617
|
<xsl:value-of select="translate(., $zero_width_space, ' ')"/><xsl:text> </xsl:text>
|
6596
6618
|
</xsl:template>
|
6597
6619
|
|
6598
|
-
<xsl:template match="mn:termsource" mode="td_text">
|
6599
|
-
<xsl:value-of select="
|
6620
|
+
<xsl:template match="mn:fmt-termsource" mode="td_text">
|
6621
|
+
<xsl:value-of select="mn:fmt-origin/@citeas"/>
|
6600
6622
|
</xsl:template>
|
6601
6623
|
|
6602
|
-
<xsl:template match="mn:link" mode="td_text">
|
6624
|
+
<xsl:template match="mn:fmt-link" mode="td_text">
|
6603
6625
|
<xsl:value-of select="@target"/>
|
6604
6626
|
</xsl:template>
|
6605
6627
|
|
@@ -6804,12 +6826,12 @@
|
|
6804
6826
|
|
6805
6827
|
<xsl:call-template name="refine_table-header-title-style"/>
|
6806
6828
|
|
6807
|
-
<xsl:apply-templates select="ancestor::mn:table/mn:name">
|
6829
|
+
<xsl:apply-templates select="ancestor::mn:table/mn:fmt-name">
|
6808
6830
|
<xsl:with-param name="continued">true</xsl:with-param>
|
6809
6831
|
<xsl:with-param name="cols-count" select="$cols-count"/>
|
6810
6832
|
</xsl:apply-templates>
|
6811
6833
|
|
6812
|
-
<xsl:if test="not(ancestor::mn:table/mn:name)"> <!-- to prevent empty fo:table-cell in case of missing table's name -->
|
6834
|
+
<xsl:if test="not(ancestor::mn:table/mn:fmt-name)"> <!-- to prevent empty fo:table-cell in case of missing table's name -->
|
6813
6835
|
<fo:block role="SKIP"/>
|
6814
6836
|
</xsl:if>
|
6815
6837
|
|
@@ -6848,7 +6870,7 @@
|
|
6848
6870
|
<xsl:param name="colwidths"/>
|
6849
6871
|
<xsl:param name="colgroup"/>
|
6850
6872
|
|
6851
|
-
<xsl:variable name="isNoteOrFnExist" select="../mn:note[not(@type = 'units')] or ../mn:example or ../mn:dl or ..//mn:fn[
|
6873
|
+
<xsl:variable name="isNoteOrFnExist" select="../mn:note[not(@type = 'units')] or ../mn:example or ../mn:dl or ..//mn:fn[not(parent::mn:fmt-name)] or ../mn:fmt-source or ../mn:p"/>
|
6852
6874
|
|
6853
6875
|
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
6854
6876
|
</xsl:variable>
|
@@ -6889,6 +6911,12 @@
|
|
6889
6911
|
</xsl:choose>
|
6890
6912
|
</xsl:for-each>
|
6891
6913
|
|
6914
|
+
<xsl:for-each select="ancestor::mn:table[1]">
|
6915
|
+
<xsl:call-template name="setTableStyles">
|
6916
|
+
<xsl:with-param name="scope">table</xsl:with-param>
|
6917
|
+
</xsl:call-template>
|
6918
|
+
</xsl:for-each>
|
6919
|
+
|
6892
6920
|
<xsl:choose>
|
6893
6921
|
<xsl:when test="xalan:nodeset($colgroup)//mn:col">
|
6894
6922
|
<xsl:for-each select="xalan:nodeset($colgroup)//mn:col">
|
@@ -6905,10 +6933,22 @@
|
|
6905
6933
|
|
6906
6934
|
<fo:table-body role="SKIP">
|
6907
6935
|
<fo:table-row role="SKIP">
|
6936
|
+
<xsl:for-each select="ancestor::mn:table[1]">
|
6937
|
+
<xsl:call-template name="setTableStyles">
|
6938
|
+
<xsl:with-param name="scope">ancestor_table</xsl:with-param>
|
6939
|
+
</xsl:call-template>
|
6940
|
+
</xsl:for-each>
|
6941
|
+
|
6908
6942
|
<fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}" role="SKIP">
|
6909
6943
|
|
6910
6944
|
<xsl:call-template name="refine_table-footer-cell-style"/>
|
6911
6945
|
|
6946
|
+
<xsl:for-each select="ancestor::mn:table[1]">
|
6947
|
+
<xsl:call-template name="setTableStyles">
|
6948
|
+
<xsl:with-param name="scope">ancestor_table_borders_only</xsl:with-param>
|
6949
|
+
</xsl:call-template>
|
6950
|
+
</xsl:for-each>
|
6951
|
+
|
6912
6952
|
<xsl:call-template name="setBordersTableArray"/>
|
6913
6953
|
|
6914
6954
|
<!-- fn will be processed inside 'note' processing -->
|
@@ -6919,7 +6959,7 @@
|
|
6919
6959
|
<xsl:apply-templates select="../mn:dl"/>
|
6920
6960
|
<xsl:apply-templates select="../mn:note[not(@type = 'units')]"/>
|
6921
6961
|
<xsl:apply-templates select="../mn:example"/>
|
6922
|
-
<xsl:apply-templates select="../mn:source"/>
|
6962
|
+
<xsl:apply-templates select="../mn:fmt-source"/>
|
6923
6963
|
|
6924
6964
|
<xsl:variable name="isDisplayRowSeparator">true
|
6925
6965
|
</xsl:variable>
|
@@ -6969,7 +7009,7 @@
|
|
6969
7009
|
</xsl:choose>
|
6970
7010
|
</xsl:variable>
|
6971
7011
|
<!-- if there isn't 'thead' and there is a table's title -->
|
6972
|
-
<xsl:if test="not(ancestor::mn:table/mn:thead) and ancestor::mn:table/mn:name">
|
7012
|
+
<xsl:if test="not(ancestor::mn:table/mn:thead) and ancestor::mn:table/mn:fmt-name">
|
6973
7013
|
<fo:table-header>
|
6974
7014
|
<xsl:call-template name="table-header-title">
|
6975
7015
|
<xsl:with-param name="cols-count" select="$cols-count"/>
|
@@ -6996,7 +7036,7 @@
|
|
6996
7036
|
<xsl:variable name="title_continued"><xsl:value-of select="$title_continued_in_parenthesis"/>
|
6997
7037
|
</xsl:variable>
|
6998
7038
|
|
6999
|
-
<xsl:variable name="title_start" select="ancestor::mn:table[1]/mn:name/node()[1][self::text()]"/>
|
7039
|
+
<xsl:variable name="title_start" select="ancestor::mn:table[1]/mn:fmt-name/node()[1][self::text()]"/>
|
7000
7040
|
<xsl:variable name="table_number" select="substring-before($title_start, '—')"/>
|
7001
7041
|
|
7002
7042
|
<fo:table-row height="0" keep-with-next.within-page="always" role="SKIP">
|
@@ -7146,7 +7186,12 @@
|
|
7146
7186
|
|
7147
7187
|
<xsl:template name="setTableRowAttributes">
|
7148
7188
|
|
7149
|
-
<xsl:
|
7189
|
+
<xsl:for-each select="ancestor::mn:table[1]">
|
7190
|
+
<xsl:call-template name="setTableStyles">
|
7191
|
+
<xsl:with-param name="scope">ancestor_table</xsl:with-param>
|
7192
|
+
</xsl:call-template>
|
7193
|
+
</xsl:for-each>
|
7194
|
+
<xsl:call-template name="setTableStyles"/>
|
7150
7195
|
|
7151
7196
|
</xsl:template> <!-- setTableRowAttributes -->
|
7152
7197
|
<!-- ===================== -->
|
@@ -7199,7 +7244,13 @@
|
|
7199
7244
|
</xsl:attribute>
|
7200
7245
|
</xsl:if>
|
7201
7246
|
<xsl:call-template name="display-align"/>
|
7202
|
-
|
7247
|
+
|
7248
|
+
<xsl:for-each select="ancestor::mn:table[1]">
|
7249
|
+
<xsl:call-template name="setTableStyles">
|
7250
|
+
<xsl:with-param name="scope">ancestor_table_borders_only</xsl:with-param>
|
7251
|
+
</xsl:call-template>
|
7252
|
+
</xsl:for-each>
|
7253
|
+
<xsl:call-template name="setTableStyles"/>
|
7203
7254
|
</xsl:template>
|
7204
7255
|
|
7205
7256
|
<xsl:template name="display-align">
|
@@ -7215,7 +7266,8 @@
|
|
7215
7266
|
</xsl:if>
|
7216
7267
|
</xsl:template>
|
7217
7268
|
|
7218
|
-
<xsl:template name="
|
7269
|
+
<xsl:template name="setTableStyles">
|
7270
|
+
<xsl:param name="scope">cell</xsl:param>
|
7219
7271
|
<xsl:variable name="styles__">
|
7220
7272
|
<xsl:call-template name="split">
|
7221
7273
|
<xsl:with-param name="pText" select="concat(@style,';')"/>
|
@@ -7227,16 +7279,22 @@
|
|
7227
7279
|
<xsl:for-each select="xalan:nodeset($styles__)/mnx:item">
|
7228
7280
|
<xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
|
7229
7281
|
<xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
|
7230
|
-
<xsl:if test="$key = 'color' or $key = 'background-color' or $key = 'border' or $key = 'border-top' or $key = 'border-right' or $key = 'border-left' or $key = 'border-bottom' or $key = 'border-style' or $key = 'border-width' or $key = 'border-color' or $key = 'border-top-style' or $key = 'border-top-width' or $key = 'border-top-color' or $key = 'border-right-style' or $key = 'border-right-width' or $key = 'border-right-color' or $key = 'border-left-style' or $key = 'border-left-width' or $key = 'border-left-color' or $key = 'border-bottom-style' or $key = 'border-bottom-width' or $key = 'border-bottom-color'">
|
7282
|
+
<xsl:if test="($key = 'color' and ($scope = 'cell' or $scope = 'table')) or ($key = 'background-color' and ($scope = 'cell' or $scope = 'ancestor_table')) or $key = 'border' or $key = 'border-top' or $key = 'border-right' or $key = 'border-left' or $key = 'border-bottom' or $key = 'border-style' or $key = 'border-width' or $key = 'border-color' or $key = 'border-top-style' or $key = 'border-top-width' or $key = 'border-top-color' or $key = 'border-right-style' or $key = 'border-right-width' or $key = 'border-right-color' or $key = 'border-left-style' or $key = 'border-left-width' or $key = 'border-left-color' or $key = 'border-bottom-style' or $key = 'border-bottom-width' or $key = 'border-bottom-color'">
|
7231
7283
|
<style name="{$key}"><xsl:value-of select="java:replaceAll(java:java.lang.String.new($value), 'currentColor', 'inherit')"/></style>
|
7232
7284
|
</xsl:if>
|
7285
|
+
<xsl:if test="$key = 'border' and ($scope = 'table' or $scope = 'ancestor_table' or $scope = 'ancestor_table_borders_only')">
|
7286
|
+
<style name="{$key}-top"><xsl:value-of select="$value"/></style>
|
7287
|
+
<style name="{$key}-right"><xsl:value-of select="$value"/></style>
|
7288
|
+
<style name="{$key}-left"><xsl:value-of select="$value"/></style>
|
7289
|
+
<style name="{$key}-bottom"><xsl:value-of select="$value"/></style>
|
7290
|
+
</xsl:if>
|
7233
7291
|
</xsl:for-each>
|
7234
7292
|
</xsl:variable>
|
7235
7293
|
<xsl:variable name="styles" select="xalan:nodeset($styles_)"/>
|
7236
7294
|
<xsl:for-each select="$styles/style">
|
7237
7295
|
<xsl:attribute name="{@name}"><xsl:value-of select="."/></xsl:attribute>
|
7238
7296
|
</xsl:for-each>
|
7239
|
-
</xsl:template> <!--
|
7297
|
+
</xsl:template> <!-- setTableStyles -->
|
7240
7298
|
|
7241
7299
|
<!-- cell in table body, footer -->
|
7242
7300
|
<xsl:template match="*[local-name()='td']" name="td">
|
@@ -7300,11 +7358,11 @@
|
|
7300
7358
|
|
7301
7359
|
<xsl:call-template name="refine_table-note-name-style"/>
|
7302
7360
|
|
7303
|
-
<xsl:apply-templates select="mn:name"/>
|
7361
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
7304
7362
|
|
7305
7363
|
</fo:inline>
|
7306
7364
|
|
7307
|
-
<xsl:apply-templates select="node()[not(self::mn:name)]"/>
|
7365
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
7308
7366
|
</fo:block>
|
7309
7367
|
</xsl:template> <!-- table/note -->
|
7310
7368
|
|
@@ -7443,7 +7501,7 @@
|
|
7443
7501
|
|
7444
7502
|
<!-- footnotes for table's name rendering -->
|
7445
7503
|
<xsl:template name="table_name_fn_display">
|
7446
|
-
<xsl:for-each select="mn:name//mn:fn">
|
7504
|
+
<xsl:for-each select="mn:fmt-name//mn:fn">
|
7447
7505
|
<xsl:variable name="reference" select="@reference"/>
|
7448
7506
|
<fo:block id="{@reference}_{ancestor::*[@id][1]/@id}"><xsl:value-of select="@reference"/></fo:block>
|
7449
7507
|
<fo:block margin-bottom="12pt">
|
@@ -8100,7 +8158,7 @@
|
|
8100
8158
|
</xsl:if> -->
|
8101
8159
|
|
8102
8160
|
<xsl:variable name="words">
|
8103
|
-
<xsl:for-each select=".//*[local-name() = 'image' or local-name() = 'stem']">
|
8161
|
+
<xsl:for-each select=".//*[local-name() = 'image' or local-name() = 'fmt-stem']">
|
8104
8162
|
<word>
|
8105
8163
|
<xsl:copy-of select="."/>
|
8106
8164
|
</word>
|
@@ -8159,7 +8217,7 @@
|
|
8159
8217
|
</xsl:copy>
|
8160
8218
|
</xsl:template>
|
8161
8219
|
|
8162
|
-
<xsl:template match="*[local-name() = 'stem' or local-name() = 'image']" mode="td_text_with_formatting"/>
|
8220
|
+
<xsl:template match="*[local-name() = 'fmt-stem' or local-name() = 'image']" mode="td_text_with_formatting"/>
|
8163
8221
|
|
8164
8222
|
<xsl:template match="*[local-name() = 'keep-together_within-line']/text()" mode="td_text_with_formatting">
|
8165
8223
|
<xsl:variable name="formatting_tags">
|
@@ -8194,7 +8252,7 @@
|
|
8194
8252
|
</xsl:call-template>
|
8195
8253
|
</xsl:template>
|
8196
8254
|
|
8197
|
-
<xsl:template match="mn:link[normalize-space() = '']" mode="td_text_with_formatting">
|
8255
|
+
<xsl:template match="mn:fmt-link[normalize-space() = '']" mode="td_text_with_formatting">
|
8198
8256
|
<xsl:variable name="link">
|
8199
8257
|
<link_updated>
|
8200
8258
|
<xsl:variable name="target_text">
|
@@ -8410,7 +8468,7 @@
|
|
8410
8468
|
|
8411
8469
|
<xsl:call-template name="refine_multicomponent_block_style"/>
|
8412
8470
|
|
8413
|
-
<xsl:apply-templates select="mn:name">
|
8471
|
+
<xsl:apply-templates select="mn:fmt-name">
|
8414
8472
|
<xsl:with-param name="process">true</xsl:with-param>
|
8415
8473
|
</xsl:apply-templates>
|
8416
8474
|
|
@@ -8595,7 +8653,7 @@
|
|
8595
8653
|
</xsl:template> <!-- refine_multicomponent_block_style -->
|
8596
8654
|
|
8597
8655
|
<!-- dl/name -->
|
8598
|
-
<xsl:template match="mn:dl/mn:name">
|
8656
|
+
<xsl:template match="mn:dl/mn:fmt-name">
|
8599
8657
|
<xsl:param name="process">false</xsl:param>
|
8600
8658
|
<xsl:if test="$process = 'true'">
|
8601
8659
|
<fo:block xsl:use-attribute-sets="dl-name-style">
|
@@ -9011,12 +9069,12 @@
|
|
9011
9069
|
<xsl:template match="mn:appendix">
|
9012
9070
|
<xsl:call-template name="setNamedDestination"/>
|
9013
9071
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
|
9014
|
-
<xsl:apply-templates select="mn:title"/>
|
9072
|
+
<xsl:apply-templates select="mn:fmt-title"/>
|
9015
9073
|
</fo:block>
|
9016
|
-
<xsl:apply-templates select="node()[not(
|
9074
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-title)]"/>
|
9017
9075
|
</xsl:template>
|
9018
9076
|
|
9019
|
-
<xsl:template match="mn:appendix/mn:title" priority="2">
|
9077
|
+
<xsl:template match="mn:appendix/mn:fmt-title" priority="2">
|
9020
9078
|
<xsl:variable name="level">
|
9021
9079
|
<xsl:call-template name="getLevel"/>
|
9022
9080
|
</xsl:variable>
|
@@ -9029,15 +9087,15 @@
|
|
9029
9087
|
<xsl:template match="mn:appendix//mn:example" priority="2">
|
9030
9088
|
<xsl:call-template name="setNamedDestination"/>
|
9031
9089
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-example-style">
|
9032
|
-
<xsl:apply-templates select="mn:name"/>
|
9090
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
9033
9091
|
</fo:block>
|
9034
|
-
<xsl:apply-templates select="node()[not(
|
9092
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
9035
9093
|
</xsl:template>
|
9036
9094
|
|
9037
9095
|
<xsl:attribute-set name="xref-style">
|
9038
9096
|
</xsl:attribute-set>
|
9039
9097
|
|
9040
|
-
<xsl:template match="mn:xref">
|
9098
|
+
<xsl:template match="mn:fmt-xref">
|
9041
9099
|
<xsl:call-template name="insert_basic_link">
|
9042
9100
|
<xsl:with-param name="element">
|
9043
9101
|
<xsl:variable name="alt_text">
|
@@ -9057,7 +9115,7 @@
|
|
9057
9115
|
</xsl:template> <!-- xref -->
|
9058
9116
|
|
9059
9117
|
<!-- command between two xref points to non-standard bibitem -->
|
9060
|
-
<xsl:template match="text()[. = ','][preceding-sibling::node()[1][self::mn:sup][mn:xref[@type = 'footnote']] and following-sibling::node()[1][self::mn:sup][mn:xref[@type = 'footnote']]]"><xsl:value-of select="."/>
|
9118
|
+
<xsl:template match="text()[. = ','][preceding-sibling::node()[1][self::mn:sup][mn:fmt-xref[@type = 'footnote']] and following-sibling::node()[1][self::mn:sup][mn:fmt-xref[@type = 'footnote']]]"><xsl:value-of select="."/>
|
9061
9119
|
</xsl:template>
|
9062
9120
|
|
9063
9121
|
<xsl:attribute-set name="eref-style">
|
@@ -9088,7 +9146,7 @@
|
|
9088
9146
|
<!-- ====== -->
|
9089
9147
|
<!-- eref -->
|
9090
9148
|
<!-- ====== -->
|
9091
|
-
<xsl:template match="mn:eref" name="eref">
|
9149
|
+
<xsl:template match="mn:fmt-eref" name="eref">
|
9092
9150
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
9093
9151
|
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/mn:uri[@type = 'citation'])"/> -->
|
9094
9152
|
<xsl:variable name="external-destination" select="normalize-space($bibitems/mn:bibitem[@id = $current_bibitemid]/mn:uri[@type = 'citation'])"/>
|
@@ -9225,28 +9283,28 @@
|
|
9225
9283
|
|
9226
9284
|
<fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
|
9227
9285
|
|
9228
|
-
<xsl:apply-templates select="mn:name/mn:tab" mode="tab"/>
|
9286
|
+
<xsl:apply-templates select="mn:fmt-name/mn:tab" mode="tab"/>
|
9229
9287
|
|
9230
9288
|
<xsl:call-template name="refine_note-name-style"/>
|
9231
9289
|
|
9232
9290
|
<!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
|
9233
9291
|
<!-- <xsl:if test="*[not(local-name()='name')][1][node()[normalize-space() != ''][1][local-name() = 'add'] and node()[normalize-space() != ''][last()][local-name() = 'add']]"> -->
|
9234
|
-
<xsl:if test="*[not(
|
9292
|
+
<xsl:if test="*[not(self::mn:fmt-name)][1][count(node()[normalize-space() != '']) = 1 and mn:add]">
|
9235
9293
|
<xsl:call-template name="append_add-style"/>
|
9236
9294
|
</xsl:if>
|
9237
9295
|
|
9238
9296
|
<!-- if note contains only one element and first and last childs are `add` ace-tag, then move start ace-tag before NOTE's name-->
|
9239
|
-
<xsl:if test="count(*[not(self::mn:name)]) = 1 and *[not(self::mn:name)]/node()[last()][self::mn:add][starts-with(text(), $ace_tag)]">
|
9240
|
-
<xsl:apply-templates select="*[not(self::mn:name)]/node()[1][self::mn:add][starts-with(text(), $ace_tag)]">
|
9297
|
+
<xsl:if test="count(*[not(self::mn:fmt-name)]) = 1 and *[not(self::mn:fmt-name)]/node()[last()][self::mn:add][starts-with(text(), $ace_tag)]">
|
9298
|
+
<xsl:apply-templates select="*[not(self::mn:fmt-name)]/node()[1][self::mn:add][starts-with(text(), $ace_tag)]">
|
9241
9299
|
<xsl:with-param name="skip">false</xsl:with-param>
|
9242
9300
|
</xsl:apply-templates>
|
9243
9301
|
</xsl:if>
|
9244
9302
|
|
9245
|
-
<xsl:apply-templates select="mn:name"/>
|
9303
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
9246
9304
|
|
9247
9305
|
</fo:inline>
|
9248
9306
|
|
9249
|
-
<xsl:apply-templates select="node()[not(self::mn:name)]"/>
|
9307
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
9250
9308
|
</fo:block>
|
9251
9309
|
</fo:block-container>
|
9252
9310
|
</fo:block-container>
|
@@ -9285,19 +9343,19 @@
|
|
9285
9343
|
|
9286
9344
|
<!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
|
9287
9345
|
<!-- <xsl:if test="*[not(local-name()='name')][1][node()[normalize-space() != ''][1][local-name() = 'add'] and node()[normalize-space() != ''][last()][local-name() = 'add']]"> -->
|
9288
|
-
<xsl:if test="*[not(
|
9346
|
+
<xsl:if test="*[not(self::mn:fmt-name)][1][count(node()[normalize-space() != '']) = 1 and mn:add]">
|
9289
9347
|
<xsl:call-template name="append_add-style"/>
|
9290
9348
|
</xsl:if>
|
9291
9349
|
|
9292
|
-
<xsl:apply-templates select="mn:name"/>
|
9350
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
9293
9351
|
|
9294
9352
|
</fo:inline>
|
9295
9353
|
|
9296
|
-
<xsl:apply-templates select="node()[not(self::mn:name)]"/>
|
9354
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
9297
9355
|
</fo:block>
|
9298
9356
|
</xsl:template>
|
9299
9357
|
|
9300
|
-
<xsl:template match="mn:note/mn:name">
|
9358
|
+
<xsl:template match="mn:note/mn:fmt-name">
|
9301
9359
|
<xsl:param name="sfx"/>
|
9302
9360
|
<xsl:variable name="suffix">
|
9303
9361
|
<xsl:choose>
|
@@ -9324,7 +9382,7 @@
|
|
9324
9382
|
</xsl:if>
|
9325
9383
|
</xsl:template>
|
9326
9384
|
|
9327
|
-
<xsl:template match="mn:termnote/mn:name">
|
9385
|
+
<xsl:template match="mn:termnote/mn:fmt-name">
|
9328
9386
|
<xsl:param name="sfx"/>
|
9329
9387
|
<xsl:variable name="suffix">
|
9330
9388
|
<xsl:choose>
|
@@ -9409,15 +9467,15 @@
|
|
9409
9467
|
|
9410
9468
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
9411
9469
|
<fo:block role="BlockQuote">
|
9412
|
-
<xsl:apply-templates select="./node()[not(self::mn:author) and not(self::mn:source) and not(self::mn:attribution)]"/> <!-- process all nested nodes, except author and source -->
|
9470
|
+
<xsl:apply-templates select="./node()[not(self::mn:author) and not(self::mn:fmt-source) and not(self::mn:attribution)]"/> <!-- process all nested nodes, except author and source -->
|
9413
9471
|
</fo:block>
|
9414
9472
|
</fo:block-container>
|
9415
9473
|
</fo:block-container>
|
9416
|
-
<xsl:if test="mn:author or mn:source or mn:attribution">
|
9474
|
+
<xsl:if test="mn:author or mn:fmt-source or mn:attribution">
|
9417
9475
|
<fo:block xsl:use-attribute-sets="quote-source-style">
|
9418
9476
|
<!-- — ISO, ISO 7301:2011, Clause 1 -->
|
9419
9477
|
<xsl:apply-templates select="mn:author"/>
|
9420
|
-
<xsl:apply-templates select="mn:source"/>
|
9478
|
+
<xsl:apply-templates select="mn:fmt-source"/>
|
9421
9479
|
<!-- added for https://github.com/metanorma/isodoc/issues/607 -->
|
9422
9480
|
<xsl:apply-templates select="mn:attribution/mn:p/node()"/>
|
9423
9481
|
</fo:block>
|
@@ -9427,17 +9485,32 @@
|
|
9427
9485
|
</fo:block-container>
|
9428
9486
|
</xsl:template>
|
9429
9487
|
|
9430
|
-
<xsl:template match="mn:source">
|
9488
|
+
<xsl:template match="mn:fmt-source">
|
9431
9489
|
<xsl:if test="../mn:author">
|
9432
9490
|
<xsl:text>, </xsl:text>
|
9433
9491
|
</xsl:if>
|
9434
|
-
<xsl:
|
9435
|
-
<xsl:
|
9436
|
-
<fo:
|
9437
|
-
<xsl:
|
9438
|
-
|
9439
|
-
|
9440
|
-
|
9492
|
+
<xsl:choose>
|
9493
|
+
<xsl:when test="not(parent::quote)">
|
9494
|
+
<fo:block>
|
9495
|
+
<xsl:call-template name="insert_basic_link">
|
9496
|
+
<xsl:with-param name="element">
|
9497
|
+
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
9498
|
+
<xsl:apply-templates/>
|
9499
|
+
</fo:basic-link>
|
9500
|
+
</xsl:with-param>
|
9501
|
+
</xsl:call-template>
|
9502
|
+
</fo:block>
|
9503
|
+
</xsl:when>
|
9504
|
+
<xsl:otherwise>
|
9505
|
+
<xsl:call-template name="insert_basic_link">
|
9506
|
+
<xsl:with-param name="element">
|
9507
|
+
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
9508
|
+
<xsl:apply-templates/>
|
9509
|
+
</fo:basic-link>
|
9510
|
+
</xsl:with-param>
|
9511
|
+
</xsl:call-template>
|
9512
|
+
</xsl:otherwise>
|
9513
|
+
</xsl:choose>
|
9441
9514
|
</xsl:template>
|
9442
9515
|
|
9443
9516
|
<xsl:template match="mn:author">
|
@@ -9517,7 +9590,7 @@
|
|
9517
9590
|
<ancestor><xsl:copy-of select="ancestor::mn:figure[.//mn:name[.//mn:fn]]"/></ancestor> -->
|
9518
9591
|
<xsl:choose>
|
9519
9592
|
<!-- skip figure/name/fn -->
|
9520
|
-
<xsl:when test="ancestor::mn:figure[.//mn:name[.//mn:fn[@target = $curr_id]]]"><!-- skip --></xsl:when>
|
9593
|
+
<xsl:when test="ancestor::mn:figure[.//mn:fmt-name[.//mn:fn[@target = $curr_id]]]"><!-- skip --></xsl:when>
|
9521
9594
|
<xsl:otherwise>
|
9522
9595
|
<xsl:element name="figure" namespace="{$namespace_full}">
|
9523
9596
|
<xsl:element name="fmt-footnote-container" namespace="{$namespace_full}">
|
@@ -9716,17 +9789,17 @@
|
|
9716
9789
|
|
9717
9790
|
<fo:block xsl:use-attribute-sets="figure-style" role="SKIP">
|
9718
9791
|
|
9719
|
-
<xsl:for-each select="mn:name"> <!-- set context -->
|
9792
|
+
<xsl:for-each select="mn:fmt-name"> <!-- set context -->
|
9720
9793
|
<xsl:call-template name="setIDforNamedDestination"/>
|
9721
9794
|
</xsl:for-each>
|
9722
9795
|
|
9723
|
-
<xsl:apply-templates select="node()[not(self::mn:name) and not(self::mn:note and @type = 'units')]"/>
|
9796
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name) and not(self::mn:note and @type = 'units')]"/>
|
9724
9797
|
</fo:block>
|
9725
9798
|
|
9726
9799
|
<xsl:if test="normalize-space($show_figure_key_in_block_container) = 'true'">
|
9727
9800
|
<xsl:call-template name="showFigureKey"/>
|
9728
9801
|
</xsl:if>
|
9729
|
-
<xsl:apply-templates select="mn:name"/> <!-- show figure's name AFTER image -->
|
9802
|
+
<xsl:apply-templates select="mn:fmt-name"/> <!-- show figure's name AFTER image -->
|
9730
9803
|
|
9731
9804
|
</fo:block-container>
|
9732
9805
|
</xsl:template>
|
@@ -9752,9 +9825,9 @@
|
|
9752
9825
|
<xsl:template match="mn:figure[@class = 'pseudocode']">
|
9753
9826
|
<xsl:call-template name="setNamedDestination"/>
|
9754
9827
|
<fo:block id="{@id}">
|
9755
|
-
<xsl:apply-templates select="node()[not(self::mn:name)]"/>
|
9828
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
9756
9829
|
</fo:block>
|
9757
|
-
<xsl:apply-templates select="mn:name"/>
|
9830
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
9758
9831
|
</xsl:template>
|
9759
9832
|
|
9760
9833
|
<xsl:template match="mn:figure[@class = 'pseudocode']//mn:p">
|
@@ -9765,7 +9838,7 @@
|
|
9765
9838
|
|
9766
9839
|
<!-- SOURCE: ... -->
|
9767
9840
|
<!-- figure/source -->
|
9768
|
-
<xsl:template match="mn:figure/mn:source" priority="2">
|
9841
|
+
<xsl:template match="mn:figure/mn:fmt-source" priority="2">
|
9769
9842
|
<fo:block xsl:use-attribute-sets="figure-source-style">
|
9770
9843
|
<xsl:apply-templates/>
|
9771
9844
|
</fo:block>
|
@@ -9778,7 +9851,7 @@
|
|
9778
9851
|
<xsl:variable name="isAdded" select="../@added"/>
|
9779
9852
|
<xsl:variable name="isDeleted" select="../@deleted"/>
|
9780
9853
|
<xsl:choose>
|
9781
|
-
<xsl:when test="ancestor::mn:title or not(parent::mn:figure) or parent::mn:p"> <!-- inline image ( 'image:path' in adoc, with one colon after image) -->
|
9854
|
+
<xsl:when test="ancestor::mn:fmt-title or not(parent::mn:figure) or parent::mn:p"> <!-- inline image ( 'image:path' in adoc, with one colon after image) -->
|
9782
9855
|
<fo:inline padding-left="1mm" padding-right="1mm">
|
9783
9856
|
<xsl:if test="not(parent::mn:figure) or parent::mn:p">
|
9784
9857
|
<xsl:attribute name="padding-left">0mm</xsl:attribute>
|
@@ -9799,13 +9872,26 @@
|
|
9799
9872
|
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle">
|
9800
9873
|
|
9801
9874
|
<xsl:if test="parent::mn:logo"> <!-- publisher's logo -->
|
9802
|
-
<xsl:attribute name="
|
9875
|
+
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
9876
|
+
<xsl:choose>
|
9877
|
+
<xsl:when test="@width and not(@height)">
|
9878
|
+
<xsl:attribute name="width">100%</xsl:attribute>
|
9879
|
+
<xsl:attribute name="content-height">100%</xsl:attribute>
|
9880
|
+
</xsl:when>
|
9881
|
+
<xsl:when test="@height and not(@width)">
|
9882
|
+
<xsl:attribute name="height">100%</xsl:attribute>
|
9883
|
+
<xsl:attribute name="content-height"><xsl:value-of select="@height"/></xsl:attribute>
|
9884
|
+
</xsl:when>
|
9885
|
+
<xsl:when test="not(@width) and not(@height)">
|
9886
|
+
<xsl:attribute name="content-height">100%</xsl:attribute>
|
9887
|
+
</xsl:when>
|
9888
|
+
</xsl:choose>
|
9889
|
+
|
9803
9890
|
<xsl:if test="normalize-space($logo_width) != ''">
|
9804
9891
|
<xsl:attribute name="width"><xsl:value-of select="$logo_width"/></xsl:attribute>
|
9805
9892
|
</xsl:if>
|
9806
|
-
<xsl:attribute name="content-height">100%</xsl:attribute>
|
9807
9893
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
9808
|
-
<xsl:attribute name="
|
9894
|
+
<xsl:attribute name="vertical-align">top</xsl:attribute>
|
9809
9895
|
</xsl:if>
|
9810
9896
|
|
9811
9897
|
<xsl:variable name="width">
|
@@ -10094,7 +10180,7 @@
|
|
10094
10180
|
<xsl:variable name="width_effective_px" select="$width_effective div 25.4 * $image_dpi"/>
|
10095
10181
|
<xsl:variable name="height_effective_px" select="$height_effective div 25.4 * $image_dpi"/>
|
10096
10182
|
|
10097
|
-
<xsl:template match="mn:figure[not(mn:image) and *[local-name() = 'svg']]/mn:name/mn:bookmark" priority="2"/>
|
10183
|
+
<xsl:template match="mn:figure[not(mn:image) and *[local-name() = 'svg']]/mn:fmt-name/mn:bookmark" priority="2"/>
|
10098
10184
|
<xsl:template match="mn:figure[not(mn:image)]/*[local-name() = 'svg']" priority="2" name="image_svg">
|
10099
10185
|
<xsl:param name="name"/>
|
10100
10186
|
|
@@ -10104,8 +10190,8 @@
|
|
10104
10190
|
|
10105
10191
|
<xsl:variable name="alt-text">
|
10106
10192
|
<xsl:choose>
|
10107
|
-
<xsl:when test="normalize-space(../mn:name) != ''">
|
10108
|
-
<xsl:value-of select="../mn:name"/>
|
10193
|
+
<xsl:when test="normalize-space(../mn:fmt-name) != ''">
|
10194
|
+
<xsl:value-of select="../mn:fmt-name"/>
|
10109
10195
|
</xsl:when>
|
10110
10196
|
<xsl:when test="normalize-space($name) != ''">
|
10111
10197
|
<xsl:value-of select="$name"/>
|
@@ -10114,7 +10200,7 @@
|
|
10114
10200
|
</xsl:choose>
|
10115
10201
|
</xsl:variable>
|
10116
10202
|
|
10117
|
-
<xsl:variable name="isPrecedingTitle" select="normalize-space(ancestor::mn:figure/preceding-sibling::*[1][self::mn:title] and 1 = 1)"/>
|
10203
|
+
<xsl:variable name="isPrecedingTitle" select="normalize-space(ancestor::mn:figure/preceding-sibling::*[1][self::mn:fmt-title] and 1 = 1)"/>
|
10118
10204
|
|
10119
10205
|
<xsl:choose>
|
10120
10206
|
<xsl:when test=".//*[local-name() = 'a'][*[local-name() = 'rect'] or *[local-name() = 'polygon'] or *[local-name() = 'circle'] or *[local-name() = 'ellipse']]">
|
@@ -10163,9 +10249,9 @@
|
|
10163
10249
|
<fo:table-cell column-number="2">
|
10164
10250
|
<fo:block>
|
10165
10251
|
<fo:block-container width="{$width_scale}px" height="{$height_scale}px">
|
10166
|
-
<xsl:if test="../mn:name/mn:bookmark">
|
10252
|
+
<xsl:if test="../mn:fmt-name/mn:bookmark">
|
10167
10253
|
<fo:block line-height="0" font-size="0">
|
10168
|
-
<xsl:for-each select="../mn:name/mn:bookmark">
|
10254
|
+
<xsl:for-each select="../mn:fmt-name/mn:bookmark">
|
10169
10255
|
<xsl:call-template name="bookmark"/>
|
10170
10256
|
</xsl:for-each>
|
10171
10257
|
</fo:block>
|
@@ -10405,7 +10491,7 @@
|
|
10405
10491
|
|
10406
10492
|
<!-- image with svg and emf -->
|
10407
10493
|
<xsl:template match="mn:figure/mn:image[*[local-name() = 'svg']]" priority="3">
|
10408
|
-
<xsl:variable name="name" select="ancestor::mn:figure/mn:name"/>
|
10494
|
+
<xsl:variable name="name" select="ancestor::mn:figure/mn:fmt-name"/>
|
10409
10495
|
<xsl:for-each select="*[local-name() = 'svg']">
|
10410
10496
|
<xsl:call-template name="image_svg">
|
10411
10497
|
<xsl:with-param name="name" select="$name"/>
|
@@ -10422,7 +10508,7 @@
|
|
10422
10508
|
|
10423
10509
|
<xsl:template match="mn:figure/mn:image[@mimetype = 'image/svg+xml' and @src[not(starts-with(., 'data:image/'))]]" priority="2">
|
10424
10510
|
<xsl:variable name="svg_content" select="document(@src)"/>
|
10425
|
-
<xsl:variable name="name" select="ancestor::mn:figure/mn:name"/>
|
10511
|
+
<xsl:variable name="name" select="ancestor::mn:figure/mn:fmt-name"/>
|
10426
10512
|
<xsl:for-each select="xalan:nodeset($svg_content)/node()">
|
10427
10513
|
<xsl:call-template name="image_svg">
|
10428
10514
|
<xsl:with-param name="name" select="$name"/>
|
@@ -10545,7 +10631,7 @@
|
|
10545
10631
|
<xsl:template match="mn:emf"/>
|
10546
10632
|
|
10547
10633
|
<!-- figure/name -->
|
10548
|
-
<xsl:template match="mn:figure/mn:name | mn:image/mn:name">
|
10634
|
+
<xsl:template match="mn:figure/mn:fmt-name | mn:image/mn:fmt-name">
|
10549
10635
|
<xsl:if test="normalize-space() != ''">
|
10550
10636
|
<fo:block xsl:use-attribute-sets="figure-name-style">
|
10551
10637
|
|
@@ -10619,25 +10705,25 @@
|
|
10619
10705
|
<fo:block-container margin-left="0mm" role="SKIP">
|
10620
10706
|
<xsl:call-template name="setNamedDestination"/>
|
10621
10707
|
<fo:block id="{@id}">
|
10622
|
-
<xsl:apply-templates select="node()[not(self::mn:name)]"/> <!-- formula's number will be process in 'stem' template -->
|
10708
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/> <!-- formula's number will be process in 'stem' template -->
|
10623
10709
|
</fo:block>
|
10624
10710
|
</fo:block-container>
|
10625
10711
|
</fo:block-container>
|
10626
10712
|
</xsl:template>
|
10627
10713
|
|
10628
|
-
<xsl:template match="mn:formula/mn:dt/mn:stem">
|
10714
|
+
<xsl:template match="mn:formula/mn:dt/mn:fmt-stem">
|
10629
10715
|
<fo:inline>
|
10630
10716
|
<xsl:apply-templates/>
|
10631
10717
|
</fo:inline>
|
10632
10718
|
</xsl:template>
|
10633
10719
|
|
10634
|
-
<xsl:template match="mn:admitted/mn:stem">
|
10720
|
+
<xsl:template match="mn:fmt-admitted/mn:fmt-stem">
|
10635
10721
|
<fo:inline>
|
10636
10722
|
<xsl:apply-templates/>
|
10637
10723
|
</fo:inline>
|
10638
10724
|
</xsl:template>
|
10639
10725
|
|
10640
|
-
<xsl:template match="mn:formula/mn:name"> <!-- show in 'stem' template -->
|
10726
|
+
<xsl:template match="mn:formula/mn:fmt-name"> <!-- show in 'stem' template -->
|
10641
10727
|
<!-- https://github.com/metanorma/isodoc/issues/607
|
10642
10728
|
<xsl:if test="normalize-space() != ''">
|
10643
10729
|
<xsl:text>(</xsl:text><xsl:apply-templates /><xsl:text>)</xsl:text>
|
@@ -10646,7 +10732,7 @@
|
|
10646
10732
|
</xsl:template>
|
10647
10733
|
|
10648
10734
|
<!-- stem inside formula with name (with formula's number) -->
|
10649
|
-
<xsl:template match="mn:formula[mn:name]/mn:stem">
|
10735
|
+
<xsl:template match="mn:formula[mn:fmt-name]/mn:fmt-stem">
|
10650
10736
|
<fo:block xsl:use-attribute-sets="formula-style">
|
10651
10737
|
|
10652
10738
|
<fo:table table-layout="fixed" width="100%">
|
@@ -10666,13 +10752,13 @@
|
|
10666
10752
|
|
10667
10753
|
<fo:block xsl:use-attribute-sets="formula-stem-number-style" role="SKIP">
|
10668
10754
|
|
10669
|
-
<xsl:for-each select="../mn:name">
|
10755
|
+
<xsl:for-each select="../mn:fmt-name">
|
10670
10756
|
<xsl:call-template name="setIDforNamedDestination"/>
|
10671
10757
|
</xsl:for-each>
|
10672
10758
|
|
10673
10759
|
<xsl:call-template name="refine_formula-stem-number-style"/>
|
10674
10760
|
|
10675
|
-
<xsl:apply-templates select="../mn:name"/>
|
10761
|
+
<xsl:apply-templates select="../mn:fmt-name"/>
|
10676
10762
|
</fo:block>
|
10677
10763
|
</fo:table-cell>
|
10678
10764
|
</fo:table-row>
|
@@ -10682,7 +10768,7 @@
|
|
10682
10768
|
</xsl:template>
|
10683
10769
|
|
10684
10770
|
<!-- stem inside formula without name (without formula's number) -->
|
10685
|
-
<xsl:template match="mn:formula[not(mn:name)]/mn:stem">
|
10771
|
+
<xsl:template match="mn:formula[not(mn:fmt-name)]/mn:fmt-stem">
|
10686
10772
|
<fo:block xsl:use-attribute-sets="formula-style">
|
10687
10773
|
<fo:block xsl:use-attribute-sets="formula-stem-block-style">
|
10688
10774
|
<xsl:apply-templates/>
|
@@ -11036,7 +11122,7 @@
|
|
11036
11122
|
<stem type="AsciiMath"><asciimath>x = 1</asciimath></stem>
|
11037
11123
|
<stem type="AsciiMath"><asciimath>x = 1</asciimath><latexmath>x = 1</latexmath></stem>
|
11038
11124
|
-->
|
11039
|
-
<xsl:template match="mn:stem[@type = 'AsciiMath'][count(*) = 0]/text() | mn:stem[@type = 'AsciiMath'][mn:asciimath]" priority="3">
|
11125
|
+
<xsl:template match="mn:fmt-stem[@type = 'AsciiMath'][count(*) = 0]/text() | mn:fmt-stem[@type = 'AsciiMath'][mn:asciimath]" priority="3">
|
11040
11126
|
<fo:inline xsl:use-attribute-sets="mathml-style">
|
11041
11127
|
|
11042
11128
|
<xsl:call-template name="refine_mathml-style"/>
|
@@ -11305,7 +11391,7 @@
|
|
11305
11391
|
|
11306
11392
|
<xsl:template match="mn:ul | mn:ol" mode="list" name="list">
|
11307
11393
|
|
11308
|
-
<xsl:apply-templates select="mn:name">
|
11394
|
+
<xsl:apply-templates select="mn:fmt-name">
|
11309
11395
|
<xsl:with-param name="process">true</xsl:with-param>
|
11310
11396
|
</xsl:apply-templates>
|
11311
11397
|
|
@@ -11351,7 +11437,7 @@
|
|
11351
11437
|
|
11352
11438
|
<xsl:call-template name="refine_list-style"/>
|
11353
11439
|
|
11354
|
-
<xsl:if test="mn:name">
|
11440
|
+
<xsl:if test="mn:fmt-name">
|
11355
11441
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
11356
11442
|
</xsl:if>
|
11357
11443
|
|
@@ -11369,7 +11455,7 @@
|
|
11369
11455
|
</xsl:if>
|
11370
11456
|
</xsl:template> <!-- refine_list-style_provisional-distance-between-starts -->
|
11371
11457
|
|
11372
|
-
<xsl:template match="*[self::mn:ol or self::mn:ul]/mn:name">
|
11458
|
+
<xsl:template match="*[self::mn:ol or self::mn:ul]/mn:fmt-name">
|
11373
11459
|
<xsl:param name="process">false</xsl:param>
|
11374
11460
|
<xsl:if test="$process = 'true'">
|
11375
11461
|
<fo:block xsl:use-attribute-sets="list-name-style">
|
@@ -11500,7 +11586,7 @@
|
|
11500
11586
|
-->
|
11501
11587
|
<!-- footnotes in text (title, bibliography, main body), not for tables, figures and names --> <!-- table's, figure's names -->
|
11502
11588
|
<!-- fn in text -->
|
11503
|
-
<xsl:template match="mn:fn[not(ancestor::*[(self::mn:table or self::mn:figure)] and not(ancestor::mn:name))]" priority="2" name="fn">
|
11589
|
+
<xsl:template match="mn:fn[not(ancestor::*[(self::mn:table or self::mn:figure)] and not(ancestor::mn:fmt-name))]" priority="2" name="fn">
|
11504
11590
|
<xsl:param name="footnote_body_from_table">false</xsl:param>
|
11505
11591
|
|
11506
11592
|
<!-- list of unique footnotes -->
|
@@ -11624,7 +11710,7 @@
|
|
11624
11710
|
<!-- commented:
|
11625
11711
|
.//mn:bibitem[ancestor::mn:references]/mn:note |
|
11626
11712
|
because 'fn' there is in biblio-tag -->
|
11627
|
-
<xsl:for-each select=".//mn:fn[not(ancestor::*[(self::mn:table or self::mn:figure)] and not(ancestor::mn:name))][generate-id(.)=generate-id(key('kfn',@reference)[1])]">
|
11713
|
+
<xsl:for-each select=".//mn:fn[not(ancestor::*[(self::mn:table or self::mn:figure)] and not(ancestor::mn:fmt-name))][generate-id(.)=generate-id(key('kfn',@reference)[1])]">
|
11628
11714
|
<!-- copy unique fn -->
|
11629
11715
|
<fn gen_id="{generate-id(.)}">
|
11630
11716
|
<xsl:copy-of select="@*"/>
|
@@ -11701,7 +11787,7 @@
|
|
11701
11787
|
<!-- <xsl:with-param name="sep"> – </xsl:with-param>
|
11702
11788
|
</xsl:call-template> -->
|
11703
11789
|
</fo:inline>
|
11704
|
-
<xsl:apply-templates select="node()[not(self::mn:name)]"/>
|
11790
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
11705
11791
|
</fo:block>
|
11706
11792
|
|
11707
11793
|
</fo:block-container>
|
@@ -11727,7 +11813,7 @@
|
|
11727
11813
|
</xsl:otherwise>
|
11728
11814
|
</xsl:choose> -->
|
11729
11815
|
<xsl:variable name="name">
|
11730
|
-
<xsl:apply-templates select="mn:name"/>
|
11816
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
11731
11817
|
</xsl:variable>
|
11732
11818
|
<xsl:copy-of select="$name"/>
|
11733
11819
|
<xsl:if test="normalize-space($name) != ''">
|
@@ -11735,7 +11821,7 @@
|
|
11735
11821
|
</xsl:if>
|
11736
11822
|
</xsl:template>
|
11737
11823
|
|
11738
|
-
<xsl:template match="mn:admonition/mn:name">
|
11824
|
+
<xsl:template match="mn:admonition/mn:fmt-name">
|
11739
11825
|
<xsl:apply-templates/>
|
11740
11826
|
</xsl:template>
|
11741
11827
|
|
@@ -11864,10 +11950,10 @@
|
|
11864
11950
|
<xsl:call-template name="setNamedDestination"/>
|
11865
11951
|
<fo:block id="{@id}"/>
|
11866
11952
|
|
11867
|
-
<xsl:apply-templates select="mn:title[@columns = 1]"/>
|
11953
|
+
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
11868
11954
|
|
11869
11955
|
<fo:block xsl:use-attribute-sets="references-non-normative-style">
|
11870
|
-
<xsl:apply-templates select="node()[not(self::mn:title and @columns = 1)]"/>
|
11956
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
11871
11957
|
</fo:block>
|
11872
11958
|
<!-- horizontal line -->
|
11873
11959
|
<fo:block-container text-align="center" margin-top="10mm">
|
@@ -12193,7 +12279,8 @@
|
|
12193
12279
|
</xsl:copy>
|
12194
12280
|
</xsl:template>
|
12195
12281
|
|
12196
|
-
<xsl:template match="mn:xref" mode="index_add_id"
|
12282
|
+
<xsl:template match="mn:xref" mode="index_add_id"/>
|
12283
|
+
<xsl:template match="mn:fmt-xref" mode="index_add_id">
|
12197
12284
|
<xsl:param name="docid"/>
|
12198
12285
|
<xsl:variable name="id">
|
12199
12286
|
<xsl:call-template name="generateIndexXrefId">
|
@@ -12235,7 +12322,7 @@
|
|
12235
12322
|
<xsl:template match="mn:indexsect//mn:li" mode="index_update">
|
12236
12323
|
<xsl:copy>
|
12237
12324
|
<xsl:apply-templates select="@*" mode="index_update"/>
|
12238
|
-
<xsl:apply-templates select="node()[1]" mode="process_li_element"/>
|
12325
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)][1]" mode="process_li_element"/>
|
12239
12326
|
</xsl:copy>
|
12240
12327
|
</xsl:template>
|
12241
12328
|
|
@@ -12256,11 +12343,11 @@
|
|
12256
12343
|
<xsl:value-of select="."/>
|
12257
12344
|
<xsl:apply-templates select="following-sibling::node()[1]" mode="process_li_element"/>
|
12258
12345
|
</xsl:when>
|
12259
|
-
<xsl:when test="self::* and local-name(.) = 'xref'">
|
12346
|
+
<xsl:when test="self::* and local-name(.) = 'fmt-xref'">
|
12260
12347
|
<xsl:variable name="id" select="@id"/>
|
12261
12348
|
|
12262
|
-
<xsl:variable name="id_next" select="following-sibling::mn:xref[1]/@id"/>
|
12263
|
-
<xsl:variable name="id_prev" select="preceding-sibling::mn:xref[1]/@id"/>
|
12349
|
+
<xsl:variable name="id_next" select="following-sibling::mn:fmt-xref[1]/@id"/>
|
12350
|
+
<xsl:variable name="id_prev" select="preceding-sibling::mn:fmt-xref[1]/@id"/>
|
12264
12351
|
|
12265
12352
|
<xsl:variable name="pages_">
|
12266
12353
|
<xsl:for-each select="$index/index/item[@id = $id or @id = $id_next or @id = $id_prev]">
|
@@ -12356,18 +12443,18 @@
|
|
12356
12443
|
<xsl:variable name="item_number">
|
12357
12444
|
<xsl:number count="mn:li[ancestor::mn:indexsect]" level="any"/>
|
12358
12445
|
</xsl:variable>
|
12359
|
-
<xsl:variable name="xref_number"><xsl:number count="mn:xref"/></xsl:variable>
|
12446
|
+
<xsl:variable name="xref_number"><xsl:number count="mn:fmt-xref"/></xsl:variable>
|
12360
12447
|
<xsl:value-of select="concat($docid_curr, '_', $item_number, '_', $xref_number)"/> <!-- $level, '_', -->
|
12361
12448
|
</xsl:template>
|
12362
12449
|
|
12363
|
-
<xsl:template match="mn:indexsect/mn:title" priority="4">
|
12450
|
+
<xsl:template match="mn:indexsect/mn:fmt-title | mn:indexsect/mn:title" priority="4">
|
12364
12451
|
<fo:block xsl:use-attribute-sets="indexsect-title-style">
|
12365
12452
|
<!-- Index -->
|
12366
12453
|
<xsl:apply-templates/>
|
12367
12454
|
</fo:block>
|
12368
12455
|
</xsl:template>
|
12369
12456
|
|
12370
|
-
<xsl:template match="mn:indexsect/mn:clause/mn:title" priority="4">
|
12457
|
+
<xsl:template match="mn:indexsect/mn:clause/mn:fmt-title | mn:indexsect/mn:clause/mn:title" priority="4">
|
12371
12458
|
<!-- Letter A, B, C, ... -->
|
12372
12459
|
<fo:block xsl:use-attribute-sets="indexsect-clause-title-style">
|
12373
12460
|
<xsl:apply-templates/>
|
@@ -12408,12 +12495,12 @@
|
|
12408
12495
|
<fmt-review-start id="_7ef81cf7-3f6c-4ed4-9c1f-1ba092052bbd" source="_dda23915-8574-ef1e-29a1-822d465a5b97" target="_ecfb2210-3b1b-46a2-b63a-8b8505be6686" end="_dda23915-8574-ef1e-29a1-822d465a5b97" author="" date="2025-03-24T00:00:00Z"/>
|
12409
12496
|
<bookmark id="_dda23915-8574-ef1e-29a1-822d465a5b97"/>
|
12410
12497
|
<fmt-review-end id="_f336a8d0-08a8-4b7f-a1aa-b04688ed40c1" source="_dda23915-8574-ef1e-29a1-822d465a5b97" target="_ecfb2210-3b1b-46a2-b63a-8b8505be6686" start="_dda23915-8574-ef1e-29a1-822d465a5b97" author="" date="2025-03-24T00:00:00Z"/> -->
|
12411
|
-
<xsl:when test="1 = 2 and preceding-sibling::node()[self::mn:fmt-
|
12498
|
+
<xsl:when test="1 = 2 and preceding-sibling::node()[self::mn:fmt-annotation-start][@source = $bookmark_id] and following-sibling::node()[self::mn:fmt-annotation-end][@source = $bookmark_id]">
|
12412
12499
|
<!-- skip here, see the template 'fmt-review-start' -->
|
12413
12500
|
</xsl:when>
|
12414
12501
|
<xsl:otherwise>
|
12415
12502
|
<!-- <fo:inline id="{@id}" font-size="1pt"/> -->
|
12416
|
-
<fo:inline id="{@id}" font-size="1pt"><xsl:if test="preceding-sibling::node()[self::mn:fmt-
|
12503
|
+
<fo:inline id="{@id}" font-size="1pt"><xsl:if test="preceding-sibling::node()[self::mn:fmt-annotation-start][@source = $bookmark_id] and following-sibling::node()[self::mn:fmt-annotation-end][@source = $bookmark_id]"><xsl:attribute name="line-height">0.1</xsl:attribute></xsl:if><xsl:value-of select="$hair_space"/></fo:inline>
|
12417
12504
|
<!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
|
12418
12505
|
<xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
|
12419
12506
|
</xsl:otherwise>
|
@@ -12577,7 +12664,7 @@
|
|
12577
12664
|
|
12578
12665
|
<xsl:template name="processTables_Contents">
|
12579
12666
|
<mnx:tables>
|
12580
|
-
<xsl:for-each select="//mn:table[not(ancestor::mn:metanorma-extension)][@id and mn:name and normalize-space(@id) != '']">
|
12667
|
+
<xsl:for-each select="//mn:table[not(ancestor::mn:metanorma-extension)][@id and mn:fmt-name and normalize-space(@id) != '']">
|
12581
12668
|
<xsl:choose>
|
12582
12669
|
<xsl:when test="mn:fmt-name">
|
12583
12670
|
<xsl:variable name="fmt_name">
|
@@ -12599,7 +12686,7 @@
|
|
12599
12686
|
|
12600
12687
|
<xsl:template name="processFigures_Contents">
|
12601
12688
|
<mnx:figures>
|
12602
|
-
<xsl:for-each select="//mn:figure[@id and mn:name and not(@unnumbered = 'true') and normalize-space(@id) != ''] | //*[@id and starts-with(mn:name, 'Figure ') and normalize-space(@id) != '']">
|
12689
|
+
<xsl:for-each select="//mn:figure[@id and mn:fmt-name and not(@unnumbered = 'true') and normalize-space(@id) != ''] | //*[@id and starts-with(mn:name, 'Figure ') and normalize-space(@id) != '']">
|
12603
12690
|
<xsl:choose>
|
12604
12691
|
<xsl:when test="mn:fmt-name">
|
12605
12692
|
<xsl:variable name="fmt_name">
|
@@ -12628,7 +12715,7 @@
|
|
12628
12715
|
|
12629
12716
|
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="contents"/>
|
12630
12717
|
|
12631
|
-
<xsl:template match="mn:figure/mn:fmt-name |
|
12718
|
+
<xsl:template match="mn:figure/mn:fmt-name | mnx:figure/mn:fmt-name | mn:table/mn:fmt-name | mnx:table/mn:fmt-name | mn:permission/mn:fmt-name | mnx:permission/mn:fmt-name | mn:recommendation/mn:fmt-name | mnx:recommendation/mn:fmt-name | mn:requirement/mn:fmt-name | mnx:requirement/mn:fmt-name" mode="contents">
|
12632
12719
|
<xsl:apply-templates mode="contents"/>
|
12633
12720
|
<xsl:text> </xsl:text>
|
12634
12721
|
</xsl:template>
|
@@ -12640,7 +12727,7 @@
|
|
12640
12727
|
</xsl:if>
|
12641
12728
|
</xsl:template>
|
12642
12729
|
|
12643
|
-
<xsl:template match="mn:figure/mn:fmt-name | mn:table/mn:fmt-name |
|
12730
|
+
<xsl:template match="mn:figure/mn:fmt-name | mnx:figure/mn:fmt-name | mn:table/mn:fmt-name | mnx:table/mn:fmt-name | mn:permission/mn:fmt-name | mnx:permission/mn:fmt-name | mn:recommendation/mn:fmt-name | mnx:recommendation/mn:fmt-name | mn:requirement/mn:fmt-name | mnx:requirement/mn:fmt-name | mn:sourcecode/mn:fmt-name | mnx:sourcecode/mn:fmt-name" mode="bookmarks">
|
12644
12731
|
<xsl:apply-templates mode="bookmarks"/>
|
12645
12732
|
<xsl:text> </xsl:text>
|
12646
12733
|
</xsl:template>
|
@@ -12651,7 +12738,7 @@
|
|
12651
12738
|
</xsl:if>
|
12652
12739
|
</xsl:template>
|
12653
12740
|
|
12654
|
-
<xsl:template match="*[self::mn:figure or self::mn:table or self::mn:permission or self::mn:recommendation or self::mn:requirement]/mn:fmt-name/text()" mode="contents" priority="2">
|
12741
|
+
<xsl:template match="*[self::mn:figure or self::mn:table or self::mn:permission or self::mn:recommendation or self::mn:requirement]/mn:fmt-name/text() | *[self::mnx:figure or self::mnx:table or self::mnx:permission or self::mnx:recommendation or self::mnx:requirement]/mn:fmt-name/text()" mode="contents" priority="2">
|
12655
12742
|
<xsl:value-of select="."/>
|
12656
12743
|
</xsl:template>
|
12657
12744
|
|
@@ -12661,7 +12748,7 @@
|
|
12661
12748
|
</xsl:if>
|
12662
12749
|
</xsl:template>
|
12663
12750
|
|
12664
|
-
<xsl:template match="*[self::mn:figure or self::mn:table or self::mn:permission or self::mn:recommendation or self::mn:requirement or self::mn:sourcecode]/mn:fmt-name//text()" mode="bookmarks" priority="2">
|
12751
|
+
<xsl:template match="*[self::mn:figure or self::mn:table or self::mn:permission or self::mn:recommendation or self::mn:requirement or self::mn:sourcecode]/mn:fmt-name//text() | *[self::mnx:figure or self::mnx:table or self::mnx:permission or self::mnx:recommendation or self::mnx:requirement or self::mnx:sourcecode]/mn:fmt-name//text()" mode="bookmarks" priority="2">
|
12665
12752
|
<xsl:value-of select="."/>
|
12666
12753
|
</xsl:template>
|
12667
12754
|
|
@@ -13131,7 +13218,7 @@
|
|
13131
13218
|
<xsl:value-of select="."/>
|
13132
13219
|
</xsl:template>
|
13133
13220
|
|
13134
|
-
<xsl:template match="mn:
|
13221
|
+
<xsl:template match="mn:annotation" mode="contents_item"/>
|
13135
13222
|
|
13136
13223
|
<xsl:template match="mn:tab" mode="contents_item">
|
13137
13224
|
<xsl:text> </xsl:text>
|
@@ -13286,7 +13373,7 @@
|
|
13286
13373
|
<xsl:apply-templates/>
|
13287
13374
|
</xsl:template>
|
13288
13375
|
|
13289
|
-
<xsl:template match="mn:toc//mn:xref" priority="3">
|
13376
|
+
<xsl:template match="mn:toc//mn:xref | mn:toc//mn:fmt-xref" priority="3">
|
13290
13377
|
<!-- <xref target="cgpm9th1948r6">1.6.3<tab/>“9th CGPM, 1948:<tab/>decision to establish the SI”</xref> -->
|
13291
13378
|
<!-- New format: one tab <xref target="cgpm9th1948r6">“9th CGPM, 1948:<tab/>decision to establish the SI”</xref> -->
|
13292
13379
|
<!-- <test><xsl:copy-of select="."/></test> -->
|
@@ -13354,8 +13441,8 @@
|
|
13354
13441
|
<xsl:apply-templates mode="toc_table_width"/>
|
13355
13442
|
</xsl:template>
|
13356
13443
|
|
13357
|
-
<xsl:template match="mn:clause[@type = 'toc']/mn:title" mode="toc_table_width"/>
|
13358
|
-
<xsl:template match="mn:clause[not(@type = 'toc')]/mn:title" mode="toc_table_width"/>
|
13444
|
+
<xsl:template match="mn:clause[@type = 'toc']/mn:fmt-title" mode="toc_table_width"/>
|
13445
|
+
<xsl:template match="mn:clause[not(@type = 'toc')]/mn:fmt-title" mode="toc_table_width"/>
|
13359
13446
|
|
13360
13447
|
<xsl:template match="mn:li" mode="toc_table_width">
|
13361
13448
|
<mn:tr>
|
@@ -13363,7 +13450,7 @@
|
|
13363
13450
|
</mn:tr>
|
13364
13451
|
</xsl:template>
|
13365
13452
|
|
13366
|
-
<xsl:template match="mn:xref" mode="toc_table_width">
|
13453
|
+
<xsl:template match="mn:fmt-xref" mode="toc_table_width">
|
13367
13454
|
<!-- <xref target="cgpm9th1948r6">1.6.3<tab/>“9th CGPM, 1948:<tab/>decision to establish the SI”</xref> -->
|
13368
13455
|
<!-- New format - one tab <xref target="cgpm9th1948r6">“9th CGPM, 1948:<tab/>decision to establish the SI”</xref> -->
|
13369
13456
|
<xsl:for-each select="mn:tab">
|
@@ -13443,10 +13530,10 @@
|
|
13443
13530
|
|
13444
13531
|
</xsl:template> <!-- tab -->
|
13445
13532
|
|
13446
|
-
<xsl:template match="mn:note/mn:name/mn:tab" priority="2"/>
|
13447
|
-
<xsl:template match="mn:termnote/mn:name/mn:tab" priority="2"/>
|
13533
|
+
<xsl:template match="mn:note/mn:fmt-name/mn:tab" priority="2"/>
|
13534
|
+
<xsl:template match="mn:termnote/mn:fmt-name/mn:tab" priority="2"/>
|
13448
13535
|
|
13449
|
-
<xsl:template match="mn:note/mn:name/mn:tab" mode="tab">
|
13536
|
+
<xsl:template match="mn:note/mn:fmt-name/mn:tab" mode="tab">
|
13450
13537
|
<xsl:attribute name="padding-right">6mm</xsl:attribute>
|
13451
13538
|
</xsl:template>
|
13452
13539
|
|
@@ -13461,13 +13548,13 @@
|
|
13461
13548
|
</xsl:template>
|
13462
13549
|
|
13463
13550
|
<xsl:variable name="reviews_">
|
13464
|
-
<xsl:for-each select="//mn:
|
13551
|
+
<xsl:for-each select="//mn:annotation[not(parent::mn:annotation-container)][@from]">
|
13465
13552
|
<xsl:copy>
|
13466
13553
|
<xsl:copy-of select="@from"/>
|
13467
13554
|
<xsl:copy-of select="@id"/>
|
13468
13555
|
</xsl:copy>
|
13469
13556
|
</xsl:for-each>
|
13470
|
-
<xsl:for-each select="//mn:fmt-
|
13557
|
+
<xsl:for-each select="//mn:fmt-annotation-start[@source]">
|
13471
13558
|
<xsl:copy>
|
13472
13559
|
<xsl:copy-of select="@source"/>
|
13473
13560
|
<xsl:copy-of select="@id"/>
|
@@ -13481,7 +13568,7 @@
|
|
13481
13568
|
<!-- if there is review with from="...", then add small helper block for Annot tag adding, see 'review' template -->
|
13482
13569
|
<xsl:variable name="curr_id" select="@id"/>
|
13483
13570
|
<!-- <xsl:variable name="review_id" select="normalize-space(/@id)"/> -->
|
13484
|
-
<xsl:for-each select="$reviews//mn:
|
13571
|
+
<xsl:for-each select="$reviews//mn:annotation[@from = $curr_id]"> <!-- $reviews//mn:fmt-review-start[@source = $curr_id] -->
|
13485
13572
|
<xsl:variable name="review_id" select="normalize-space(@id)"/>
|
13486
13573
|
<xsl:if test="$review_id != ''"> <!-- i.e. if review found -->
|
13487
13574
|
<fo:block keep-with-next="always" line-height="0.1" id="{$review_id}" font-size="1pt" role="SKIP"><xsl:value-of select="$hair_space"/><fo:basic-link internal-destination="{$review_id}" fox:alt-text="Annot___{$review_id}" role="Annot"><xsl:value-of select="$hair_space"/></fo:basic-link></fo:block>
|
@@ -13496,7 +13583,7 @@
|
|
13496
13583
|
|
13497
13584
|
<!-- document text (not figures, or tables) footnotes -->
|
13498
13585
|
<xsl:variable name="reviews_container_">
|
13499
|
-
<xsl:for-each select="//mn:
|
13586
|
+
<xsl:for-each select="//mn:annotation-container/mn:fmt-annotation-body">
|
13500
13587
|
<xsl:variable name="update_xml_step1">
|
13501
13588
|
<xsl:apply-templates select="." mode="update_xml_step1"/>
|
13502
13589
|
</xsl:variable>
|
@@ -13505,10 +13592,10 @@
|
|
13505
13592
|
</xsl:variable>
|
13506
13593
|
<xsl:variable name="reviews_container" select="xalan:nodeset($reviews_container_)"/>
|
13507
13594
|
|
13508
|
-
<xsl:template match="mn:
|
13595
|
+
<xsl:template match="mn:annotation-container"/>
|
13509
13596
|
|
13510
13597
|
<!-- for old Presentation XML (before https://github.com/metanorma/isodoc/issues/670) -->
|
13511
|
-
<xsl:template match="mn:
|
13598
|
+
<xsl:template match="mn:annotation[not(parent::mn:annotation-container)]"> <!-- 'review' will be processed in mn2pdf/review.xsl -->
|
13512
13599
|
<xsl:variable name="id_from" select="normalize-space(current()/@from)"/>
|
13513
13600
|
<xsl:if test="$isGenerateTableIF = 'false'">
|
13514
13601
|
<xsl:choose>
|
@@ -13528,7 +13615,7 @@
|
|
13528
13615
|
</xsl:template>
|
13529
13616
|
|
13530
13617
|
<!-- for new Presentation XML (https://github.com/metanorma/isodoc/issues/670) -->
|
13531
|
-
<xsl:template match="mn:fmt-
|
13618
|
+
<xsl:template match="mn:fmt-annotation-start" name="fmt-annotation-start"> <!-- 'review' will be processed in mn2pdf/review.xsl -->
|
13532
13619
|
<!-- comment 2019-11-29 -->
|
13533
13620
|
<!-- <fo:block font-weight="bold">Review:</fo:block>
|
13534
13621
|
<xsl:apply-templates /> -->
|
@@ -13584,7 +13671,7 @@
|
|
13584
13671
|
</xsl:template>
|
13585
13672
|
|
13586
13673
|
<!-- https://github.com/metanorma/mn-samples-bsi/issues/312 -->
|
13587
|
-
<xsl:template match="mn:
|
13674
|
+
<xsl:template match="mn:annotation[@type = 'other']"/>
|
13588
13675
|
|
13589
13676
|
<!-- ============ -->
|
13590
13677
|
<!-- errata -->
|
@@ -13977,9 +14064,12 @@
|
|
13977
14064
|
<xsl:choose>
|
13978
14065
|
<xsl:when test="mn:fmt-title">
|
13979
14066
|
<xsl:variable name="fmt_title_section">
|
13980
|
-
<xsl:copy-of select="mn:fmt-title//mn:span[@class = 'fmt-caption-delim'][mn:tab][1]/preceding-sibling::node()[not(self::mn:
|
14067
|
+
<xsl:copy-of select="mn:fmt-title//mn:span[@class = 'fmt-caption-delim'][mn:tab][1]/preceding-sibling::node()[not(self::mn:annotation)]"/>
|
13981
14068
|
</xsl:variable>
|
13982
14069
|
<xsl:value-of select="normalize-space($fmt_title_section)"/>
|
14070
|
+
<xsl:if test="normalize-space($fmt_title_section) = ''">
|
14071
|
+
<xsl:value-of select="mn:fmt-title/mn:tab[1]/preceding-sibling::node()"/>
|
14072
|
+
</xsl:if>
|
13983
14073
|
</xsl:when>
|
13984
14074
|
<xsl:otherwise>
|
13985
14075
|
<xsl:value-of select="mn:title/mn:tab[1]/preceding-sibling::node()"/>
|
@@ -13992,6 +14082,9 @@
|
|
13992
14082
|
<xsl:when test="mn:fmt-title//mn:span[@class = 'fmt-caption-delim'][mn:tab]">
|
13993
14083
|
<xsl:copy-of select="mn:fmt-title//mn:span[@class = 'fmt-caption-delim'][mn:tab][1]/following-sibling::node()"/>
|
13994
14084
|
</xsl:when>
|
14085
|
+
<xsl:when test="mn:fmt-title/mn:tab">
|
14086
|
+
<xsl:copy-of select="mn:fmt-title/mn:tab[1]/following-sibling::node()"/>
|
14087
|
+
</xsl:when>
|
13995
14088
|
<xsl:when test="mn:fmt-title">
|
13996
14089
|
<xsl:copy-of select="mn:fmt-title/node()"/>
|
13997
14090
|
</xsl:when>
|
@@ -14129,10 +14222,10 @@
|
|
14129
14222
|
|
14130
14223
|
</fo:block>
|
14131
14224
|
|
14132
|
-
<xsl:apply-templates select="mn:title[@columns = 1]"/>
|
14225
|
+
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
14133
14226
|
|
14134
14227
|
<fo:block>
|
14135
|
-
<xsl:apply-templates select="node()[not(self::mn:title and @columns = 1)]"/>
|
14228
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
14136
14229
|
</fo:block>
|
14137
14230
|
</xsl:otherwise>
|
14138
14231
|
</xsl:choose>
|
@@ -14141,7 +14234,7 @@
|
|
14141
14234
|
<xsl:template name="refine_annex_style">
|
14142
14235
|
</xsl:template>
|
14143
14236
|
|
14144
|
-
<xsl:template match="mn:name/text()">
|
14237
|
+
<xsl:template match="mn:name/text() | mn:fmt-name/text()">
|
14145
14238
|
<!-- 0xA0 to space replacement -->
|
14146
14239
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
14147
14240
|
</xsl:template>
|
@@ -14197,28 +14290,28 @@
|
|
14197
14290
|
<xsl:template match="mn:amend"/>
|
14198
14291
|
|
14199
14292
|
<!-- fmt-title renamed to title in update_xml_step1 -->
|
14200
|
-
<xsl:template match="mn:fmt-title"/>
|
14293
|
+
<!-- <xsl:template match="mn:fmt-title" /> -->
|
14201
14294
|
|
14202
14295
|
<!-- fmt-name renamed to name in update_xml_step1 -->
|
14203
|
-
<xsl:template match="mn:fmt-name"/>
|
14296
|
+
<!-- <xsl:template match="mn:fmt-name" /> -->
|
14204
14297
|
|
14205
14298
|
<!-- fmt-preferred renamed to preferred in update_xml_step1 -->
|
14206
|
-
<xsl:template match="mn:fmt-preferred"/>
|
14299
|
+
<!-- <xsl:template match="mn:fmt-preferred" /> -->
|
14207
14300
|
|
14208
14301
|
<!-- fmt-admitted renamed to admitted in update_xml_step1 -->
|
14209
|
-
<xsl:template match="mn:fmt-admitted"/>
|
14302
|
+
<!-- <xsl:template match="mn:fmt-admitted" /> -->
|
14210
14303
|
|
14211
14304
|
<!-- fmt-deprecates renamed to deprecates in update_xml_step1 -->
|
14212
|
-
<xsl:template match="mn:fmt-deprecates"/>
|
14305
|
+
<!-- <xsl:template match="mn:fmt-deprecates" /> -->
|
14213
14306
|
|
14214
14307
|
<!-- fmt-definition renamed to definition in update_xml_step1 -->
|
14215
|
-
<xsl:template match="mn:fmt-definition"/>
|
14308
|
+
<!-- <xsl:template match="mn:fmt-definition" /> -->
|
14216
14309
|
|
14217
14310
|
<!-- fmt-termsource renamed to termsource in update_xml_step1 -->
|
14218
|
-
<xsl:template match="mn:fmt-termsource"/>
|
14311
|
+
<!-- <xsl:template match="mn:fmt-termsource" /> -->
|
14219
14312
|
|
14220
14313
|
<!-- fmt-source renamed to source in update_xml_step1 -->
|
14221
|
-
<xsl:template match="mn:fmt-source"/>
|
14314
|
+
<!-- <xsl:template match="mn:fmt-source" /> -->
|
14222
14315
|
|
14223
14316
|
<xsl:template match="mn:semx">
|
14224
14317
|
<xsl:apply-templates/>
|
@@ -14687,12 +14780,12 @@
|
|
14687
14780
|
<xsl:when test="ancestor::mn:preface">
|
14688
14781
|
<xsl:value-of select="$level_total - 2"/>
|
14689
14782
|
</xsl:when>
|
14690
|
-
<xsl:when test="ancestor::mn:sections and self::mn:title">
|
14783
|
+
<xsl:when test="ancestor::mn:sections and self::mn:fmt-title">
|
14691
14784
|
<!-- determine 'depth' depends on upper clause with title/@depth -->
|
14692
14785
|
<!-- <xsl:message>title=<xsl:value-of select="."/></xsl:message> -->
|
14693
|
-
<xsl:variable name="clause_with_depth_depth" select="ancestor::mn:clause[mn:title/@depth][1]/mn:title/@depth"/>
|
14786
|
+
<xsl:variable name="clause_with_depth_depth" select="ancestor::mn:clause[mn:fmt-title/@depth][1]/mn:fmt-title/@depth"/>
|
14694
14787
|
<!-- <xsl:message>clause_with_depth_depth=<xsl:value-of select="$clause_with_depth_depth"/></xsl:message> -->
|
14695
|
-
<xsl:variable name="clause_with_depth_level" select="count(ancestor::mn:clause[mn:title/@depth][1]/ancestor::*)"/>
|
14788
|
+
<xsl:variable name="clause_with_depth_level" select="count(ancestor::mn:clause[mn:fmt-title/@depth][1]/ancestor::*)"/>
|
14696
14789
|
<!-- <xsl:message>clause_with_depth_level=<xsl:value-of select="$clause_with_depth_level"/></xsl:message> -->
|
14697
14790
|
<xsl:variable name="curr_level" select="count(ancestor::*) - 1"/>
|
14698
14791
|
<!-- <xsl:message>curr_level=<xsl:value-of select="$curr_level"/></xsl:message> -->
|
@@ -14708,8 +14801,8 @@
|
|
14708
14801
|
</xsl:otherwise>
|
14709
14802
|
</xsl:choose>
|
14710
14803
|
</xsl:when>
|
14711
|
-
<xsl:when test="ancestor::mn:sections and self::mn:name and parent::mn:term">
|
14712
|
-
<xsl:variable name="upper_terms_depth" select="normalize-space(ancestor::mn:terms[1]/mn:title/@depth)"/>
|
14804
|
+
<xsl:when test="ancestor::mn:sections and self::mn:fmt-name and parent::mn:term">
|
14805
|
+
<xsl:variable name="upper_terms_depth" select="normalize-space(ancestor::mn:terms[1]/mn:fmt-title/@depth)"/>
|
14713
14806
|
<xsl:choose>
|
14714
14807
|
<xsl:when test="string(number($upper_terms_depth)) != 'NaN'">
|
14715
14808
|
<xsl:value-of select="number($upper_terms_depth + 1)"/>
|
@@ -14720,7 +14813,7 @@
|
|
14720
14813
|
</xsl:choose>
|
14721
14814
|
</xsl:when>
|
14722
14815
|
<xsl:when test="ancestor::mn:sections">
|
14723
|
-
<xsl:variable name="upper_clause_depth" select="normalize-space(ancestor::*[self::mn:clause or self::mn:terms][1]/mn:title/@depth)"/>
|
14816
|
+
<xsl:variable name="upper_clause_depth" select="normalize-space(ancestor::*[self::mn:clause or self::mn:terms][1]/mn:fmt-title/@depth)"/>
|
14724
14817
|
<xsl:choose>
|
14725
14818
|
<xsl:when test="string(number($upper_clause_depth)) != 'NaN'">
|
14726
14819
|
<xsl:value-of select="number($upper_clause_depth + 1)"/>
|
@@ -14736,8 +14829,8 @@
|
|
14736
14829
|
<xsl:when test="parent::mn:annex">
|
14737
14830
|
<xsl:value-of select="$level_total - 1"/>
|
14738
14831
|
</xsl:when>
|
14739
|
-
<xsl:when test="ancestor::mn:annex and self::mn:title">
|
14740
|
-
<xsl:variable name="upper_clause_depth" select="normalize-space(ancestor::mn:clause[2]/mn:title/@depth)"/>
|
14832
|
+
<xsl:when test="ancestor::mn:annex and self::mn:fmt-title">
|
14833
|
+
<xsl:variable name="upper_clause_depth" select="normalize-space(ancestor::mn:clause[2]/mn:fmt-title/@depth)"/>
|
14741
14834
|
<xsl:choose>
|
14742
14835
|
<xsl:when test="string(number($upper_clause_depth)) != 'NaN'">
|
14743
14836
|
<xsl:value-of select="number($upper_clause_depth + 1)"/>
|
@@ -14770,7 +14863,7 @@
|
|
14770
14863
|
</xsl:when>
|
14771
14864
|
<xsl:otherwise>
|
14772
14865
|
<xsl:variable name="title_level_">
|
14773
|
-
<xsl:for-each select="../preceding-sibling::mn:title[1]">
|
14866
|
+
<xsl:for-each select="../preceding-sibling::mn:fmt-title[1]">
|
14774
14867
|
<xsl:call-template name="getLevel"/>
|
14775
14868
|
</xsl:for-each>
|
14776
14869
|
</xsl:variable>
|
@@ -14847,15 +14940,17 @@
|
|
14847
14940
|
</xsl:template>
|
14848
14941
|
|
14849
14942
|
<xsl:template name="setNamedDestination">
|
14850
|
-
|
14851
|
-
|
14852
|
-
<
|
14853
|
-
|
14854
|
-
<xsl:for-each select=". | mn:title | mn:name">
|
14855
|
-
<xsl:if test="@named_dest">
|
14856
|
-
<fox:destination internal-destination="{@named_dest}"/>
|
14943
|
+
<xsl:if test="$isGenerateTableIF = 'false'">
|
14944
|
+
<!-- skip GUID, e.g. _33eac3cb-9663-4291-ae26-1d4b6f4635fc -->
|
14945
|
+
<xsl:if test="@id and normalize-space(java:matches(java:java.lang.String.new(@id), '_[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}')) = 'false'">
|
14946
|
+
<fox:destination internal-destination="{@id}"/>
|
14857
14947
|
</xsl:if>
|
14858
|
-
|
14948
|
+
<xsl:for-each select=". | mn:fmt-title | mn:fmt-name">
|
14949
|
+
<xsl:if test="@named_dest">
|
14950
|
+
<fox:destination internal-destination="{@named_dest}"/>
|
14951
|
+
</xsl:if>
|
14952
|
+
</xsl:for-each>
|
14953
|
+
</xsl:if>
|
14859
14954
|
</xsl:template>
|
14860
14955
|
|
14861
14956
|
<xsl:template name="add-letter-spacing">
|
@@ -15203,7 +15298,7 @@
|
|
15203
15298
|
</xsl:when>
|
15204
15299
|
<xsl:otherwise>
|
15205
15300
|
<!-- namespace-uri(ancestor::mn:title) != '' to skip title from $contents -->
|
15206
|
-
<xsl:if test="namespace-uri(ancestor::mn:title) != '' and ($char_prev = '' and ../preceding-sibling::node())">
|
15301
|
+
<xsl:if test="namespace-uri(ancestor::mn:fmt-title) != '' and ($char_prev = '' and ../preceding-sibling::node())">
|
15207
15302
|
<fo:inline padding-left="1mm"><xsl:value-of select="$zero_width_space"/></fo:inline>
|
15208
15303
|
</xsl:if>
|
15209
15304
|
<fo:inline-container text-align="center" alignment-baseline="central" width="1em" margin="0" padding="0" text-indent="0mm" last-line-end-indent="0mm" start-indent="0mm" end-indent="0mm" role="SKIP" text-align-last="center">
|
@@ -15237,7 +15332,7 @@
|
|
15237
15332
|
</fo:block>
|
15238
15333
|
</fo:block-container>
|
15239
15334
|
</fo:inline-container>
|
15240
|
-
<xsl:if test="namespace-uri(ancestor::mn:title) != '' and ($char_next != '' or ../following-sibling::node())">
|
15335
|
+
<xsl:if test="namespace-uri(ancestor::mn:fmt-title) != '' and ($char_next != '' or ../following-sibling::node())">
|
15241
15336
|
<fo:inline padding-left="1mm"><xsl:value-of select="$zero_width_space"/></fo:inline>
|
15242
15337
|
</xsl:if>
|
15243
15338
|
</xsl:otherwise>
|