metanorma-bipm 1.2.4 → 1.2.5

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: 7b55e6b85ef1f9cae4b1438df9d28fec022df67c5629e63b4a9439df340a3d27
4
- data.tar.gz: ea4b6c2f2866b8053b90762eff2f3e1025db86188381ff098be659557e91b024
3
+ metadata.gz: d974105c9bfacaa99b3e88208ce15c2f6d88b5dc9b6bb8c68ed37278172ef2f0
4
+ data.tar.gz: ba1d26792f3c15da831fc94bf505ed1747e19a8f8390d912bdf112130493cd35
5
5
  SHA512:
6
- metadata.gz: 75ba651aad86b1bfd223dfd10e89827c7d283e99ea8c7f268e9b9d223e4b61695d35663788b1502e2ad18333dae7fbf31bd950d1ad4dd1786d5249b904f164db
7
- data.tar.gz: 555657db61c387a6b88553b057b0675f358b527d5df75366fde52a22fc5ae6ef5dd3827c5a6705fa42ad638a5ff6d93dfe4238d741b5832b20e9328a6ec83ccf
6
+ metadata.gz: d5afec8786d1aa673c3a7a4a8015b3283fd9b82df7c3d1ea51c42709fce7c1cc72f3d2272f4b9a8d58717ad8860e76a3008df8c18fd31b5aa926d412ce8d4b90
7
+ data.tar.gz: da690ae876f6e53684077c41dc16cfd06dc50cbd5c68b88c9ce46cef50c53048db0a3ff37a111d8c485b6043f992a3129bf73c75b88ba1d5ec75df5fbb900510
@@ -1973,7 +1973,11 @@
1973
1973
  </optional>
1974
1974
  <element name="name">
1975
1975
  <zeroOrMore>
1976
- <ref name="PureTextElement"/>
1976
+ <choice>
1977
+ <ref name="PureTextElement"/>
1978
+ <ref name="stem"/>
1979
+ <ref name="index"/>
1980
+ </choice>
1977
1981
  </zeroOrMore>
1978
1982
  </element>
1979
1983
  <optional>
@@ -1987,7 +1991,7 @@
1987
1991
  </element>
1988
1992
  </optional>
1989
1993
  <optional>
1990
- <element name="grammar-info">
1994
+ <element name="grammar">
1991
1995
  <ref name="Grammar"/>
1992
1996
  </element>
1993
1997
  </optional>
@@ -962,8 +962,11 @@
962
962
  <xsl:template name="setListItemLabel">
963
963
  <xsl:attribute name="label">
964
964
  <xsl:choose>
965
- <xsl:when test="local-name(..) = 'ul' and ../ancestor::bipm:ul">−</xsl:when> <!-- &#x2212; - minus sign. &#x2014; - dash -->
966
- <xsl:when test="local-name(..) = 'ul'">•</xsl:when> <!-- &#x2014; dash -->
965
+ <xsl:when test="local-name(..) = 'ul'">
966
+ <xsl:call-template name="setULLabel"/>
967
+ </xsl:when>
968
+ <!-- <xsl:when test="local-name(..) = 'ul' and ../ancestor::bipm:ul">&#x2212;</xsl:when> --> <!-- &#x2212; - minus sign. &#x2014; - dash -->
969
+ <!-- <xsl:when test="local-name(..) = 'ul'">•</xsl:when> --> <!-- &#x2014; dash -->
967
970
  <xsl:otherwise> <!-- for ordered lists -->
968
971
  <xsl:variable name="start_value">
969
972
  <xsl:choose>
@@ -2418,7 +2421,7 @@
2418
2421
  <!-- ====== -->
2419
2422
 
2420
2423
 
2421
- <xsl:template match="bipm:title" name="clause_title">
2424
+ <xsl:template match="bipm:title" name="title">
2422
2425
 
2423
2426
  <xsl:variable name="level">
2424
2427
  <xsl:call-template name="getLevel"/>
@@ -6966,6 +6969,7 @@
6966
6969
  </xsl:template><xsl:template match="*[local-name()='dd']" mode="dl"/><xsl:template match="*[local-name()='dd']" mode="dl_process">
6967
6970
  <xsl:apply-templates/>
6968
6971
  </xsl:template><xsl:template match="*[local-name()='dd']"/><xsl:template match="*[local-name()='dd']" mode="process">
6972
+ <xsl:apply-templates select="@language"/>
6969
6973
  <xsl:apply-templates/>
6970
6974
  </xsl:template><xsl:template match="*[local-name()='dd']/*[local-name()='p']" mode="inline">
6971
6975
  <fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
@@ -9225,6 +9229,53 @@
9225
9229
  </xsl:template><xsl:template match="*[local-name() = 'name']/text()">
9226
9230
  <!-- 0xA0 to space replacement -->
9227
9231
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
9232
+ </xsl:template><xsl:variable name="ul_labels_">
9233
+
9234
+ <label level="1" font-size="15pt">•</label>
9235
+ <label level="2">−</label><!-- &#x2212; - minus sign. &#x2014; - en dash -->
9236
+ <label level="3" font-size="75%">o</label> <!-- white circle -->
9237
+
9238
+
9239
+
9240
+
9241
+
9242
+
9243
+
9244
+
9245
+
9246
+
9247
+
9248
+
9249
+
9250
+
9251
+
9252
+
9253
+
9254
+ </xsl:variable><xsl:variable name="ul_labels" select="xalan:nodeset($ul_labels_)"/><xsl:template name="setULLabel">
9255
+ <xsl:variable name="list_level_" select="count(ancestor::*[local-name() = 'ul']) + count(ancestor::*[local-name() = 'ol'])"/>
9256
+ <xsl:variable name="list_level">
9257
+ <xsl:choose>
9258
+ <xsl:when test="$list_level_ &lt;= 3"><xsl:value-of select="$list_level_"/></xsl:when>
9259
+ <xsl:otherwise><xsl:value-of select="$list_level_ mod 3"/></xsl:otherwise>
9260
+ </xsl:choose>
9261
+ </xsl:variable>
9262
+ <xsl:choose>
9263
+ <xsl:when test="$ul_labels/label[not(@level)]"> <!-- one label for all levels -->
9264
+ <xsl:apply-templates select="$ul_labels/label[not(@level)]" mode="ul_labels"/>
9265
+ </xsl:when>
9266
+ <xsl:when test="$list_level mod 3 = 0">
9267
+ <xsl:apply-templates select="$ul_labels/label[@level = 3]" mode="ul_labels"/>
9268
+ </xsl:when>
9269
+ <xsl:when test="$list_level mod 2 = 0">
9270
+ <xsl:apply-templates select="$ul_labels/label[@level = 2]" mode="ul_labels"/>
9271
+ </xsl:when>
9272
+ <xsl:otherwise>
9273
+ <xsl:apply-templates select="$ul_labels/label[@level = 1]" mode="ul_labels"/>
9274
+ </xsl:otherwise>
9275
+ </xsl:choose>
9276
+ </xsl:template><xsl:template match="label" mode="ul_labels">
9277
+ <xsl:copy-of select="@*[not(local-name() = 'level')]"/>
9278
+ <xsl:value-of select="."/>
9228
9279
  </xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
9229
9280
  <xsl:choose>
9230
9281
  <xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
@@ -9709,6 +9760,10 @@
9709
9760
  </svg>
9710
9761
  </fo:instream-foreign-object>
9711
9762
  </fo:inline>
9763
+ </xsl:template><xsl:template match="@language">
9764
+ <xsl:copy-of select="."/>
9765
+ </xsl:template><xsl:template match="*[local-name() = 'p'][@type = 'floating-title']" priority="4">
9766
+ <xsl:call-template name="title"/>
9712
9767
  </xsl:template><xsl:template name="convertDate">
9713
9768
  <xsl:param name="date"/>
9714
9769
  <xsl:param name="format" select="'short'"/>
@@ -962,8 +962,11 @@
962
962
  <xsl:template name="setListItemLabel">
963
963
  <xsl:attribute name="label">
964
964
  <xsl:choose>
965
- <xsl:when test="local-name(..) = 'ul' and ../ancestor::bipm:ul">−</xsl:when> <!-- &#x2212; - minus sign. &#x2014; - dash -->
966
- <xsl:when test="local-name(..) = 'ul'">•</xsl:when> <!-- &#x2014; dash -->
965
+ <xsl:when test="local-name(..) = 'ul'">
966
+ <xsl:call-template name="setULLabel"/>
967
+ </xsl:when>
968
+ <!-- <xsl:when test="local-name(..) = 'ul' and ../ancestor::bipm:ul">&#x2212;</xsl:when> --> <!-- &#x2212; - minus sign. &#x2014; - dash -->
969
+ <!-- <xsl:when test="local-name(..) = 'ul'">•</xsl:when> --> <!-- &#x2014; dash -->
967
970
  <xsl:otherwise> <!-- for ordered lists -->
968
971
  <xsl:variable name="start_value">
969
972
  <xsl:choose>
@@ -2418,7 +2421,7 @@
2418
2421
  <!-- ====== -->
2419
2422
 
2420
2423
 
2421
- <xsl:template match="bipm:title" name="clause_title">
2424
+ <xsl:template match="bipm:title" name="title">
2422
2425
 
2423
2426
  <xsl:variable name="level">
2424
2427
  <xsl:call-template name="getLevel"/>
@@ -6966,6 +6969,7 @@
6966
6969
  </xsl:template><xsl:template match="*[local-name()='dd']" mode="dl"/><xsl:template match="*[local-name()='dd']" mode="dl_process">
6967
6970
  <xsl:apply-templates/>
6968
6971
  </xsl:template><xsl:template match="*[local-name()='dd']"/><xsl:template match="*[local-name()='dd']" mode="process">
6972
+ <xsl:apply-templates select="@language"/>
6969
6973
  <xsl:apply-templates/>
6970
6974
  </xsl:template><xsl:template match="*[local-name()='dd']/*[local-name()='p']" mode="inline">
6971
6975
  <fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
@@ -9225,6 +9229,53 @@
9225
9229
  </xsl:template><xsl:template match="*[local-name() = 'name']/text()">
9226
9230
  <!-- 0xA0 to space replacement -->
9227
9231
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
9232
+ </xsl:template><xsl:variable name="ul_labels_">
9233
+
9234
+ <label level="1" font-size="15pt">•</label>
9235
+ <label level="2">−</label><!-- &#x2212; - minus sign. &#x2014; - en dash -->
9236
+ <label level="3" font-size="75%">o</label> <!-- white circle -->
9237
+
9238
+
9239
+
9240
+
9241
+
9242
+
9243
+
9244
+
9245
+
9246
+
9247
+
9248
+
9249
+
9250
+
9251
+
9252
+
9253
+
9254
+ </xsl:variable><xsl:variable name="ul_labels" select="xalan:nodeset($ul_labels_)"/><xsl:template name="setULLabel">
9255
+ <xsl:variable name="list_level_" select="count(ancestor::*[local-name() = 'ul']) + count(ancestor::*[local-name() = 'ol'])"/>
9256
+ <xsl:variable name="list_level">
9257
+ <xsl:choose>
9258
+ <xsl:when test="$list_level_ &lt;= 3"><xsl:value-of select="$list_level_"/></xsl:when>
9259
+ <xsl:otherwise><xsl:value-of select="$list_level_ mod 3"/></xsl:otherwise>
9260
+ </xsl:choose>
9261
+ </xsl:variable>
9262
+ <xsl:choose>
9263
+ <xsl:when test="$ul_labels/label[not(@level)]"> <!-- one label for all levels -->
9264
+ <xsl:apply-templates select="$ul_labels/label[not(@level)]" mode="ul_labels"/>
9265
+ </xsl:when>
9266
+ <xsl:when test="$list_level mod 3 = 0">
9267
+ <xsl:apply-templates select="$ul_labels/label[@level = 3]" mode="ul_labels"/>
9268
+ </xsl:when>
9269
+ <xsl:when test="$list_level mod 2 = 0">
9270
+ <xsl:apply-templates select="$ul_labels/label[@level = 2]" mode="ul_labels"/>
9271
+ </xsl:when>
9272
+ <xsl:otherwise>
9273
+ <xsl:apply-templates select="$ul_labels/label[@level = 1]" mode="ul_labels"/>
9274
+ </xsl:otherwise>
9275
+ </xsl:choose>
9276
+ </xsl:template><xsl:template match="label" mode="ul_labels">
9277
+ <xsl:copy-of select="@*[not(local-name() = 'level')]"/>
9278
+ <xsl:value-of select="."/>
9228
9279
  </xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
9229
9280
  <xsl:choose>
9230
9281
  <xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
@@ -9709,6 +9760,10 @@
9709
9760
  </svg>
9710
9761
  </fo:instream-foreign-object>
9711
9762
  </fo:inline>
9763
+ </xsl:template><xsl:template match="@language">
9764
+ <xsl:copy-of select="."/>
9765
+ </xsl:template><xsl:template match="*[local-name() = 'p'][@type = 'floating-title']" priority="4">
9766
+ <xsl:call-template name="title"/>
9712
9767
  </xsl:template><xsl:template name="convertDate">
9713
9768
  <xsl:param name="date"/>
9714
9769
  <xsl:param name="format" select="'short'"/>
@@ -962,8 +962,11 @@
962
962
  <xsl:template name="setListItemLabel">
963
963
  <xsl:attribute name="label">
964
964
  <xsl:choose>
965
- <xsl:when test="local-name(..) = 'ul' and ../ancestor::bipm:ul">−</xsl:when> <!-- &#x2212; - minus sign. &#x2014; - dash -->
966
- <xsl:when test="local-name(..) = 'ul'">•</xsl:when> <!-- &#x2014; dash -->
965
+ <xsl:when test="local-name(..) = 'ul'">
966
+ <xsl:call-template name="setULLabel"/>
967
+ </xsl:when>
968
+ <!-- <xsl:when test="local-name(..) = 'ul' and ../ancestor::bipm:ul">&#x2212;</xsl:when> --> <!-- &#x2212; - minus sign. &#x2014; - dash -->
969
+ <!-- <xsl:when test="local-name(..) = 'ul'">•</xsl:when> --> <!-- &#x2014; dash -->
967
970
  <xsl:otherwise> <!-- for ordered lists -->
968
971
  <xsl:variable name="start_value">
969
972
  <xsl:choose>
@@ -2418,7 +2421,7 @@
2418
2421
  <!-- ====== -->
2419
2422
 
2420
2423
 
2421
- <xsl:template match="bipm:title" name="clause_title">
2424
+ <xsl:template match="bipm:title" name="title">
2422
2425
 
2423
2426
  <xsl:variable name="level">
2424
2427
  <xsl:call-template name="getLevel"/>
@@ -6966,6 +6969,7 @@
6966
6969
  </xsl:template><xsl:template match="*[local-name()='dd']" mode="dl"/><xsl:template match="*[local-name()='dd']" mode="dl_process">
6967
6970
  <xsl:apply-templates/>
6968
6971
  </xsl:template><xsl:template match="*[local-name()='dd']"/><xsl:template match="*[local-name()='dd']" mode="process">
6972
+ <xsl:apply-templates select="@language"/>
6969
6973
  <xsl:apply-templates/>
6970
6974
  </xsl:template><xsl:template match="*[local-name()='dd']/*[local-name()='p']" mode="inline">
6971
6975
  <fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
@@ -9225,6 +9229,53 @@
9225
9229
  </xsl:template><xsl:template match="*[local-name() = 'name']/text()">
9226
9230
  <!-- 0xA0 to space replacement -->
9227
9231
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
9232
+ </xsl:template><xsl:variable name="ul_labels_">
9233
+
9234
+ <label level="1" font-size="15pt">•</label>
9235
+ <label level="2">−</label><!-- &#x2212; - minus sign. &#x2014; - en dash -->
9236
+ <label level="3" font-size="75%">o</label> <!-- white circle -->
9237
+
9238
+
9239
+
9240
+
9241
+
9242
+
9243
+
9244
+
9245
+
9246
+
9247
+
9248
+
9249
+
9250
+
9251
+
9252
+
9253
+
9254
+ </xsl:variable><xsl:variable name="ul_labels" select="xalan:nodeset($ul_labels_)"/><xsl:template name="setULLabel">
9255
+ <xsl:variable name="list_level_" select="count(ancestor::*[local-name() = 'ul']) + count(ancestor::*[local-name() = 'ol'])"/>
9256
+ <xsl:variable name="list_level">
9257
+ <xsl:choose>
9258
+ <xsl:when test="$list_level_ &lt;= 3"><xsl:value-of select="$list_level_"/></xsl:when>
9259
+ <xsl:otherwise><xsl:value-of select="$list_level_ mod 3"/></xsl:otherwise>
9260
+ </xsl:choose>
9261
+ </xsl:variable>
9262
+ <xsl:choose>
9263
+ <xsl:when test="$ul_labels/label[not(@level)]"> <!-- one label for all levels -->
9264
+ <xsl:apply-templates select="$ul_labels/label[not(@level)]" mode="ul_labels"/>
9265
+ </xsl:when>
9266
+ <xsl:when test="$list_level mod 3 = 0">
9267
+ <xsl:apply-templates select="$ul_labels/label[@level = 3]" mode="ul_labels"/>
9268
+ </xsl:when>
9269
+ <xsl:when test="$list_level mod 2 = 0">
9270
+ <xsl:apply-templates select="$ul_labels/label[@level = 2]" mode="ul_labels"/>
9271
+ </xsl:when>
9272
+ <xsl:otherwise>
9273
+ <xsl:apply-templates select="$ul_labels/label[@level = 1]" mode="ul_labels"/>
9274
+ </xsl:otherwise>
9275
+ </xsl:choose>
9276
+ </xsl:template><xsl:template match="label" mode="ul_labels">
9277
+ <xsl:copy-of select="@*[not(local-name() = 'level')]"/>
9278
+ <xsl:value-of select="."/>
9228
9279
  </xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
