metanorma-taste 1.0.2 → 1.0.3
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/data/csa/csa.standard.xsl +293 -143
- data/data/elf/elf.xsl +3 -1
- data/data/mbxif/config.yaml +4 -0
- data/data/mbxif/mbxif.xsl +11 -11
- data/data/oiml/oiml.xsl +2 -2
- data/data/pdfa/htmlstylesheet-override.scss +6 -6
- data/data/pdfa/pdfa.xsl +10 -2
- data/lib/metanorma/taste/version.rb +1 -1
- data/metanorma-taste.gemspec +5 -5
- metadata +14 -17
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f9414d9bae5f75354a122bea35efd8595b1683940453268e40f8ba396fa2af69
|
|
4
|
+
data.tar.gz: 31482ea92d7d1eb6bb3575656695f554a2c9c45a6d09113378134dd46fdf60b6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 95a8ee073ab4da95b1223f67f7cc6684137cc3523bd310cc37713210c71780b9bb8c61247ae3e87845737f4ffc36ec7e7eac893e667f12b8c0f0ad6e32d1a326
|
|
7
|
+
data.tar.gz: fd4dbbbdc6e183a3d12f907f4ae22195630259074b6d715d5b03b24383af9a85cf15defe0a9f13c2adf21949e6fd316bf429f2d672d2b1c5afedb6aa35f03a41
|
data/data/csa/csa.standard.xsl
CHANGED
|
@@ -4,23 +4,53 @@
|
|
|
4
4
|
|
|
5
5
|
<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"/>
|
|
6
6
|
|
|
7
|
+
<xsl:key name="kid" match="*" use="@id"/>
|
|
8
|
+
|
|
7
9
|
<xsl:variable name="debug">false</xsl:variable>
|
|
8
10
|
|
|
9
|
-
<xsl:variable name="
|
|
10
|
-
<xsl:
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
<xsl:variable name="variables_">
|
|
12
|
+
<xsl:for-each select="//mn:metanorma">
|
|
13
|
+
<xsl:variable name="num"><xsl:number level="any" count="mn:metanorma"/></xsl:variable>
|
|
14
|
+
|
|
15
|
+
<xsl:variable name="current_document">
|
|
16
|
+
<xsl:copy-of select="."/>
|
|
17
|
+
</xsl:variable>
|
|
18
|
+
|
|
19
|
+
<xsl:for-each select="xalan:nodeset($current_document)">
|
|
20
|
+
<mnx:doc num="{$num}">
|
|
21
|
+
<xsl:variable name="copyright">
|
|
22
|
+
<xsl:text>© Copyright </xsl:text>
|
|
23
|
+
<xsl:value-of select="/mn:metanorma/mn:bibdata/mn:copyright/mn:from"/>
|
|
24
|
+
<xsl:text>, Cloud Security Alliance. All rights reserved.</xsl:text>
|
|
25
|
+
</xsl:variable>
|
|
26
|
+
<copyright><xsl:value-of select="$copyright"/></copyright>
|
|
27
|
+
</mnx:doc>
|
|
28
|
+
</xsl:for-each>
|
|
29
|
+
</xsl:for-each>
|
|
13
30
|
</xsl:variable>
|
|
31
|
+
<xsl:variable name="variables" select="xalan:nodeset($variables_)"/>
|
|
14
32
|
|
|
15
33
|
<xsl:variable name="color-header-document">rgb(79, 201, 204)</xsl:variable>
|
|
16
34
|
|
|
17
35
|
<xsl:variable name="contents_">
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
<xsl:
|
|
21
|
-
<xsl:
|
|
22
|
-
<xsl:
|
|
23
|
-
|
|
36
|
+
<xsl:variable name="bundle" select="count(//mn:metanorma) > 1"/>
|
|
37
|
+
<xsl:for-each select="//mn:metanorma">
|
|
38
|
+
<xsl:variable name="num"><xsl:number level="any" count="mn:metanorma"/></xsl:variable>
|
|
39
|
+
<xsl:variable name="docnumber"><xsl:value-of select="mn:bibdata/mn:docidentifier[@primary = 'true']"/></xsl:variable>
|
|
40
|
+
<xsl:variable name="current_document">
|
|
41
|
+
<xsl:copy-of select="."/>
|
|
42
|
+
</xsl:variable>
|
|
43
|
+
<xsl:for-each select="xalan:nodeset($current_document)">
|
|
44
|
+
<mnx:doc num="{$num}" firstpage_id="firstpage_id_{$num}" title-part="{$docnumber}" bundle="{$bundle}">
|
|
45
|
+
<mnx:contents>
|
|
46
|
+
<xsl:call-template name="processPrefaceSectionsDefault_Contents"/>
|
|
47
|
+
<xsl:call-template name="processMainSectionsDefault_Contents"/>
|
|
48
|
+
<xsl:apply-templates select="//mn:indexsect" mode="contents"/>
|
|
49
|
+
<xsl:call-template name="processTablesFigures_Contents"/>
|
|
50
|
+
</mnx:contents>
|
|
51
|
+
</mnx:doc>
|
|
52
|
+
</xsl:for-each>
|
|
53
|
+
</xsl:for-each>
|
|
24
54
|
</xsl:variable>
|
|
25
55
|
<xsl:variable name="contents" select="xalan:nodeset($contents_)"/>
|
|
26
56
|
|
|
@@ -80,134 +110,149 @@
|
|
|
80
110
|
<xsl:with-param name="contents" select="$contents"/>
|
|
81
111
|
</xsl:call-template>
|
|
82
112
|
|
|
83
|
-
<xsl:
|
|
113
|
+
<xsl:variable name="updated_xml">
|
|
114
|
+
<xsl:call-template name="updateXML"/>
|
|
115
|
+
</xsl:variable>
|
|
84
116
|
|
|
85
|
-
<xsl:
|
|
117
|
+
<xsl:for-each select="xalan:nodeset($updated_xml)//mn:metanorma">
|
|
118
|
+
<xsl:variable name="num"><xsl:number level="any" count="mn:metanorma"/></xsl:variable>
|
|
86
119
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
</redirect:write>
|
|
91
|
-
</xsl:if>
|
|
120
|
+
<xsl:variable name="current_document">
|
|
121
|
+
<xsl:copy-of select="."/>
|
|
122
|
+
</xsl:variable>
|
|
92
123
|
|
|
93
|
-
|
|
94
|
-
<fo:page-sequence xsl:use-attribute-sets="page-sequence-preface">
|
|
95
|
-
<xsl:call-template name="refine_page-sequence-preface"/>
|
|
124
|
+
<xsl:for-each select="xalan:nodeset($current_document)">
|
|
96
125
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
126
|
+
<xsl:call-template name="cover-page">
|
|
127
|
+
<xsl:with-param name="num" select="$num"/>
|
|
128
|
+
</xsl:call-template>
|
|
100
129
|
|
|
101
|
-
<
|
|
102
|
-
<xsl:
|
|
103
|
-
|
|
104
|
-
</xsl:call-template>
|
|
105
|
-
</fo:block>
|
|
130
|
+
<xsl:call-template name="inner-cover-page">
|
|
131
|
+
<xsl:with-param name="num" select="$num"/>
|
|
132
|
+
</xsl:call-template>
|
|
106
133
|
|
|
107
|
-
<xsl:
|
|
108
|
-
<xsl:for-each select="/mn:metanorma/mn:bibdata/mn:contributor[mn:person]">
|
|
109
|
-
<contributor>
|
|
110
|
-
<xsl:attribute name="type">
|
|
111
|
-
<xsl:choose>
|
|
112
|
-
<xsl:when test="mn:role/@type='author'">
|
|
113
|
-
<xsl:value-of select="mn:role/mn:description"/>
|
|
114
|
-
</xsl:when>
|
|
115
|
-
<xsl:otherwise>
|
|
116
|
-
<xsl:value-of select="mn:role/@type"/>
|
|
117
|
-
</xsl:otherwise>
|
|
118
|
-
</xsl:choose>
|
|
119
|
-
</xsl:attribute>
|
|
120
|
-
<xsl:value-of select="mn:person/mn:name/mn:completename"/>
|
|
121
|
-
</contributor>
|
|
122
|
-
</xsl:for-each>
|
|
123
|
-
</xsl:variable>
|
|
134
|
+
<xsl:call-template name="debug_contents"/>
|
|
124
135
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
<
|
|
128
|
-
<contributor title="Staff" pluraltitle="Staff">staff</contributor>
|
|
129
|
-
<contributor title="Reviewer" pluraltitle="Reviewers">reviewer</contributor>
|
|
130
|
-
<contributor title="Editor" pluraltitle="Editors">editor</contributor>
|
|
131
|
-
</xsl:variable>
|
|
136
|
+
<!-- Content, Foreword, etc. pages -->
|
|
137
|
+
<fo:page-sequence xsl:use-attribute-sets="page-sequence-preface">
|
|
138
|
+
<xsl:call-template name="refine_page-sequence-preface"/>
|
|
132
139
|
|
|
133
|
-
|
|
140
|
+
<xsl:call-template name="insertFootnoteSeparatorCommon"/>
|
|
141
|
+
<xsl:call-template name="insertHeaderFooter">
|
|
142
|
+
<xsl:with-param name="num" select="$num"/>
|
|
143
|
+
</xsl:call-template>
|
|
144
|
+
<fo:flow flow-name="xsl-region-body">
|
|
134
145
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
<xsl:if test="position() = 1">
|
|
141
|
-
<fo:block font-size="18pt" font-weight="bold" margin-top="16pt" margin-bottom="12pt" color="rgb(3, 115, 200)">
|
|
142
|
-
<xsl:choose>
|
|
143
|
-
<xsl:when test="following-sibling::contributor[@type = $type]">
|
|
144
|
-
<xsl:value-of select="$pluraltitle"/>
|
|
145
|
-
</xsl:when>
|
|
146
|
-
<xsl:otherwise>
|
|
147
|
-
<xsl:value-of select="$title"/>
|
|
148
|
-
</xsl:otherwise>
|
|
149
|
-
</xsl:choose>
|
|
150
|
-
<xsl:text>:</xsl:text>
|
|
151
|
-
</fo:block>
|
|
152
|
-
</xsl:if>
|
|
153
|
-
<fo:block><xsl:value-of select="."/></fo:block>
|
|
154
|
-
</xsl:for-each>
|
|
155
|
-
</xsl:for-each>
|
|
146
|
+
<fo:block font-size="26pt" margin-bottom="18pt" role="H1">
|
|
147
|
+
<xsl:call-template name="getLocalizedString">
|
|
148
|
+
<xsl:with-param name="key">acknowledgements</xsl:with-param>
|
|
149
|
+
</xsl:call-template>
|
|
150
|
+
</fo:block>
|
|
156
151
|
|
|
157
|
-
|
|
152
|
+
<xsl:variable name="persons">
|
|
153
|
+
<xsl:for-each select="/mn:metanorma/mn:bibdata/mn:contributor[mn:person]">
|
|
154
|
+
<contributor>
|
|
155
|
+
<xsl:attribute name="type">
|
|
156
|
+
<xsl:choose>
|
|
157
|
+
<xsl:when test="mn:role/@type='author'">
|
|
158
|
+
<xsl:value-of select="mn:role/mn:description"/>
|
|
159
|
+
</xsl:when>
|
|
160
|
+
<xsl:otherwise>
|
|
161
|
+
<xsl:value-of select="mn:role/@type"/>
|
|
162
|
+
</xsl:otherwise>
|
|
163
|
+
</xsl:choose>
|
|
164
|
+
</xsl:attribute>
|
|
165
|
+
<xsl:value-of select="mn:person/mn:name/mn:completename"/>
|
|
166
|
+
</contributor>
|
|
167
|
+
</xsl:for-each>
|
|
168
|
+
</xsl:variable>
|
|
158
169
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
170
|
+
<xsl:variable name="contributors">
|
|
171
|
+
<contributor title="Author" pluraltitle="Authors">full-author</contributor>
|
|
172
|
+
<contributor title="Contributor" pluraltitle="Contributors">contributor</contributor>
|
|
173
|
+
<contributor title="Staff" pluraltitle="Staff">staff</contributor>
|
|
174
|
+
<contributor title="Reviewer" pluraltitle="Reviewers">reviewer</contributor>
|
|
175
|
+
<contributor title="Editor" pluraltitle="Editors">editor</contributor>
|
|
176
|
+
</xsl:variable>
|
|
163
177
|
|
|
164
|
-
|
|
165
|
-
<xsl:call-template name="processPrefaceSectionsDefault"/>
|
|
166
|
-
<xsl:call-template name="processMainSectionsDefault"/>
|
|
167
|
-
</fo:block> -->
|
|
178
|
+
<!-- The sequence of author types is: full-author (omitted), Contributor, Staff, Reviewer -->
|
|
168
179
|
|
|
169
|
-
|
|
170
|
-
|
|
180
|
+
<xsl:for-each select="xalan:nodeset($contributors)/*">
|
|
181
|
+
<xsl:variable name="type" select="."/>
|
|
182
|
+
<xsl:variable name="title" select="@title"/>
|
|
183
|
+
<xsl:variable name="pluraltitle" select="@pluraltitle"/>
|
|
184
|
+
<xsl:for-each select="xalan:nodeset($persons)/contributor[@type = $type]">
|
|
185
|
+
<xsl:if test="position() = 1">
|
|
186
|
+
<fo:block font-size="18pt" font-weight="bold" margin-top="16pt" margin-bottom="12pt" color="rgb(3, 115, 200)">
|
|
187
|
+
<xsl:choose>
|
|
188
|
+
<xsl:when test="following-sibling::contributor[@type = $type]">
|
|
189
|
+
<xsl:value-of select="$pluraltitle"/>
|
|
190
|
+
</xsl:when>
|
|
191
|
+
<xsl:otherwise>
|
|
192
|
+
<xsl:value-of select="$title"/>
|
|
193
|
+
</xsl:otherwise>
|
|
194
|
+
</xsl:choose>
|
|
195
|
+
<xsl:text>:</xsl:text>
|
|
196
|
+
</fo:block>
|
|
197
|
+
</xsl:if>
|
|
198
|
+
<fo:block><xsl:value-of select="."/></fo:block>
|
|
199
|
+
</xsl:for-each>
|
|
200
|
+
</xsl:for-each>
|
|
171
201
|
|
|
172
|
-
|
|
173
|
-
<xsl:call-template name="updateXML"/>
|
|
174
|
-
</xsl:variable>
|
|
202
|
+
<!-- <fo:block break-after="page"/> -->
|
|
175
203
|
|
|
176
|
-
|
|
204
|
+
<!-- Table of Contents -->
|
|
205
|
+
<!-- <xsl:apply-templates select="/*/mn:preface/mn:clause[@type = 'toc']">
|
|
206
|
+
<xsl:with-param name="process">true</xsl:with-param>
|
|
207
|
+
</xsl:apply-templates> -->
|
|
177
208
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
209
|
+
<!-- <fo:block line-height="145%">
|
|
210
|
+
<xsl:call-template name="processPrefaceSectionsDefault"/>
|
|
211
|
+
<xsl:call-template name="processMainSectionsDefault"/>
|
|
212
|
+
</fo:block> -->
|
|
181
213
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
<fo:page-sequence xsl:use-attribute-sets="page-sequence-main">
|
|
185
|
-
<xsl:call-template name="refine_page-sequence-main"/>
|
|
214
|
+
</fo:flow>
|
|
215
|
+
</fo:page-sequence>
|
|
186
216
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
217
|
+
<xsl:variable name="updated_xml_with_pages">
|
|
218
|
+
<xsl:call-template name="processAllSectionsDefault_items"/>
|
|
219
|
+
</xsl:variable>
|
|
190
220
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
221
|
+
<xsl:for-each select="xalan:nodeset($updated_xml_with_pages)"> <!-- set context to preface -->
|
|
222
|
+
<xsl:for-each select=".//mn:page_sequence[normalize-space() != '' or .//mn:image or .//*[local-name() = 'svg']]">
|
|
223
|
+
<fo:page-sequence xsl:use-attribute-sets="page-sequence-main">
|
|
224
|
+
<xsl:call-template name="refine_page-sequence-main"/>
|
|
195
225
|
|
|
196
|
-
<
|
|
197
|
-
|
|
198
|
-
<xsl:
|
|
199
|
-
|
|
200
|
-
|
|
226
|
+
<xsl:call-template name="insertFootnoteSeparatorCommon"/>
|
|
227
|
+
<xsl:call-template name="insertHeaderFooter">
|
|
228
|
+
<xsl:with-param name="num" select="$num"/>
|
|
229
|
+
</xsl:call-template>
|
|
230
|
+
<fo:flow flow-name="xsl-region-body">
|
|
201
231
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
232
|
+
<!-- Table of Contents -->
|
|
233
|
+
<xsl:apply-templates select=".//mn:preface//mn:clause[@type = 'toc']">
|
|
234
|
+
<xsl:with-param name="num" select="$num"/>
|
|
235
|
+
<xsl:with-param name="process">true</xsl:with-param>
|
|
236
|
+
</xsl:apply-templates>
|
|
237
|
+
|
|
238
|
+
<fo:block line-height="145%">
|
|
239
|
+
<!-- <xsl:call-template name="processPrefaceSectionsDefault"/>
|
|
240
|
+
<xsl:call-template name="processMainSectionsDefault"/> -->
|
|
241
|
+
<xsl:apply-templates/>
|
|
242
|
+
</fo:block>
|
|
205
243
|
|
|
244
|
+
<fo:block/> <!-- for prevent empty preface -->
|
|
245
|
+
</fo:flow>
|
|
246
|
+
</fo:page-sequence>
|
|
247
|
+
|
|
248
|
+
</xsl:for-each>
|
|
206
249
|
</xsl:for-each>
|
|
207
|
-
</xsl:for-each>
|
|
208
250
|
|
|
209
|
-
|
|
251
|
+
<xsl:call-template name="index-pages">
|
|
252
|
+
<xsl:with-param name="num" select="$num"/>
|
|
253
|
+
</xsl:call-template>
|
|
210
254
|
|
|
255
|
+
</xsl:for-each>
|
|
211
256
|
</xsl:for-each>
|
|
212
257
|
|
|
213
258
|
<!-- End Document Pages -->
|
|
@@ -218,13 +263,14 @@
|
|
|
218
263
|
</xsl:template>
|
|
219
264
|
|
|
220
265
|
<xsl:template name="cover-page">
|
|
266
|
+
<xsl:param name="num"/>
|
|
221
267
|
<!-- Cover Page -->
|
|
222
268
|
<xsl:choose>
|
|
223
269
|
<xsl:when test="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:coverpage-image/mn:image and normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/mn:full-coverpage-replacement) = 'true'">
|
|
224
270
|
<xsl:call-template name="insertCoverPageFullImage"/>
|
|
225
271
|
</xsl:when>
|
|
226
272
|
<xsl:otherwise>
|
|
227
|
-
<fo:page-sequence master-reference="cover-page" force-page-count="no-force">
|
|
273
|
+
<fo:page-sequence master-reference="cover-page" force-page-count="no-force" initial-page-number="1">
|
|
228
274
|
<xsl:call-template name="insertFootnoteSeparatorCommon"/>
|
|
229
275
|
<fo:static-content flow-name="cover-page-header">
|
|
230
276
|
<fo:block-container height="2.5mm" background-color="rgb(55, 243, 244)">
|
|
@@ -236,6 +282,7 @@
|
|
|
236
282
|
</fo:static-content>
|
|
237
283
|
|
|
238
284
|
<fo:flow flow-name="xsl-region-body">
|
|
285
|
+
<xsl:call-template name="insert_firstpage_id"><xsl:with-param name="num" select="$num"/></xsl:call-template>
|
|
239
286
|
|
|
240
287
|
<fo:block-container width="136mm" margin-bottom="12pt">
|
|
241
288
|
<fo:block font-size="36pt" font-weight="bold" color="rgb(54, 59, 74)" role="H1">
|
|
@@ -263,12 +310,15 @@
|
|
|
263
310
|
</xsl:template> <!-- END: cover-page -->
|
|
264
311
|
|
|
265
312
|
<xsl:template name="inner-cover-page">
|
|
313
|
+
<xsl:param name="num"/>
|
|
266
314
|
<!-- Copyright -->
|
|
267
315
|
<fo:page-sequence initial-page-number="2" xsl:use-attribute-sets="page-sequence-main">
|
|
268
316
|
<xsl:call-template name="refine_page-sequence-main"/>
|
|
269
317
|
|
|
270
318
|
<xsl:call-template name="insertFootnoteSeparatorCommon"/>
|
|
271
|
-
<xsl:call-template name="insertHeaderFooter"
|
|
319
|
+
<xsl:call-template name="insertHeaderFooter">
|
|
320
|
+
<xsl:with-param name="num" select="$num"/>
|
|
321
|
+
</xsl:call-template>
|
|
272
322
|
<fo:flow flow-name="xsl-region-body">
|
|
273
323
|
|
|
274
324
|
<fo:block>
|
|
@@ -337,15 +387,17 @@
|
|
|
337
387
|
</xsl:template>
|
|
338
388
|
|
|
339
389
|
<xsl:template match="mn:preface//mn:clause[@type = 'toc']" name="toc" priority="3">
|
|
390
|
+
<xsl:param name="num"/>
|
|
340
391
|
<xsl:param name="process">false</xsl:param>
|
|
341
392
|
<xsl:if test="$process = 'true'">
|
|
342
393
|
<fo:block-container xsl:use-attribute-sets="toc-style">
|
|
394
|
+
<xsl:copy-of select="@id"/>
|
|
343
395
|
|
|
344
396
|
<xsl:apply-templates/>
|
|
345
397
|
|
|
346
398
|
<xsl:if test="count(*) = 1 and mn:fmt-title"> <!-- if there isn't user ToC -->
|
|
347
399
|
<fo:block margin-left="-3mm" role="TOC">
|
|
348
|
-
<xsl:for-each select="$contents//mnx:item[@display = 'true']">
|
|
400
|
+
<xsl:for-each select="$contents/mnx:doc[@num = $num]//mnx:item[@display = 'true']">
|
|
349
401
|
<fo:block role="TOCI">
|
|
350
402
|
<fo:list-block xsl:use-attribute-sets="toc-item-block-style">
|
|
351
403
|
<xsl:call-template name="refine_toc-item-block-style"/>
|
|
@@ -371,25 +423,28 @@
|
|
|
371
423
|
</xsl:for-each>
|
|
372
424
|
|
|
373
425
|
<!-- List of Tables -->
|
|
374
|
-
<xsl:
|
|
375
|
-
<xsl:
|
|
376
|
-
<xsl:
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
426
|
+
<xsl:if test="$contents/mnx:doc[@num = $num]//mnx:tables/mnx:table">
|
|
427
|
+
<xsl:call-template name="insertListOf_Title">
|
|
428
|
+
<xsl:with-param name="title" select="$title-list-tables"/>
|
|
429
|
+
</xsl:call-template>
|
|
430
|
+
<fo:block role="TOC">
|
|
431
|
+
<xsl:for-each select="$contents/mnx:doc[@num = $num]//mnx:tables/mnx:table">
|
|
432
|
+
<xsl:call-template name="insertListOf_Item"/>
|
|
433
|
+
</xsl:for-each>
|
|
434
|
+
</fo:block>
|
|
435
|
+
</xsl:if>
|
|
382
436
|
|
|
383
437
|
<!-- List of Figures -->
|
|
384
|
-
<xsl:
|
|
385
|
-
<xsl:
|
|
386
|
-
<xsl:
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
438
|
+
<xsl:if test="$contents/mnx:doc[@num = $num]//mnx:figures/mnx:figure">
|
|
439
|
+
<xsl:call-template name="insertListOf_Title">
|
|
440
|
+
<xsl:with-param name="title" select="$title-list-figures"/>
|
|
441
|
+
</xsl:call-template>
|
|
442
|
+
<fo:block role="TOC">
|
|
443
|
+
<xsl:for-each select="$contents/mnx:doc[@num = $num]//mnx:figures/mnx:figure">
|
|
444
|
+
<xsl:call-template name="insertListOf_Item"/>
|
|
445
|
+
</xsl:for-each>
|
|
446
|
+
</fo:block>
|
|
447
|
+
</xsl:if>
|
|
393
448
|
</fo:block>
|
|
394
449
|
</xsl:if>
|
|
395
450
|
</fo:block-container>
|
|
@@ -491,6 +546,8 @@
|
|
|
491
546
|
</xsl:choose>
|
|
492
547
|
</xsl:variable>
|
|
493
548
|
|
|
549
|
+
<xsl:call-template name="setNamedDestination"/>
|
|
550
|
+
|
|
494
551
|
<xsl:variable name="title_styles">
|
|
495
552
|
<styles xsl:use-attribute-sets="title-style"><xsl:call-template name="refine_title-style"/></styles>
|
|
496
553
|
</xsl:variable>
|
|
@@ -498,6 +555,8 @@
|
|
|
498
555
|
<xsl:element name="{$element-name}">
|
|
499
556
|
<xsl:copy-of select="xalan:nodeset($title_styles)/styles/@*"/>
|
|
500
557
|
|
|
558
|
+
<xsl:call-template name="setIDforNamedDestination"/>
|
|
559
|
+
|
|
501
560
|
<xsl:if test="$level = 2">
|
|
502
561
|
<fo:inline padding-right="1mm">
|
|
503
562
|
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Title))}" width="15mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image {@alt}" vertical-align="middle"/>
|
|
@@ -526,6 +585,8 @@
|
|
|
526
585
|
</xsl:choose>
|
|
527
586
|
</xsl:variable>
|
|
528
587
|
|
|
588
|
+
<xsl:call-template name="setNamedDestination"/>
|
|
589
|
+
|
|
529
590
|
<xsl:variable name="p_styles">
|
|
530
591
|
<styles xsl:use-attribute-sets="p-style">
|
|
531
592
|
<xsl:call-template name="refine_p-style"><xsl:with-param name="element-name" select="$element-name"/></xsl:call-template>
|
|
@@ -594,8 +655,11 @@
|
|
|
594
655
|
</xsl:template>
|
|
595
656
|
|
|
596
657
|
<xsl:template name="insertHeaderFooter">
|
|
658
|
+
<xsl:param name="num"/>
|
|
597
659
|
<xsl:call-template name="insertHeader"/>
|
|
598
|
-
<xsl:call-template name="insertFooter"
|
|
660
|
+
<xsl:call-template name="insertFooter">
|
|
661
|
+
<xsl:with-param name="num" select="$num"/>
|
|
662
|
+
</xsl:call-template>
|
|
599
663
|
</xsl:template>
|
|
600
664
|
|
|
601
665
|
<xsl:template name="insertHeader">
|
|
@@ -607,10 +671,11 @@
|
|
|
607
671
|
</xsl:template>
|
|
608
672
|
|
|
609
673
|
<xsl:template name="insertFooter">
|
|
674
|
+
<xsl:param name="num"/>
|
|
610
675
|
<fo:static-content flow-name="footer" role="artifact">
|
|
611
676
|
<fo:block-container font-family="Azo Sans Lt" font-size="10.1pt" height="100%" display-align="after"> <!-- 11.5pt -->
|
|
612
677
|
<fo:block padding-bottom="13mm" text-align="right" color="rgb(144, 144, 144)">
|
|
613
|
-
<fo:inline padding-right="7mm"><xsl:value-of select="$copyright"/></fo:inline>
|
|
678
|
+
<fo:inline padding-right="7mm"><xsl:value-of select="$variables/mnx:doc[@num = $num]/copyright"/></fo:inline>
|
|
614
679
|
<fo:page-number/>
|
|
615
680
|
</fo:block>
|
|
616
681
|
</fo:block-container>
|
|
@@ -1490,6 +1555,46 @@
|
|
|
1490
1555
|
</xsl:template>
|
|
1491
1556
|
|
|
1492
1557
|
<xsl:template name="addNamedDestinationAttribute">
|
|
1558
|
+
<xsl:variable name="docnum"><xsl:number level="any" count="mn:metanorma"/></xsl:variable>
|
|
1559
|
+
<xsl:variable name="caption_label" select="translate(normalize-space(.//mn:span[@class = 'fmt-caption-label']), ' ()', '')"/>
|
|
1560
|
+
|
|
1561
|
+
<xsl:variable name="named_dest_">
|
|
1562
|
+
<xsl:choose>
|
|
1563
|
+
<xsl:when test="count(ancestor::mn:figure) > 1"/> <!-- prevent id 'a)' -->
|
|
1564
|
+
<xsl:when test="ancestor::mn:note or ancestor::mn:example or ancestor::mn:termnote or ancestor::mn:termexample or ancestor::mn:admonition"/>
|
|
1565
|
+
<xsl:when test="$caption_label = '' and parent::mn:foreword">
|
|
1566
|
+
<xsl:variable name="foreword_number"><xsl:number count="mn:foreword" level="any"/></xsl:variable>
|
|
1567
|
+
<xsl:if test="$foreword_number = 1">Foreword</xsl:if>
|
|
1568
|
+
</xsl:when>
|
|
1569
|
+
<xsl:when test="$caption_label = '' and parent::mn:introduction">
|
|
1570
|
+
<xsl:variable name="introduction_number"><xsl:number count="mn:introduction" level="any"/></xsl:variable>
|
|
1571
|
+
<xsl:if test="$introduction_number = 1">Introduction</xsl:if>
|
|
1572
|
+
</xsl:when>
|
|
1573
|
+
<xsl:when test="$caption_label = ''"/>
|
|
1574
|
+
<xsl:when test="../@unnumbered = 'true'"/>
|
|
1575
|
+
<xsl:when test="normalize-space(java:matches(java:java.lang.String.new($caption_label), '[\x21-\xFF]+')) = 'false'"/>
|
|
1576
|
+
<!-- 1.1 in Appendix 1 -->
|
|
1577
|
+
<xsl:otherwise>
|
|
1578
|
+
<xsl:if test="ancestor::mn:annex and string(number(substring($caption_label, 1, 1))) != 'NaN'">
|
|
1579
|
+
<xsl:variable name="annex_caption_label" select="translate(normalize-space(ancestor::mn:annex[1]/mn:fmt-title//mn:span[@class = 'fmt-caption-label']), ' ()', '')"/>
|
|
1580
|
+
<xsl:value-of select="concat($annex_caption_label, '_')"/>
|
|
1581
|
+
</xsl:if>
|
|
1582
|
+
<xsl:if test="parent::mn:formula">Formula</xsl:if>
|
|
1583
|
+
<xsl:value-of select="$caption_label"/>
|
|
1584
|
+
</xsl:otherwise>
|
|
1585
|
+
</xsl:choose>
|
|
1586
|
+
</xsl:variable>
|
|
1587
|
+
<xsl:variable name="named_dest" select="normalize-space($named_dest_)"/>
|
|
1588
|
+
<xsl:if test="$named_dest != ''">
|
|
1589
|
+
<xsl:variable name="named_dest_doc_">
|
|
1590
|
+
<xsl:value-of select="$named_dest"/>
|
|
1591
|
+
<xsl:if test="$docnum != '1'">_<xsl:value-of select="$docnum"/></xsl:if>
|
|
1592
|
+
</xsl:variable>
|
|
1593
|
+
<xsl:variable name="named_dest_doc" select="normalize-space($named_dest_doc_)"/>
|
|
1594
|
+
<xsl:if test="not(key('kid', $named_dest_doc))"> <!-- if element with id '$named_dest_doc' doesn't exist in the document -->
|
|
1595
|
+
<xsl:attribute name="named_dest"><xsl:value-of select="normalize-space($named_dest_doc)"/></xsl:attribute>
|
|
1596
|
+
</xsl:if>
|
|
1597
|
+
</xsl:if>
|
|
1493
1598
|
</xsl:template>
|
|
1494
1599
|
|
|
1495
1600
|
<xsl:template match="mn:fmt-name" mode="update_xml_step1">
|
|
@@ -2422,9 +2527,11 @@
|
|
|
2422
2527
|
</xsl:template>
|
|
2423
2528
|
|
|
2424
2529
|
<xsl:template match="mn:feedback-statement//mn:p">
|
|
2530
|
+
<xsl:param name="skip_id">false</xsl:param>
|
|
2425
2531
|
<xsl:param name="margin"/>
|
|
2426
2532
|
<!-- process in the template 'paragraph' -->
|
|
2427
2533
|
<xsl:call-template name="paragraph">
|
|
2534
|
+
<xsl:with-param name="skip_id" select="$skip_id"/>
|
|
2428
2535
|
<xsl:with-param name="margin" select="$margin"/>
|
|
2429
2536
|
</xsl:call-template>
|
|
2430
2537
|
</xsl:template>
|
|
@@ -8783,7 +8890,12 @@
|
|
|
8783
8890
|
<xsl:template match="mn:figure[@class = 'pseudocode']">
|
|
8784
8891
|
<xsl:call-template name="setNamedDestination"/>
|
|
8785
8892
|
<fo:block id="{@id}">
|
|
8786
|
-
<
|
|
8893
|
+
<fo:block role="SKIP">
|
|
8894
|
+
<xsl:for-each select="mn:fmt-name"> <!-- set context -->
|
|
8895
|
+
<xsl:call-template name="setIDforNamedDestination"/>
|
|
8896
|
+
</xsl:for-each>
|
|
8897
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
|
8898
|
+
</fo:block>
|
|
8787
8899
|
</fo:block>
|
|
8788
8900
|
<xsl:apply-templates select="mn:fmt-name"/>
|
|
8789
8901
|
</xsl:template>
|
|
@@ -11322,7 +11434,7 @@
|
|
|
11322
11434
|
</xsl:variable>
|
|
11323
11435
|
|
|
11324
11436
|
<xsl:template name="index-pages">
|
|
11325
|
-
<xsl:
|
|
11437
|
+
<xsl:param name="num"/>
|
|
11326
11438
|
|
|
11327
11439
|
<xsl:variable name="docid">
|
|
11328
11440
|
<xsl:call-template name="getDocumentId"/>
|
|
@@ -11342,10 +11454,17 @@
|
|
|
11342
11454
|
</xsl:apply-templates>
|
|
11343
11455
|
</xsl:template>
|
|
11344
11456
|
<xsl:template match="mn:indexsect"/>
|
|
11457
|
+
<xsl:template match="/" mode="index">
|
|
11458
|
+
<xsl:param name="num"/>
|
|
11459
|
+
<xsl:apply-templates mode="index">
|
|
11460
|
+
<xsl:with-param name="num" select="$num"/>
|
|
11461
|
+
</xsl:apply-templates>
|
|
11462
|
+
</xsl:template>
|
|
11345
11463
|
<xsl:template match="mn:indexsect" mode="index">
|
|
11346
11464
|
<xsl:param name="num"/>
|
|
11347
11465
|
<fo:page-sequence master-reference="index" force-page-count="no-force">
|
|
11348
11466
|
<xsl:call-template name="insertHeaderFooter">
|
|
11467
|
+
<xsl:with-param name="num" select="$num"/>
|
|
11349
11468
|
<xsl:with-param name="section">main</xsl:with-param>
|
|
11350
11469
|
</xsl:call-template>
|
|
11351
11470
|
<fo:flow flow-name="xsl-region-body">
|
|
@@ -13192,6 +13311,15 @@
|
|
|
13192
13311
|
</xsl:if>
|
|
13193
13312
|
</xsl:template>
|
|
13194
13313
|
|
|
13314
|
+
<!-- debug templates -->
|
|
13315
|
+
<xsl:template name="debug_contents">
|
|
13316
|
+
<xsl:if test="$debug = 'true'">
|
|
13317
|
+
<redirect:write file="contents_.xml"> <!-- {java:getTime(java:java.util.Date.new())} -->
|
|
13318
|
+
<xsl:copy-of select="$contents"/>
|
|
13319
|
+
</redirect:write>
|
|
13320
|
+
</xsl:if>
|
|
13321
|
+
</xsl:template>
|
|
13322
|
+
|
|
13195
13323
|
<xsl:template name="processPrefaceSectionsDefault">
|
|
13196
13324
|
<xsl:param name="num"/>
|
|
13197
13325
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
|
|
@@ -14404,14 +14532,18 @@
|
|
|
14404
14532
|
</xsl:template>
|
|
14405
14533
|
|
|
14406
14534
|
<xsl:template name="setIDforNamedDestination">
|
|
14407
|
-
<xsl:if test="
|
|
14408
|
-
<xsl:
|
|
14535
|
+
<xsl:if test="$isGenerateTableIF = 'false'">
|
|
14536
|
+
<xsl:if test="@named_dest">
|
|
14537
|
+
<xsl:attribute name="id"><xsl:value-of select="@named_dest"/></xsl:attribute>
|
|
14538
|
+
</xsl:if>
|
|
14409
14539
|
</xsl:if>
|
|
14410
14540
|
</xsl:template>
|
|
14411
14541
|
|
|
14412
14542
|
<xsl:template name="setIDforNamedDestinationInline">
|
|
14413
|
-
<xsl:if test="
|
|
14414
|
-
<
|
|
14543
|
+
<xsl:if test="$isGenerateTableIF = 'false'">
|
|
14544
|
+
<xsl:if test="@named_dest">
|
|
14545
|
+
<fo:inline><xsl:call-template name="setIDforNamedDestination"/></fo:inline>
|
|
14546
|
+
</xsl:if>
|
|
14415
14547
|
</xsl:if>
|
|
14416
14548
|
</xsl:template>
|
|
14417
14549
|
|
|
@@ -14421,7 +14553,7 @@
|
|
|
14421
14553
|
<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'">
|
|
14422
14554
|
<fox:destination internal-destination="{@id}"/>
|
|
14423
14555
|
</xsl:if>
|
|
14424
|
-
<xsl:for-each select=". | mn:fmt-title | mn:fmt-name">
|
|
14556
|
+
<xsl:for-each select=". | mn:fmt-title[1] | mn:fmt-name[1]">
|
|
14425
14557
|
<xsl:if test="@named_dest">
|
|
14426
14558
|
<fox:destination internal-destination="{@named_dest}"/>
|
|
14427
14559
|
</xsl:if>
|
|
@@ -14429,6 +14561,12 @@
|
|
|
14429
14561
|
</xsl:if>
|
|
14430
14562
|
</xsl:template>
|
|
14431
14563
|
|
|
14564
|
+
<xsl:template name="copyParagraphId">
|
|
14565
|
+
<xsl:if test="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'">
|
|
14566
|
+
<xsl:copy-of select="@id"/>
|
|
14567
|
+
</xsl:if>
|
|
14568
|
+
</xsl:template>
|
|
14569
|
+
|
|
14432
14570
|
<xsl:template name="add-letter-spacing">
|
|
14433
14571
|
<xsl:param name="text"/>
|
|
14434
14572
|
<xsl:param name="letter-spacing" select="'0.15'"/>
|
|
@@ -14651,7 +14789,7 @@
|
|
|
14651
14789
|
<xsl:template name="insertCoverPageFullImage">
|
|
14652
14790
|
<xsl:param name="name">coverpage-image</xsl:param>
|
|
14653
14791
|
<xsl:for-each select="//mn:metanorma/mn:metanorma-extension/mn:presentation-metadata/*[local-name() = $name][1]/mn:image">
|
|
14654
|
-
<fo:page-sequence master-reference="cover-page" force-page-count="no-force">
|
|
14792
|
+
<fo:page-sequence master-reference="cover-page" force-page-count="no-force" initial-page-number="1">
|
|
14655
14793
|
<fo:flow flow-name="xsl-region-body">
|
|
14656
14794
|
<xsl:call-template name="insertBackgroundPageImage">
|
|
14657
14795
|
<xsl:with-param name="number" select="position()"/>
|
|
@@ -15115,6 +15253,18 @@
|
|
|
15115
15253
|
</xsl:attribute>
|
|
15116
15254
|
</xsl:template>
|
|
15117
15255
|
|
|
15256
|
+
<xsl:template name="insert_firstpage_id">
|
|
15257
|
+
<xsl:param name="num"/>
|
|
15258
|
+
<fo:wrapper role="artifact">
|
|
15259
|
+
<fo:block-container absolute-position="fixed" top="1mm">
|
|
15260
|
+
<xsl:if test="$num = 1">
|
|
15261
|
+
<xsl:attribute name="id">firstpage_id_0</xsl:attribute>
|
|
15262
|
+
</xsl:if>
|
|
15263
|
+
<fo:block id="firstpage_id_{$num}" role="SKIP"> </fo:block>
|
|
15264
|
+
</fo:block-container>
|
|
15265
|
+
</fo:wrapper>
|
|
15266
|
+
</xsl:template>
|
|
15267
|
+
|
|
15118
15268
|
<xsl:template name="getCharByCodePoint">
|
|
15119
15269
|
<xsl:param name="codepoint"/>
|
|
15120
15270
|
<xsl:param name="radix">16</xsl:param>
|
data/data/elf/elf.xsl
CHANGED
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
</xsl:template>
|
|
40
40
|
|
|
41
41
|
<xsl:template name="cover-page">
|
|
42
|
-
<
|
|
42
|
+
<xsl:param name="num"/>
|
|
43
|
+
<fo:page-sequence master-reference="cover-page" force-page-count="no-force" color="white" initial-page-number="1">
|
|
43
44
|
<fo:static-content flow-name="cover-page-header">
|
|
44
45
|
<fo:block-container position="absolute" left="0mm" top="0mm" width="197mm" height="43.4mm" display-align="center" role="SKIP">
|
|
45
46
|
<fo:table table-layout="fixed" width="100%">
|
|
@@ -112,6 +113,7 @@
|
|
|
112
113
|
</fo:table>
|
|
113
114
|
</fo:static-content>
|
|
114
115
|
<fo:flow flow-name="xsl-region-body">
|
|
116
|
+
<xsl:call-template name="insert_firstpage_id"><xsl:with-param name="num" select="$num"/></xsl:call-template>
|
|
115
117
|
<!-- background image -->
|
|
116
118
|
<fo:block-container absolute-position="fixed" left="0mm" top="0mm" font-size="0">
|
|
117
119
|
<fo:block>
|
data/data/mbxif/config.yaml
CHANGED
|
@@ -25,6 +25,10 @@ doctypes:
|
|
|
25
25
|
- taste: test-suite
|
|
26
26
|
base: report
|
|
27
27
|
committees:
|
|
28
|
+
- name: Model-Based "x" Interoperability Forum
|
|
29
|
+
abbrev: MBx-IF
|
|
30
|
+
logo: mbxif-logos_mbxif.svg
|
|
31
|
+
category: interoperability-forum
|
|
28
32
|
- name: Computer Aided "x" Interoperability Forum
|
|
29
33
|
abbrev: CAx-IF
|
|
30
34
|
logo: mbxif-logos_caxif.svg
|
data/data/mbxif/mbxif.xsl
CHANGED
|
@@ -73,13 +73,11 @@
|
|
|
73
73
|
</xsl:template>
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
<xsl:
|
|
77
|
-
<xsl:variable name="copyright_holder" select="normalize-space(/mn:metanorma/mn:bibdata/mn:copyright/mn:owner/mn:organization/mn:name)"/>
|
|
78
|
-
<xsl:variable name="copyrightText">
|
|
76
|
+
<xsl:template name="getCopyrightText">
|
|
79
77
|
<xsl:text>© </xsl:text>
|
|
80
|
-
<xsl:value-of select="
|
|
78
|
+
<xsl:value-of select="/mn:metanorma/mn:bibdata/mn:copyright/mn:from"/>
|
|
81
79
|
<xsl:text>. The </xsl:text>
|
|
82
|
-
<xsl:value-of select="
|
|
80
|
+
<xsl:value-of select="normalize-space(/mn:metanorma/mn:bibdata/mn:copyright/mn:owner/mn:organization/mn:name)"/>
|
|
83
81
|
<xsl:text>, Inc. </xsl:text>
|
|
84
82
|
<xsl:variable name="all_rights_reserved">
|
|
85
83
|
<xsl:call-template name="getLocalizedString">
|
|
@@ -88,20 +86,21 @@
|
|
|
88
86
|
</xsl:variable>
|
|
89
87
|
<xsl:value-of select="$all_rights_reserved"/>
|
|
90
88
|
<xsl:text>.</xsl:text>
|
|
91
|
-
</xsl:
|
|
89
|
+
</xsl:template>
|
|
92
90
|
|
|
93
91
|
<xsl:template name="cover-page">
|
|
94
|
-
<
|
|
92
|
+
<xsl:param name="num"/>
|
|
93
|
+
<fo:page-sequence master-reference="cover-page" force-page-count="no-force" font-family="Nacelle" initial-page-number="1">
|
|
95
94
|
<fo:static-content flow-name="header">
|
|
96
95
|
<xsl:call-template name="insertBackgroundPageImage"/>
|
|
97
96
|
|
|
98
97
|
<fo:block-container margin-left="19mm" margin-right="-20mm">
|
|
99
98
|
<fo:block-container margin-left="0mm" margin-right="0mm">
|
|
100
99
|
<xsl:variable name="logos">
|
|
101
|
-
<xsl:for-each select="/mn:metanorma/mn:bibdata/mn:contributor[mn:role/@type = 'author']/mn:organization[mn:logo/mn:image]">
|
|
100
|
+
<xsl:for-each select="/mn:metanorma/mn:bibdata/mn:contributor[mn:role/@type = 'author'][mn:role/mn:description = 'committee']/mn:organization/mn:subdivision[mn:logo/mn:image]">
|
|
102
101
|
<xsl:variable name="logo_width">
|
|
103
102
|
<xsl:choose>
|
|
104
|
-
<xsl:when test="mn:abbreviation = 'JT-IF'">43mm</xsl:when>
|
|
103
|
+
<xsl:when test="mn:abbreviation = 'JT-IF' or contains(mn:name, 'Jupiter Tessilation')">43mm</xsl:when>
|
|
105
104
|
<xsl:otherwise>71mm</xsl:otherwise>
|
|
106
105
|
</xsl:choose>
|
|
107
106
|
</xsl:variable>
|
|
@@ -150,12 +149,13 @@
|
|
|
150
149
|
<fo:static-content flow-name="footer">
|
|
151
150
|
<fo:block-container height="20mm" display-align="center">
|
|
152
151
|
<fo:block font-size="12pt" font-weight="300" color="white" margin-right="6mm" text-align="right">
|
|
153
|
-
<xsl:
|
|
152
|
+
<xsl:call-template name="getCopyrightText"/>
|
|
154
153
|
</fo:block>
|
|
155
154
|
</fo:block-container>
|
|
156
155
|
</fo:static-content>
|
|
157
156
|
|
|
158
157
|
<fo:flow flow-name="xsl-region-body" color="{$color_black}">
|
|
158
|
+
<xsl:call-template name="insert_firstpage_id"><xsl:with-param name="num" select="$num"/></xsl:call-template>
|
|
159
159
|
|
|
160
160
|
<fo:block-container margin-right="0mm">
|
|
161
161
|
<fo:block-container margin-right="0mm">
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
<fo:static-content flow-name="footer">
|
|
228
228
|
<fo:block-container height="20mm" display-align="center">
|
|
229
229
|
<fo:block font-size="12pt" font-weight="300" color="white" margin-left="11.3mm">
|
|
230
|
-
<xsl:
|
|
230
|
+
<xsl:call-template name="getCopyrightText"/>
|
|
231
231
|
</fo:block>
|
|
232
232
|
</fo:block-container>
|
|
233
233
|
</fo:static-content>
|
data/data/oiml/oiml.xsl
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
<xsl:template name="cover-page">
|
|
34
34
|
<xsl:param name="num"/>
|
|
35
|
-
<fo:page-sequence master-reference="cover-page" force-page-count="end-on-even" font-family="Futura PT Book" color="rgb(34,30,31)"> <!-- Futura Bk -->
|
|
35
|
+
<fo:page-sequence master-reference="cover-page" force-page-count="end-on-even" font-family="Futura PT Book" color="rgb(34,30,31)" initial-page-number="1"> <!-- Futura Bk -->
|
|
36
36
|
<xsl:variable name="curr_lang"><xsl:call-template name="getLang"/></xsl:variable>
|
|
37
37
|
<xsl:variable name="docidentifier"><xsl:call-template name="get_docidentifier"/></xsl:variable>
|
|
38
38
|
<xsl:variable name="title_complementary"><xsl:call-template name="get_title_complementary"/></xsl:variable>
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
<xsl:template name="insertHeaderEven">
|
|
372
372
|
<xsl:param name="text_align">left</xsl:param>
|
|
373
373
|
<xsl:param name="flow_name">header-even</xsl:param>
|
|
374
|
-
<fo:static-content flow-name="{$flow_name}" > <!-- role="artifact" commented
|
|
374
|
+
<fo:static-content flow-name="{$flow_name}" role="artifact" > <!-- role="artifact" commented?, because <fo:retrieve-marker occurs the FOP error -->
|
|
375
375
|
<fo:block font-family="Arial" font-size="9pt" margin-top="13mm" border-bottom="0.5pt solid black" text-align="{$text_align}">
|
|
376
376
|
<xsl:variable name="title_complementary">
|
|
377
377
|
<xsl:call-template name="get_title_complementary"/>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--ribose-primary-color: #d03f4e;
|
|
2
|
+
--ribose-primary-color: #d03f4e; /* PDFa logo red. Required for WCAG Level AA colour contrast */
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.logo {
|
|
@@ -17,21 +17,21 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.coverpage-container {
|
|
20
|
-
line-height: 1.5;
|
|
20
|
+
line-height: 1.5; /* WCAG Level AA recommends 1.5 line height as a minimum */
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
#toc li a, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li a {
|
|
24
|
-
text-transform: none;
|
|
24
|
+
text-transform: none; /* PDF is case-sensitive! Never force uppercase! */
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
h1, .h1 {
|
|
28
|
-
text-transform: none;
|
|
28
|
+
text-transform: none; /* PDF is case-sensitive! Never force uppercase! */
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.example .example-title {
|
|
32
|
-
text-transform: none;
|
|
32
|
+
text-transform: none; /* PDF is case-sensitive! Never force uppercase! */
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
a {
|
|
36
|
-
text-decoration: underline;
|
|
36
|
+
text-decoration: underline; /* WCAG - all links must be clearly visible */
|
|
37
37
|
}
|
data/data/pdfa/pdfa.xsl
CHANGED
|
@@ -48,8 +48,10 @@
|
|
|
48
48
|
</xsl:attribute-set>
|
|
49
49
|
|
|
50
50
|
<xsl:template name="cover-page">
|
|
51
|
-
<
|
|
51
|
+
<xsl:param name="num"/>
|
|
52
|
+
<fo:page-sequence master-reference="cover-page" force-page-count="no-force" initial-page-number="1">
|
|
52
53
|
<fo:flow flow-name="xsl-region-body" font-family="Source Sans 3">
|
|
54
|
+
<xsl:call-template name="insert_firstpage_id"><xsl:with-param name="num" select="$num"/></xsl:call-template>
|
|
53
55
|
|
|
54
56
|
<fo:block margin-top="-3mm" role="SKIP"> <!-- -3mm because there is a space before image in the source SVG -->
|
|
55
57
|
<fo:inline-container width="47mm" role="SKIP">
|
|
@@ -279,10 +281,14 @@
|
|
|
279
281
|
</xsl:template>
|
|
280
282
|
|
|
281
283
|
<xsl:template name="insertHeaderFooter">
|
|
282
|
-
<xsl:
|
|
284
|
+
<xsl:param name="num"/>
|
|
285
|
+
<xsl:call-template name="insertFooter">
|
|
286
|
+
<xsl:with-param name="num" select="$num"/>
|
|
287
|
+
</xsl:call-template>
|
|
283
288
|
</xsl:template>
|
|
284
289
|
|
|
285
290
|
<xsl:template name="insertFooter">
|
|
291
|
+
<xsl:param name="num"/>
|
|
286
292
|
<!-- <xsl:param name="invert"/> -->
|
|
287
293
|
<xsl:variable name="footerText">
|
|
288
294
|
<!-- <xsl:text>PDF Association</xsl:text>
|
|
@@ -301,9 +307,11 @@
|
|
|
301
307
|
</xsl:call-template>
|
|
302
308
|
</xsl:variable>
|
|
303
309
|
<xsl:call-template name="insertFooterOdd">
|
|
310
|
+
<xsl:with-param name="num" select="$num"/>
|
|
304
311
|
<xsl:with-param name="footerText" select="$footerText"/>
|
|
305
312
|
</xsl:call-template>
|
|
306
313
|
<xsl:call-template name="insertFooterEven">
|
|
314
|
+
<xsl:with-param name="num" select="$num"/>
|
|
307
315
|
<xsl:with-param name="footerText" select="$footerText"/>
|
|
308
316
|
</xsl:call-template>
|
|
309
317
|
</xsl:template>
|
data/metanorma-taste.gemspec
CHANGED
|
@@ -32,17 +32,17 @@ Gem::Specification.new do |spec|
|
|
|
32
32
|
spec.bindir = "bin"
|
|
33
33
|
spec.require_paths = ["lib"]
|
|
34
34
|
|
|
35
|
-
spec.add_dependency "lutaml-model", "
|
|
35
|
+
spec.add_dependency "lutaml-model", ">= 0.7"
|
|
36
36
|
|
|
37
37
|
spec.add_development_dependency "debug"
|
|
38
38
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
|
39
39
|
spec.add_development_dependency "logger", "1.6.6"
|
|
40
40
|
spec.add_development_dependency "metanorma"
|
|
41
41
|
spec.add_development_dependency "metanorma-cli"
|
|
42
|
-
spec.add_development_dependency "metanorma-generic", ">= 3.3.
|
|
43
|
-
spec.add_development_dependency "metanorma-ieee", ">= 1.6.
|
|
44
|
-
spec.add_development_dependency "metanorma-iso", ">= 3.
|
|
45
|
-
spec.add_development_dependency "metanorma-ribose", ">= 2.8.
|
|
42
|
+
spec.add_development_dependency "metanorma-generic", ">= 3.3.3"
|
|
43
|
+
spec.add_development_dependency "metanorma-ieee", ">= 1.6.8"
|
|
44
|
+
spec.add_development_dependency "metanorma-iso", ">= 3.4.0"
|
|
45
|
+
spec.add_development_dependency "metanorma-ribose", ">= 2.8.4"
|
|
46
46
|
spec.add_development_dependency "mnconvert"
|
|
47
47
|
spec.add_development_dependency "pry"
|
|
48
48
|
spec.add_development_dependency "rake", "~> 13.0"
|
metadata
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-taste
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: lutaml-model
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
|
-
- - "
|
|
16
|
+
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
18
|
version: '0.7'
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
|
-
- - "
|
|
23
|
+
- - ">="
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
25
|
version: '0.7'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
@@ -100,56 +99,56 @@ dependencies:
|
|
|
100
99
|
requirements:
|
|
101
100
|
- - ">="
|
|
102
101
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: 3.3.
|
|
102
|
+
version: 3.3.3
|
|
104
103
|
type: :development
|
|
105
104
|
prerelease: false
|
|
106
105
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
106
|
requirements:
|
|
108
107
|
- - ">="
|
|
109
108
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: 3.3.
|
|
109
|
+
version: 3.3.3
|
|
111
110
|
- !ruby/object:Gem::Dependency
|
|
112
111
|
name: metanorma-ieee
|
|
113
112
|
requirement: !ruby/object:Gem::Requirement
|
|
114
113
|
requirements:
|
|
115
114
|
- - ">="
|
|
116
115
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: 1.6.
|
|
116
|
+
version: 1.6.8
|
|
118
117
|
type: :development
|
|
119
118
|
prerelease: false
|
|
120
119
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
120
|
requirements:
|
|
122
121
|
- - ">="
|
|
123
122
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: 1.6.
|
|
123
|
+
version: 1.6.8
|
|
125
124
|
- !ruby/object:Gem::Dependency
|
|
126
125
|
name: metanorma-iso
|
|
127
126
|
requirement: !ruby/object:Gem::Requirement
|
|
128
127
|
requirements:
|
|
129
128
|
- - ">="
|
|
130
129
|
- !ruby/object:Gem::Version
|
|
131
|
-
version: 3.
|
|
130
|
+
version: 3.4.0
|
|
132
131
|
type: :development
|
|
133
132
|
prerelease: false
|
|
134
133
|
version_requirements: !ruby/object:Gem::Requirement
|
|
135
134
|
requirements:
|
|
136
135
|
- - ">="
|
|
137
136
|
- !ruby/object:Gem::Version
|
|
138
|
-
version: 3.
|
|
137
|
+
version: 3.4.0
|
|
139
138
|
- !ruby/object:Gem::Dependency
|
|
140
139
|
name: metanorma-ribose
|
|
141
140
|
requirement: !ruby/object:Gem::Requirement
|
|
142
141
|
requirements:
|
|
143
142
|
- - ">="
|
|
144
143
|
- !ruby/object:Gem::Version
|
|
145
|
-
version: 2.8.
|
|
144
|
+
version: 2.8.4
|
|
146
145
|
type: :development
|
|
147
146
|
prerelease: false
|
|
148
147
|
version_requirements: !ruby/object:Gem::Requirement
|
|
149
148
|
requirements:
|
|
150
149
|
- - ">="
|
|
151
150
|
- !ruby/object:Gem::Version
|
|
152
|
-
version: 2.8.
|
|
151
|
+
version: 2.8.4
|
|
153
152
|
- !ruby/object:Gem::Dependency
|
|
154
153
|
name: mnconvert
|
|
155
154
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -297,8 +296,8 @@ email:
|
|
|
297
296
|
executables: []
|
|
298
297
|
extensions: []
|
|
299
298
|
extra_rdoc_files:
|
|
300
|
-
- README.adoc
|
|
301
299
|
- LICENSE.txt
|
|
300
|
+
- README.adoc
|
|
302
301
|
files:
|
|
303
302
|
- ".rspec"
|
|
304
303
|
- ".rubocop.yml"
|
|
@@ -411,7 +410,6 @@ metadata:
|
|
|
411
410
|
homepage_uri: https://github.com/metanorma/metanorma-taste
|
|
412
411
|
source_code_uri: https://github.com/metanorma/metanorma-taste
|
|
413
412
|
bug_tracker_uri: https://github.com/metanorma/metanorma-taste/issues
|
|
414
|
-
post_install_message:
|
|
415
413
|
rdoc_options: []
|
|
416
414
|
require_paths:
|
|
417
415
|
- lib
|
|
@@ -426,8 +424,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
426
424
|
- !ruby/object:Gem::Version
|
|
427
425
|
version: '0'
|
|
428
426
|
requirements: []
|
|
429
|
-
rubygems_version:
|
|
430
|
-
signing_key:
|
|
427
|
+
rubygems_version: 4.0.7
|
|
431
428
|
specification_version: 4
|
|
432
429
|
summary: Metanorma Taste Library
|
|
433
430
|
test_files: []
|