metanorma-ieee 1.1.5 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ebf4fe11c594e86c71781ac8c2a16d7a815dd04f53a616ee5da3462810adc956
4
- data.tar.gz: dce75faa5c144a9b0d37394f5dcda16c0de22815c148d1e5c21ab6b5fe8a32e8
3
+ metadata.gz: edbc1c2ec6a319e834d202c0911809cf533ef18acf4993408bc710c4c7345c80
4
+ data.tar.gz: f2c83c819e4403d4c656a2638cd1a3e64936522e6451cd0f70dd2e23fae70c45
5
5
  SHA512:
6
- metadata.gz: 82247285c8c984ab7df3fe822d7d29b3d69bef67c380ff8806ad69ca61d5c50adf8b7597cbcdbcffac7cac5038a8ce5347e1d0f8e28fbbabff0fec64b57a368a
7
- data.tar.gz: d61ec1d634b41d38afa224157aadab9c726b1df6c4486621ebacfec91e962677f27fbe06cb8601f887e4def4b3083cda8afe85a8bc99b3c313ee7d8b85c448df
6
+ metadata.gz: 8d44d88f96fdb139a618f2659cb43e4d8554253da43b344a4f8210c9e6aaa968406711b903f6d7a028f7e94012045af990bf03c2a9126f94e9e43e4f859ac553
7
+ data.tar.gz: 0c7931e7442adff8c970f84ea3e2161bba759b3a4cce939ea6423818c658c056d58abe8c966ffed50cbecf3ab6ff1070b899eb32a90b007e873bc3fe29e12785
data/Gemfile CHANGED
@@ -1,11 +1,15 @@
1
1
  Encoding.default_external = Encoding::UTF_8
2
2
  Encoding.default_internal = Encoding::UTF_8
3
3
 
4
- source 'https://rubygems.org'
4
+ source "https://rubygems.org"
5
5
  git_source(:github) { |repo| "https://github.com/#{repo}" }
6
6
 
7
- gemspec
7
+ group :development, :test do
8
+ gem "rspec"
9
+ end
8
10
 
9
- if File.exist? 'Gemfile.devel'
10
- eval File.read('Gemfile.devel'), nil, 'Gemfile.devel' # rubocop:disable Security/Eval
11
+ if File.exist? "Gemfile.devel"
12
+ eval File.read("Gemfile.devel"), nil, "Gemfile.devel" # rubocop:disable Security/Eval
11
13
  end
14
+
15
+ gemspec
@@ -203,7 +203,7 @@ AAAPAAAAAAAAAAAAAAAAACEEAABkcnMvZG93bnJldi54bWxQSwUGAAAAAAQABADzAAAAMwUAAAAA
203
203
  <p class="MsoBodyText"><span lang="EN-US"><o:p>&#xa0;</o:p></span></p>
204
204
 
205
205
  <p class="StyleHeading3Left175" style='margin-right:7.2pt'><span lang="EN-US"
206
- style='font-family:"Arial Black",sans-serif'>Program title to go here<o:p></o:p></span></p>
206
+ style='font-family:"Arial Black",sans-serif'>{{ program }}<o:p></o:p></span></p>
207
207
 
208
208
  <p class="MsoBodyText"><span lang="EN-US"><o:p>&#xa0;</o:p></span></p>
209
209
 
@@ -211,7 +211,7 @@ style='font-family:"Arial Black",sans-serif'>Program title to go here<o:p></o:p>
211
211
  name="_Toc45552042"></a><a name="_Toc45554015"></a><a name="_Toc46424326"></a><a
212
212
  name="_Toc46476187"><span style='mso-bookmark:_Toc46424326'><span
213
213
  style='mso-bookmark:_Toc45554015'><span style='mso-bookmark:_Toc45552042'><span
214
- style='mso-bookmark:_Toc45551699'><span lang="EN-US">Paper title to go here</span></span></span></span></span></a></p>
214
+ style='mso-bookmark:_Toc45551699'><span lang="EN-US">{{ doctitle }}</span></span></span></span></span></a></p>
215
215
 
216
216
  <p class="MsoBodyText"><span lang="EN-US"><o:p>&#xa0;</o:p></span></p>
217
217
 
@@ -222,17 +222,16 @@ by</span></p>
222
222
 
223
223
  <p class="AuthoredbyCover" style='margin-right:7.2pt'><span lang="EN-US"><o:p>&#xa0;</o:p></span></p>
224
224
 
225
+ {% for au in authors_affiliations %}
226
+ {% for name in au[1] %}
225
227
  <p class="Authornames" style='margin-right:7.2pt'><span class="SpellE"><span
226
- lang="EN-US">Firstname</span></span><span lang="EN-US"> <span class="SpellE">Lastname</span></span></p>
228
+ lang="EN-US">{{ name }}</span></span></p>
227
229
 
228
230
  <p class="Authornames" style='margin-right:7.2pt'><i style='mso-bidi-font-style:
229
- normal'><span lang="EN-US">Title<o:p></o:p></span></i></p>
231
+ normal'><span lang="EN-US">{{ au[0] }}<o:p></o:p></span></i></p>
230
232
 