9229
9280
  <xsl:choose>
9230
9281
  <xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
@@ -9709,6 +9760,10 @@
9709
9760
  </svg>
9710
9761
  </fo:instream-foreign-object>
9711
9762
  </fo:inline>
9763
+ </xsl:template><xsl:template match="@language">
9764
+ <xsl:copy-of select="."/>
9765
+ </xsl:template><xsl:template match="*[local-name() = 'p'][@type = 'floating-title']" priority="4">
9766
+ <xsl:call-template name="title"/>
9712
9767
  </xsl:template><xsl:template name="convertDate">
9713
9768
  <xsl:param name="date"/>
9714
9769
  <xsl:param name="format" select="'short'"/>
@@ -962,8 +962,11 @@
962
962
  <xsl:template name="setListItemLabel">
963
963
  <xsl:attribute name="label">
964
964
  <xsl:choose>
965
- <xsl:when test="local-name(..) = 'ul' and ../ancestor::bipm:ul">−</xsl:when> <!-- &#x2212; - minus sign. &#x2014; - dash -->
966
- <xsl:when test="local-name(..) = 'ul'">•</xsl:when> <!-- &#x2014; dash -->
965
+ <xsl:when test="local-name(..) = 'ul'">
966
+ <xsl:call-template name="setULLabel"/>
967
+ </xsl:when>
968
+ <!-- <xsl:when test="local-name(..) = 'ul' and ../ancestor::bipm:ul">&#x2212;</xsl:when> --> <!-- &#x2212; - minus sign. &#x2014; - dash -->
969
+ <!-- <xsl:when test="local-name(..) = 'ul'">•</xsl:when> --> <!-- &#x2014; dash -->
967
970
  <xsl:otherwise> <!-- for ordered lists -->
968
971
  <xsl:variable name="start_value">
969
972
  <xsl:choose>
@@ -2418,7 +2421,7 @@
2418
2421
  <!-- ====== -->
2419
2422
 
2420
2423
 
2421
- <xsl:template match="bipm:title" name="clause_title">
2424
+ <xsl:template match="bipm:title" name="title">
2422
2425
 
2423
2426
  <xsl:variable name="level">
2424
2427
  <xsl:call-template name="getLevel"/>
@@ -6966,6 +6969,7 @@
6966
6969
  </xsl:template><xsl:template match="*[local-name()='dd']" mode="dl"/><xsl:template match="*[local-name()='dd']" mode="dl_process">
6967
6970
  <xsl:apply-templates/>
6968
6971
  </xsl:template><xsl:template match="*[local-name()='dd']"/><xsl:template match="*[local-name()='dd']" mode="process">
6972
+ <xsl:apply-templates select="@language"/>
6969
6973
  <xsl:apply-templates/>
6970
6974
  </xsl:template><xsl:template match="*[local-name()='dd']/*[local-name()='p']" mode="inline">
6971
6975
  <fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
@@ -9225,6 +9229,53 @@
9225
9229
  </xsl:template><xsl:template match="*[local-name() = 'name']/text()">
9226
9230
  <!-- 0xA0 to space replacement -->
9227
9231
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
9232
+ </xsl:template><xsl:variable name="ul_labels_">
9233
+
9234
+ <label level="1" font-size="15pt">•</label>
9235
+ <label level="2">−</label><!-- &#x2212; - minus sign. &#x2014; - en dash -->
9236
+ <label level="3" font-size="75%">o</label> <!-- white circle -->
9237
+
9238
+
9239
+
9240
+
9241
+
9242
+
9243
+
9244
+
9245
+
9246
+
9247
+
9248
+
9249
+
9250
+
9251
+
9252
+
9253
+
9254
+ </xsl:variable><xsl:variable name="ul_labels" select="xalan:nodeset($ul_labels_)"/><xsl:template name="setULLabel">
9255
+ <xsl:variable name="list_level_" select="count(ancestor::*[local-name() = 'ul']) + count(ancestor::*[local-name() = 'ol'])"/>
9256
+ <xsl:variable name="list_level">
9257
+ <xsl:choose>
9258
+ <xsl:when test="$list_level_ &lt;= 3"><xsl:value-of select="$list_level_"/></xsl:when>
9259
+ <xsl:otherwise><xsl:value-of select="$list_level_ mod 3"/></xsl:otherwise>
9260
+ </xsl:choose>
9261
+ </xsl:variable>
9262
+ <xsl:choose>
9263
+ <xsl:when test="$ul_labels/label[not(@level)]"> <!-- one label for all levels -->
9264
+ <xsl:apply-templates select="$ul_labels/label[not(@level)]" mode="ul_labels"/>
9265
+ </xsl:when>
9266
+ <xsl:when test="$list_level mod 3 = 0">
9267
+ <xsl:apply-templates select="$ul_labels/label[@level = 3]" mode="ul_labels"/>
9268
+ </xsl:when>
9269
+ <xsl:when test="$list_level mod 2 = 0">
9270
+ <xsl:apply-templates select="$ul_labels/label[@level = 2]" mode="ul_labels"/>
9271
+ </xsl:when>
9272
+ <xsl:otherwise>
9273
+ <xsl:apply-templates select="$ul_labels/label[@level = 1]" mode="ul_labels"/>
9274
+ </xsl:otherwise>
9275
+ </xsl:choose>
9276
+ </xsl:template><xsl:template match="label" mode="ul_labels">
9277
+ <xsl:copy-of select="@*[not(local-name() = 'level')]"/>
9278
+ <xsl:value-of select="."/>
9228
9279
  </xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
9229
9280
  <xsl:choose>
9230
9281
  <xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
@@ -9709,6 +9760,10 @@
9709
9760
  </svg>
9710
9761
  </fo:instream-foreign-object>
9711
9762
  </fo:inline>
9763
+ </xsl:template><xsl:template match="@language">
9764
+ <xsl:copy-of select="."/>
9765
+ </xsl:template><xsl:template match="*[local-name() = 'p'][@type = 'floating-title']" priority="4">
9766
+ <xsl:call-template name="title"/>
9712
9767
  </xsl:template><xsl:template name="convertDate">
9713
9768
  <xsl:param name="date"/>
9714
9769
  <xsl:param name="format" select="'short'"/>
@@ -76,6 +76,12 @@ code *, pre *, tt *, kbd *, samp * {
76
76
  font-family: {{monospacefont}} !important;
77
77
  font-variant-ligatures: none; }
78
78
 
79
+ p code, dt code, li code, label code, legend code, caption code, th code, td code,
80
+ p tt, dt tt, li tt, label tt, legend tt, caption tt, th tt, td tt,
81
+ p kbd, dt kbd, li kbd, label kbd, legend kbd, caption kbd, th kbd, td kbd,
82
+ p samp, dt samp, li samp, label samp, legend samp, caption samp, th samp, td samp {
83
+ font-size: {{monospacefontsize}}; }
84
+
79
85
  article, aside, details, figcaption, figure,
80
86
  footer, header, hgroup, menu, nav, section {
81
87
  display: block; }
@@ -87,6 +93,9 @@ table {
87
93
  h1, h2, h3, h4, h5, h6 {
88
94
  font-family: {{headerfont}}; }
89
95
 
96
+ .h1, .h2, .h3, .h4, .h5, .h6 {
97
+ font-family: {{headerfont}}; }
98
+
90
99
  blockquote, q {
91
100
  quotes: none; }
92
101
  blockquote:before, blockquote:after, q:before, q:after {
@@ -470,27 +479,27 @@ p.document-stage {
470
479
  /*
471
480
  3.1 Titles
472
481
  */
473
- h1, h2, h3, h4, h5, h6 {
482
+ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
474
483
  font-family: {{headerfont}};
475
484
  color: #6C734A;
476
485
  font-weight: 300;
477
486
  margin-top: 1.6em;
478
487
  margin-bottom: 0.3em; }
479
488
 
480
- h1 {
489
+ h1, .h1 {
481
490
  font-size: 1.6em;
482
491
  text-transform: uppercase;
483
492
  margin-top: 2em; }
484
493
 
485
- h1#content {
494
+ h1#content, #content.h1 {
486
495
  margin-top: 2em; }
487
496
 
488
- h2 {
497
+ h2, .h2 {
489
498
  margin-top: 1.3em;
490
499
  font-size: 1.3em;
491
500
  font-weight: 400; }
492
501
 
493
- h3 {
502
+ h3, .h3 {
494
503
  margin-top: 1.1em;
495
504
  font-size: 1.1em;
496
505
  font-weight: 100; }
@@ -802,7 +811,7 @@ p {
802
811
  margin-top: 1em;
803
812
  margin-bottom: 1em; }
804
813
 
805
- h2 p {
814
+ h2 p, .h2 p {
806
815
  display: inline; }
807
816
 
808
817
  /*
@@ -954,7 +963,7 @@ To top button
954
963
  @media print {
955
964
  .document-info, nav, .copyright {
956
965
  page-break-before: always; }
957
- h1, h2, h3, h4 {
966
+ h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
958
967
  page-break-after: avoid;
959
968
  margin-top: 1.2em; }
960
969
  .note, .figure, pre, .pseudocode, table {
@@ -974,15 +983,15 @@ To top button
974
983
  display: none; }
975
984
  .container {
976
985
  padding-left: 0; }
977
- h1.content {
986
+ h1.content, .h1.content {
978
987
  margin-top: 2em;
979
988
  line-height: 2.5em; }
980
- h1 {
989
+ h1, .h1 {
981
990
  font-size: 1.5em;
982
991
  line-height: 1.5; }
983
- h2 {
992
+ h2, .h2 {
984
993
  font-size: 1.2em; }
985
- h3 {
994
+ h3, .h3 {
986
995
  font-size: 1em; }
987
996
  .Note {
988
997
  background-color: #fff495;
@@ -159,7 +159,7 @@ p.document-stage {
159
159
  3.1 Titles
160
160
  */
161
161
 
162
- h1,h2,h3,h4,h5,h6 {
162
+ h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6 {
163
163
  font-family: $headerfont;
164
164
  color: #6C734A;
165
165
  font-weight: 300;
@@ -167,23 +167,23 @@ p.document-stage {
167
167
  margin-bottom: 0.3em;
168
168
  }
169
169
 
170
- h1 {
170
+ h1,.h1 {
171
171
  font-size: 1.6em;
172
172
  text-transform: uppercase;
173
173
  margin-top: 2em;
174
174
  }
175
175
 
176
- h1#content {
176
+ h1#content,.h1#content {
177
177
  margin-top: 2em;
178
178
  }
179
179
 
180
- h2 {
180
+ h2,.h2 {
181
181
  margin-top: 1.3em;
182
182
  font-size: 1.3em;
183
183
  font-weight: 400;
184
184
  }
185
185
 
186
- h3 {
186
+ h3,.h3 {
187
187
  margin-top: 1.1em;
188
188
  font-size: 1.1em;
189
189
  font-weight: 100;
@@ -485,7 +485,7 @@ p {
485
485
  margin-bottom: 1em;
486
486
  }
487
487
 
488
- h2 p {
488
+ h2 p, .h2 p {
489
489
  display: inline;
490
490
  }
491
491
 
@@ -658,7 +658,7 @@ To top button
658
658
  page-break-before: always;
659
659
  }
660
660
 
661
- h1, h2, h3, h4 {
661
+ h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
662
662
  page-break-after: avoid;
663
663
  margin-top: 1.2em;
664
664
  }
@@ -695,21 +695,21 @@ To top button
695
695
  padding-left: 0;
696
696
  }
697
697
 
698
- h1.content {
698
+ h1.content,.h1.content {
699
699
  margin-top: 2em;
700
700
  line-height: 2.5em;
701
701
  }
702
702
 
703
- h1 {
703
+ h1,.h1 {
704
704
  font-size: 1.5em;
705
705
  line-height: 1.5;
706
706
  }
707
707
 
708
- h2 {
708
+ h2,.h2 {
709
709
  font-size: 1.2em
710
710
  }
711
711
 
712
- h3 {
712
+ h3,.h3 {
713
713
  font-size: 1em;
714
714
  }
715
715
 
@@ -629,8 +629,9 @@
629
629
 
630
630
  <xsl:template name="getListItemFormat">
631
631
  <xsl:choose>
632
- <xsl:when test="local-name(..) = 'ul' and ../ancestor::jcgm:ul">−</xsl:when> <!-- &#x2212; - minus sign. &#x2014; - dash -->
633
- <xsl:when test="local-name(..) = 'ul'">—</xsl:when> <!-- &#x2014; dash -->
632
+ <xsl:when test="local-name(..) = 'ul'">
633
+ <xsl:call-template name="setULLabel"/>
634
+ </xsl:when>
634
635
  <xsl:otherwise> <!-- for ordered lists -->
635
636
  <xsl:variable name="start_value">
636
637
  <xsl:choose>
@@ -1284,7 +1285,7 @@
1284
1285
  </xsl:if>
1285
1286
  </xsl:template>
1286
1287
 
1287
- <xsl:template match="jcgm:title">
1288
+ <xsl:template match="jcgm:title" name="title">
1288
1289
 
1289
1290
  <xsl:variable name="level">
1290
1291
  <xsl:call-template name="getLevel"/>
@@ -4363,6 +4364,7 @@
4363
4364
  </xsl:template><xsl:template match="*[local-name()='dd']" mode="dl"/><xsl:template match="*[local-name()='dd']" mode="dl_process">
4364
4365
  <xsl:apply-templates/>
4365
4366
  </xsl:template><xsl:template match="*[local-name()='dd']"/><xsl:template match="*[local-name()='dd']" mode="process">
4367
+ <xsl:apply-templates select="@language"/>
4366
4368
  <xsl:apply-templates/>
4367
4369
  </xsl:template><xsl:template match="*[local-name()='dd']/*[local-name()='p']" mode="inline">
4368
4370
  <fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
@@ -6575,6 +6577,53 @@
6575
6577
  </xsl:template><xsl:template match="*[local-name() = 'name']/text()">
6576
6578
  <!-- 0xA0 to space replacement -->
6577
6579
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
6580
+ </xsl:template><xsl:variable name="ul_labels_">
6581
+
6582
+
6583
+
6584
+
6585
+
6586
+
6587
+
6588
+
6589
+ <label level="1">—</label> <!-- em dash -->
6590
+ <label level="2">−</label><!-- minus sign -->
6591
+ <label level="3" font-size="75%">o</label> <!-- white circle -->
6592
+
6593
+
6594
+
6595
+
6596
+
6597
+
6598
+
6599
+
6600
+
6601
+
6602
+ </xsl:variable><xsl:variable name="ul_labels" select="xalan:nodeset($ul_labels_)"/><xsl:template name="setULLabel">
6603
+ <xsl:variable name="list_level_" select="count(ancestor::*[local-name() = 'ul']) + count(ancestor::*[local-name() = 'ol'])"/>
6604
+ <xsl:variable name="list_level">
6605
+ <xsl:choose>
6606
+ <xsl:when test="$list_level_ &lt;= 3"><xsl:value-of select="$list_level_"/></xsl:when>
6607
+ <xsl:otherwise><xsl:value-of select="$list_level_ mod 3"/></xsl:otherwise>
6608
+ </xsl:choose>
6609
+ </xsl:variable>
6610
+ <xsl:choose>
6611
+ <xsl:when test="$ul_labels/label[not(@level)]"> <!-- one label for all levels -->
6612
+ <xsl:apply-templates select="$ul_labels/label[not(@level)]" mode="ul_labels"/>
6613
+ </xsl:when>
6614
+ <xsl:when test="$list_level mod 3 = 0">
6615
+ <xsl:apply-templates select="$ul_labels/label[@level = 3]" mode="ul_labels"/>
6616
+ </xsl:when>
6617
+ <xsl:when test="$list_level mod 2 = 0">
6618
+ <xsl:apply-templates select="$ul_labels/label[@level = 2]" mode="ul_labels"/>
6619
+ </xsl:when>
6620
+ <xsl:otherwise>
6621
+ <xsl:apply-templates select="$ul_labels/label[@level = 1]" mode="ul_labels"/>
6622
+ </xsl:otherwise>
6623
+ </xsl:choose>
6624
+ </xsl:template><xsl:template match="label" mode="ul_labels">
6625
+ <xsl:copy-of select="@*[not(local-name() = 'level')]"/>
6626
+ <xsl:value-of select="."/>
6578
6627
  </xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
6579
6628
  <xsl:choose>
6580
6629
  <xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
@@ -7028,6 +7077,10 @@
7028
7077
  </svg>
7029
7078
  </fo:instream-foreign-object>
7030
7079
  </fo:inline>
7080
+ </xsl:template><xsl:template match="@language">
7081
+ <xsl:copy-of select="."/>
7082
+ </xsl:template><xsl:template match="*[local-name() = 'p'][@type = 'floating-title']" priority="4">
7083
+ <xsl:call-template name="title"/>
7031
7084
  </xsl:template><xsl:template name="convertDate">
7032
7085
  <xsl:param name="date"/>
7033
7086
  <xsl:param name="format" select="'short'"/>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module BIPM
3
- VERSION = "1.2.4".freeze
3
+ VERSION = "1.2.5".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: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-13 00:00:00.000000000 Z
11
+ date: 2021-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic