metanorma-iec 2.2.10 → 2.2.12

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: 62538b194115d8110ff19c678faa2ca81d31ec0c3c01f4f37d73525aaa8f6080
4
- data.tar.gz: d4aef599c46d1f75868b047f9c9011892f9a4faae97f8045b5e8faab4c640ef2
3
+ metadata.gz: cd8549ad9f88923dcaf3a906ab9b387a2f093e159b15104eae3239e9beb2f7ba
4
+ data.tar.gz: fb9ff030c0bcb45e56db5e9534c04dc0781932a0e933d6f373c02aa6e4f015f7
5
5
  SHA512:
6
- metadata.gz: ddbbff3240bec3f5f8b584c3e6442a52c702d04445079833c7f5ff698b764bae82ab64edb78e425df7aeef82167458fab177c956d8527add1ba7046fb40f765c
7
- data.tar.gz: de52dc41380bbe7585d0ecb4297030753256b08972e59acdfb6ae6b317189af3d88d231978abb165be8336ad29606a0010930ce95479122dca6069116cebee42
6
+ metadata.gz: 1377ff85a12247837f825c89e61716ab6a44351ab3ff1a01b5888439e06736e82b12346dabf7402a6a032c9b62ea8ad621422dbb9a61fbaf59cb86ebc5683a0c
7
+ data.tar.gz: e6eb895d37129a5f673a9dbd3d067faf51e318817f1a226aafa87077e150d24f64c2b1e0dbe8668bee10d166823e42af661e0a2dca5a1591e53cee2c637feffb
@@ -3131,6 +3131,14 @@
3131
3131
  </xsl:attribute-set> <!-- formula-stem-number-style -->
3132
3132
  <!-- End Formula's styles -->
3133
3133
 
3134
+ <xsl:template name="refine_formula-stem-number-style">
3135
+
3136
+ <xsl:if test="ancestor::*[local-name() = 'table']">
3137
+ <xsl:attribute name="margin-right">0mm</xsl:attribute>
3138
+ </xsl:if>
3139
+
3140
+ </xsl:template>
3141
+
3134
3142
  <xsl:attribute-set name="image-style">
3135
3143
  <xsl:attribute name="text-align">center</xsl:attribute>
3136
3144
 
@@ -3642,13 +3650,13 @@
3642
3650
 
3643
3651
  <xsl:template name="processPrefaceSectionsDefault_Contents">
3644
3652
  <xsl:variable name="nodes_preface_">
3645
- <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
3653
+ <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition' or @type = 'toc')]">
3646
3654
  <node id="{@id}"/>
3647
3655
  </xsl:for-each>
3648
3656
  </xsl:variable>
3649
3657
  <xsl:variable name="nodes_preface" select="xalan:nodeset($nodes_preface_)"/>
3650
3658
 
3651
- <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
3659
+ <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition' or @type = 'toc')]">
3652
3660
  <xsl:sort select="@displayorder" data-type="number"/>
3653
3661
 
3654
3662
  <!-- process Section's title -->
@@ -3682,12 +3690,12 @@
3682
3690
  <xsl:apply-templates select="." mode="contents"/>
3683
3691
  </xsl:for-each>
3684
3692
 
3685
- <xsl:for-each select="/*/*[local-name()='annex']">
3693
+ <!-- <xsl:for-each select="/*/*[local-name()='annex']">
3686
3694
  <xsl:sort select="@displayorder" data-type="number"/>
3687
3695
  <xsl:apply-templates select="." mode="contents"/>
3688
- </xsl:for-each>
3696
+ </xsl:for-each> -->
3689
3697
 
3690
- <xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true') and not(*[local-name()='references'][@normative='true'])][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) &gt; 0] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) &gt; 0]">
3698
+ <xsl:for-each select="/*/*[local-name()='annex'] | /*/*[local-name()='bibliography']/*[not(@normative='true') and not(*[local-name()='references'][@normative='true'])][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) &gt; 0] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) &gt; 0]">
3691
3699
  <xsl:sort select="@displayorder" data-type="number"/>
3692
3700
  <xsl:apply-templates select="." mode="contents"/>
3693
3701
  </xsl:for-each>
@@ -4056,7 +4064,7 @@
4056
4064
  </xsl:attribute>
4057
4065
  </xsl:for-each>
4058
4066
 
4059
- <xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
4067
+ <xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
4060
4068
  <xsl:if test="$isNoteOrFnExist = 'true'">
4061
4069
  <xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
4062
4070
  </xsl:if>
@@ -4100,7 +4108,7 @@
4100
4108
  <xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
4101
4109
  </xsl:when>
4102
4110
  <xsl:otherwise>
4103
- <xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
4111
+ <xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'example') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
4104
4112
  </xsl:otherwise>
4105
4113
  </xsl:choose>
4106
4114
 
@@ -4145,7 +4153,7 @@
4145
4153
  <fo:table-row>
4146
4154
  <fo:table-cell column-number="2">
4147
4155
  <xsl:copy-of select="$table-preamble"/>
4148
- <fo:block>
4156
+ <fo:block role="SKIP">
4149
4157
  <xsl:call-template name="setTrackChangesStyles">
4150
4158
  <xsl:with-param name="isAdded" select="$isAdded"/>
4151
4159
  <xsl:with-param name="isDeleted" select="$isDeleted"/>
@@ -4193,7 +4201,7 @@
4193
4201
  <xsl:param name="continued"/>
4194
4202
  <xsl:if test="normalize-space() != ''">
4195
4203
 
4196
- <fo:block xsl:use-attribute-sets="table-name-style">
4204
+ <fo:block xsl:use-attribute-sets="table-name-style" role="SKIP">
4197
4205
 
4198
4206
  <xsl:call-template name="refine_table-name-style">
4199
4207
  <xsl:with-param name="continued" select="$continued"/>
@@ -4209,10 +4217,10 @@
4209
4217
  </xsl:choose>
4210
4218
 
4211
4219
  <xsl:if test="$continued = 'true'">
4212
- <fo:inline font-weight="bold" font-style="normal">
4220
+ <fo:inline font-weight="bold" font-style="normal" role="SKIP">
4213
4221
  <fo:retrieve-table-marker retrieve-class-name="table_number"/>
4214
4222
  </fo:inline>
4215
- <fo:inline font-weight="normal" font-style="italic">
4223
+ <fo:inline font-weight="normal" font-style="italic" role="SKIP">
4216
4224
  <xsl:text> </xsl:text>
4217
4225
  <fo:retrieve-table-marker retrieve-class-name="table_continued"/>
4218
4226
  </fo:inline>
@@ -4592,8 +4600,8 @@
4592
4600
  <xsl:template name="table-header-title">
4593
4601
  <xsl:param name="cols-count"/>
4594
4602
  <!-- row for title -->
4595
- <fo:table-row>
4596
- <fo:table-cell number-columns-spanned="{$cols-count}" border-left="1.5pt solid white" border-right="1.5pt solid white" border-top="1.5pt solid white" border-bottom="1.5pt solid black">
4603
+ <fo:table-row role="SKIP">
4604
+ <fo:table-cell number-columns-spanned="{$cols-count}" border-left="1.5pt solid white" border-right="1.5pt solid white" border-top="1.5pt solid white" border-bottom="1.5pt solid black" role="SKIP">
4597
4605
 
4598
4606
  <xsl:call-template name="refine_table-header-title-style"/>
4599
4607
 
@@ -4602,7 +4610,7 @@
4602
4610
  </xsl:apply-templates>
4603
4611
 
4604
4612
  <xsl:if test="not(ancestor::*[local-name()='table']/*[local-name()='name'])"> <!-- to prevent empty fo:table-cell in case of missing table's name -->
4605
- <fo:block/>
4613
+ <fo:block role="SKIP"/>
4606
4614
  </xsl:if>
4607
4615
 
4608
4616
  </fo:table-cell>
@@ -4642,7 +4650,7 @@
4642
4650
  <xsl:param name="colwidths"/>
