metanorma-bipm 2.1.4 → 2.1.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: 8de2c864f697dd38f483b36b95daeb6f88f1c3b03ae1d2ceb6f2ae962273ee1a
4
- data.tar.gz: 06b75e980255f8dd9a4d5b879b5e88e2a0a729b7adcc1d73bc369d7cf475d4cb
3
+ metadata.gz: 1d58d308305181236d5e44fc31d189b9d91b50acd3290652961403a295351a0d
4
+ data.tar.gz: 20588c989392592de3612ba0aee52eca2e25fe18461dcdb9eea73f709a5feb13
5
5
  SHA512:
6
- metadata.gz: fae1c30063c28568540400c9a5cde38106d11a0956b981a4770f911ca2d49debc80c1ff3e8fcddb122dab905c69b441387f9aad8ca763f4f3a262414be2f1b76
7
- data.tar.gz: d6c1b101c93980f8b9503f23cffbedfba357baf237383894df6704c166d08244deeca2c119f59e1139ada398c2020d5b1647efa8c14962f0f0d4b3b2ad0608a9
6
+ metadata.gz: 8de0d059a658d6acd672c0066ff82953a3e861b1d2cfd95023113d2dd6d47d7c27230dd471115791feb2469aec73a48ca4d050faf232082a6d901ef83f3a0dd9
7
+ data.tar.gz: 8ecb8ace8463cced956f515a1a4490036741a6c28696b2eedd0969dc696fa3ea0db84ce7550d69a2b00490794f35a270a2aceeb92e5b3056f89c6cba270fdfb0
@@ -33,12 +33,6 @@ module IsoDoc
33
33
  end
34
34
  end
35
35
 
36
- def omit_docid_prefix(prefix)
37
- return true if %w(BIPM).include? prefix
38
-
39
- super
40
- end
41
-
42
36
  def render_identifier(ident)
43
37
  ret = super
44
38
  ret[:sdo] = ret[:sdo]&.sub(/^(BIPM) (PV|CR) (\d.*)$/,
@@ -1156,7 +1156,7 @@
1156
1156
  <xsl:apply-templates select="bipm:annex" mode="sections"/>
1157
1157
 
1158
1158
  <!-- Bibliography -->
1159
- <xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
1159
+ <xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')][not(@hidden='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
1160
1160
  <xsl:apply-templates select="bipm:bibliography/bipm:references[not(@normative='true')]" mode="sections"/>
1161
1161
  </xsl:if>
1162
1162
 
@@ -1317,7 +1317,7 @@
1317
1317
 
1318
1318
  <xsl:apply-templates select="bipm:annex" mode="sections"/>
1319
1319
 
1320
- <xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
1320
+ <xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')][not(@hidden='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
1321
1321
  <xsl:apply-templates select="bipm:bibliography/bipm:references[not(@normative='true')]" mode="sections"/>
1322
1322
  </xsl:if>
1323
1323
 
@@ -5116,10 +5116,12 @@
5116
5116
  </xsl:attribute-set><xsl:attribute-set name="bibitem-normative-list-body-style">
5117
5117
 
5118
5118
 
5119
+
5119
5120
  </xsl:attribute-set><xsl:attribute-set name="bibitem-non-normative-list-body-style">
5120
5121
 
5121
5122
 
5122
5123
 
5124
+
5123
5125
  </xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-style">
5124
5126
  <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
5125
5127
  <xsl:attribute name="font-size">65%</xsl:attribute>
@@ -5774,6 +5776,14 @@
5774
5776
 
5775
5777
 
5776
5778
 
5779
+ <xsl:if test="*[local-name()='bookmark']"> <!-- special case: table/bookmark -->
5780
+ <fo:block keep-with-previous="always" line-height="0.1">
5781
+ <xsl:for-each select="*[local-name()='bookmark']">
5782
+ <xsl:call-template name="bookmark"/>
5783
+ </xsl:for-each>
5784
+ </fo:block>
5785
+ </xsl:if>
5786
+
5777
5787
  </fo:block-container>
5778
5788
  </xsl:variable>
5779
5789
 
@@ -9699,7 +9709,7 @@
9699
9709
 
9700
9710
 
9701
9711
  <!-- <xsl:if test="$namespace = 'ieee'">
9702
- <xsl:if test="$doctype = 'standard' and $stage = 'published'">8</xsl:if>
9712
+ <xsl:if test="$current_template = 'standard'">8</xsl:if>
9703
9713
  </xsl:if> -->
9704
9714
 
9705
9715
 
@@ -11031,7 +11041,7 @@
11031
11041
  </xsl:template><xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']/text()">
11032
11042
  <!-- to split by '_' and other chars -->
11033
11043
  <xsl:call-template name="add-zero-spaces-java"/>
11034
- </xsl:template><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
11044
+ </xsl:template><xsl:template match="*[local-name() = 'table']/*[local-name() = 'bookmark']" priority="2"/><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
11035
11045
  <!-- <fo:inline id="{@id}" font-size="1pt"/> -->
11036
11046
  <fo:inline id="{@id}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:inline>
11037
11047
  <!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
@@ -11815,6 +11825,7 @@
11815
11825
  </xsl:call-template>
11816
11826
  </xsl:template><xsl:template name="insertKeywords">
11817
11827
  <xsl:param name="sorting" select="'true'"/>
11828
+ <xsl:param name="meta" select="'false'"/>
11818
11829
  <xsl:param name="charAtEnd" select="'.'"/>
11819
11830
  <xsl:param name="charDelim" select="', '"/>
11820
11831
  <xsl:choose>
@@ -11822,6 +11833,7 @@
11822
11833
  <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
11823
11834
  <xsl:sort data-type="text" order="ascending"/>
11824
11835
  <xsl:call-template name="insertKeyword">
11836
+ <xsl:with-param name="meta" select="$meta"/>
11825
11837
  <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
11826
11838
  <xsl:with-param name="charDelim" select="$charDelim"/>
11827
11839
  </xsl:call-template>
@@ -11830,6 +11842,7 @@
11830
11842
  <xsl:otherwise>
11831
11843
  <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
11832
11844
  <xsl:call-template name="insertKeyword">
11845
+ <xsl:with-param name="meta" select="$meta"/>
11833
11846
  <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
11834
11847
  <xsl:with-param name="charDelim" select="$charDelim"/>
11835
11848
  </xsl:call-template>
@@ -11839,7 +11852,15 @@
11839
11852
  </xsl:template><xsl:template name="insertKeyword">
11840
11853
  <xsl:param name="charAtEnd"/>
11841
11854
  <xsl:param name="charDelim"/>
11842
- <xsl:apply-templates/>
11855
+ <xsl:param name="meta"/>
11856
+ <xsl:choose>
11857
+ <xsl:when test="$meta = 'true'">
11858
+ <xsl:value-of select="."/>
11859
+ </xsl:when>
11860
+ <xsl:otherwise>
11861
+ <xsl:apply-templates/>
11862
+ </xsl:otherwise>
11863
+ </xsl:choose>
11843
11864
  <xsl:choose>
11844
11865
  <xsl:when test="position() != last()"><xsl:value-of select="$charDelim"/></xsl:when>
11845
11866
  <xsl:otherwise><xsl:value-of select="$charAtEnd"/></xsl:otherwise>
@@ -11890,7 +11911,9 @@
11890
11911
  <xsl:value-of select="normalize-space($abstract)"/>
11891
11912
  </dc:description>
11892
11913
  <pdf:Keywords>
11893
- <xsl:call-template name="insertKeywords"/>
11914
+ <xsl:call-template name="insertKeywords">
11915
+ <xsl:with-param name="meta">true</xsl:with-param>
11916
+ </xsl:call-template>
11894
11917
  </pdf:Keywords>
11895
11918
  </rdf:Description>
11896
11919
  <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
@@ -1156,7 +1156,7 @@
1156
1156
  <xsl:apply-templates select="bipm:annex" mode="sections"/>
1157
1157
 
1158
1158
  <!-- Bibliography -->
1159
- <xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
1159
+ <xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')][not(@hidden='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
1160
1160
  <xsl:apply-templates select="bipm:bibliography/bipm:references[not(@normative='true')]" mode="sections"/>
1161
1161
  </xsl:if>
1162
1162
 
@@ -1317,7 +1317,7 @@
1317
1317
 
1318
1318
  <xsl:apply-templates select="bipm:annex" mode="sections"/>
1319
1319
 
1320
- <xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
1320
+ <xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')][not(@hidden='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
1321
1321
  <xsl:apply-templates select="bipm:bibliography/bipm:references[not(@normative='true')]" mode="sections"/>
1322
1322
  </xsl:if>
1323
1323
 
@@ -5116,10 +5116,12 @@
5116
5116
  </xsl:attribute-set><xsl:attribute-set name="bibitem-normative-list-body-style">
5117
5117
 
5118
5118
 
5119
+
5119
5120
  </xsl:attribute-set><xsl:attribute-set name="bibitem-non-normative-list-body-style">
5120
5121
 
5121
5122
 
5122
5123
 
5124
+
5123
5125
  </xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-style">
5124
5126
  <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
5125
5127
  <xsl:attribute name="font-size">65%</xsl:attribute>
@@ -5774,6 +5776,14 @@
5774
5776
 
5775
5777
 
5776
5778
 
5779
+ <xsl:if test="*[local-name()='bookmark']"> <!-- special case: table/bookmark -->
5780
+ <fo:block keep-with-previous="always" line-height="0.1">
5781
+ <xsl:for-each select="*[local-name()='bookmark']">
5782
+ <xsl:call-template name="bookmark"/>
5783
+ </xsl:for-each>
5784
+ </fo:block>
5785
+ </xsl:if>
5786
+
5777
5787
  </fo:block-container>
5778
5788
  </xsl:variable>
5779
5789
 
@@ -9699,7 +9709,7 @@
9699
9709
 
9700
9710
 
9701
9711
  <!-- <xsl:if test="$namespace = 'ieee'">
9702
- <xsl:if test="$doctype = 'standard' and $stage = 'published'">8</xsl:if>
9712
+ <xsl:if test="$current_template = 'standard'">8</xsl:if>
9703
9713
  </xsl:if> -->
9704
9714
 
9705
9715
 
@@ -11031,7 +11041,7 @@
11031
11041
  </xsl:template><xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']/text()">
11032
11042
  <!-- to split by '_' and other chars -->
11033
11043
  <xsl:call-template name="add-zero-spaces-java"/>
11034
- </xsl:template><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
11044
+ </xsl:template><xsl:template match="*[local-name() = 'table']/*[local-name() = 'bookmark']" priority="2"/><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
11035
11045
  <!-- <fo:inline id="{@id}" font-size="1pt"/> -->
11036
11046
  <fo:inline id="{@id}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:inline>
11037
11047
  <!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
@@ -11815,6 +11825,7 @@
11815
11825
  </xsl:call-template>
11816
11826
  </xsl:template><xsl:template name="insertKeywords">
11817
11827
  <xsl:param name="sorting" select="'true'"/>
11828
+ <xsl:param name="meta" select="'false'"/>
11818
11829
  <xsl:param name="charAtEnd" select="'.'"/>
11819
11830
  <xsl:param name="charDelim" select="', '"/>
11820
11831
  <xsl:choose>
@@ -11822,6 +11833,7 @@
11822
11833
  <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
11823
11834
  <xsl:sort data-type="text" order="ascending"/>
11824
11835
  <xsl:call-template name="insertKeyword">
11836
+ <xsl:with-param name="meta" select="$meta"/>
11825
11837
  <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
11826
11838
  <xsl:with-param name="charDelim" select="$charDelim"/>
11827
11839
  </xsl:call-template>
@@ -11830,6 +11842,7 @@
11830
11842
  <xsl:otherwise>
11831
11843
  <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
11832
11844
  <xsl:call-template name="insertKeyword">
11845
+ <xsl:with-param name="meta" select="$meta"/>
11833
11846
  <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
11834
11847
  <xsl:with-param name="charDelim" select="$charDelim"/>
11835
11848
  </xsl:call-template>
@@ -11839,7 +11852,15 @@
11839
11852
  </xsl:template><xsl:template name="insertKeyword">
11840
11853
  <xsl:param name="charAtEnd"/>
11841
11854
  <xsl:param name="charDelim"/>
11842
- <xsl:apply-templates/>
11855
+ <xsl:param name="meta"/>
11856
+ <xsl:choose>
11857
+ <xsl:when test="$meta = 'true'">
11858
+ <xsl:value-of select="."/>
11859
+ </xsl:when>
11860
+ <xsl:otherwise>
11861
+ <xsl:apply-templates/>
11862
+ </xsl:otherwise>
11863
+ </xsl:choose>
11843
11864
  <xsl:choose>
11844
11865
  <xsl:when test="position() != last()"><xsl:value-of select="$charDelim"/></xsl:when>
11845
11866
  <xsl:otherwise><xsl:value-of select="$charAtEnd"/></xsl:otherwise>
@@ -11890,7 +11911,9 @@
11890
11911
  <xsl:value-of select="normalize-space($abstract)"/>
11891
11912
  </dc:description>
11892
11913
  <pdf:Keywords>
11893
- <xsl:call-template name="insertKeywords"/>
11914
+ <xsl:call-template name="insertKeywords">
11915
+ <xsl:with-param name="meta">true</xsl:with-param>
11916
+ </xsl:call-template>
11894
11917
  </pdf:Keywords>
11895
11918
  </rdf:Description>
11896
11919
  <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
@@ -1156,7 +1156,7 @@
1156
1156
  <xsl:apply-templates select="bipm:annex" mode="sections"/>
1157
1157
 
1158
1158
  <!-- Bibliography -->
1159
- <xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
1159
+ <xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')][not(@hidden='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
1160
1160
  <xsl:apply-templates select="bipm:bibliography/bipm:references[not(@normative='true')]" mode="sections"/>
1161
1161
  </xsl:if>
1162
1162
 
@@ -1317,7 +1317,7 @@
1317
1317
 
1318
1318
  <xsl:apply-templates select="bipm:annex" mode="sections"/>
1319
1319
 
1320
- <xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
1320
+ <xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')][not(@hidden='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
1321
1321
  <xsl:apply-templates select="bipm:bibliography/bipm:references[not(@normative='true')]" mode="sections"/>
1322
1322
  </xsl:if>
1323
1323
 
@@ -5116,10 +5116,12 @@
5116
5116
  </xsl:attribute-set><xsl:attribute-set name="bibitem-normative-list-body-style">
5117
5117
 
5118
5118
 
5119
+
5119
5120
  </xsl:attribute-set><xsl:attribute-set name="bibitem-non-normative-list-body-style">
5120
5121
 
5121
5122
 
5122
5123
 
5124
+
5123
5125
  </xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-style">
5124
5126
  <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
5125
5127
  <xsl:attribute name="font-size">65%</xsl:attribute>
@@ -5774,6 +5776,14 @@
5774
5776
 
5775
5777
 
5776
5778
 
5779
+ <xsl:if test="*[local-name()='bookmark']"> <!-- special case: table/bookmark -->
5780
+ <fo:block keep-with-previous="always" line-height="0.1">
5781
+ <xsl:for-each select="*[local-name()='bookmark']">
5782
+ <xsl:call-template name="bookmark"/>
5783
+ </xsl:for-each>
5784
+ </fo:block>
5785
+ </xsl:if>
5786
+
5777
5787
  </fo:block-container>
5778
5788
  </xsl:variable>
5779
5789
 
@@ -9699,7 +9709,7 @@
9699
9709
 
9700
9710
 
9701
9711
  <!-- <xsl:if test="$namespace = 'ieee'">
9702
- <xsl:if test="$doctype = 'standard' and $stage = 'published'">8</xsl:if>
9712
+ <xsl:if test="$current_template = 'standard'">8</xsl:if>
9703
9713
  </xsl:if> -->
9704
9714
 
9705
9715
 
@@ -11031,7 +11041,7 @@
11031
11041
  </xsl:template><xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']/text()">
11032
11042
  <!-- to split by '_' and other chars -->
11033
11043
  <xsl:call-template name="add-zero-spaces-java"/>
11034
- </xsl:template><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
11044
+ </xsl:template><xsl:template match="*[local-name() = 'table']/*[local-name() = 'bookmark']" priority="2"/><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
11035
11045
  <!-- <fo:inline id="{@id}" font-size="1pt"/> -->
11036
11046
  <fo:inline id="{@id}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:inline>
11037
11047
  <!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
@@ -11815,6 +11825,7 @@
11815
11825
  </xsl:call-template>
11816
11826
  </xsl:template><xsl:template name="insertKeywords">
11817
11827
  <xsl:param name="sorting" select="'true'"/>
11828
+ <xsl:param name="meta" select="'false'"/>
11818
11829
  <xsl:param name="charAtEnd" select="'.'"/>
11819
11830
  <xsl:param name="charDelim" select="', '"/>
11820
11831
  <xsl:choose>
@@ -11822,6 +11833,7 @@
11822
11833
  <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
11823
11834
  <xsl:sort data-type="text" order="ascending"/>
11824
11835
  <xsl:call-template name="insertKeyword">
11836
+ <xsl:with-param name="meta" select="$meta"/>
11825
11837
  <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
11826
11838
  <xsl:with-param name="charDelim" select="$charDelim"/>
11827
11839
  </xsl:call-template>
@@ -11830,6 +11842,7 @@
11830
11842
  <xsl:otherwise>
11831
11843
  <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
11832
11844
  <xsl:call-template name="insertKeyword">
11845
+ <xsl:with-param name="meta" select="$meta"/>
11833
11846
  <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
11834
11847
  <xsl:with-param name="charDelim" select="$charDelim"/>
11835
11848
  </xsl:call-template>
@@ -11839,7 +11852,15 @@
11839
11852
  </xsl:template><xsl:template name="insertKeyword">
11840
11853
  <xsl:param name="charAtEnd"/>
11841
11854
  <xsl:param name="charDelim"/>
11842
- <xsl:apply-templates/>
11855
+ <xsl:param name="meta"/>
11856
+ <xsl:choose>
11857
+ <xsl:when test="$meta = 'true'">
11858
+ <xsl:value-of select="."/>
11859
+ </xsl:when>
11860
+ <xsl:otherwise>
11861
+ <xsl:apply-templates/>
11862
+ </xsl:otherwise>
11863
+ </xsl:choose>
11843
11864
  <xsl:choose>
11844
11865
  <xsl:when test="position() != last()"><xsl:value-of select="$charDelim"/></xsl:when>
11845
11866
  <xsl:otherwise><xsl:value-of select="$charAtEnd"/></xsl:otherwise>
@@ -11890,7 +11911,9 @@
11890
11911
  <xsl:value-of select="normalize-space($abstract)"/>
11891
11912
  </dc:description>
11892
11913
  <pdf:Keywords>
11893
- <xsl:call-template name="insertKeywords"/>
11914
+ <xsl:call-template name="insertKeywords">
11915
+ <xsl:with-param name="meta">true</xsl:with-param>
11916
+ </xsl:call-template>
11894
11917
  </pdf:Keywords>
11895
11918
  </rdf:Description>
11896
11919
  <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
@@ -1156,7 +1156,7 @@
1156
1156
  <xsl:apply-templates select="bipm:annex" mode="sections"/>
1157
1157
 
1158
1158
  <!-- Bibliography -->
1159
- <xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
1159
+ <xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')][not(@hidden='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
1160
1160
  <xsl:apply-templates select="bipm:bibliography/bipm:references[not(@normative='true')]" mode="sections"/>
1161
1161
  </xsl:if>
1162
1162
 
@@ -1317,7 +1317,7 @@
1317
1317
 
1318
1318
  <xsl:apply-templates select="bipm:annex" mode="sections"/>
1319
1319
 
1320
- <xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
1320
+ <xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')][not(@hidden='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
1321
1321
  <xsl:apply-templates select="bipm:bibliography/bipm:references[not(@normative='true')]" mode="sections"/>
1322
1322
  </xsl:if>
1323
1323
 
@@ -5116,10 +5116,12 @@
5116
5116
  </xsl:attribute-set><xsl:attribute-set name="bibitem-normative-list-body-style">
5117
5117
 
5118
5118
 
5119
+
5119
5120
  </xsl:attribute-set><xsl:attribute-set name="bibitem-non-normative-list-body-style">
5120
5121
 
5121
5122
 
5122
5123
 
5124
+
5123
5125
  </xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-style">
5124
5126
  <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
5125
5127
  <xsl:attribute name="font-size">65%</xsl:attribute>
@@ -5774,6 +5776,14 @@
5774
5776
 
5775
5777
 
5776
5778
 
5779
+ <xsl:if test="*[local-name()='bookmark']"> <!-- special case: table/bookmark -->
5780
+ <fo:block keep-with-previous="always" line-height="0.1">
5781
+ <xsl:for-each select="*[local-name()='bookmark']">
5782
+ <xsl:call-template name="bookmark"/>
5783
+ </xsl:for-each>
5784
+ </fo:block>
5785
+ </xsl:if>
5786
+
5777
5787
  </fo:block-container>
5778
5788
  </xsl:variable>
5779
5789
 
@@ -9699,7 +9709,7 @@
9699
9709
 
9700
9710
 
9701
9711
  <!-- <xsl:if test="$namespace = 'ieee'">
9702
- <xsl:if test="$doctype = 'standard' and $stage = 'published'">8</xsl:if>
9712
+ <xsl:if test="$current_template = 'standard'">8</xsl:if>
9703
9713
  </xsl:if> -->
9704
9714
 
9705
9715
 
@@ -11031,7 +11041,7 @@
11031
11041
  </xsl:template><xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']/text()">
11032
11042
  <!-- to split by '_' and other chars -->
11033
11043
  <xsl:call-template name="add-zero-spaces-java"/>
11034
- </xsl:template><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
11044
+ </xsl:template><xsl:template match="*[local-name() = 'table']/*[local-name() = 'bookmark']" priority="2"/><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
11035
11045
  <!-- <fo:inline id="{@id}" font-size="1pt"/> -->
11036
11046
  <fo:inline id="{@id}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:inline>
11037
11047
  <!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
@@ -11815,6 +11825,7 @@
11815
11825
  </xsl:call-template>
11816
11826
  </xsl:template><xsl:template name="insertKeywords">
11817
11827
  <xsl:param name="sorting" select="'true'"/>
11828
+ <xsl:param name="meta" select="'false'"/>
11818
11829
  <xsl:param name="charAtEnd" select="'.'"/>
11819
11830
  <xsl:param name="charDelim" select="', '"/>
11820
11831
  <xsl:choose>
@@ -11822,6 +11833,7 @@
11822
11833
  <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
11823
11834
  <xsl:sort data-type="text" order="ascending"/>
11824
11835
  <xsl:call-template name="insertKeyword">
11836
+ <xsl:with-param name="meta" select="$meta"/>
11825
11837
  <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
11826
11838
  <xsl:with-param name="charDelim" select="$charDelim"/>
11827
11839
  </xsl:call-template>
@@ -11830,6 +11842,7 @@
11830
11842
  <xsl:otherwise>
11831
11843
  <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
11832
11844
  <xsl:call-template name="insertKeyword">
11845
+ <xsl:with-param name="meta" select="$meta"/>
11833
11846
  <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
11834
11847
  <xsl:with-param name="charDelim" select="$charDelim"/>
11835
11848
  </xsl:call-template>
@@ -11839,7 +11852,15 @@
11839
11852
  </xsl:template><xsl:template name="insertKeyword">
11840
11853
  <xsl:param name="charAtEnd"/>
11841
11854
  <xsl:param name="charDelim"/>
11842
- <xsl:apply-templates/>
11855
+ <xsl:param name="meta"/>
11856
+ <xsl:choose>
11857
+ <xsl:when test="$meta = 'true'">
11858
+ <xsl:value-of select="."/>
11859
+ </xsl:when>
11860
+ <xsl:otherwise>
11861
+ <xsl:apply-templates/>
11862
+ </xsl:otherwise>
11863
+ </xsl:choose>
11843
11864
  <xsl:choose>
11844
11865
  <xsl:when test="position() != last()"><xsl:value-of select="$charDelim"/></xsl:when>
11845
11866
  <xsl:otherwise><xsl:value-of select="$charAtEnd"/></xsl:otherwise>
@@ -11890,7 +11911,9 @@
11890
11911
  <xsl:value-of select="normalize-space($abstract)"/>
11891
11912
  </dc:description>
11892
11913
  <pdf:Keywords>
11893
- <xsl:call-template name="insertKeywords"/>
11914
+ <xsl:call-template name="insertKeywords">
11915
+ <xsl:with-param name="meta">true</xsl:with-param>
11916
+ </xsl:call-template>
11894
11917
  </pdf:Keywords>
11895
11918
  </rdf:Description>
11896
11919
  <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
@@ -18,6 +18,12 @@ module IsoDoc
18
18
  def i18n_init(lang, script, i18nyaml = nil)
19
19
  @i18n = I18n.new(lang, script, i18nyaml: i18nyaml || @i18nyaml)
20
20
  end
21
+
22
+ def omit_docid_prefix(prefix)
23
+ return true if %w(BIPM).include? prefix
24
+
25
+ super
26
+ end
21
27
  end
22
28
  end
23
29
  end
@@ -3019,10 +3019,12 @@
3019
3019
  </xsl:attribute-set><xsl:attribute-set name="bibitem-normative-list-body-style">
3020
3020
 
3021
3021
 
3022
+
3022
3023
  </xsl:attribute-set><xsl:attribute-set name="bibitem-non-normative-list-body-style">
3023
3024
 
3024
3025
 
3025
3026
 
3027
+
3026
3028
  </xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-style">
3027
3029
  <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
3028
3030
  <xsl:attribute name="font-size">65%</xsl:attribute>
@@ -3647,6 +3649,14 @@
3647
3649
 
3648
3650
 
3649
3651
 
3652
+ <xsl:if test="*[local-name()='bookmark']"> <!-- special case: table/bookmark -->
3653
+ <fo:block keep-with-previous="always" line-height="0.1">
3654
+ <xsl:for-each select="*[local-name()='bookmark']">
3655
+ <xsl:call-template name="bookmark"/>
3656
+ </xsl:for-each>
3657
+ </fo:block>
3658
+ </xsl:if>
3659
+
3650
3660
  </fo:block-container>
3651
3661
  </xsl:variable>
3652
3662
 
@@ -7535,7 +7545,7 @@
7535
7545
 
7536
7546
  9
7537
7547
  <!-- <xsl:if test="$namespace = 'ieee'">
7538
- <xsl:if test="$doctype = 'standard' and $stage = 'published'">8</xsl:if>
7548
+ <xsl:if test="$current_template = 'standard'">8</xsl:if>
7539
7549
  </xsl:if> -->
7540
7550
 
7541
7551
 
@@ -8878,7 +8888,7 @@
8878
8888
  </xsl:template><xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']/text()">
8879
8889
  <!-- to split by '_' and other chars -->
8880
8890
  <xsl:call-template name="add-zero-spaces-java"/>
8881
- </xsl:template><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
8891
+ </xsl:template><xsl:template match="*[local-name() = 'table']/*[local-name() = 'bookmark']" priority="2"/><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
8882
8892
  <!-- <fo:inline id="{@id}" font-size="1pt"/> -->
8883
8893
  <fo:inline id="{@id}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:inline>
8884
8894
  <!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
@@ -9652,6 +9662,7 @@
9652
9662
  </xsl:call-template>
9653
9663
  </xsl:template><xsl:template name="insertKeywords">
9654
9664
  <xsl:param name="sorting" select="'true'"/>
9665
+ <xsl:param name="meta" select="'false'"/>
9655
9666
  <xsl:param name="charAtEnd" select="'.'"/>
9656
9667
  <xsl:param name="charDelim" select="', '"/>
9657
9668
  <xsl:choose>
@@ -9659,6 +9670,7 @@
9659
9670
  <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
9660
9671
  <xsl:sort data-type="text" order="ascending"/>
9661
9672
  <xsl:call-template name="insertKeyword">
9673
+ <xsl:with-param name="meta" select="$meta"/>
9662
9674
  <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
9663
9675
  <xsl:with-param name="charDelim" select="$charDelim"/>
9664
9676
  </xsl:call-template>
@@ -9667,6 +9679,7 @@
9667
9679
  <xsl:otherwise>
9668
9680
  <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
9669
9681
  <xsl:call-template name="insertKeyword">
9682
+ <xsl:with-param name="meta" select="$meta"/>
9670
9683
  <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
9671
9684
  <xsl:with-param name="charDelim" select="$charDelim"/>
9672
9685
  </xsl:call-template>
@@ -9676,7 +9689,15 @@
9676
9689
  </xsl:template><xsl:template name="insertKeyword">
9677
9690
  <xsl:param name="charAtEnd"/>
9678
9691
  <xsl:param name="charDelim"/>
9679
- <xsl:apply-templates/>
9692
+ <xsl:param name="meta"/>
9693
+ <xsl:choose>
9694
+ <xsl:when test="$meta = 'true'">
9695
+ <xsl:value-of select="."/>
9696
+ </xsl:when>
9697
+ <xsl:otherwise>
9698
+ <xsl:apply-templates/>
9699
+ </xsl:otherwise>
9700
+ </xsl:choose>
9680
9701
  <xsl:choose>
9681
9702
  <xsl:when test="position() != last()"><xsl:value-of select="$charDelim"/></xsl:when>
9682
9703
  <xsl:otherwise><xsl:value-of select="$charAtEnd"/></xsl:otherwise>
@@ -9724,7 +9745,9 @@
9724
9745
  <xsl:value-of select="normalize-space($abstract)"/>
9725
9746
  </dc:description>
9726
9747
  <pdf:Keywords>
9727
- <xsl:call-template name="insertKeywords"/>
9748
+ <xsl:call-template name="insertKeywords">
9749
+ <xsl:with-param name="meta">true</xsl:with-param>
9750
+ </xsl:call-template>
9728
9751
  </pdf:Keywords>
9729
9752
  </rdf:Description>
9730
9753
  <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
@@ -69,6 +69,17 @@
69
69
  </zeroOrMore>
70
70
  </element>
71
71
  </define>
72
+ <define name="AdmonitionType">
73
+ <choice>
74
+ <value>warning</value>
75
+ <value>note</value>
76
+ <value>tip</value>
77
+ <value>important</value>
78
+ <value>caution</value>
79
+ <value>statement</value>
80
+ <value>editorial</value>
81
+ </choice>
82
+ </define>
72
83
  <define name="index">
73
84
  <element name="index">
74
85
  <optional>
@@ -2493,6 +2504,16 @@
2493
2504
  <text/>
2494
2505
  </element>
2495
2506
  </optional>
2507
+ <optional>
2508
+ <element name="amendment">
2509
+ <text/>
2510
+ </element>
2511
+ </optional>
2512
+ <optional>
2513
+ <element name="corrigendum">
2514
+ <text/>
2515
+ </element>
2516
+ </optional>
2496
2517
  <optional>
2497
2518
  <element name="language">
2498
2519
  <text/>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module BIPM
3
- VERSION = "2.1.4".freeze
3
+ VERSION = "2.1.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: 2.1.4
4
+ version: 2.1.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: 2022-07-04 00:00:00.000000000 Z
11
+ date: 2022-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic