metanorma-bipm 2.1.12 → 2.1.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -1686,6 +1686,8 @@
1686
1686
  </fo:block-container>
1687
1687
  </xsl:template>
1688
1688
 
1689
+ <xsl:strip-space elements="jcgm:xref"/>
1690
+
1689
1691
  <!-- external parameters -->
1690
1692
 
1691
1693
  <xsl:param name="svg_images"/> <!-- svg images array -->
@@ -3100,17 +3102,22 @@
3100
3102
  </xsl:for-each>
3101
3103
  </xsl:template>
3102
3104
 
3105
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
3103
3106
  <xsl:variable name="tag_fo_inline_keep-together_within-line_open">###fo:inline keep-together_within-line###</xsl:variable>
3104
3107
  <xsl:variable name="tag_fo_inline_keep-together_within-line_close">###/fo:inline keep-together_within-line###</xsl:variable>
3105
3108
  <xsl:template match="text()" name="text">
3106
3109
 
3107
- <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
3108
- <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_fo_inline_keep-together_within-line_open,'$1',$tag_fo_inline_keep-together_within-line_close))"/>
3109
- <xsl:call-template name="replace_fo_inline_tags">
3110
- <xsl:with-param name="tag_open" select="$tag_fo_inline_keep-together_within-line_open"/>
3111
- <xsl:with-param name="tag_close" select="$tag_fo_inline_keep-together_within-line_close"/>
3112
- <xsl:with-param name="text" select="$text"/>
3113
- </xsl:call-template>
3110
+ <xsl:choose>
3111
+ <xsl:when test="ancestor::*[local-name() = 'table']"><xsl:value-of select="."/></xsl:when>
3112
+ <xsl:otherwise>
3113
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_fo_inline_keep-together_within-line_open,'$1',$tag_fo_inline_keep-together_within-line_close))"/>
3114
+ <xsl:call-template name="replace_fo_inline_tags">
3115
+ <xsl:with-param name="tag_open" select="$tag_fo_inline_keep-together_within-line_open"/>
3116
+ <xsl:with-param name="tag_close" select="$tag_fo_inline_keep-together_within-line_close"/>
3117
+ <xsl:with-param name="text" select="$text"/>
3118
+ </xsl:call-template>
3119
+ </xsl:otherwise>
3120
+ </xsl:choose>
3114
3121
 
3115
3122
  </xsl:template>
3116
3123
 
@@ -3475,7 +3482,7 @@
3475
3482
 
3476
3483
  <!-- centered table when table name is centered (see table-name-style) -->
3477
3484
 
3478
- <fo:table table-layout="fixed" width="100%">
3485
+ <fo:table table-layout="fixed" width="100%" xsl:use-attribute-sets="table-container-style">
3479
3486
  <fo:table-column column-width="proportional-column-width(1)"/>
3480
3487
  <fo:table-column column-width="{@width}"/>
3481
3488
  <fo:table-column column-width="proportional-column-width(1)"/>
@@ -3526,7 +3533,7 @@
3526
3533
 
3527
3534
  <xsl:choose>
3528
3535
  <xsl:when test="$continued = 'true'">
3529
-
3536
+ <!-- $namespace = 'iso' or -->
3530
3537
  <xsl:apply-templates/>
3531
3538
 
3532
3539
  </xsl:when>
@@ -4195,7 +4202,7 @@
4195
4202
  <xsl:template match="*[local-name()='tr']">
4196
4203
  <fo:table-row xsl:use-attribute-sets="table-body-row-style">
4197
4204
 
4198
- <xsl:if test="*[local-name() = 'th']">
4205
+ <xsl:if test="count(*) = count(*[local-name() = 'th'])"> <!-- row contains 'th' only -->
4199
4206
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
4200
4207
  </xsl:if>
4201
4208
 
@@ -5180,7 +5187,8 @@
5180
5187
  <xsl:copy-of select="node()"/>
5181
5188
  </td>
5182
5189
  <td>
5183
- <xsl:copy-of select="following-sibling::*[local-name()='dd'][1]/node()[not(local-name() = 'dl')]"/>
5190
+ <!-- <xsl:copy-of select="following-sibling::*[local-name()='dd'][1]/node()[not(local-name() = 'dl')]"/> -->
5191
+ <xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]/node()[not(local-name() = 'dl')]" mode="dl_if"/>
5184
5192
  <!-- get paragraphs from nested 'dl' -->
