metanorma-bipm 2.1.10 → 2.1.11

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: 991c0584d9b44a0a713ffe4f48ae94c301000753eb253e8824fad17365c65410
4
- data.tar.gz: 40fd596a56184bfec825e39ba5a605eed81c6ea4d1e1955e00a8ee5f2d07d98b
3
+ metadata.gz: deb15c0d884da169c86a1bc0f84306a50058f5f58efab8e9a2ff4dddbf5ddb85
4
+ data.tar.gz: b938f5f8bf762bef096481a495ac313cbb6266114560e0c3204a5d9f2f90beb3
5
5
  SHA512:
6
- metadata.gz: aa53052fba1a979cc1298b3a557ca1b1b799f11f230889b6751e4c9e661392a0d727210a9721c8e5b6f811c257660b63c98fa330c7fb676e1950329bfd992b05
7
- data.tar.gz: 8bb577314adcf71b5fb2404e5130521fcdac8cc5dfd3e509b3378ef033636ef72022bd61d10129f81b13e7baed46a2bf42188c1626b518119c1eae9433d3e974
6
+ metadata.gz: fc2984c3c54e5c1acc31a127120ba972dc844de5b3a3b189f13f0847a690ccd2a24241363695d4f9ad3ccc27b776c72a5d632281af8103f980e737b3f18b59e5
7
+ data.tar.gz: b7f2f9a00f0bff7fe711db8d0616bf30ff67131684ba4fe3098d0aac078ba0ba41fcce0f30d2a05da817044c8a977ad63320aa77a225e6c656d20782dfe6d8a7
@@ -0,0 +1,31 @@
1
+ # Auto-generated by Cimas: Do not edit it manually!
2
+ # See https://github.com/metanorma/cimas
3
+ # source: https://github.com/marketplace/actions/merge-pull-requests#usage
4
+ name: automerge
5
+ on:
6
+ pull_request:
7
+ types:
8
+ - labeled
9
+ - unlabeled
10
+ - synchronize
11
+ - opened
12
+ - edited
13
+ - ready_for_review
14
+ - reopened
15
+ - unlocked
16
+ pull_request_review:
17
+ types:
18
+ - submitted
19
+ check_suite:
20
+ types:
21
+ - completed
22
+ status: {}
23
+ jobs:
24
+ automerge:
25
+ runs-on: ubuntu-latest
26
+ steps:
27
+ - id: automerge
28
+ name: automerge
29
+ uses: "pascalgn/automerge-action@v0.15.3"
30
+ env:
31
+ GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
@@ -7342,8 +7342,17 @@
7342
7342
  </fo:inline>
7343
7343
  </xsl:template> <!-- tt -->
7344
7344
 
7345
+ <xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
7345
7346
  <xsl:template match="*[local-name()='tt']/text()" priority="2">
7346
- <xsl:call-template name="add_spaces_to_sourcecode"/>
7347
+ <xsl:choose>
7348
+ <xsl:when test="java:replaceAll(java:java.lang.String.new(.), '$2', '') != ''">
7349
+ <!-- url -->
7350
+ <xsl:call-template name="add-zero-spaces-link-java"/>
7351
+ </xsl:when>
7352
+ <xsl:otherwise>
7353
+ <xsl:call-template name="add_spaces_to_sourcecode"/>
7354
+ </xsl:otherwise>
7355
+ </xsl:choose>
7347
7356
  </xsl:template>
7348
7357
 
7349
7358
  <xsl:template match="*[local-name()='underline']">
@@ -7699,8 +7708,11 @@
7699
7708
 
7700
7709
  <xsl:template name="add-zero-spaces-link-java">
7701
7710
  <xsl:param name="text" select="."/>
7711
+
7712
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$1')"/> <!-- http://. https:// or www. -->
7713
+ <xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
7702
7714
  <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space -->
7703
- <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text),'(-|\.|:|=|_|—| |,)','$1​')"/>
7715
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/)','$1​')"/>
7704
7716
  </xsl:template>
7705
7717
 
7706
7718
  <!-- add zero space after dash character (for table's entries) -->
@@ -12202,7 +12214,7 @@
12202
12214
 
12203
12215
  <xsl:variable name="element_name_keep-together_within-line">keep-together_within-line</xsl:variable>
12204
12216
 
12205
- <xsl:template match="text()[not(ancestor::*[local-name() = 'bibdata'] or ancestor::*[local-name() = 'sourcecode'] or ancestor::*[local-name() = 'math'])]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
12217
+ <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">
12206
12218
 
12207
12219
  <!-- enclose standard's number into tag 'keep-together_within-line' -->
12208
12220
  <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
@@ -7342,8 +7342,17 @@
7342
7342
  </fo:inline>
7343
7343
  </xsl:template> <!-- tt -->
7344
7344
 
7345
+ <xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
7345
7346
  <xsl:template match="*[local-name()='tt']/text()" priority="2">
7346
- <xsl:call-template name="add_spaces_to_sourcecode"/>
7347
+ <xsl:choose>
7348
+ <xsl:when test="java:replaceAll(java:java.lang.String.new(.), '$2', '') != ''">
7349
+ <!-- url -->
7350
+ <xsl:call-template name="add-zero-spaces-link-java"/>
7351
+ </xsl:when>
7352
+ <xsl:otherwise>
7353
+ <xsl:call-template name="add_spaces_to_sourcecode"/>
7354
+ </xsl:otherwise>
7355
+ </xsl:choose>
7347
7356
  </xsl:template>
7348
7357
 
7349
7358
  <xsl:template match="*[local-name()='underline']">
@@ -7699,8 +7708,11 @@
7699
7708
 
7700
7709
  <xsl:template name="add-zero-spaces-link-java">
7701
7710
  <xsl:param name="text" select="."/>
7711
+
7712
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$1')"/> <!-- http://. https:// or www. -->
7713
+ <xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
7702
7714
  <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space -->
7703
- <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text),'(-|\.|:|=|_|—| |,)','$1​')"/>
7715
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/)','$1​')"/>
7704
7716
  </xsl:template>
7705
7717
 
7706
7718
  <!-- add zero space after dash character (for table's entries) -->
@@ -12202,7 +12214,7 @@
12202
12214
 
12203
12215
  <xsl:variable name="element_name_keep-together_within-line">keep-together_within-line</xsl:variable>
12204
12216
 
12205
- <xsl:template match="text()[not(ancestor::*[local-name() = 'bibdata'] or ancestor::*[local-name() = 'sourcecode'] or ancestor::*[local-name() = 'math'])]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
12217
+ <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">
12206
12218
 
12207
12219
  <!-- enclose standard's number into tag 'keep-together_within-line' -->
12208
12220
  <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
@@ -7342,8 +7342,17 @@
7342
7342
  </fo:inline>
7343
7343
  </xsl:template> <!-- tt -->
7344
7344
 
7345
+ <xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
7345
7346
  <xsl:template match="*[local-name()='tt']/text()" priority="2">
7346
- <xsl:call-template name="add_spaces_to_sourcecode"/>
7347
+ <xsl:choose>
7348
+ <xsl:when test="java:replaceAll(java:java.lang.String.new(.), '$2', '') != ''">
7349
+ <!-- url -->
7350
+ <xsl:call-template name="add-zero-spaces-link-java"/>
7351
+ </xsl:when>
7352
+ <xsl:otherwise>
7353
+ <xsl:call-template name="add_spaces_to_sourcecode"/>
7354
+ </xsl:otherwise>
7355
+ </xsl:choose>
7347
7356
  </xsl:template>
7348
7357
 
7349
7358
  <xsl:template match="*[local-name()='underline']">
@@ -7699,8 +7708,11 @@
7699
7708
 
7700
7709
  <xsl:template name="add-zero-spaces-link-java">
7701
7710
  <xsl:param name="text" select="."/>
7711
+
7712
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$1')"/> <!-- http://. https:// or www. -->
7713
+ <xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
7702
7714
  <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space -->
7703
- <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text),'(-|\.|:|=|_|—| |,)','$1​')"/>
7715
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/)','$1​')"/>
7704
7716
  </xsl:template>
7705
7717
 
7706
7718
  <!-- add zero space after dash character (for table's entries) -->
@@ -12202,7 +12214,7 @@
12202
12214
 
12203
12215
  <xsl:variable name="element_name_keep-together_within-line">keep-together_within-line</xsl:variable>
12204
12216
 
12205
- <xsl:template match="text()[not(ancestor::*[local-name() = 'bibdata'] or ancestor::*[local-name() = 'sourcecode'] or ancestor::*[local-name() = 'math'])]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
12217
+ <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">
12206
12218
 
12207
12219
  <!-- enclose standard's number into tag 'keep-together_within-line' -->
12208
12220
  <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
@@ -7342,8 +7342,17 @@
7342
7342
  </fo:inline>
7343
7343
  </xsl:template> <!-- tt -->
7344
7344
 
7345
+ <xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
7345
7346
  <xsl:template match="*[local-name()='tt']/text()" priority="2">
7346
- <xsl:call-template name="add_spaces_to_sourcecode"/>
7347
+ <xsl:choose>
7348
+ <xsl:when test="java:replaceAll(java:java.lang.String.new(.), '$2', '') != ''">
7349
+ <!-- url -->
7350
+ <xsl:call-template name="add-zero-spaces-link-java"/>
7351
+ </xsl:when>
7352
+ <xsl:otherwise>
7353
+ <xsl:call-template name="add_spaces_to_sourcecode"/>
7354
+ </xsl:otherwise>
7355
+ </xsl:choose>
7347
7356
  </xsl:template>
7348
7357
 
7349
7358
  <xsl:template match="*[local-name()='underline']">
@@ -7699,8 +7708,11 @@
7699
7708
 
7700
7709
  <xsl:template name="add-zero-spaces-link-java">
7701
7710
  <xsl:param name="text" select="."/>
7711
+
7712
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$1')"/> <!-- http://. https:// or www. -->
7713
+ <xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
7702
7714
  <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space -->
7703
- <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text),'(-|\.|:|=|_|—| |,)','$1​')"/>
7715
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/)','$1​')"/>
7704
7716
  </xsl:template>
7705
7717
 
7706
7718
  <!-- add zero space after dash character (for table's entries) -->
@@ -12202,7 +12214,7 @@
12202
12214
 
12203
12215
  <xsl:variable name="element_name_keep-together_within-line">keep-together_within-line</xsl:variable>
12204
12216
 
12205
- <xsl:template match="text()[not(ancestor::*[local-name() = 'bibdata'] or ancestor::*[local-name() = 'sourcecode'] or ancestor::*[local-name() = 'math'])]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
12217
+ <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">
12206
12218
 
12207
12219
  <!-- enclose standard's number into tag 'keep-together_within-line' -->
12208
12220
  <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
@@ -372,7 +372,7 @@ div.figure {
372
372
  font-weight: 700;
373
373
  font-size: 1em;
374
374
  text-align: center; }
375
- div.figure > img {
375
+ div.figure > img, div.figure > svg {
376
376
  margin-left: auto;
377
377
  margin-right: auto;
378
378
  display: block;
@@ -3,7 +3,7 @@ appendix: Appendice
3
3
  iso_annex: Annexe
4
4
  see: voir
5
5
  see_also: voir aussi
6
- clause: chapître
6
+ clause: chapitre
7
7
  subclause: section
8
8
  clause_jcgm: Article
9
9
  subclause_jcgm: Article
@@ -5242,8 +5242,17 @@
5242
5242
  </fo:inline>
5243
5243
  </xsl:template> <!-- tt -->
5244
5244
 
5245
+ <xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
5245
5246
  <xsl:template match="*[local-name()='tt']/text()" priority="2">
5246
- <xsl:call-template name="add_spaces_to_sourcecode"/>
5247
+ <xsl:choose>
5248
+ <xsl:when test="java:replaceAll(java:java.lang.String.new(.), '$2', '') != ''">
5249
+ <!-- url -->
5250
+ <xsl:call-template name="add-zero-spaces-link-java"/>
5251
+ </xsl:when>
5252
+ <xsl:otherwise>
5253
+ <xsl:call-template name="add_spaces_to_sourcecode"/>
5254
+ </xsl:otherwise>
5255
+ </xsl:choose>
5247
5256
  </xsl:template>
5248
5257
 
5249
5258
  <xsl:template match="*[local-name()='underline']">
@@ -5599,8 +5608,11 @@
5599
5608
 
5600
5609
  <xsl:template name="add-zero-spaces-link-java">
5601
5610
  <xsl:param name="text" select="."/>
5611
+
5612
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$1')"/> <!-- http://. https:// or www. -->
5613
+ <xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
5602
5614
  <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space -->
5603
- <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text),'(-|\.|:|=|_|—| |,)','$1​')"/>
5615
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/)','$1​')"/>
5604
5616
  </xsl:template>
5605
5617
 
5606
5618
  <!-- add zero space after dash character (for table's entries) -->
@@ -10035,7 +10047,7 @@
10035
10047
 
10036
10048
  <xsl:variable name="element_name_keep-together_within-line">keep-together_within-line</xsl:variable>
10037
10049
 
10038
- <xsl:template match="text()[not(ancestor::*[local-name() = 'bibdata'] or ancestor::*[local-name() = 'sourcecode'] or ancestor::*[local-name() = 'math'])]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
10050
+ <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">
10039
10051
 
10040
10052
  <!-- enclose standard's number into tag 'keep-together_within-line' -->
10041
10053
  <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
@@ -1,10 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
3
- <include href="biblio.rng">
4
- <start>
5
- <ref name="document"/>
6
- </start>
7
- </include>
8
3
  <define name="document">
9
4
  <element name="document">
10
5
  <optional>
@@ -1125,26 +1120,4 @@
1125
1120
  </zeroOrMore>
1126
1121
  </element>
1127
1122
  </define>
1128
- <define name="ext">
1129
- <element name="ext">
1130
- <ref name="BibDataExtensionType"/>
1131
- </element>
1132
- </define>
1133
- <define name="BibDataExtensionType">
1134
- <ref name="doctype"/>
1135
- </define>
1136
- <define name="doctype">
1137
- <element name="doctype">
1138
- <ref name="DocumentType"/>
1139
- </element>
1140
- </define>
1141
- <define name="DocumentType">
1142
- <value>document</value>
1143
- </define>
1144
- <define name="BibData">
1145
- <ref name="BibliographicItem"/>
1146
- <optional>
1147
- <ref name="ext"/>
1148
- </optional>
1149
- </define>
1150
1123
  </grammar>
@@ -0,0 +1,164 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0">
3
+ <!--
4
+ Add-ons to biblio.rnc for standoc model: defines the extension point BibDataExtensionType
5
+ of relaton
6
+
7
+ Specialisations as for biblio.rnc. Extension point can be redefined completely for a flavour of standoc
8
+ (SDO); but other elements in Bibdata can only be extended (more specialised vocabularies for Bibdata)
9
+ -->
10
+ <include href="biblio.rng">
11
+ <define name="BibData">
12
+ <ref name="BibliographicItem"/>
13
+ <optional>
14
+ <ref name="ext"/>
15
+ </optional>
16
+ </define>
17
+ </include>
18
+ <define name="ext">
19
+ <element name="ext">
20
+ <ref name="BibDataExtensionType"/>
21
+ </element>
22
+ </define>
23
+ <define name="BibDataExtensionType">
24
+ <optional>
25
+ <attribute name="schema-version"/>
26
+ </optional>
27
+ <ref name="doctype"/>
28
+ <optional>
29
+ <ref name="docsubtype"/>
30
+ </optional>
31
+ <optional>
32
+ <ref name="editorialgroup"/>
33
+ </optional>
34
+ <zeroOrMore>
35
+ <ref name="ics"/>
36
+ </zeroOrMore>
37
+ <zeroOrMore>
38
+ <ref name="structuredidentifier"/>
39
+ </zeroOrMore>
40
+ </define>
41
+ <define name="doctype">
42
+ <element name="doctype">
43
+ <optional>
44
+ <attribute name="abbreviation"/>
45
+ </optional>
46
+ <ref name="DocumentType"/>
47
+ </element>
48
+ </define>
49
+ <define name="DocumentType">
50
+ <value>document</value>
51
+ </define>
52
+ <define name="docsubtype">
53
+ <element name="subdoctype">
54
+ <ref name="DocumentSubtype"/>
55
+ </element>
56
+ </define>
57
+ <define name="DocumentSubtype">
58
+ <text/>
59
+ </define>
60
+ <define name="editorialgroup">
61
+ <element name="editorialgroup">
62
+ <oneOrMore>
63
+ <ref name="technical-committee"/>
64
+ </oneOrMore>
65
+ </element>
66
+ </define>
67
+ <define name="technical-committee">
68
+ <element name="technical-committee">
69
+ <ref name="IsoWorkgroup"/>
70
+ </element>
71
+ </define>
72
+ <define name="IsoWorkgroup">
73
+ <optional>
74
+ <attribute name="number"/>
75
+ </optional>
76
+ <optional>
77
+ <attribute name="type"/>
78
+ </optional>
79
+ <optional>
80
+ <attribute name="identifier"/>
81
+ </optional>
82
+ <optional>
83
+ <attribute name="prefix"/>
84
+ </optional>
85
+ <text/>
86
+ </define>
87
+ <define name="ics">
88
+ <element name="ics">
89
+ <element name="code">
90
+ <text/>
91
+ </element>
92
+ <optional>
93
+ <element name="text">
94
+ <text/>
95
+ </element>
96
+ </optional>
97
+ </element>
98
+ </define>
99
+ <define name="structuredidentifier">
100
+ <element name="structuredidentifier">
101
+ <optional>
102
+ <attribute name="type"/>
103
+ </optional>
104
+ <oneOrMore>
105
+ <element name="agency">
106
+ <text/>
107
+ </element>
108
+ </oneOrMore>
109
+ <optional>
110
+ <element name="class">
111
+ <text/>
112
+ </element>
113
+ </optional>
114
+ <element name="docnumber">
115
+ <text/>
116
+ </element>
117
+ <optional>
118
+ <element name="partnumber">
119
+ <text/>
120
+ </element>
121
+ </optional>
122
+ <optional>
123
+ <element name="edition">
124
+ <text/>
125
+ </element>
126
+ </optional>
127
+ <optional>
128
+ <element name="version">
129
+ <text/>
130
+ </element>
131
+ </optional>
132
+ <optional>
133
+ <element name="supplementtype">
134
+ <text/>
135
+ </element>
136
+ </optional>
137
+ <optional>
138
+ <element name="supplementnumber">
139
+ <text/>
140
+ </element>
141
+ </optional>
142
+ <optional>
143
+ <element name="amendment">
144
+ <text/>
145
+ </element>
146
+ </optional>
147
+ <optional>
148
+ <element name="corrigendum">
149
+ <text/>
150
+ </element>
151
+ </optional>
152
+ <optional>
153
+ <element name="language">
154
+ <text/>
155
+ </element>
156
+ </optional>
157
+ <optional>
158
+ <element name="year">
159
+ <text/>
160
+ </element>
161
+ </optional>
162
+ </element>
163
+ </define>
164
+ </grammar>
@@ -33,9 +33,10 @@
33
33
  <param name="pattern">([\+\-]?\d{4})((-?)((0[1-9]|1[0-2])((-?)([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6]))))?</param>
34
34
  </data>
35
35
  </define>
36
- <start>
37
- <ref name="bibitem"/>
38
- </start>
36
+ <!-- start = bibitem -->
37
+ <define name="BibData">
38
+ <ref name="BibliographicItem"/>
39
+ </define>
39
40
  <define name="status">
40
41
  <element name="status">
41
42
  <ref name="stage"/>
@@ -170,27 +171,25 @@
170
171
  </define>
171
172
  <define name="contributor">
172
173
  <element name="contributor">
173
- <zeroOrMore>
174
+ <oneOrMore>
174
175
  <ref name="role"/>
175
- </zeroOrMore>
176
+ </oneOrMore>
176
177
  <ref name="ContributorInfo"/>
177
178
  </element>
178
179
  </define>
179
180
  <define name="role">
180
181
  <element name="role">
181
- <optional>
182
- <attribute name="type">
183
- <choice>
184
- <value>author</value>
185
- <value>performer</value>
186
- <value>publisher</value>
187
- <value>editor</value>
188
- <value>adapter</value>
189
- <value>translator</value>
190
- <value>distributor</value>
191
- </choice>
192
- </attribute>
193
- </optional>
182
+ <attribute name="type">
183
+ <choice>
184
+ <value>author</value>
185
+ <value>performer</value>
186
+ <value>publisher</value>
187
+ <value>editor</value>
188
+ <value>adapter</value>
189
+ <value>translator</value>
190
+ <value>distributor</value>
191
+ </choice>
192
+ </attribute>
194
193
  <zeroOrMore>
195
194
  <ref name="roledescription"/>
196
195
  </zeroOrMore>
@@ -512,6 +511,17 @@
512
511
  </define>
513
512
  <define name="localityStack">
514
513
  <element name="localityStack">
514
+ <optional>
515
+ <attribute name="connective">
516
+ <choice>
517
+ <value>and</value>
518
+ <value>or</value>
519
+ <value>from</value>
520
+ <value>to</value>
521
+ <value/>
522
+ </choice>
523
+ </attribute>
524
+ </optional>
515
525
  <zeroOrMore>
516
526
  <ref name="locality"/>
517
527
  </zeroOrMore>
@@ -524,6 +534,17 @@
524
534
  </define>
525
535
  <define name="sourceLocalityStack">
526
536
  <element name="sourceLocalityStack">
537
+ <optional>
538
+ <attribute name="connective">
539
+ <choice>
540
+ <value>and</value>
541
+ <value>or</value>
542
+ <value>from</value>
543
+ <value>to</value>
544
+ <value/>
545
+ </choice>
546
+ </attribute>
547
+ </optional>
527
548
  <zeroOrMore>
528
549
  <ref name="sourceLocality"/>
529
550
  </zeroOrMore>
@@ -626,6 +647,9 @@
626
647
  <ref name="BibItemType"/>
627
648
  </attribute>
628
649
  </optional>
650
+ <optional>
651
+ <attribute name="schema-version"/>
652
+ </optional>
629
653
  <optional>
630
654
  <ref name="fetched"/>
631
655
  </optional>
@@ -720,6 +744,9 @@
720
744
  <ref name="BibItemType"/>
721
745
  </attribute>
722
746
  </optional>
747
+ <optional>
748
+ <attribute name="schema-version"/>
749
+ </optional>
723
750
  <optional>
724
751
  <ref name="fetched"/>
725
752
  </optional>
@@ -5,6 +5,7 @@
5
5
  we cannot have a new default namespace: we will end up with a grammar with two different
6
6
  namespaces, one for isostandard and one for csand additions. And we do not want that.
7
7
  -->
8
+ <include href="relaton-bipm.rng"/>
8
9
  <include href="isodoc.rng">
9
10
  <start>
10
11
  <ref name="bipm-standard"/>
@@ -209,137 +210,7 @@
209
210
  </zeroOrMore>
210
211
  </element>
211
212
  </define>
212
- <define name="DocumentType">
213
- <choice>
214
- <value>brochure</value>
215
- <value>mise-en-pratique</value>
216
- <value>rapport</value>
217
- <value>monographie</value>
218
- <value>guide</value>
219
- <value>meeting-report</value>
220
- <value>technical-report</value>
221
- <value>working-party-note</value>
222
- <value>strategy</value>
223
- <value>cipm-mra</value>
224
- <value>resolution</value>
225
- </choice>
226
- </define>
227
- <define name="editorialgroup">
228
- <element name="editorialgroup">
229
- <oneOrMore>
230
- <ref name="committee"/>
231
- </oneOrMore>
232
- <zeroOrMore>
233
- <ref name="workgroup"/>
234
- </zeroOrMore>
235
- </element>
236
- </define>
237
- <define name="structuredidentifier">
238
- <element name="structuredidentifier">
239
- <element name="docnumber">
240
- <text/>
241
- </element>
242
- <optional>
243
- <element name="part">
244
- <text/>
245
- </element>
246
- </optional>
247
- <optional>
248
- <element name="appendix">
249
- <text/>
250
- </element>
251
- </optional>
252
- </element>
253
- </define>
254
- <define name="BibDataExtensionType">
255
- <optional>
256
- <ref name="doctype"/>
257
- </optional>
258
- <optional>
259
- <ref name="docsubtype"/>
260
- </optional>
261
- <ref name="editorialgroup"/>
262
- <optional>
263
- <ref name="comment-period"/>
264
- </optional>
265
- <optional>
266
- <ref name="si-aspect"/>
267
- </optional>
268
- <optional>
269
- <ref name="meeting-note"/>
270
- </optional>
271
- <ref name="structuredidentifier"/>
272
- </define>
273
213
  </include>
274
- <define name="comment-period">
275
- <element name="comment-period">
276
- <element name="from">
277
- <ref name="ISO8601Date"/>
278
- </element>
279
- <element name="to">
280
- <ref name="ISO8601Date"/>
281
- </element>
282
- </element>
283
- </define>
284
- <define name="si-aspect">
285
- <element name="si-aspect">
286
- <choice>
287
- <value>A_e_deltanu</value>
288
- <value>A_e</value>
289
- <value>cd_Kcd_h_deltanu</value>
290
- <value>cd_Kcd</value>
291
- <value>full</value>
292
- <value>K_k_deltanu</value>
293
- <value>K_k</value>
294
- <value>kg_h_c_deltanu</value>
295
- <value>kg_h</value>
296
- <value>m_c_deltanu</value>
297
- <value>m_c</value>
298
- <value>mol_NA</value>
299
- <value>s_deltanu</value>
300
- </choice>
301
- </element>
302
- </define>
303
- <define name="committee">
304
- <element name="committee">
305
- <attribute name="acronym">
306
- <choice>
307
- <value>CGPM</value>
308
- <value>CIPM</value>
309
- <value>BIPM</value>
310
- <value>CCAUV</value>
311
- <value>CCEM</value>
312
- <value>CCL</value>
313
- <value>CCM</value>
314
- <value>CCPR</value>
315
- <value>CCQM</value>
316
- <value>CCRI</value>
317
- <value>CCT</value>
318
- <value>CCTF</value>
319
- <value>CCU</value>
320
- <value>CCL-CCTF-WGFS</value>
321
- <value>JCGM</value>
322
- <value>JCRB</value>
323
- <value>JCTLM</value>
324
- <value>INetQI</value>
325
- </choice>
326
- </attribute>
327
- <ref name="LocalizedString"/>
328
- </element>
329
- </define>
330
- <define name="workgroup">
331
- <element name="workgroup">
332
- <optional>
333
- <attribute name="acronym"/>
334
- </optional>
335
- <text/>
336
- </element>
337
- </define>
338
- <define name="meeting-note">
339
- <element name="meeting-note">
340
- <text/>
341
- </element>
342
- </define>
343
214
  <define name="bipm-standard">
344
215
  <element name="bipm-standard">
345
216
  <attribute name="version"/>
@@ -19,19 +19,7 @@
19
19
  -->
20
20
  <grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
21
21
  <include href="reqt.rng"/>
22
- <!-- include "biblio.rnc" { } -->
23
22
  <include href="basicdoc.rng">
24
- <start>
25
- <ref name="standard-document"/>
26
- </start>
27
- <define name="doctype">
28
- <element name="doctype">
29
- <optional>
30
- <attribute name="abbreviation"/>
31
- </optional>
32
- <ref name="DocumentType"/>
33
- </element>
34
- </define>
35
23
  <define name="admonition">
36
24
  <element name="admonition">
37
25
  <attribute name="type">
@@ -117,24 +105,6 @@
117
105
  </optional>
118
106
  </element>
119
107
  </define>
120
- <define name="bibitem">
121
- <element name="bibitem">
122
- <attribute name="id">
123
- <data type="ID"/>
124
- </attribute>
125
- <optional>
126
- <attribute name="hidden">
127
- <data type="boolean"/>
128
- </attribute>
129
- </optional>
130
- <optional>
131
- <attribute name="suppress_identifier">
132
- <data type="boolean"/>
133
- </attribute>
134
- </optional>
135
- <ref name="BibliographicItem"/>
136
- </element>
137
- </define>
138
108
  <define name="section-title">
139
109
  <element name="title">
140
110
  <zeroOrMore>
@@ -248,42 +218,6 @@
248
218
  <ref name="PureTextElement"/>
249
219
  </oneOrMore>
250
220
  </define>
251
- <define name="localityStack">
252
- <element name="localityStack">
253
- <optional>
254
- <attribute name="connective">
255
- <choice>
256
- <value>and</value>
257
- <value>or</value>
258
- <value>from</value>
259
- <value>to</value>
260
- <value/>
261
- </choice>
262
- </attribute>
263
- </optional>
264
- <zeroOrMore>
265
- <ref name="locality"/>
266
- </zeroOrMore>
267
- </element>
268
- </define>
269
- <define name="sourceLocalityStack">
270
- <element name="sourceLocalityStack">
271
- <optional>
272
- <attribute name="connective">
273
- <choice>
274
- <value>and</value>
275
- <value>or</value>
276
- <value>from</value>
277
- <value>to</value>
278
- <value/>
279
- </choice>
280
- </attribute>
281
- </optional>
282
- <zeroOrMore>
283
- <ref name="sourceLocality"/>
284
- </zeroOrMore>
285
- </element>
286
- </define>
287
221
  <define name="ul">
288
222
  <element name="ul">
289
223
  <attribute name="id">
@@ -827,21 +761,6 @@
827
761
  </zeroOrMore>
828
762
  </element>
829
763
  </define>
830
- <define name="BibDataExtensionType">
831
- <ref name="doctype"/>
832
- <optional>
833
- <ref name="docsubtype"/>
834
- </optional>
835
- <optional>
836
- <ref name="editorialgroup"/>
837
- </optional>
838
- <zeroOrMore>
839
- <ref name="ics"/>
840
- </zeroOrMore>
841
- <zeroOrMore>
842
- <ref name="structuredidentifier"/>
843
- </zeroOrMore>
844
- </define>
845
764
  <!-- TitleType = text -->
846
765
  <define name="sections">
847
766
  <element name="sections">
@@ -881,7 +800,7 @@
881
800
  <ref name="BasicBlock"/>
882
801
  </zeroOrMore>
883
802
  <zeroOrMore>
884
- <ref name="bibitem"/>
803
+ <ref name="doc_bibitem"/>
885
804
  <zeroOrMore>
886
805
  <ref name="note"/>
887
806
  </zeroOrMore>
@@ -1219,6 +1138,24 @@
1219
1138
  </define>
1220
1139
  </include>
1221
1140
  <!-- end overrides -->
1141
+ <define name="doc_bibitem">
1142
+ <element name="bibitem">
1143
+ <attribute name="id">
1144
+ <data type="ID"/>
1145
+ </attribute>
1146
+ <optional>
1147
+ <attribute name="hidden">
1148
+ <data type="boolean"/>
1149
+ </attribute>
1150
+ </optional>
1151
+ <optional>
1152
+ <attribute name="suppress_identifier">
1153
+ <data type="boolean"/>
1154
+ </attribute>
1155
+ </optional>
1156
+ <ref name="BibliographicItem"/>
1157
+ </element>
1158
+ </define>
1222
1159
  <define name="image" combine="choice">
1223
1160
  <element name="svg">
1224
1161
  <oneOrMore>
@@ -1237,14 +1174,6 @@
1237
1174
  <value>tag</value>
1238
1175
  </choice>
1239
1176
  </define>
1240
- <define name="docsubtype">
1241
- <element name="subdoctype">
1242
- <ref name="DocumentSubtype"/>
1243
- </element>
1244
- </define>
1245
- <define name="DocumentSubtype">
1246
- <text/>
1247
- </define>
1248
1177
  <define name="colgroup">
1249
1178
  <element name="colgroup">
1250
1179
  <oneOrMore>
@@ -1606,45 +1535,6 @@
1606
1535
  </choice>
1607
1536
  </element>
1608
1537
  </define>
1609
- <define name="editorialgroup">
1610
- <element name="editorialgroup">
1611
- <oneOrMore>
1612
- <ref name="technical-committee"/>
1613
- </oneOrMore>
1614
- </element>
1615
- </define>
1616
- <define name="technical-committee">
1617
- <element name="technical-committee">
1618
- <ref name="IsoWorkgroup"/>
1619
- </element>
1620
- </define>
1621
- <define name="IsoWorkgroup">
1622
- <optional>
1623
- <attribute name="number"/>
1624
- </optional>
1625
- <optional>
1626
- <attribute name="type"/>
1627
- </optional>
1628
- <optional>
1629
- <attribute name="identifier"/>
1630
- </optional>
1631
- <optional>
1632
- <attribute name="prefix"/>
1633
- </optional>
1634
- <text/>
1635
- </define>
1636
- <define name="ics">
1637
- <element name="ics">
1638
- <element name="code">
1639
- <text/>
1640
- </element>
1641
- <optional>
1642
- <element name="text">
1643
- <text/>
1644
- </element>
1645
- </optional>
1646
- </element>
1647
- </define>
1648
1538
  <define name="standard-document">
1649
1539
  <element name="standard-document">
1650
1540
  <attribute name="version"/>
@@ -2475,71 +2365,6 @@
2475
2365
  </optional>
2476
2366
  </element>
2477
2367
  </define>
2478
- <define name="structuredidentifier">
2479
- <element name="structuredidentifier">
2480
- <optional>
2481
- <attribute name="type"/>
2482
- </optional>
2483
- <oneOrMore>
2484
- <element name="agency">
2485
- <text/>
2486
- </element>
2487
- </oneOrMore>
2488
- <optional>
2489
- <element name="class">
2490
- <text/>
2491
- </element>
2492
- </optional>
2493
- <element name="docnumber">
2494
- <text/>
2495
- </element>
2496
- <optional>
2497
- <element name="partnumber">
2498
- <text/>
2499
- </element>
2500
- </optional>
2501
- <optional>
2502
- <element name="edition">
2503
- <text/>
2504
- </element>
2505
- </optional>
2506
- <optional>
2507
- <element name="version">
2508
- <text/>
2509
- </element>
2510
- </optional>
2511
- <optional>
2512
- <element name="supplementtype">
2513
- <text/>
2514
- </element>
2515
- </optional>
2516
- <optional>
2517
- <element name="supplementnumber">
2518
- <text/>
2519
- </element>
2520
- </optional>
2521
- <optional>
2522
- <element name="amendment">
2523
- <text/>
2524
- </element>
2525
- </optional>
2526
- <optional>
2527
- <element name="corrigendum">
2528
- <text/>
2529
- </element>
2530
- </optional>
2531
- <optional>
2532
- <element name="language">
2533
- <text/>
2534
- </element>
2535
- </optional>
2536
- <optional>
2537
- <element name="year">
2538
- <text/>
2539
- </element>
2540
- </optional>
2541
- </element>
2542
- </define>
2543
2368
  <define name="term-clause">
2544
2369
  <element name="clause">
2545
2370
  <optional>
@@ -2813,4 +2638,7 @@
2813
2638
  </attribute>
2814
2639
  </element>
2815
2640
  </define>
2641
+ <start>
2642
+ <ref name="standard-document"/>
2643
+ </start>
2816
2644
  </grammar>
@@ -0,0 +1,138 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0">
3
+ <include href="biblio-standoc.rng">
4
+ <define name="DocumentType">
5
+ <choice>
6
+ <value>brochure</value>
7
+ <value>mise-en-pratique</value>
8
+ <value>rapport</value>
9
+ <value>monographie</value>
10
+ <value>guide</value>
11
+ <value>meeting-report</value>
12
+ <value>technical-report</value>
13
+ <value>working-party-note</value>
14
+ <value>strategy</value>
15
+ <value>cipm-mra</value>
16
+ <value>resolution</value>
17
+ </choice>
18
+ </define>
19
+ <define name="editorialgroup">
20
+ <element name="editorialgroup">
21
+ <oneOrMore>
22
+ <ref name="committee"/>
23
+ </oneOrMore>
24
+ <zeroOrMore>
25
+ <ref name="workgroup"/>
26
+ </zeroOrMore>
27
+ </element>
28
+ </define>
29
+ <define name="structuredidentifier">
30
+ <element name="structuredidentifier">
31
+ <element name="docnumber">
32
+ <text/>
33
+ </element>
34
+ <optional>
35
+ <element name="part">
36
+ <text/>
37
+ </element>
38
+ </optional>
39
+ <optional>
40
+ <element name="appendix">
41
+ <text/>
42
+ </element>
43
+ </optional>
44
+ </element>
45
+ </define>
46
+ <define name="BibDataExtensionType">
47
+ <optional>
48
+ <attribute name="schema-version"/>
49
+ </optional>
50
+ <optional>
51
+ <ref name="doctype"/>
52
+ </optional>
53
+ <optional>
54
+ <ref name="docsubtype"/>
55
+ </optional>
56
+ <ref name="editorialgroup"/>
57
+ <optional>
58
+ <ref name="comment-period"/>
59
+ </optional>
60
+ <optional>
61
+ <ref name="si-aspect"/>
62
+ </optional>
63
+ <optional>
64
+ <ref name="meeting-note"/>
65
+ </optional>
66
+ <ref name="structuredidentifier"/>
67
+ </define>
68
+ </include>
69
+ <define name="comment-period">
70
+ <element name="comment-period">
71
+ <element name="from">
72
+ <ref name="ISO8601Date"/>
73
+ </element>
74
+ <element name="to">
75
+ <ref name="ISO8601Date"/>
76
+ </element>
77
+ </element>
78
+ </define>
79
+ <define name="si-aspect">
80
+ <element name="si-aspect">
81
+ <choice>
82
+ <value>A_e_deltanu</value>
83
+ <value>A_e</value>
84
+ <value>cd_Kcd_h_deltanu</value>
85
+ <value>cd_Kcd</value>
86
+ <value>full</value>
87
+ <value>K_k_deltanu</value>
88
+ <value>K_k</value>
89
+ <value>kg_h_c_deltanu</value>
90
+ <value>kg_h</value>
91
+ <value>m_c_deltanu</value>
92
+ <value>m_c</value>
93
+ <value>mol_NA</value>
94
+ <value>s_deltanu</value>
95
+ </choice>
96
+ </element>
97
+ </define>
98
+ <define name="committee">
99
+ <element name="committee">
100
+ <attribute name="acronym">
101
+ <choice>
102
+ <value>CGPM</value>
103
+ <value>CIPM</value>
104
+ <value>BIPM</value>
105
+ <value>CCAUV</value>
106
+ <value>CCEM</value>
107
+ <value>CCL</value>
108
+ <value>CCM</value>
109
+ <value>CCPR</value>
110
+ <value>CCQM</value>
111
+ <value>CCRI</value>
112
+ <value>CCT</value>
113
+ <value>CCTF</value>
114
+ <value>CCU</value>
115
+ <value>CCL-CCTF-WGFS</value>
116
+ <value>JCGM</value>
117
+ <value>JCRB</value>
118
+ <value>JCTLM</value>
119
+ <value>INetQI</value>
120
+ </choice>
121
+ </attribute>
122
+ <ref name="LocalizedString"/>
123
+ </element>
124
+ </define>
125
+ <define name="workgroup">
126
+ <element name="workgroup">
127
+ <optional>
128
+ <attribute name="acronym"/>
129
+ </optional>
130
+ <text/>
131
+ </element>
132
+ </define>
133
+ <define name="meeting-note">
134
+ <element name="meeting-note">
135
+ <text/>
136
+ </element>
137
+ </define>
138
+ </grammar>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module BIPM
3
- VERSION = "2.1.10".freeze
3
+ VERSION = "2.1.11".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.10
4
+ version: 2.1.11
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-10-10 00:00:00.000000000 Z
11
+ date: 2022-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic
@@ -216,6 +216,7 @@ executables: []
216
216
  extensions: []
217
217
  extra_rdoc_files: []
218
218
  files:
219
+ - ".github/workflows/automerge.yml"
219
220
  - ".github/workflows/rake.yml"
220
221
  - ".github/workflows/release.yml"
221
222
  - ".gitignore"
@@ -269,6 +270,7 @@ files:
269
270
  - lib/metanorma-bipm.rb
270
271
  - lib/metanorma/bipm.rb
271
272
  - lib/metanorma/bipm/basicdoc.rng
273
+ - lib/metanorma/bipm/biblio-standoc.rng
272
274
  - lib/metanorma/bipm/biblio.rng
273
275
  - lib/metanorma/bipm/bipm.rng
274
276
  - lib/metanorma/bipm/boilerplate-en.xml
@@ -278,6 +280,7 @@ files:
278
280
  - lib/metanorma/bipm/front.rb
279
281
  - lib/metanorma/bipm/isodoc.rng
280
282
  - lib/metanorma/bipm/processor.rb
283
+ - lib/metanorma/bipm/relaton-bipm.rng
281
284
  - lib/metanorma/bipm/reqt.rng
282
285
  - lib/metanorma/bipm/version.rb
283
286
  - metanorma-bipm.gemspec