231
- <p class="Authornames" style='margin-right:7.2pt'><span class="SpellE"><span
232
- lang="EN-US">Firstname</span></span><span lang="EN-US"> <span class="SpellE">Lastname</span></span></p>
233
-
234
- <p class="Authornames" style='margin-right:7.2pt'><i style='mso-bidi-font-style:
235
- normal'><span lang="EN-US">Title<o:p></o:p></span></i></p>
233
+ {% endfor %}
234
+ {% endfor %}
236
235
 
237
236
  <p class="names" style='margin-right:7.2pt'><v:shape id="_x0000_s2061"
238
237
  type="#_x0000_t75" style='position:absolute;left:0;text-align:left;
@@ -78,6 +78,7 @@
78
78
  <xsl:choose>
79
79
  <xsl:when test="($doctype = 'standard' or $doctype = 'guide' or $doctype = 'recommended-practice') and $stage = 'draft'">draft</xsl:when>
80
80
  <xsl:when test="($doctype = 'standard' or $doctype = 'guide' or $doctype = 'recommended-practice') and ($stage = 'published' or $stage = 'approved')">standard</xsl:when>
81
+ <xsl:when test="$doctype = 'whitepaper' and $subdoctype = 'icap'">icap-whitepaper</xsl:when>
81
82
  <xsl:otherwise><xsl:value-of select="$doctype"/></xsl:otherwise>
82
83
  </xsl:choose>
83
84
  </xsl:variable>
@@ -782,22 +783,11 @@
782
783
 
783
784
  <fo:flow flow-name="xsl-region-body">
784
785
  <fo:block-container>
785
- <fo:block font-family="Arial Black" font-size="13pt">TRADEMARKS AND DISCLAIMERS</fo:block>
786
- <fo:block font-size="10pt" margin-top="12pt" margin-bottom="12pt" text-align="justify" line-height="{$line-height}">IEEE believes the information in this publication is accurate as of its publication date; such information is subject to change without notice. IEEE is not responsible for any inadvertent errors.</fo:block>
787
- <fo:block font-size="10pt" margin-top="12pt" margin-bottom="12pt" text-align="justify" line-height="{$line-height}">The ideas and proposals in this specification are the respective author’s views and do not represent the views of the affiliated organization.</fo:block>
788
- <fo:block font-family="Arial Black" font-size="13pt">ACKNOWLEDGEMENTS</fo:block>
789
- <fo:block font-family="Calibri">
790
- <fo:block margin-top="12pt" margin-bottom="12pt" line-height="{$line-height}">Special thanks are given to the following reviewers of this paper:</fo:block>
791
- <fo:block font-size="10pt">
792
- <fo:block margin-bottom="6pt">Firstname Lastname</fo:block>
793
- <fo:block margin-bottom="6pt">Firstname Lastname</fo:block>
794
- <fo:block margin-bottom="6pt">Firstname Lastname</fo:block>
795
- <fo:block margin-bottom="6pt">Firstname Lastname</fo:block>
796
- <fo:block margin-bottom="6pt">Firstname Lastname</fo:block>
797
- <fo:block margin-bottom="6pt">Firstname Lastname</fo:block>
798
- <fo:block margin-bottom="6pt">Firstname Lastname</fo:block>
799
- <fo:block margin-bottom="6pt">Firstname Lastname</fo:block>
800
- </fo:block>
786
+
787
+ <fo:block>
788
+ <!-- TRADEMARKS AND DISCLAIMERS -->
789
+ <!-- ACKNOWLEDGEMENTS -->
790
+ <xsl:apply-templates select="/ieee:ieee-standard/ieee:boilerplate/ieee:legal-statement/*[@id = 'boilerplate-tm' or ieee:title = 'Trademarks and Disclaimers' or @id = 'boilerplate-participants' or ieee:title = 'Acknowledgements']" mode="whitepaper"/>
801
791
  </fo:block>
802
792
 
803
793
  <!-- Example:
@@ -810,7 +800,8 @@
810
800
  </fo:block>
811
801
 
812
802
  <!-- NOTICE AND DISCLAIMER OF LIABILITY CONCERNING THE USE OF IEEE SA DOCUMENTS -->
813
- <xsl:apply-templates select="/ieee:ieee-standard/ieee:boilerplate/ieee:legal-statement"/>
803
+ <fo:block break-after="page"/>
804
+ <xsl:apply-templates select="/ieee:ieee-standard/ieee:boilerplate/ieee:legal-statement/*[not(@id = 'boilerplate-tm') and not(ieee:title = 'Trademarks and Disclaimers') and not(@id = 'boilerplate-participants') and not(ieee:title = 'Acknowledgements')]"/>
814
805
 
815
806
  </fo:block-container>
816
807
  </fo:flow>
@@ -912,7 +903,7 @@
912
903
 
913
904
  </fo:static-content>
914
905
  <fo:static-content flow-name="left-region" role="artifact">
915
- <fo:block-container font-family="Arial Black" font-weight="normal" reference-orientation="90" font-size="48pt" text-align="left" color="white">
906
+ <fo:block-container font-family="Arial Black" font-weight="normal" reference-orientation="90" font-size="48pt" text-align="left" color="white" id="__internal_layout__toc_{generate-id()}">
916
907
  <fo:block margin-left="31.4mm" margin-top="20mm">TABLE OF CONTENTS</fo:block>
917
908
  </fo:block-container>
918
909
  </fo:static-content>
@@ -944,6 +935,15 @@
944
935
  <xsl:choose>
945
936
 
946
937
  <xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
938
+
939
+ <item>
940
+ <xsl:apply-templates select="/ieee:ieee-standard/ieee:preface/ieee:introduction" mode="flatxml"/>
941
+ </item>
942
+
943
+ <item>
944
+ <xsl:apply-templates select="/ieee:ieee-standard/ieee:preface/ieee:acknowledgements" mode="flatxml"/>
945
+ </item>
946
+
947
947
  <item>
948
948
  <xsl:apply-templates select="/ieee:ieee-standard/ieee:preface/ieee:abstract" mode="flatxml"/>
949
949
  </item>
@@ -1613,6 +1613,41 @@
1613
1613
  </xsl:choose>
1614
1614
  </xsl:template>
1615
1615
 
1616
+ <xsl:template match="ieee:boilerplate/ieee:legal-statement" mode="whitepaper">
1617
+ <xsl:apply-templates mode="whitepaper"/>
1618
+ </xsl:template>
1619
+
1620
+ <xsl:template match="ieee:boilerplate/ieee:legal-statement/ieee:clause/ieee:title" mode="whitepaper">
1621
+ <fo:block font-family="Arial Black" font-size="13pt"><xsl:apply-templates mode="whitepaper"/></fo:block>
1622
+ </xsl:template>
1623
+
1624
+ <xsl:template match="ieee:boilerplate/ieee:legal-statement/ieee:clause/ieee:title//text()" mode="whitepaper">
1625
+ <xsl:value-of select="java:toUpperCase(java:java.lang.String.new(.))"/>
1626
+ </xsl:template>
1627
+
1628
+ <xsl:template match="ieee:boilerplate/ieee:legal-statement/ieee:clause/ieee:p" mode="whitepaper">
1629
+ <fo:block font-size="10pt" margin-top="12pt" margin-bottom="12pt" text-align="justify" line-height="{$line-height}">
1630
+ <xsl:apply-templates/>
1631
+ </fo:block>
1632
+ </xsl:template>
1633
+
1634
+ <xsl:template match="ieee:boilerplate/ieee:legal-statement/ieee:clause/ieee:clause" mode="whitepaper">
1635
+ <fo:block font-family="Calibri">
1636
+ <xsl:apply-templates mode="whitepaper"/>
1637
+ </fo:block>
1638
+ </xsl:template>
1639
+
1640
+ <xsl:template match="ieee:boilerplate/ieee:legal-statement/ieee:clause/ieee:clause/ieee:p" mode="whitepaper">
1641
+ <fo:block font-size="10pt" margin-bottom="6pt">
1642
+ <xsl:if test="not(preceding-sibling::ieee:p)">
1643
+ <xsl:attribute name="margin-top">12pt</xsl:attribute>
1644
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1645
+ <xsl:attribute name="font-size">inherit</xsl:attribute>
1646
+ </xsl:if>
1647
+ <xsl:apply-templates/>
1648
+ </fo:block>
1649
+ </xsl:template>
1650
+
1616
1651
  <xsl:template match="ieee:abstract">
1617
1652
  <fo:block>
1618
1653
  <xsl:call-template name="setId"/>
@@ -2245,7 +2280,7 @@
2245
2280
  </fo:block>
2246
2281
  </xsl:template>
2247
2282
 
2248
- <xsl:template match="*[local-name() = 'introduction'] | *[local-name() = 'foreword']">
2283
+ <xsl:template match="*[local-name() = 'introduction'] | *[local-name() = 'foreword'] | *[local-name() = 'acknowledgements']">
2249
2284
  <fo:block>
2250
2285
  <xsl:call-template name="setId"/>
2251
2286
  <xsl:apply-templates/>
@@ -2447,7 +2482,7 @@
2447
2482
 
2448
2483
  <fo:list-item>
2449
2484
  <fo:list-item-label end-indent="label-end()">
2450
- <fo:block>
2485
+ <fo:block id="__internal_layout__toc_section_{generate-id()}">
2451
2486
  <xsl:if test="$level = 1">
2452
2487
  <xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
2453
2488
  </xsl:if>
@@ -3451,7 +3486,7 @@
3451
3486
  <xsl:param name="title"/>
3452
3487
  <fo:page-sequence master-reference="cover-page-nonstandard" force-page-count="no-force">
3453
3488
  <fo:static-content flow-name="header" role="artifact">
3454
- <fo:block-container position="absolute" left="65mm"> <!-- top="-2.6mm" -->
3489
+ <fo:block-container position="absolute" left="65mm" id="__internal_layout__bluebox_{generate-id()}"> <!-- top="-2.6mm" -->
3455
3490
  <xsl:if test="$current_template = 'industry-connection-report'">
3456
3491
  <xsl:attribute name="left">76.5mm</xsl:attribute>
3457
3492
  </xsl:if>
@@ -3557,8 +3592,8 @@
3557
3592
  <xsl:attribute name="margin-right">-10mm</xsl:attribute>
3558
3593
  <xsl:text>IEEE CONFORMITY ASSESSMENT PROGRAM (ICAP)</xsl:text>
3559
3594
  </xsl:when>
3560
- <xsl:otherwise>
3561
- PROGRAM TITLE TO GO HERE
3595
+ <xsl:otherwise> <!-- PROGRAM TITLE TO GO HERE -->
3596
+ <xsl:value-of select="/ieee:ieee-standard/ieee:bibdata/ieee:ext/ieee:program"/>
3562
3597
  </xsl:otherwise>
3563
3598
  </xsl:choose>
3564
3599
  </fo:block>
@@ -3568,10 +3603,14 @@
3568
3603
  </fo:block-container>
3569
3604
  <fo:block-container font-family="Calibri Light" font-size="12pt" line-height="1.7">
3570
3605
  <fo:block space-after="6mm">Authored by</fo:block>
3571
- <fo:block>Firstname Lastname</fo:block>
3606
+ <!-- <fo:block>Firstname Lastname</fo:block>
3572
3607
  <fo:block font-style="italic">Title</fo:block>
3573
3608
  <fo:block>Firstname Lastname</fo:block>
3574
- <fo:block font-style="italic">Title</fo:block>
3609
+ <fo:block font-style="italic">Title</fo:block> -->
3610
+ <xsl:for-each select="/ieee:ieee-standard/ieee:bibdata/ieee:contributor[ieee:role[@type = 'author']]">
3611
+ <fo:block><xsl:value-of select="concat(ieee:person/ieee:name/ieee:forename, ' ', ieee:person/ieee:name/ieee:surname)"/></fo:block>
3612
+ <fo:block font-style="italic"><xsl:value-of select="ieee:person/ieee:affiliation/ieee:name"/></fo:block>
3613
+ </xsl:for-each>
3575
3614
  </fo:block-container>
3576
3615
  </fo:flow>
3577
3616
  </fo:page-sequence>
@@ -8100,8 +8139,17 @@
8100
8139
  <xsl:variable name="styles_">
8101
8140
  <xsl:for-each select="xalan:nodeset($styles__)/item">
8102
8141
  <xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
8103
- <xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
8104
- <xsl:if test="$key = 'font-family' or $key = 'color'">
8142
+ <xsl:variable name="value_" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
8143
+ <xsl:variable name="value">
8144
+ <xsl:choose>
8145
+ <!-- if font-size is digits only -->
8146
+ <xsl:when test="$key = 'font-size' and translate($value_, '0123456789', '') = ''"><xsl:value-of select="$value_"/>pt</xsl:when>
8147
+ <xsl:otherwise>
8148
+ <xsl:value-of select="$value_"/>
8149
+ </xsl:otherwise>
8150
+ </xsl:choose>
8151
+ </xsl:variable>
8152
+ <xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color'">
8105
8153
  <style name="{$key}"><xsl:value-of select="$value"/></style>
8106
8154
  </xsl:if>
8107
8155
  </xsl:for-each>
@@ -78,6 +78,7 @@
78
78
  <xsl:choose>
79
79
  <xsl:when test="($doctype = 'standard' or $doctype = 'guide' or $doctype = 'recommended-practice') and $stage = 'draft'">draft</xsl:when>
80
80
  <xsl:when test="($doctype = 'standard' or $doctype = 'guide' or $doctype = 'recommended-practice') and ($stage = 'published' or $stage = 'approved')">standard</xsl:when>
81
+ <xsl:when test="$doctype = 'whitepaper' and $subdoctype = 'icap'">icap-whitepaper</xsl:when>
81
82
  <xsl:otherwise><xsl:value-of select="$doctype"/></xsl:otherwise>
82
83
  </xsl:choose>
83
84
  </xsl:variable>
@@ -782,22 +783,11 @@
782
783
 
783
784
  <fo:flow flow-name="xsl-region-body">
784
785
  <fo:block-container>
785
- <fo:block font-family="Arial Black" font-size="13pt">TRADEMARKS AND DISCLAIMERS</fo:block>
786
- <fo:block font-size="10pt" margin-top="12pt" margin-bottom="12pt" text-align="justify" line-height="{$line-height}">IEEE believes the information in this publication is accurate as of its publication date; such information is subject to change without notice. IEEE is not responsible for any inadvertent errors.</fo:block>
787
- <fo:block font-size="10pt" margin-top="12pt" margin-bottom="12pt" text-align="justify" line-height="{$line-height}">The ideas and proposals in this specification are the respective author’s views and do not represent the views of the affiliated organization.</fo:block>
788
- <fo:block font-family="Arial Black" font-size="13pt">ACKNOWLEDGEMENTS</fo:block>
789
- <fo:block font-family="Calibri">
790
- <fo:block margin-top="12pt" margin-bottom="12pt" line-height="{$line-height}">Special thanks are given to the following reviewers of this paper:</fo:block>
791
- <fo:block font-size="10pt">
792
- <fo:block margin-bottom="6pt">Firstname Lastname</fo:block>
793
- <fo:block margin-bottom="6pt">Firstname Lastname</fo:block>
794
- <fo:block margin-bottom="6pt">Firstname Lastname</fo:block>
795
- <fo:block margin-bottom="6pt">Firstname Lastname</fo:block>
796
- <fo:block margin-bottom="6pt">Firstname Lastname</fo:block>
797
- <fo:block margin-bottom="6pt">Firstname Lastname</fo:block>
798
- <fo:block margin-bottom="6pt">Firstname Lastname</fo:block>
799
- <fo:block margin-bottom="6pt">Firstname Lastname</fo:block>
800
- </fo:block>
786
+
787
+ <fo:block>
788
+ <!-- TRADEMARKS AND DISCLAIMERS -->
789
+ <!-- ACKNOWLEDGEMENTS -->
790
+ <xsl:apply-templates select="/ieee:ieee-standard/ieee:boilerplate/ieee:legal-statement/*[@id = 'boilerplate-tm' or ieee:title = 'Trademarks and Disclaimers' or @id = 'boilerplate-participants' or ieee:title = 'Acknowledgements']" mode="whitepaper"/>
801
791
  </fo:block>
802
792
 
803
793
  <!-- Example:
@@ -810,7 +800,8 @@
810
800
  </fo:block>
811
801
 
812
802
  <!-- NOTICE AND DISCLAIMER OF LIABILITY CONCERNING THE USE OF IEEE SA DOCUMENTS -->
813
- <xsl:apply-templates select="/ieee:ieee-standard/ieee:boilerplate/ieee:legal-statement"/>
803
+ <fo:block break-after="page"/>
804
+ <xsl:apply-templates select="/ieee:ieee-standard/ieee:boilerplate/ieee:legal-statement/*[not(@id = 'boilerplate-tm') and not(ieee:title = 'Trademarks and Disclaimers') and not(@id = 'boilerplate-participants') and not(ieee:title = 'Acknowledgements')]"/>
814
805
 
815
806
  </fo:block-container>
816
807
  </fo:flow>
@@ -912,7 +903,7 @@
912
903
 
913
904
  </fo:static-content>
914
905
  <fo:static-content flow-name="left-region" role="artifact">
915
- <fo:block-container font-family="Arial Black" font-weight="normal" reference-orientation="90" font-size="48pt" text-align="left" color="white">
906
+ <fo:block-container font-family="Arial Black" font-weight="normal" reference-orientation="90" font-size="48pt" text-align="left" color="white" id="__internal_layout__toc_{generate-id()}">
916
907
  <fo:block margin-left="31.4mm" margin-top="20mm">TABLE OF CONTENTS</fo:block>
917
908
  </fo:block-container>
918
909
  </fo:static-content>
@@ -944,6 +935,15 @@
944
935
  <xsl:choose>
945
936
 
946
937
  <xsl:when test="$current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report'">
938
+
939
+ <item>
940
+ <xsl:apply-templates select="/ieee:ieee-standard/ieee:preface/ieee:introduction" mode="flatxml"/>
941
+ </item>
942
+
943
+ <item>
944
+ <xsl:apply-templates select="/ieee:ieee-standard/ieee:preface/ieee:acknowledgements" mode="flatxml"/>
945
+ </item>
946
+
947
947
  <item>
948
948
  <xsl:apply-templates select="/ieee:ieee-standard/ieee:preface/ieee:abstract" mode="flatxml"/>
949
949
  </item>
@@ -1613,6 +1613,41 @@
1613
1613
  </xsl:choose>
1614
1614
  </xsl:template>
1615
1615
 
1616
+ <xsl:template match="ieee:boilerplate/ieee:legal-statement" mode="whitepaper">
1617
+ <xsl:apply-templates mode="whitepaper"/>
1618
+ </xsl:template>
1619
+
1620
+ <xsl:template match="ieee:boilerplate/ieee:legal-statement/ieee:clause/ieee:title" mode="whitepaper">
1621
+ <fo:block font-family="Arial Black" font-size="13pt"><xsl:apply-templates mode="whitepaper"/></fo:block>
1622
+ </xsl:template>
1623
+
1624
+ <xsl:template match="ieee:boilerplate/ieee:legal-statement/ieee:clause/ieee:title//text()" mode="whitepaper">
1625
+ <xsl:value-of select="java:toUpperCase(java:java.lang.String.new(.))"/>
1626
+ </xsl:template>
1627
+
1628
+ <xsl:template match="ieee:boilerplate/ieee:legal-statement/ieee:clause/ieee:p" mode="whitepaper">
1629
+ <fo:block font-size="10pt" margin-top="12pt" margin-bottom="12pt" text-align="justify" line-height="{$line-height}">
1630
+ <xsl:apply-templates/>
1631
+ </fo:block>
1632
+ </xsl:template>
1633
+
1634
+ <xsl:template match="ieee:boilerplate/ieee:legal-statement/ieee:clause/ieee:clause" mode="whitepaper">
1635
+ <fo:block font-family="Calibri">
1636
+ <xsl:apply-templates mode="whitepaper"/>
1637
+ </fo:block>
1638
+ </xsl:template>
1639
+
1640
+ <xsl:template match="ieee:boilerplate/ieee:legal-statement/ieee:clause/ieee:clause/ieee:p" mode="whitepaper">
1641
+ <fo:block font-size="10pt" margin-bottom="6pt">
1642
+ <xsl:if test="not(preceding-sibling::ieee:p)">
1643
+ <xsl:attribute name="margin-top">12pt</xsl:attribute>
1644
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1645
+ <xsl:attribute name="font-size">inherit</xsl:attribute>
1646
+ </xsl:if>
1647
+ <xsl:apply-templates/>
1648
+ </fo:block>
1649
+ </xsl:template>
1650
+
1616
1651
  <xsl:template match="ieee:abstract">
1617
1652
  <fo:block>
1618
1653
  <xsl:call-template name="setId"/>
@@ -2245,7 +2280,7 @@
2245
2280
  </fo:block>
2246
2281
  </xsl:template>
2247
2282
 
2248
- <xsl:template match="*[local-name() = 'introduction'] | *[local-name() = 'foreword']">
2283
+ <xsl:template match="*[local-name() = 'introduction'] | *[local-name() = 'foreword'] | *[local-name() = 'acknowledgements']">
2249
2284
  <fo:block>
2250
2285
  <xsl:call-template name="setId"/>
2251
2286
  <xsl:apply-templates/>
@@ -2447,7 +2482,7 @@
2447
2482
 
2448
2483
  <fo:list-item>
2449
2484
  <fo:list-item-label end-indent="label-end()">
2450
- <fo:block>
2485
+ <fo:block id="__internal_layout__toc_section_{generate-id()}">
2451
2486
  <xsl:if test="$level = 1">
2452
2487
  <xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
2453
2488
  </xsl:if>
@@ -3451,7 +3486,7 @@
3451
3486
  <xsl:param name="title"/>
3452
3487
  <fo:page-sequence master-reference="cover-page-nonstandard" force-page-count="no-force">
3453
3488
  <fo:static-content flow-name="header" role="artifact">
3454
- <fo:block-container position="absolute" left="65mm"> <!-- top="-2.6mm" -->
3489
+ <fo:block-container position="absolute" left="65mm" id="__internal_layout__bluebox_{generate-id()}"> <!-- top="-2.6mm" -->
3455
3490
  <xsl:if test="$current_template = 'industry-connection-report'">
3456
3491
  <xsl:attribute name="left">76.5mm</xsl:attribute>
3457
3492
  </xsl:if>
@@ -3557,8 +3592,8 @@
3557
3592
  <xsl:attribute name="margin-right">-10mm</xsl:attribute>
3558
3593
  <xsl:text>IEEE CONFORMITY ASSESSMENT PROGRAM (ICAP)</xsl:text>
3559
3594
  </xsl:when>
3560
- <xsl:otherwise>
3561
- PROGRAM TITLE TO GO HERE
3595
+ <xsl:otherwise> <!-- PROGRAM TITLE TO GO HERE -->
3596
+ <xsl:value-of select="/ieee:ieee-standard/ieee:bibdata/ieee:ext/ieee:program"/>
3562
3597
  </xsl:otherwise>
3563
3598
  </xsl:choose>
3564
3599
  </fo:block>
@@ -3568,10 +3603,14 @@
3568
3603
  </fo:block-container>
3569
3604
  <fo:block-container font-family="Calibri Light" font-size="12pt" line-height="1.7">
3570
3605
  <fo:block space-after="6mm">Authored by</fo:block>
3571
- <fo:block>Firstname Lastname</fo:block>
3606
+ <!-- <fo:block>Firstname Lastname</fo:block>
3572
3607
  <fo:block font-style="italic">Title</fo:block>
3573
3608
  <fo:block>Firstname Lastname</fo:block>
3574
- <fo:block font-style="italic">Title</fo:block>
3609
+ <fo:block font-style="italic">Title</fo:block> -->
3610
+ <xsl:for-each select="/ieee:ieee-standard/ieee:bibdata/ieee:contributor[ieee:role[@type = 'author']]">
3611
+ <fo:block><xsl:value-of select="concat(ieee:person/ieee:name/ieee:forename, ' ', ieee:person/ieee:name/ieee:surname)"/></fo:block>
3612
+ <fo:block font-style="italic"><xsl:value-of select="ieee:person/ieee:affiliation/ieee:name"/></fo:block>
3613
+ </xsl:for-each>
3575
3614
  </fo:block-container>
3576
3615
  </fo:flow>
3577
3616
  </fo:page-sequence>
@@ -8100,8 +8139,17 @@
8100
8139
  <xsl:variable name="styles_">
8101
8140
  <xsl:for-each select="xalan:nodeset($styles__)/item">
8102
8141
  <xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
8103
- <xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
8104
- <xsl:if test="$key = 'font-family' or $key = 'color'">
8142
+ <xsl:variable name="value_" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
8143
+ <xsl:variable name="value">
8144
+ <xsl:choose>
8145
+ <!-- if font-size is digits only -->
8146
+ <xsl:when test="$key = 'font-size' and translate($value_, '0123456789', '') = ''"><xsl:value-of select="$value_"/>pt</xsl:when>
8147
+ <xsl:otherwise>
8148
+ <xsl:value-of select="$value_"/>
8149
+ </xsl:otherwise>
8150
+ </xsl:choose>
8151
+ </xsl:variable>
8152
+ <xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color'">
8105
8153
  <style name="{$key}"><xsl:value-of select="$value"/></style>
8106
8154
  </xsl:if>
8107
8155
  </xsl:for-each>
@@ -50,7 +50,7 @@ module IsoDoc
50
50
  ret = std_docid_sdo(m[:text]) +
51
51
  "<span class='std_docNumber'>#{m[:num]}</span>"
52
52
  m[:yr] and ret += ":<span class='std_year'>#{m[:yr]}</span>"
53
- ret
53
+ ret.gsub(%r{</span>(\p{Zs}+)<}, "\\1</span><")
54
54
  end