4643
4651
  <xsl:param name="colgroup"/>
4644
4652
 
4645
- <xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
4653
+ <xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='example'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
4646
4654
 
4647
4655
  <xsl:variable name="isNoteOrFnExistShowAfterTable">
4648
4656
 
@@ -4709,7 +4717,7 @@
4709
4717
  <!-- fn will be processed inside 'note' processing -->
4710
4718
 
4711
4719
  <xsl:if test="../*[local-name()='note']">
4712
- <fo:block margin-bottom="6pt"> </fo:block>
4720
+ <fo:block margin-bottom="6pt" role="SKIP"> </fo:block>
4713
4721
  </xsl:if>
4714
4722
 
4715
4723
  <!-- for BSI (not PAS) display Notes before footnotes -->
@@ -4719,6 +4727,7 @@
4719
4727
  <xsl:apply-templates select="../*[local-name()='p']"/>
4720
4728
  <xsl:apply-templates select="../*[local-name()='dl']"/>
4721
4729
  <xsl:apply-templates select="../*[local-name()='note']"/>
4730
+ <xsl:apply-templates select="../*[local-name()='example']"/>
4722
4731
  <xsl:apply-templates select="../*[local-name()='source']"/>
4723
4732
 
4724
4733
  <xsl:variable name="isDisplayRowSeparator">
@@ -4728,7 +4737,7 @@
4728
4737
 
4729
4738
  <!-- horizontal row separator -->
4730
4739
  <xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
4731
- <xsl:if test="../*[local-name()='note'] and normalize-space($table_fn_block) != ''">
4740
+ <xsl:if test="(../*[local-name()='note'] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
4732
4741
  <fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
4733
4742
 
4734
4743
  <xsl:call-template name="setBordersTableArray"/>
@@ -4808,24 +4817,24 @@
4808
4817
  <xsl:variable name="title_start" select="ancestor::*[local-name()='table'][1]/*[local-name()='name']/node()[1][self::text()]"/>
4809
4818
  <xsl:variable name="table_number" select="substring-before($title_start, '—')"/>
4810
4819
 
4811
- <fo:table-row height="0" keep-with-next.within-page="always">
4812
- <fo:table-cell>
4820
+ <fo:table-row height="0" keep-with-next.within-page="always" role="SKIP">
4821
+ <fo:table-cell role="SKIP">
4813
4822
 
4814
4823
  <fo:marker marker-class-name="table_number"/>
4815
4824
  <fo:marker marker-class-name="table_continued"/>
4816
4825
 
4817
- <fo:block/>
4826
+ <fo:block role="SKIP"/>
4818
4827
  </fo:table-cell>
4819
4828
  </fo:table-row>
4820
- <fo:table-row height="0" keep-with-next.within-page="always">
4821
- <fo:table-cell>
4829
+ <fo:table-row height="0" keep-with-next.within-page="always" role="SKIP">
4830
+ <fo:table-cell role="SKIP">
4822
4831
 
4823
4832
  <fo:marker marker-class-name="table_number"><xsl:value-of select="normalize-space(translate($table_number, ' ', ' '))"/></fo:marker>
4824
4833
 
4825
4834
  <fo:marker marker-class-name="table_continued">
4826
4835
  <xsl:value-of select="$title_continued"/>
4827
4836
  </fo:marker>
4828
- <fo:block/>
4837
+ <fo:block role="SKIP"/>
4829
4838
  </fo:table-cell>
4830
4839
  </fo:table-row>
4831
4840
 
@@ -4966,7 +4975,7 @@
4966
4975
 
4967
4976
  <xsl:call-template name="refine_table-header-cell-style"/>
4968
4977
 
4969
- <fo:block>
4978
+ <fo:block role="SKIP">
4970
4979
  <xsl:apply-templates/>
4971
4980
  </fo:block>
4972
4981
  </fo:table-cell>
@@ -5019,7 +5028,7 @@
5019
5028
  <xsl:attribute name="text-align">left</xsl:attribute>
5020
5029
  </xsl:if>
5021
5030
 
5022
- <fo:block>
5031
+ <fo:block role="SKIP">
5023
5032
 
5024
5033
  <xsl:if test="$isGenerateTableIF = 'true'">
5025
5034
  <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
@@ -5033,13 +5042,13 @@
5033
5042
  </fo:table-cell>
5034
5043
  </xsl:template> <!-- td -->
5035
5044
 
5036
- <xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2">
5045
+ <xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
5037
5046
 
5038
5047
  <fo:block xsl:use-attribute-sets="table-note-style">
5039
5048
 
5040
5049
  <xsl:call-template name="refine_table-note-style"/>
5041
5050
 
5042
- <!-- Table's note name (NOTE, for example) -->
5051
+ <!-- Table's note/example name (NOTE, for example) -->
5043
5052
  <fo:inline xsl:use-attribute-sets="table-note-name-style">
5044
5053
 
5045
5054
  <xsl:call-template name="refine_table-note-name-style"/>
@@ -5053,7 +5062,7 @@
5053
5062
 
5054
5063
  </xsl:template> <!-- table/note -->
5055
5064
 
5056
- <xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" priority="2">
5065
+ <xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
5057
5066
  <xsl:apply-templates/>
5058
5067
  </xsl:template>
5059
5068
 
@@ -5894,7 +5903,7 @@
5894
5903
  -->
5895
5904
  <fo:table-row>
5896
5905
  <fo:table-cell number-columns-spanned="2">
5897
- <fo:block>
5906
+ <fo:block role="SKIP">
5898
5907
  <xsl:call-template name="note"/>
5899
5908
  </fo:block>
5900
5909
  </fo:table-cell>
@@ -5959,7 +5968,7 @@
5959
5968
 
5960
5969
  <xsl:call-template name="refine_dt-cell-style"/>
5961
5970
 
5962
- <fo:block xsl:use-attribute-sets="dt-block-style">
5971
+ <fo:block xsl:use-attribute-sets="dt-block-style" role="SKIP">
5963
5972
  <xsl:copy-of select="@id"/>
5964
5973
 
5965
5974
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -5989,7 +5998,7 @@
5989
5998
 
5990
5999
  <xsl:call-template name="refine_dd-cell-style"/>
5991
6000
 
5992
- <fo:block>
6001
+ <fo:block role="SKIP">
5993
6002
 
5994
6003
  <xsl:if test="$isGenerateTableIF = 'true'">
5995
6004
  <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
@@ -6131,10 +6140,15 @@
6131
6140
  <!-- ========================= -->
6132
6141
  <xsl:template match="*[local-name()='em']">
6133
6142
  <fo:inline font-style="italic">
6143
+ <xsl:call-template name="refine_italic_style"/>
6134
6144
  <xsl:apply-templates/>
6135
6145
  </fo:inline>
6136
6146
  </xsl:template>
6137
6147
 
6148
+ <xsl:template name="refine_italic_style">
6149
+
6150
+ </xsl:template>
6151
+
6138
6152
  <xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
6139
6153
  <xsl:param name="split_keep-within-line"/>
6140
6154
  <fo:inline font-weight="bold">
@@ -6359,11 +6373,41 @@
6359
6373
 
6360
6374
  <xsl:template match="text()[ancestor::*[local-name()='smallcap']]">
6361
6375
  <xsl:variable name="text" select="normalize-space(.)"/>
6362
- <fo:inline font-size="75%">
6376
+ <fo:inline font-size="75%" role="SKIP">
6363
6377
  <xsl:if test="string-length($text) &gt; 0">
6364
- <xsl:call-template name="recursiveSmallCaps">
6365
- <xsl:with-param name="text" select="$text"/>
6366
- </xsl:call-template>
6378
+ <xsl:variable name="smallCapsText">
6379
+ <xsl:call-template name="recursiveSmallCaps">
6380
+ <xsl:with-param name="text" select="$text"/>
6381
+ </xsl:call-template>
6382
+ </xsl:variable>
6383
+ <!-- merge neighboring fo:inline -->
6384
+ <xsl:for-each select="xalan:nodeset($smallCapsText)/node()">
6385
+ <xsl:choose>
6386
+ <xsl:when test="self::fo:inline and preceding-sibling::node()[1][self::fo:inline]"><!-- <xsl:copy-of select="."/> --></xsl:when>
6387
+ <xsl:when test="self::fo:inline and @font-size">
6388
+ <xsl:variable name="curr_pos" select="count(preceding-sibling::node()) + 1"/>
6389
+ <!-- <curr_pos><xsl:value-of select="$curr_pos"/></curr_pos> -->
6390
+ <xsl:variable name="next_text_" select="count(following-sibling::node()[not(local-name() = 'inline')][1]/preceding-sibling::node())"/>
6391
+ <xsl:variable name="next_text">
6392
+ <xsl:choose>
6393
+ <xsl:when test="$next_text_ = 0">99999999</xsl:when>
6394
+ <xsl:otherwise><xsl:value-of select="$next_text_ + 1"/></xsl:otherwise>
6395
+ </xsl:choose>
6396
+ </xsl:variable>
6397
+ <!-- <next_text><xsl:value-of select="$next_text"/></next_text> -->
6398
+ <fo:inline>
6399
+ <xsl:copy-of select="@*"/>
6400
+ <xsl:copy-of select="./node()"/>
6401
+ <xsl:for-each select="following-sibling::node()[position() &lt; $next_text - $curr_pos]"> <!-- [self::fo:inline] -->
6402
+ <xsl:copy-of select="./node()"/>
6403
+ </xsl:for-each>
6404
+ </fo:inline>
6405
+ </xsl:when>
6406
+ <xsl:otherwise>
6407
+ <xsl:copy-of select="."/>
6408
+ </xsl:otherwise>
6409
+ </xsl:choose>
6410
+ </xsl:for-each>
6367
6411
  </xsl:if>
6368
6412
  </fo:inline>
6369
6413
  </xsl:template>
@@ -6375,7 +6419,7 @@
6375
6419
  <xsl:variable name="upperCase" select="java:toUpperCase(java:java.lang.String.new($char))"/>
6376
6420
  <xsl:choose>
6377
6421
  <xsl:when test="$char=$upperCase">
6378
- <fo:inline font-size="{100 div 0.75}%">
6422
+ <fo:inline font-size="{100 div 0.75}%" role="SKIP">
6379
6423
  <xsl:value-of select="$upperCase"/>
6380
6424
  </fo:inline>
6381
6425
  </xsl:when>
@@ -6608,6 +6652,10 @@
6608
6652
 
6609
6653
  <xsl:when test="not(contains($text, $separator))">
6610
6654
  <word>
6655
+ <xsl:if test="ancestor::*[local-name() = 'p'][@from_dl = 'true']">
6656
+ <xsl:text>
6657
+  </xsl:text> <!-- to add distance between dt and dd -->
6658
+ </xsl:if>
6611
6659
  <xsl:call-template name="enclose_text_in_tags">
6612
6660
  <xsl:with-param name="text" select="normalize-space($text)"/>
6613
6661
  <xsl:with-param name="tags" select="$tags"/>
@@ -6616,6 +6664,10 @@
6616
6664
  </xsl:when>
6617
6665
  <xsl:otherwise>
6618
6666
  <word>
6667
+ <xsl:if test="ancestor::*[local-name() = 'p'][@from_dl = 'true']">
6668
+ <xsl:text>
6669
+  </xsl:text> <!-- to add distance between dt and dd -->
6670
+ </xsl:if>
6619
6671
  <xsl:call-template name="enclose_text_in_tags">
6620
6672
  <xsl:with-param name="text" select="normalize-space(substring-before($text, $separator))"/>
6621
6673
  <xsl:with-param name="tags" select="$tags"/>
@@ -6799,6 +6851,10 @@
6799
6851
  <xsl:template name="getSimpleTable">
6800
6852
  <xsl:param name="id"/>
6801
6853
 
6854
+ <!-- <test0>
6855
+ <xsl:copy-of select="."/>
6856
+ </test0> -->
6857
+
6802
6858
  <xsl:variable name="simple-table">
6803
6859
 
6804
6860
  <!-- Step 0. replace <br/> to <p>...</p> -->
@@ -7844,7 +7900,7 @@
7844
7900
  <fo:table-body>
7845
7901
  <fo:table-row>
7846
7902
  <fo:table-cell display-align="center">
7847
- <fo:block xsl:use-attribute-sets="formula-stem-block-style">
7903
+ <fo:block xsl:use-attribute-sets="formula-stem-block-style" role="SKIP">
7848
7904
 
7849
7905
  <xsl:call-template name="refine_formula-stem-block-style"/>
7850
7906
 
@@ -7852,7 +7908,10 @@
7852
7908
  </fo:block>
7853
7909
  </fo:table-cell>
7854
7910
  <fo:table-cell display-align="center">
7855
- <fo:block xsl:use-attribute-sets="formula-stem-number-style">
7911
+ <fo:block xsl:use-attribute-sets="formula-stem-number-style" role="SKIP">
7912
+
7913
+ <xsl:call-template name="refine_formula-stem-number-style"/>
7914
+
7856
7915
  <xsl:apply-templates select="../*[local-name() = 'name']"/>
7857
7916
  </fo:block>
7858
7917
  </fo:table-cell>
@@ -9377,7 +9436,7 @@
9377
9436
  <!-- second td with sourcecode -->
9378
9437
  <xsl:template match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']//*[local-name()='tr']/*[local-name()='td'][preceding-sibling::*]" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode'] -->
9379
9438
  <fo:table-cell>
9380
- <fo:block>
9439
+ <fo:block role="SKIP">
9381
9440
  <xsl:apply-templates/>
9382
9441
  </fo:block>
9383
9442
  </fo:table-cell>
@@ -9864,7 +9923,7 @@
9864
9923
 
9865
9924
  <xsl:call-template name="setTableCellAttributes"/>
9866
9925
 
9867
- <fo:block>
9926
+ <fo:block role="SKIP">
9868
9927
  <xsl:apply-templates/>
9869
9928
  </fo:block>
9870
9929
  </fo:table-cell>
@@ -9886,7 +9945,7 @@
9886
9945
 
9887
9946
  <xsl:call-template name="setTableCellAttributes"/>
9888
9947
 
9889
- <fo:block>
9948
+ <fo:block role="SKIP">
9890
9949
  <xsl:apply-templates/>
9891
9950
  </fo:block>
9892
9951
  </fo:table-cell>
@@ -10087,6 +10146,12 @@
10087
10146
 
10088
10147
  </xsl:template>
10089
10148
 
10149
+ <xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
10150
+ <fo:inline xsl:use-attribute-sets="example-name-style">
10151
+ <xsl:apply-templates/>
10152
+ </fo:inline>
10153
+ </xsl:template>
10154
+
10090
10155
  <xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
10091
10156
  <xsl:param name="fo_element">block</xsl:param>
10092
10157
 
@@ -10659,6 +10724,50 @@
10659
10724
  <xsl:otherwise><xsl:call-template name="setULLabel"/></xsl:otherwise>
10660
10725
  </xsl:choose>
10661
10726
  </xsl:when>
10727
+ <xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
10728
+
10729
+ <xsl:variable name="label">
10730
+
10731
+ <xsl:variable name="type" select="../@type"/>
10732
+
10733
+ <xsl:variable name="style_prefix_">
10734
+ <xsl:if test="$type = 'roman'">
10735
+ <!-- Example: (i) -->
10736
+ </xsl:if>
10737
+ </xsl:variable>
10738
+ <xsl:variable name="style_prefix" select="normalize-space($style_prefix_)"/>
10739
+
10740
+ <xsl:variable name="style_suffix_">
10741
+ <xsl:choose>
10742
+ <xsl:when test="$type = 'arabic'">
10743
+ )
10744
+ </xsl:when>
10745
+ <xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
10746
+ )
10747
+ </xsl:when>
10748
+ <xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
10749
+ .
10750
+ </xsl:when>
10751
+ <xsl:when test="$type = 'roman'">
10752
+ )
10753
+ </xsl:when>
10754
+ <xsl:when test="$type = 'roman_upper'">.</xsl:when> <!-- Example: I. -->
10755
+ </xsl:choose>
10756
+ </xsl:variable>
10757
+ <xsl:variable name="style_suffix" select="normalize-space($style_suffix_)"/>
10758
+
10759
+ <xsl:if test="$style_prefix != '' and not(starts-with(@label, $style_prefix))">
10760
+ <xsl:value-of select="$style_prefix"/>
10761
+ </xsl:if>
10762
+ <xsl:value-of select="@label"/>
10763
+ <xsl:if test="not(java:endsWith(java:java.lang.String.new(@label),$style_suffix))">
10764
+ <xsl:value-of select="$style_suffix"/>
10765
+ </xsl:if>
10766
+ </xsl:variable>
10767
+
10768
+ <xsl:value-of select="normalize-space($label)"/>
10769
+
10770
+ </xsl:when>
10662
10771
  <xsl:otherwise> <!-- for ordered lists 'ol' -->
10663
10772
 
10664
10773
  <!-- Example: for BSI <?list-start 2?> -->
@@ -10716,10 +10825,10 @@
10716
10825
  <xsl:when test="$type = 'arabic'">
10717
10826
  1)
10718
10827
  </xsl:when>
10719
- <xsl:when test="$type = 'alphabet'">
10828
+ <xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
10720
10829
  a)
10721
10830
  </xsl:when>
10722
- <xsl:when test="$type = 'alphabet_upper'">
10831
+ <xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
10723
10832
  A.
10724
10833
  </xsl:when>
10725
10834
  <xsl:when test="$type = 'roman'">
@@ -10854,7 +10963,7 @@
10854
10963
  <xsl:call-template name="refine_list-item-style"/>
10855
10964
 
10856
10965
  <fo:list-item-label end-indent="label-end()">
10857
- <fo:block xsl:use-attribute-sets="list-item-label-style">
10966
+ <fo:block xsl:use-attribute-sets="list-item-label-style" role="SKIP">
10858
10967
 
10859
10968
  <xsl:call-template name="refine_list-item-label-style"/>
10860
10969
 
@@ -10868,7 +10977,7 @@
10868
10977
  </fo:block>
10869
10978
  </fo:list-item-label>
10870
10979
  <fo:list-item-body start-indent="body-start()" xsl:use-attribute-sets="list-item-body-style">
10871
- <fo:block>
10980
+ <fo:block role="SKIP">
10872
10981
 
10873
10982
  <xsl:call-template name="refine_list-item-body-style"/>
10874
10983
 
@@ -11147,10 +11256,10 @@
11147
11256
  <fo:table-body>
11148
11257
  <fo:table-row text-align="center" font-weight="bold" background-color="black" color="white">
11149
11258
 
11150
- <fo:table-cell border="1pt solid black"><fo:block>Date</fo:block></fo:table-cell>
11151
- <fo:table-cell border="1pt solid black"><fo:block>Type</fo:block></fo:table-cell>
11152
- <fo:table-cell border="1pt solid black"><fo:block>Change</fo:block></fo:table-cell>
11153
- <fo:table-cell border="1pt solid black"><fo:block>Pages</fo:block></fo:table-cell>
11259
+ <fo:table-cell border="1pt solid black"><fo:block role="SKIP">Date</fo:block></fo:table-cell>
11260
+ <fo:table-cell border="1pt solid black"><fo:block role="SKIP">Type</fo:block></fo:table-cell>
11261
+ <fo:table-cell border="1pt solid black"><fo:block role="SKIP">Change</fo:block></fo:table-cell>
11262
+ <fo:table-cell border="1pt solid black"><fo:block role="SKIP">Pages</fo:block></fo:table-cell>
11154
11263
  </fo:table-row>
11155
11264
  <xsl:apply-templates/>
11156
11265
  </fo:table-body>
@@ -11165,7 +11274,7 @@
11165
11274
 
11166
11275
  <xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']/*">
11167
11276
  <fo:table-cell border="1pt solid black" padding-left="1mm" padding-top="0.5mm">
11168
- <fo:block><xsl:apply-templates/></fo:block>
11277
+ <fo:block role="SKIP"><xsl:apply-templates/></fo:block>
11169
11278
  </fo:table-cell>
11170
11279
  </xsl:template>
11171
11280
  <!-- ============ -->
@@ -11241,8 +11350,8 @@
11241
11350
  <fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
11242
11351
  <fo:list-item>
11243
11352
  <fo:list-item-label end-indent="label-end()">
11244
- <fo:block>
11245
- <fo:inline>
11353
+ <fo:block role="SKIP">
11354
+ <fo:inline role="SKIP">
11246
11355
 
11247
11356
  <xsl:apply-templates select="*[local-name() = 'biblio-tag']">
11248
11357
  <xsl:with-param name="biblio_tag_part">first</xsl:with-param>
@@ -11251,7 +11360,7 @@
11251
11360
  </fo:block>
11252
11361
  </fo:list-item-label>
11253
11362
  <fo:list-item-body start-indent="body-start()">
11254
- <fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style">
11363
+ <fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP">
11255
11364
  <xsl:call-template name="processBibitem">
11256
11365
  <xsl:with-param name="biblio_tag_part">last</xsl:with-param>
11257
11366
  </xsl:call-template>
@@ -11473,7 +11582,7 @@
11473
11582
  <xsl:for-each select="*[local-name() = 'tab']">
11474
11583
  <xsl:variable name="current_id" select="generate-id()"/>
11475
11584
  <fo:table-cell>
11476
- <fo:block line-height-shift-adjustment="disregard-shifts">
11585
+ <fo:block line-height-shift-adjustment="disregard-shifts" role="SKIP">
11477
11586
  <xsl:call-template name="insert_basic_link">
11478
11587
  <xsl:with-param name="element">
11479
11588
  <fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
@@ -11491,7 +11600,7 @@
11491
11600
  </xsl:for-each>
11492
11601
  <!-- last column - for page numbers -->
11493
11602
  <fo:table-cell text-align="right" font-size="10pt" font-weight="bold" font-family="Arial">
11494
- <fo:block>
11603
+ <fo:block role="SKIP">
11495
11604
  <xsl:call-template name="insert_basic_link">
11496
11605
  <xsl:with-param name="element">
11497
11606
  <fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
@@ -1012,6 +1012,7 @@
1012
1012
  <ref name="del"/>
1013
1013
  <ref name="span"/>
1014
1014
  <ref name="erefstack"/>
1015
+ <ref name="date_inline"/>
1015
1016
  </choice>
1016
1017
  </define>
1017
1018
  <define name="add">
@@ -1053,6 +1054,23 @@
1053
1054
  </oneOrMore>
1054
1055
  </element>
1055
1056
  </define>
1057
+ <define name="date_inline">
1058
+ <element name="date">
1059
+ <attribute name="value"/>
1060
+ <optional>
1061
+ <attribute name="format"/>
1062
+ </optional>
1063
+ <optional>
1064
+ <attribute name="language"/>
1065
+ </optional>
1066
+ <optional>
1067
+ <attribute name="script"/>
1068
+ </optional>
1069
+ <optional>
1070
+ <attribute name="locale"/>
1071
+ </optional>
1072
+ </element>
1073
+ </define>
1056
1074
  <define name="concept">
1057
1075
  <element name="concept">
1058
1076
  <optional>
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Iec
3
- VERSION = "2.2.10".freeze
3
+ VERSION = "2.2.12".freeze
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.10
4
+ version: 2.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-22 00:00:00.000000000 Z
11
+ date: 2023-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-iso