5185
5193
  <xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]/*[local-name() = 'dl']" mode="dl_if_nested"/>
5186
5194
  </td>
@@ -5188,6 +5196,53 @@
5188
5196
  </xsl:template>
5189
5197
  <xsl:template match="*[local-name()='dd']" mode="dl_if"/>
5190
5198
 
5199
+ <xsl:template match="*" mode="dl_if">
5200
+ <xsl:copy-of select="."/>
5201
+ </xsl:template>
5202
+
5203
+ <xsl:template match="*[local-name() = 'p']" mode="dl_if">
5204
+ <xsl:param name="indent"/>
5205
+ <p>
5206
+ <xsl:copy-of select="@*"/>
5207
+ <xsl:value-of select="$indent"/>
5208
+ <xsl:copy-of select="node()"/>
5209
+ </p>
5210
+
5211
+ </xsl:template>
5212
+
5213
+ <xsl:template match="*[local-name() = 'ul' or local-name() = 'ol']" mode="dl_if">
5214
+ <xsl:variable name="list_rendered_">
5215
+ <xsl:apply-templates select="."/>
5216
+ </xsl:variable>
5217
+ <xsl:variable name="list_rendered" select="xalan:nodeset($list_rendered_)"/>
5218
+
5219
+ <xsl:variable name="indent">
5220
+ <xsl:for-each select="($list_rendered//fo:block[not(.//fo:block)])[1]">
5221
+ <xsl:apply-templates select="ancestor::*[@provisional-distance-between-starts]/@provisional-distance-between-starts" mode="dl_if"/>
5222
+ </xsl:for-each>
5223
+ </xsl:variable>
5224
+
5225
+ <xsl:apply-templates mode="dl_if">
5226
+ <xsl:with-param name="indent" select="$indent"/>
5227
+ </xsl:apply-templates>
5228
+ </xsl:template>
5229
+
5230
+ <xsl:template match="*[local-name() = 'li']" mode="dl_if">
5231
+ <xsl:param name="indent"/>
5232
+ <xsl:apply-templates mode="dl_if">
5233
+ <xsl:with-param name="indent" select="$indent"/>
5234
+ </xsl:apply-templates>
5235
+ </xsl:template>
5236
+
5237
+ <xsl:template match="@provisional-distance-between-starts" mode="dl_if">
5238
+ <xsl:variable name="value" select="round(substring-before(.,'mm'))"/>
5239
+ <!-- emulate left indent for list item -->
5240
+ <xsl:call-template name="repeat">
5241
+ <xsl:with-param name="char" select="'x'"/>
5242
+ <xsl:with-param name="count" select="$value"/>
5243
+ </xsl:call-template>
5244
+ </xsl:template>
5245
+
5191
5246
  <xsl:template match="*[local-name()='dl']" mode="dl_if_nested">
5192
5247
  <xsl:for-each select="*[local-name() = 'dt']">
5193
5248
  <p>
@@ -5584,6 +5639,7 @@
5584
5639
  </word>
5585
5640
  <xsl:call-template name="tokenize_with_tags">
5586
5641
  <xsl:with-param name="text" select="substring-after($text, $separator)"/>
5642
+ <xsl:with-param name="tags" select="$tags"/>
5587
5643
  </xsl:call-template>
5588
5644
  </xsl:otherwise>
5589
5645
  </xsl:choose>
@@ -5623,8 +5679,18 @@
5623
5679
 
5624
5680
  <xsl:template name="add-zero-spaces-java">
5625
5681
  <xsl:param name="text" select="."/>
5626
- <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space -->
5627
- <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text),'(-|\.|:|=|_|—| )','$1​')"/>
5682
+ <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space, arrow right -->
5683
+ <xsl:variable name="text1" select="java:replaceAll(java:java.lang.String.new($text),'(-|\.|:|=|_|—| |→)','$1​')"/>
5684
+ <!-- add zero-width space (#x200B) after characters: 'great than' -->
5685
+ <xsl:variable name="text2" select="java:replaceAll(java:java.lang.String.new($text1), '(\u003e)(?!\u003e)', '$1​')"/><!-- negative lookahead: 'great than' not followed by 'great than' -->
5686
+ <!-- add zero-width space (#x200B) before characters: 'less than' -->
5687
+ <xsl:variable name="text3" select="java:replaceAll(java:java.lang.String.new($text2), '(?&lt;!\u003c)(\u003c)', '​$1')"/> <!-- (?<!\u003c)(\u003c) --> <!-- negative lookbehind: 'less than' not preceeded by 'less than' -->
5688
+ <!-- add zero-width space (#x200B) before character: { -->
5689
+ <xsl:variable name="text4" select="java:replaceAll(java:java.lang.String.new($text3), '(?&lt;!\W)(\{)', '​$1')"/> <!-- negative lookbehind: '{' not preceeded by 'punctuation char' -->
5690
+ <!-- add zero-width space (#x200B) after character: , -->
5691
+ <xsl:variable name="text5" select="java:replaceAll(java:java.lang.String.new($text4), '(\,)(?!\d)', '$1​')"/> <!-- negative lookahead: ',' not followed by digit -->
5692
+
5693
+ <xsl:value-of select="$text5"/>
5628
5694
  </xsl:template>
5629
5695
 
5630
5696
  <xsl:template name="add-zero-spaces-link-java">
@@ -5770,7 +5836,7 @@
5770
5836
  </xsl:copy>
5771
5837
  </xsl:template>
5772
5838
 
5773
- <xsl:template match="*[local-name()='th' or local-name() = 'td'][not(*[local-name()='br']) and not(*[local-name()='p'])]" mode="table-without-br">
5839
+ <xsl:template match="*[local-name()='th' or local-name() = 'td'][not(*[local-name()='br']) and not(*[local-name()='p']) and not(*[local-name()='sourcecode'])]" mode="table-without-br">
5774
5840
  <xsl:copy>
5775
5841
  <xsl:copy-of select="@*"/>
5776
5842
  <p>
@@ -5818,6 +5884,28 @@
5818
5884
  </xsl:for-each>
5819
5885
  </xsl:template>
5820
5886
 
5887
+ <xsl:template match="*[local-name()='th' or local-name()='td']/*[local-name() = 'sourcecode']" mode="table-without-br">
5888
+ <xsl:apply-templates mode="table-without-br"/>
5889
+ </xsl:template>
5890
+
5891
+ <xsl:template match="*[local-name()='th' or local-name()='td']/*[local-name() = 'sourcecode']/text()[contains(., '&#13;') or contains(., '&#10;')]" mode="table-without-br">
5892
+
5893
+ <xsl:variable name="sep">###SOURCECODE_NEWLINE###</xsl:variable>
5894
+ <xsl:variable name="sourcecode_text" select="java:replaceAll(java:java.lang.String.new(.),'(&#13;&#10;|&#13;|&#10;)', $sep)"/>
5895
+ <xsl:variable name="items">
5896
+ <xsl:call-template name="split">
5897
+ <xsl:with-param name="pText" select="$sourcecode_text"/>
5898
+ <xsl:with-param name="sep" select="$sep"/>
5899
+ <xsl:with-param name="normalize-space">false</xsl:with-param>
5900
+ </xsl:call-template>
5901
+ </xsl:variable>
5902
+ <xsl:for-each select="xalan:nodeset($items)/*">
5903
+ <p>
5904
+ <sourcecode><xsl:copy-of select="node()"/></sourcecode>
5905
+ </p>
5906
+ </xsl:for-each>
5907
+ </xsl:template>
5908
+
5821
5909
  <!-- remove redundant white spaces -->
5822
5910
  <xsl:template match="text()[not(ancestor::*[local-name() = 'sourcecode'])]" mode="table-without-br">
5823
5911
  <xsl:variable name="text" select="translate(.,'&#9;&#10;&#13;','')"/>
@@ -6128,6 +6216,7 @@
6128
6216
  <xsl:if test="ancestor::*[local-name() = 'sub']"><tag>sub</tag></xsl:if>
6129
6217
  <xsl:if test="ancestor::*[local-name() = 'sup']"><tag>sup</tag></xsl:if>
6130
6218
  <xsl:if test="ancestor::*[local-name() = 'tt']"><tag>tt</tag></xsl:if>
6219
+ <xsl:if test="ancestor::*[local-name() = 'sourcecode']"><tag>sourcecode</tag></xsl:if>
6131
6220
  <xsl:if test="ancestor::*[local-name() = 'keep-together_within-line']"><tag>keep-together_within-line</tag></xsl:if>
6132
6221
  </tags>
6133
6222
  </xsl:template>
@@ -6618,6 +6707,12 @@
6618
6707
 
6619
6708
  <fo:block-container margin-left="0mm">
6620
6709
 
6710
+ <!-- <xsl:if test="$namespace = 'iho'">
6711
+ <xsl:if test="ancestor::iho:td">
6712
+ <xsl:attribute name="font-size">12pt</xsl:attribute>
6713
+ </xsl:if>
6714
+ </xsl:if> -->
6715
+
6621
6716
  <fo:block>
6622
6717
 
6623
6718
  <fo:inline xsl:use-attribute-sets="note-name-style">
@@ -7759,38 +7854,16 @@
7759
7854
  <!-- =============== -->
7760
7855
  <xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
7761
7856
 
7762
- <fo:block-container xsl:use-attribute-sets="sourcecode-container-style">
7763
-
7764
- <xsl:if test="not(ancestor::*[local-name() = 'li']) or ancestor::*[local-name() = 'example']">
7765
- <xsl:attribute name="margin-left">0mm</xsl:attribute>
7766
- </xsl:if>
7767
-
7768
- <xsl:if test="ancestor::*[local-name() = 'example']">
7769
- <xsl:attribute name="margin-right">0mm</xsl:attribute>
7770
- </xsl:if>
7771
-
7772
- <xsl:copy-of select="@id"/>
7773
-
7774
- <xsl:if test="parent::*[local-name() = 'note']">
7775
- <xsl:attribute name="margin-left">
7776
- <xsl:choose>
7777
- <xsl:when test="not(ancestor::*[local-name() = 'table'])"><xsl:value-of select="$note-body-indent"/></xsl:when>
7778
- <xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
7779
- </xsl:choose>
7780
- </xsl:attribute>
7781
-
7782
- </xsl:if>
7783
- <fo:block-container margin-left="0mm">
7857
+ <xsl:variable name="sourcecode_attributes">
7858
+ <xsl:element name="sourcecode_attributes" use-attribute-sets="sourcecode-style">
7859
+ <xsl:variable name="_font-size">
7784
7860
 
7785
- <fo:block xsl:use-attribute-sets="sourcecode-style">
7786
- <xsl:variable name="_font-size">
7861
+ <!-- 9 -->
7787
7862
 
7788
- <!-- 9 -->
7789
-
7790
- 9
7791
- <!-- <xsl:if test="$namespace = 'ieee'">
7792
- <xsl:if test="$current_template = 'standard'">8</xsl:if>
7793
- </xsl:if> -->
7863
+ 9
7864
+ <!-- <xsl:if test="$namespace = 'ieee'">
7865
+ <xsl:if test="$current_template = 'standard'">8</xsl:if>
7866
+ </xsl:if> -->
7794
7867
 
7795
7868
  </xsl:variable>
7796
7869
 
@@ -7805,14 +7878,60 @@
7805
7878
  </xsl:choose>
7806
7879
  </xsl:attribute>
7807
7880
  </xsl:if>
7881
+ </xsl:element>
7882
+ </xsl:variable>
7808
7883
 
7884
+ <xsl:choose>
7885
+ <xsl:when test="$isGenerateTableIF = 'true' and (ancestor::*[local-name() = 'td'] or ancestor::*[local-name() = 'th'])">
7886
+ <xsl:for-each select="xalan:nodeset($sourcecode_attributes)/sourcecode_attributes/@*">
7887
+ <xsl:attribute name="{local-name()}">
7888
+ <xsl:value-of select="."/>
7889
+ </xsl:attribute>
7890
+ </xsl:for-each>
7809
7891
  <xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
7810
- </fo:block>
7892
+ </xsl:when>
7811
7893
 
7812
- <xsl:apply-templates select="*[local-name()='name']"/> <!-- show sourcecode's name AFTER content -->
7894
+ <xsl:otherwise>
7895
+ <fo:block-container xsl:use-attribute-sets="sourcecode-container-style">
7813
7896
 
7814
- </fo:block-container>
7815
- </fo:block-container>
7897
+ <xsl:if test="not(ancestor::*[local-name() = 'li']) or ancestor::*[local-name() = 'example']">
7898
+ <xsl:attribute name="margin-left">0mm</xsl:attribute>
7899
+ </xsl:if>
7900
+
7901
+ <xsl:if test="ancestor::*[local-name() = 'example']">
7902
+ <xsl:attribute name="margin-right">0mm</xsl:attribute>
7903
+ </xsl:if>
7904
+
7905
+ <xsl:copy-of select="@id"/>
7906
+
7907
+ <xsl:if test="parent::*[local-name() = 'note']">
7908
+ <xsl:attribute name="margin-left">
7909
+ <xsl:choose>
7910
+ <xsl:when test="not(ancestor::*[local-name() = 'table'])"><xsl:value-of select="$note-body-indent"/></xsl:when>
7911
+ <xsl:otherwise><xsl:value-of select="$note-body-indent-table"/></xsl:otherwise>
7912
+ </xsl:choose>
7913
+ </xsl:attribute>
7914
+
7915
+ </xsl:if>
7916
+ <fo:block-container margin-left="0mm">
7917
+
7918
+ <fo:block xsl:use-attribute-sets="sourcecode-style">
7919
+
7920
+ <xsl:for-each select="xalan:nodeset($sourcecode_attributes)/sourcecode_attributes/@*">
7921
+ <xsl:attribute name="{local-name()}">
7922
+ <xsl:value-of select="."/>
7923
+ </xsl:attribute>
7924
+ </xsl:for-each>
7925
+
7926
+ <xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
7927
+ </fo:block>
7928
+
7929
+ <xsl:apply-templates select="*[local-name()='name']"/> <!-- show sourcecode's name AFTER content -->
7930
+
7931
+ </fo:block-container>
7932
+ </fo:block-container>
7933
+ </xsl:otherwise>
7934
+ </xsl:choose>
7816
7935
  </xsl:template>
7817
7936
 
7818
7937
  <xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
@@ -10043,7 +10162,9 @@
10043
10162
  <!-- ===================================== -->
10044
10163
  <!-- Update xml -->
10045
10164
  <!-- ===================================== -->
10165
+ <!-- =========================================================================== -->
10046
10166
  <!-- STEP1: Re-order elements in 'preface', 'sections' based on @displayorder -->
10167
+ <!-- =========================================================================== -->
10047
10168
  <xsl:template match="@*|node()" mode="update_xml_step1">
10048
10169
  <xsl:copy>
10049
10170
  <xsl:apply-templates select="@*|node()" mode="update_xml_step1"/>
@@ -10135,10 +10256,15 @@
10135
10256
  <xsl:template match="*[local-name() = 'span']" mode="update_xml_step1">
10136
10257
  <xsl:apply-templates mode="update_xml_step1"/>
10137
10258
  </xsl:template>
10138
-
10259
+ <!-- =========================================================================== -->
10139
10260
  <!-- END STEP1: Re-order elements in 'preface', 'sections' based on @displayorder -->
10261
+ <!-- =========================================================================== -->
10140
10262
 
10263
+ <!-- =========================================================================== -->
10141
10264
  <!-- XML UPDATE STEP: enclose standard's name into tag 'keep-together_within-line' -->
10265
+ <!-- keep-together_within-line for: a/b, aaa/b, a/bbb, /b -->
10266
+ <!-- keep-together_within-line for: a.b, aaa.b, a.bbb, .b in table's cell ONLY -->
10267
+ <!-- =========================================================================== -->
10142
10268
  <!-- Example: <keep-together_within-line>ISO 10303-51</keep-together_within-line> -->
10143
10269
  <xsl:template match="@*|node()" mode="update_xml_enclose_keep-together_within-line">
10144
10270
  <xsl:copy>
@@ -10154,10 +10280,15 @@
10154
10280
  <xsl:template match="text()[not(ancestor::*[local-name() = 'bibdata'] or ancestor::*[local-name() = 'link'][not(contains(.,' '))] or ancestor::*[local-name() = 'sourcecode'] or ancestor::*[local-name() = 'math'] or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
10155
10281
 
10156
10282
  <!-- enclose standard's number into tag 'keep-together_within-line' -->
10157
- <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
10158
10283
  <xsl:variable name="tag_keep-together_within-line_open">###<xsl:value-of select="$element_name_keep-together_within-line"/>###</xsl:variable>
10159
10284
  <xsl:variable name="tag_keep-together_within-line_close">###/<xsl:value-of select="$element_name_keep-together_within-line"/>###</xsl:variable>
10160
- <xsl:variable name="text_" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_keep-together_within-line_open,'$1',$tag_keep-together_within-line_close))"/>
10285
+ <xsl:variable name="text__" select="java:replaceAll(java:java.lang.String.new(.), $regex_standard_reference, concat($tag_keep-together_within-line_open,'$1',$tag_keep-together_within-line_close))"/>
10286
+ <xsl:variable name="text_">
10287
+ <xsl:choose>
10288
+ <xsl:when test="ancestor::*[local-name() = 'table']"><xsl:value-of select="."/></xsl:when> <!-- no need enclose standard's number into tag 'keep-together_within-line' in table cells -->
10289
+ <xsl:otherwise><xsl:value-of select="$text__"/></xsl:otherwise>
10290
+ </xsl:choose>
10291
+ </xsl:variable>
10161
10292
  <xsl:variable name="text"><text><xsl:call-template name="replace_text_tags">
10162
10293
  <xsl:with-param name="tag_open" select="$tag_keep-together_within-line_open"/>
10163
10294
  <xsl:with-param name="tag_close" select="$tag_keep-together_within-line_close"/>
@@ -10173,7 +10304,11 @@
10173
10304
  </xsl:variable>
10174
10305
 
10175
10306
  <!-- keep-together_within-line for: a/b, aaa/b, a/bbb, /b -->
10176
- <xsl:variable name="regex_solidus_units">((\b((\S{1,3}\/\S+)|(\S+\/\S{1,3}))\b)|(\/\S{1,3})\b)</xsl:variable>
10307
+ <!-- \S matches any non-whitespace character (equivalent to [^\r\n\t\f\v ]) -->
10308
+ <!-- <xsl:variable name="regex_solidus_units">((\b((\S{1,3}\/\S+)|(\S+\/\S{1,3}))\b)|(\/\S{1,3})\b)</xsl:variable> -->
10309
+ <!-- add &lt; and &gt; to \S -->
10310
+ <xsl:variable name="regex_S">[^\r\n\t\f\v \&lt;&gt;]</xsl:variable>
10311
+ <xsl:variable name="regex_solidus_units">((\b((<xsl:value-of select="$regex_S"/>{1,3}\/<xsl:value-of select="$regex_S"/>+)|(<xsl:value-of select="$regex_S"/>+\/<xsl:value-of select="$regex_S"/>{1,3}))\b)|(\/<xsl:value-of select="$regex_S"/>{1,3})\b)</xsl:variable>
10177
10312
  <xsl:variable name="text3">
10178
10313
  <text><xsl:for-each select="xalan:nodeset($text2)/text/node()">
10179
10314
  <xsl:choose>
@@ -10237,9 +10372,8 @@
10237
10372
  <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
10238
10373
  </xsl:choose>
10239
10374
  </xsl:template>
10240
-
10241
10375
  <!-- ===================================== -->
10242
- <!-- End Update xml -->
10376
+ <!-- END XML UPDATE STEP: enclose standard's name into tag 'keep-together_within-line' -->
10243
10377
  <!-- ===================================== -->
10244
10378
 
10245
10379
  <!-- for correct rendering combining chars -->
@@ -1152,7 +1152,7 @@
1152
1152
  <data type="boolean"/>
1153
1153
  </attribute>
1154
1154
  </optional>
1155
- <ref name="BibliographicItem"/>
1155
+ <ref name="ReducedBibliographicItem"/>
1156
1156
  </element>
1157
1157
  </define>
1158
1158
  <define name="image" combine="choice">
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module BIPM
3
- VERSION = "2.1.12".freeze
3
+ VERSION = "2.1.13".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-bipm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.12
4
+ version: 2.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-07 00:00:00.000000000 Z
11
+ date: 2022-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic