metanorma-taste 0.1.3 → 0.1.5

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.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.adoc +241 -64
  3. data/data/csa/config.yaml +25 -23
  4. data/data/csa/csa.standard.xsl +66 -76
  5. data/data/elf/config.yaml +10 -8
  6. data/data/enosema/config.yaml +10 -8
  7. data/data/icc/config.yaml +14 -12
  8. data/data/mbxif/config.yaml +26 -0
  9. data/data/mbxif/copyright.adoc +36 -0
  10. data/data/mbxif/i18n.yaml +4 -0
  11. data/data/mbxif/mbxif-back-cover.pdf +3504 -7
  12. data/data/mbxif/mbxif-front-cover.pdf +54968 -16
  13. data/data/mbxif/mbxif-logos.pdf +11330 -46
  14. data/data/mbxif/mbxif-logos_caeif.svg +1 -0
  15. data/data/mbxif/mbxif-logos_caxif.svg +1 -0
  16. data/data/mbxif/mbxif-logos_ewisif.svg +1 -0
  17. data/data/mbxif/mbxif-logos_jtif.svg +1 -0
  18. data/data/mbxif/mbxif-logos_lotar.svg +1 -0
  19. data/data/mbxif/mbxif-logos_mbxif.svg +1 -0
  20. data/data/mbxif/mbxif-logos_pdmif.svg +1 -0
  21. data/data/mbxif/mbxif.xsl +361 -0
  22. data/data/pdfa/config.yaml +16 -14
  23. data/data/pdfa/i18n.yaml +2 -4
  24. data/data/pdfa/pdfa-logo.emf +0 -0
  25. data/data/pdfa/pdfa-logo.svg +1 -1
  26. data/data/pdfa/pdfa.xsl +47 -10
  27. data/data/swf/config.yaml +14 -8
  28. data/data/swf/copyright.adoc +3 -4
  29. data/data/swf/swf-back-cover.pdf +3504 -7
  30. data/data/swf/swf-front-cover.pdf +3472 -3
  31. data/data/swf/swf-logo-with-graphic.svg +1 -0
  32. data/data/swf/swf-logo.svg +1 -0
  33. data/data/swf/swf.xsl +361 -0
  34. data/lib/metanorma/taste/base.rb +23 -19
  35. data/lib/metanorma/taste/base_override.rb +7 -47
  36. data/lib/metanorma/taste/filename_attributes.rb +53 -0
  37. data/lib/metanorma/taste/taste_config.rb +0 -34
  38. data/lib/metanorma/taste/value_attributes.rb +59 -0
  39. data/lib/metanorma/taste/version.rb +1 -1
  40. data/lib/metanorma/taste_register.rb +6 -6
  41. metadata +23 -2
@@ -72,36 +72,21 @@
72
72
 
73
73
  <xsl:call-template name="cover-page"/>
74
74
 
75
- <!-- Copyright, Content, Foreword, etc. pages -->
76
- <fo:page-sequence master-reference="document" initial-page-number="2" format="1" force-page-count="no-force">
75
+ <xsl:call-template name="inner-cover-page"/>
76
+
77
+ <xsl:if test="$debug = 'true'">
78
+ <redirect:write file="contents_.xml"> <!-- {java:getTime(java:java.util.Date.new())} -->
79
+ <xsl:copy-of select="$contents"/>
80
+ </redirect:write>
81
+ </xsl:if>
82
+
83
+ <!-- Content, Foreword, etc. pages -->
84
+ <fo:page-sequence master-reference="document" format="1" force-page-count="no-force">
77
85
 
78
86
  <xsl:call-template name="insertFootnoteSeparatorCommon"/>
79
87
  <xsl:call-template name="insertHeaderFooter"/>
80
88
  <fo:flow flow-name="xsl-region-body">
81
89
 
82
- <xsl:if test="$debug = 'true'">
83
- <redirect:write file="contents_.xml"> <!-- {java:getTime(java:java.util.Date.new())} -->
84
- <xsl:copy-of select="$contents"/>
85
- </redirect:write>
86
- </xsl:if>
87
-
88
- <fo:block>
89
- <fo:block>The permanent and official location for Cloud Security Alliance DevSecOps is</fo:block>
90
- <fo:block color="rgb(33, 94, 159)" text-decoration="underline">https://cloudsecurityalliance.org/group/DevSecOps/</fo:block>
91
- </fo:block>
92
-
93
- <fo:block-container absolute-position="fixed" left="25mm" top="152mm" width="165mm" height="100mm" display-align="after" color="rgb(165, 169, 172)" line-height="145%">
94
- <fo:block>© <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:copyright/mn:from"/> Cloud Security Alliance – All Rights Reserved. You may download, store, display on your
95
- computer, view, print, and link to the Cloud Security Alliance at <fo:inline text-decoration="underline">https://cloudsecurityalliance.org</fo:inline>
96
- subject to the following: (a) the draft may be used solely for your personal, informational, noncommercial
97
- use; (b) the draft may not be modified or altered in any way; (c) the draft may not be
98
- redistributed; and (d) the trademark, copyright or other notices may not be removed. You may quote
99
- portions of the draft as permitted by the Fair Use provisions of the United States Copyright Act,
100
- provided that you attribute the portions to the Cloud Security Alliance.</fo:block>
101
- </fo:block-container>
102
-
103
- <fo:block break-after="page"/>
104
-
105
90
  <fo:block font-size="26pt" margin-bottom="18pt" role="H1">
106
91
  <xsl:call-template name="getLocalizedString">
107
92
  <xsl:with-param name="key">acknowledgements</xsl:with-param>
@@ -218,6 +203,8 @@
218
203
 
219
204
  <!-- End Document Pages -->
220
205
 
206
+ <xsl:call-template name="back-page"/>
207
+
221
208
  </fo:root>
222
209
  </xsl:template>
223
210
 
@@ -259,6 +246,35 @@
259
246
  </fo:page-sequence>
260
247
  </xsl:template> <!-- END: cover-page -->
261
248
 
249
+ <xsl:template name="inner-cover-page">
250
+ <!-- Copyright -->
251
+ <fo:page-sequence master-reference="document" initial-page-number="2" format="1" force-page-count="no-force">
252
+
253
+ <xsl:call-template name="insertFootnoteSeparatorCommon"/>
254
+ <xsl:call-template name="insertHeaderFooter"/>
255
+ <fo:flow flow-name="xsl-region-body">
256
+
257
+ <fo:block>
258
+ <fo:block>The permanent and official location for Cloud Security Alliance DevSecOps is</fo:block>
259
+ <fo:block color="rgb(33, 94, 159)" text-decoration="underline">https://cloudsecurityalliance.org/group/DevSecOps/</fo:block>
260
+ </fo:block>
261
+
262
+ <fo:block-container absolute-position="fixed" left="25mm" top="152mm" width="165mm" height="100mm" display-align="after" color="rgb(165, 169, 172)" line-height="145%">
263
+ <fo:block>© <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:copyright/mn:from"/> Cloud Security Alliance – All Rights Reserved. You may download, store, display on your
264
+ computer, view, print, and link to the Cloud Security Alliance at <fo:inline text-decoration="underline">https://cloudsecurityalliance.org</fo:inline>
265
+ subject to the following: (a) the draft may be used solely for your personal, informational, noncommercial
266
+ use; (b) the draft may not be modified or altered in any way; (c) the draft may not be
267
+ redistributed; and (d) the trademark, copyright or other notices may not be removed. You may quote
268
+ portions of the draft as permitted by the Fair Use provisions of the United States Copyright Act,
269
+ provided that you attribute the portions to the Cloud Security Alliance.</fo:block>
270
+ </fo:block-container>
271
+ </fo:flow>
272
+ </fo:page-sequence>
273
+ </xsl:template> <!-- inner-cover-page -->
274
+
275
+ <xsl:template name="back-page">
276
+ </xsl:template>
277
+
262
278
  <xsl:template name="insertListOf_Title">
263
279
  <xsl:param name="title"/>
264
280
  <fo:block role="TOCI" keep-with-next="always">
@@ -592,11 +608,19 @@
592
608
  </xsl:template>
593
609
 
594
610
  <xsl:template name="insertHeaderFooter">
611
+ <xsl:call-template name="insertHeader"/>
612
+ <xsl:call-template name="insertFooter"/>
613
+ </xsl:template>
614
+
615
+ <xsl:template name="insertHeader">
595
616
  <fo:static-content flow-name="header" role="artifact">
596
617
  <fo:block-container height="2.5mm" background-color="{$color-header-document}">
597
618
  <fo:block font-size="1pt"> </fo:block>
598
619
  </fo:block-container>
599
620
  </fo:static-content>
621
+ </xsl:template>
622
+
623
+ <xsl:template name="insertFooter">
600
624
  <fo:static-content flow-name="footer" role="artifact">
601
625
  <fo:block-container font-family="Azo Sans Lt" font-size="10.1pt" height="100%" display-align="after"> <!-- 11.5pt -->
602
626
  <fo:block padding-bottom="13mm" text-align="right" color="rgb(144, 144, 144)">
@@ -2272,7 +2296,6 @@
2272
2296
  </xsl:attribute-set> <!-- feedback-statement-title-style -->
2273
2297
 
2274
2298
  <xsl:template name="refine_feedback-statement-title-style">
2275
-
2276
2299
  </xsl:template>
2277
2300
 
2278
2301
  <xsl:attribute-set name="feedback-statement-p-style">
@@ -8041,16 +8064,23 @@
8041
8064
  </xsl:attribute-set> <!-- quote-style -->
8042
8065
 
8043
8066
  <xsl:template name="refine_quote-style">
8044
- </xsl:template>
8067
+ </xsl:template> <!-- refine_quote-style -->
8045
8068
 
8046
8069
  <xsl:attribute-set name="quote-source-style">
8047
8070
  <xsl:attribute name="text-align">right</xsl:attribute>
8048
8071
  <xsl:attribute name="margin-right">25mm</xsl:attribute>
8049
- </xsl:attribute-set>
8072
+ </xsl:attribute-set> <!-- quote-source-style -->
8050
8073
 
8051
8074
  <xsl:template name="refine_quote-source-style">
8052
8075
  </xsl:template>
8053
8076
 
8077
+ <xsl:attribute-set name="source-style">
8078
+ </xsl:attribute-set> <!-- source-style -->
8079
+
8080
+ <xsl:template name="refine_source-style">
8081
+
8082
+ </xsl:template> <!-- refine_source-style -->
8083
+
8054
8084
  <!-- ====== -->
8055
8085
  <!-- quote -->
8056
8086
  <!-- source -->
@@ -8098,7 +8128,9 @@
8098
8128
  </xsl:if>
8099
8129
  <xsl:choose>
8100
8130
  <xsl:when test="not(parent::quote)">
8101
- <fo:block>
8131
+ <fo:block xsl:use-attribute-sets="source-style">
8132
+ <xsl:call-template name="refine_source-style"/>
8133
+
8102
8134
  <xsl:call-template name="insert_basic_link">
8103
8135
  <xsl:with-param name="element">
8104
8136
  <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
@@ -10191,7 +10223,7 @@
10191
10223
 
10192
10224
  <xsl:template name="refine_fn-reference-style">
10193
10225
  <!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
10194
- <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
10226
+ <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if><!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas'"></xsl:if> -->
10195
10227
  </xsl:template> <!-- refine_fn-reference-style -->
10196
10228
 
10197
10229
  <xsl:attribute-set name="fn-style">
@@ -10202,6 +10234,7 @@
10202
10234
  </xsl:template>
10203
10235
 
10204
10236
  <xsl:attribute-set name="fn-num-style">
10237
+ <xsl:attribute name="role">Reference</xsl:attribute>
10205
10238
  <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
10206
10239
  <xsl:attribute name="font-size">65%</xsl:attribute>
10207
10240
  <xsl:attribute name="vertical-align">super</xsl:attribute>
@@ -10278,33 +10311,16 @@
10278
10311
  <xsl:variable name="ref_id" select="@target"/>
10279
10312
 
10280
10313
  <xsl:variable name="footnote_inline">
10281
- <fo:inline role="Reference">
10282
-
10283
- <xsl:variable name="fn_styles">
10284
- <xsl:choose>
10285
- <xsl:when test="ancestor::mn:bibitem">
10286
- <fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
10287
- <xsl:call-template name="refine_bibitem-note-fn-style"/>
10288
- </fn_styles>
10289
- </xsl:when>
10290
- <xsl:otherwise>
10291
- <fn_styles xsl:use-attribute-sets="fn-num-style">
10292
- <xsl:call-template name="refine_fn-num-style"/>
10293
- </fn_styles>
10294
- </xsl:otherwise>
10295
- </xsl:choose>
10296
- </xsl:variable>
10314
+ <fo:inline xsl:use-attribute-sets="fn-num-style">
10297
10315
 
10298
- <xsl:for-each select="xalan:nodeset($fn_styles)/fn_styles/@*">
10299
- <xsl:copy-of select="."/>
10300
- </xsl:for-each>
10316
+ <xsl:call-template name="refine_fn-num-style"/>
10301
10317
 
10302
10318
  <!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
10303
10319
  <!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
10304
10320
  <xsl:attribute name="padding-right">0.5mm</xsl:attribute>
10305
10321
  </xsl:if> -->
10306
10322
 
10307
- <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
10323
+ <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if>
10308
10324
 
10309
10325
  <xsl:call-template name="insert_basic_link">
10310
10326
  <xsl:with-param name="element">
@@ -10607,32 +10623,6 @@
10607
10623
  <xsl:template name="refine_bibitem-non-normative-list-body-style">
10608
10624
  </xsl:template>
10609
10625
 
10610
- <!-- footnote reference number for bibitem, in the text -->
10611
- <xsl:attribute-set name="bibitem-note-fn-style">
10612
- <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
10613
- <xsl:attribute name="font-size">65%</xsl:attribute>
10614
- <xsl:attribute name="vertical-align">super</xsl:attribute>
10615
- </xsl:attribute-set> <!-- bibitem-note-fn-style -->
10616
-
10617
- <xsl:template name="refine_bibitem-note-fn-style">
10618
- </xsl:template>
10619
-
10620
- <!-- footnote number on the page bottom -->
10621
- <xsl:attribute-set name="bibitem-note-fn-number-style">
10622
- <xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
10623
- <xsl:attribute name="font-size">60%</xsl:attribute>
10624
- <xsl:attribute name="vertical-align">super</xsl:attribute>
10625
- </xsl:attribute-set> <!-- bibitem-note-fn-number-style -->
10626
-
10627
- <!-- footnote body (text) on the page bottom -->
10628
- <xsl:attribute-set name="bibitem-note-fn-body-style">
10629
- <xsl:attribute name="font-size">10pt</xsl:attribute>
10630
- <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
10631
- <xsl:attribute name="start-indent">0pt</xsl:attribute>
10632
- <xsl:attribute name="font-family">Azo Sans Lt</xsl:attribute>
10633
- <xsl:attribute name="color">rgb(168, 170, 173)</xsl:attribute>
10634
- </xsl:attribute-set> <!-- bibitem-note-fn-body-style -->
10635
-
10636
10626
  <xsl:attribute-set name="references-non-normative-style">
10637
10627
  <xsl:attribute name="line-height">145%</xsl:attribute>
10638
10628
  </xsl:attribute-set> <!-- references-non-normative-style -->
data/data/elf/config.yaml CHANGED
@@ -2,15 +2,17 @@
2
2
  flavor: elf
3
3
  owner: EXPRESS Language Foundation
4
4
  base-flavor: iso
5
- copyright-notice: copyright.adoc
6
- i18n-dictionary: i18n.yaml
7
- publisher-logo: logo.svg
8
5
  base-override:
9
- publisher: EXPRESS Language Foundation
10
- publisher_abbr: ELF
11
- presentation-metadata-color-secondary: '#3f65a2'
12
- presentation-metadata-backcover-text: expresslang.org
13
- output-extensions: xml,html,pdf,doc
6
+ filename-attributes:
7
+ copyright-notice: copyright.adoc
8
+ i18n-dictionary: i18n.yaml
9
+ publisher-logo: logo.svg
10
+ value-attributes:
11
+ publisher: EXPRESS Language Foundation
12
+ publisher_abbr: ELF
13
+ presentation-metadata-color-secondary: '#3f65a2'
14
+ presentation-metadata-backcover-text: expresslang.org
15
+ output-extensions: xml,html,pdf,doc
14
16
  doctypes:
15
17
  - taste: standard
16
18
  base: international-standard
@@ -2,15 +2,17 @@
2
2
  flavor: enosema
3
3
  owner: Enosema Foundation
4
4
  base-flavor: iso
5
- copyright-notice: copyright.adoc
6
- i18n-dictionary: i18n.yaml
7
- publisher-logo: logo.svg
8
5
  base-override:
9
- publisher: Enosema Foundation
10
- publisher_abbr: EFS
11
- presentation-metadata-color-secondary: '#007724'
12
- presentation-metadata-backcover-text: enosema.org
13
- output-extensions: xml,html,pdf,doc
6
+ filename-attributes:
7
+ copyright-notice: copyright.adoc
8
+ i18n-dictionary: i18n.yaml
9
+ publisher-logo: logo.svg
10
+ value-attributes:
11
+ publisher: Enosema Foundation
12
+ publisher_abbr: EFS
13
+ presentation-metadata-color-secondary: '#007724'
14
+ presentation-metadata-backcover-text: enosema.org
15
+ output-extensions: xml,html,pdf,doc
14
16
  doctypes:
15
17
  - taste: standard
16
18
  base: international-standard
data/data/icc/config.yaml CHANGED
@@ -2,19 +2,21 @@
2
2
  flavor: icc
3
3
  owner: International Color Consortium
4
4
  base-flavor: iso
5
- copyright-notice: copyright.adoc
6
- i18n-dictionary: i18n.yaml
7
- publisher-logo: icc-full.svg
8
- htmlcoverpage: htmlcoverpage.html
9
- htmlstylesheet-override: htmlstylesheet-override.scss
10
5
  base-override:
11
- publisher: International Color Consortium
12
- publisher_abbr: ICC
13
- presentation-metadata-color-secondary: '#376795'
14
- presentation-metadata-backcover-text: color.org
15
- body-font: Arial, 'Helvetica Neue', Helvetica, sans-serif
16
- header-font: Arial, 'Helvetica Neue', Helvetica, sans-serif
17
- output-extensions: xml,html,pdf,doc
6
+ filename-attributes:
7
+ copyright-notice: copyright.adoc
8
+ i18n-dictionary: i18n.yaml
9
+ publisher-logo: icc-full.svg
10
+ htmlcoverpage: htmlcoverpage.html
11
+ htmlstylesheet-override: htmlstylesheet-override.scss
12
+ value-attributes:
13
+ publisher: International Color Consortium
14
+ publisher_abbr: ICC
15
+ presentation-metadata-color-secondary: '#376795'
16
+ presentation-metadata-backcover-text: color.org
17
+ body-font: Arial, 'Helvetica Neue', Helvetica, sans-serif
18
+ header-font: Arial, 'Helvetica Neue', Helvetica, sans-serif
19
+ output-extensions: xml,html,pdf,doc
18
20
  doctypes:
19
21
  - taste: specification # Specification # The name goes into i18n.yaml
20
22
  base: international-standard
@@ -0,0 +1,26 @@
1
+ ---
2
+ flavor: mbxif
3
+ owner: MBx Interoperability Forum
4
+ base-flavor: ribose
5
+ base-override:
6
+ filename-attributes:
7
+ copyright-notice: copyright.adoc
8
+ i18n-dictionary: i18n.yaml
9
+ publisher-logo: mbxif-logos_mbxif.svg
10
+ pdf-stylesheet-override: mbxif.xsl
11
+ coverpage-image: mbxif-front-cover.pdf
12
+ backpage-image: mbxif-back-cover.pdf
13
+ value-attributes:
14
+ publisher: MBx Interoperability Forum
15
+ publisher_abbr: MBx-IF
16
+ presentation-metadata-color-secondary: '#007724'
17
+ presentation-metadata-backcover-text: https://www.mbx-if.org
18
+ fonts: Nacelle;Nacelle SemiBold;Nacelle Light
19
+ output-extensions: xml,html,pdf,doc
20
+ doctypes:
21
+ - taste: recommended-practices
22
+ base: standard
23
+ - taste: general-guidelines
24
+ base: report
25
+ - taste: test-suite
26
+ base: report
@@ -0,0 +1,36 @@
1
+ == copyright-statement
2
+ === {blank}
3
+ (c) {{ docyear }} MBx Interoperability Forum.
4
+
5
+ All rights reserved. Unless otherwise specified, or required in the context of
6
+ its implementation, no part of this publication may be reproduced or utilized
7
+ otherwise in any form or by any means, electronic or mechanical, including
8
+ photocopying, or posting on the internet or an intranet, without prior written
9
+ permission. Permission can be requested from the MBx Interoperability Forum.
10
+
11
+ == feedback-statement
12
+
13
+ === {blank}
14
+ prostep ivip Association +
15
+ Dolivostrasse 11 +
16
+ D-64293 Darmstadt, Germany +
17
+ Phone: +49-6151-9287-446 +
18
+ Fax: +49-6151-9287-326 +
19
+ Email: mailto:psev@prostep.com[] +
20
+ Internet: https://www.prostep.org[www.prostep.org]
21
+
22
+ AFNeT +
23
+ 30 Rue de Miromesnil +
24
+ 75008 Paris, France +
25
+ Email: mailto:team@afnet.fr[] +
26
+ Internet: http://www.afnet.fr/ +
27
+
28
+ PDES, Inc. +
29
+ 125 King Charles Circle +
30
+ Summerville, SC 29485, USA +
31
+ Phone: +1-843-847-9807 +
32
+ Contact: https://pdesinc.org/contact/[https://pdesinc.org/contact/] +
33
+ Internet: https://pdesinc.org[pdesinc.org]
34
+
35
+ // [align=center]
36
+ // [css color:#007724]#**Connecting the physical and digital worlds**#
@@ -0,0 +1,4 @@
1
+ doctype_dict:
2
+ recommended-practice: Recommended Practice
3
+ general-guidelines: General Guidelines
4
+ test-suite: Test Suite