55
55
 
56
56
  def std_docid_sdo(text)
@@ -63,7 +63,7 @@ module IsoDoc
63
63
  found = true
64
64
  "<span class='#{k}'>#{x}</span>"
65
65
  else x end
66
- end.reverse.join
66
+ end.reverse.join.gsub(%r{</span>(\p{Zs}+)<}, "\\1</span><")
67
67
  end
68
68
  end
69
69
  end
@@ -49,6 +49,12 @@ module IsoDoc
49
49
  tc(xml)
50
50
  wg(xml)
51
51
  bg(xml)
52
+ program(xml)
53
+ end
54
+
55
+ def program(xml)
56
+ p = xml.at(ns("//bibdata/ext/program")) and
57
+ set(:program, p.text)
52
58
  end
53
59
 
54
60
  def society(xml)
@@ -28,7 +28,7 @@ module IsoDoc
28
28
  def convert(input_filename, file = nil, debug = false,
29
29
  output_filename = nil)
30
30
  file ||= File.read(input_filename, encoding: "utf-8")
31
- docxml = Nokogiri::XML(file) { |config| config.huge }
31
+ docxml = Nokogiri::XML(file, &:huge)
32
32
  doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text
33
33
  if @wp && doctype == "whitepaper"
34
34
  @wp.convert(input_filename, file, debug, output_filename)
@@ -914,44 +914,47 @@
914
914
  -->
915
915
  <define name="image">
916
916
  <element name="image">
917
- <attribute name="id">
918
- <data type="ID"/>
917
+ <ref name="Image"/>
918
+ </element>
919
+ </define>
920
+ <define name="Image">
921
+ <attribute name="id">
922
+ <data type="ID"/>
923
+ </attribute>
924
+ <attribute name="src">
925
+ <data type="anyURI"/>
926
+ </attribute>
927
+ <attribute name="mimetype"/>
928
+ <optional>
929
+ <attribute name="filename"/>
930
+ </optional>
931
+ <optional>
932
+ <attribute name="width">
933
+ <choice>
934
+ <data type="int"/>
935
+ <value>auto</value>
936
+ </choice>
919
937
  </attribute>
920
- <attribute name="src">
938
+ </optional>
939
+ <optional>
940
+ <attribute name="height">
941
+ <choice>
942
+ <data type="int"/>
943
+ <value>auto</value>
944
+ </choice>
945
+ </attribute>
946
+ </optional>
947
+ <optional>
948
+ <attribute name="alt"/>
949
+ </optional>
950
+ <optional>
951
+ <attribute name="title"/>
952
+ </optional>
953
+ <optional>
954
+ <attribute name="longdesc">
921
955
  <data type="anyURI"/>
922
956
  </attribute>
923
- <attribute name="mimetype"/>
924
- <optional>
925
- <attribute name="filename"/>
926
- </optional>
927
- <optional>
928
- <attribute name="width">
929
- <choice>
930
- <data type="int"/>
931
- <value>auto</value>
932
- </choice>
933
- </attribute>
934
- </optional>
935
- <optional>
936
- <attribute name="height">
937
- <choice>
938
- <data type="int"/>
939
- <value>auto</value>
940
- </choice>
941
- </attribute>
942
- </optional>
943
- <optional>
944
- <attribute name="alt"/>
945
- </optional>
946
- <optional>
947
- <attribute name="title"/>
948
- </optional>
949
- <optional>
950
- <attribute name="longdesc">
951
- <data type="anyURI"/>
952
- </attribute>
953
- </optional>
954
- </element>
957
+ </optional>
955
958
  </define>
956
959
  <define name="video">
957
960
  <element name="video">
@@ -348,6 +348,9 @@
348
348
  <zeroOrMore>
349
349
  <ref name="contact"/>
350
350
  </zeroOrMore>
351
+ <optional>
352
+ <ref name="logo"/>
353
+ </optional>
351
354
  </element>
352
355
  </define>
353
356
  <define name="orgname">
@@ -366,6 +369,11 @@
366
369
  </choice>
367
370
  </element>
368
371
  </define>
372
+ <define name="logo">
373
+ <element name="logo">
374
+ <ref name="image"/>
375
+ </element>
376
+ </define>
369
377
  <define name="NameWithVariants">
370
378
  <element name="primary">
371
379
  <ref name="LocalizedString"/>
@@ -942,6 +950,7 @@
942
950
  <value>obsoleted</value>
943
951
  <value>confirmed</value>
944
952
  <value>updated</value>
953
+ <value>corrected</value>
945
954
  <value>issued</value>
946
955
  <value>transmitted</value>
947
956
  <value>copied</value>
@@ -33,6 +33,7 @@ module Metanorma
33
33
  xml.docnumber node.attr("docnumber")
34
34
  end
35
35
 
36
+ =begin
36
37
  def metadata_publisher(node, xml)
37
38
  publishers = node.attr("publisher") || "IEEE"
38
39
  csv_split(publishers).each do |p|
@@ -44,7 +45,13 @@ module Metanorma
44
45
  end
45
46
  end
46
47
  end
48
+ =end
47
49
 
50
+ def default_publisher
51
+ "IEEE"
52
+ end
53
+
54
+ =begin
48
55
  def metadata_copyright(node, xml)
49
56
  publishers = node.attr("copyright-holder") || node.attr("publisher") ||
50
57
  "IEEE"
@@ -64,6 +71,7 @@ module Metanorma
64
71
  end
65
72
  end
66
73
  end
74
+ =end
67
75
 
68
76
  def metadata_status(node, xml)
69
77
  status = node.attr("status") || node.attr("docstage") ||
@@ -93,11 +101,15 @@ module Metanorma
93
101
  def metadata_ext(node, xml)
94
102
  super
95
103
  structured_id(node, xml)
104
+ program(node, xml)
96
105
  end
97
106
 
98
- def structured_id(node, xml)
99
- return unless node.attr("docnumber")
107
+ def program(node, xml)
108
+ p = node.attr("program") and xml.program p
109
+ end
100
110
 
111
+ def structured_id(node, xml)
112
+ node.attr("docnumber") or return
101
113
  xml.structuredidentifier do |i|
102
114
  i.docnumber node.attr("docnumber")
103
115
  i.agency "IEEE"
@@ -17,7 +17,7 @@
17
17
  these elements; we just want one namespace for any child grammars
18
18
  of this.
19
19
  -->
20
- <!-- VERSION v1.2.6 -->
20
+ <!-- VERSION v1.2.8 -->
21
21
  <grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
22
22
  <include href="reqt.rng"/>
23
23
  <include href="basicdoc.rng">
@@ -1054,6 +1054,17 @@
1054
1054
  <ref name="date_inline"/>
1055
1055
  </choice>
1056
1056
  </define>
1057
+ <define name="PureTextElement" combine="choice">
1058
+ <ref name="passthrough_inline"/>
1059
+ </define>
1060
+ <define name="passthrough_inline">
1061
+ <element name="passthrough">
1062
+ <optional>
1063
+ <attribute name="formats"/>
1064
+ </optional>
1065
+ <text/>
1066
+ </element>
1067
+ </define>
1057
1068
  <define name="add">
1058
1069
  <element name="add">
1059
1070
  <choice>
@@ -1092,6 +1103,9 @@
1092
1103
  <optional>
1093
1104
  <attribute name="style"/>
1094
1105
  </optional>
1106
+ <optional>
1107
+ <attribute name="custom-charset"/>
1108
+ </optional>
1095
1109
  <oneOrMore>
1096
1110
  <ref name="TextElement"/>
1097
1111
  </oneOrMore>
@@ -1394,6 +1408,9 @@
1394
1408
  <optional>
1395
1409
  <attribute name="number"/>
1396
1410
  </optional>
1411
+ <optional>
1412
+ <attribute name="branch-number"/>
1413
+ </optional>
1397
1414
  <optional>
1398
1415
  <attribute name="obligation">
1399
1416
  <choice>
@@ -1617,6 +1634,9 @@
1617
1634
  <optional>
1618
1635
  <attribute name="number"/>
1619
1636
  </optional>
1637
+ <optional>
1638
+ <attribute name="branch-number"/>
1639
+ </optional>
1620
1640
  <optional>
1621
1641
  <attribute name="type"/>
1622
1642
  </optional>
@@ -1668,6 +1688,9 @@
1668
1688
  <optional>
1669
1689
  <attribute name="number"/>
1670
1690
  </optional>
1691
+ <optional>
1692
+ <attribute name="branch-number"/>
1693
+ </optional>
1671
1694
  <optional>
1672
1695
  <ref name="section-title"/>
1673
1696
  </optional>
@@ -1765,6 +1788,9 @@
1765
1788
  <optional>
1766
1789
  <attribute name="number"/>
1767
1790
  </optional>
1791
+ <optional>
1792
+ <attribute name="branch-number"/>
1793
+ </optional>
1768
1794
  <optional>
1769
1795
  <attribute name="obligation">
1770
1796
  <choice>
@@ -75,6 +75,9 @@
75
75
  <optional>
76
76
  <ref name="holdstatus"/>
77
77
  </optional>
78
+ <optional>
79
+ <ref name="program"/>
80
+ </optional>
78
81
  </define>
79
82
  </include>
80
83
  <define name="standard_status">
@@ -114,6 +117,11 @@
114
117
  </choice>
115
118
  </element>
116
119
  </define>
120
+ <define name="program">
121
+ <element name="program">
122
+ <text/>
123
+ </element>
124
+ </define>
117
125
  <define name="BibliographicDateType" combine="choice">
118
126
  <value>feedback-ended</value>
119
127
  </define>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module IEEE
3
- VERSION = "1.1.5".freeze
3
+ VERSION = "1.1.7".freeze
4
4
  end
5
5
  end
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.require_paths = ["lib"]
26
26
  spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
27
27
 
28
- spec.add_dependency "metanorma-standoc", "~> 2.6.0"
28
+ spec.add_dependency "metanorma-standoc", "~> 2.7.0"
29
29
  spec.add_dependency "mnconvert", "~> 1.20"
30
30
  #spec.add_dependency "pubid-ieee", "~> 0.1.1"
31
31
  #spec.add_dependency "pubid-iso", "~> 0.5.3"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ieee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-06 00:00:00.000000000 Z
11
+ date: 2023-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.6.0
19
+ version: 2.7.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.6.0
26
+ version: 2.7.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mnconvert
29
29
  requirement: !ruby/object:Gem::Requirement