metanorma-ribose 2.0.5 → 2.0.8

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: 1410aafb9e282300aecc28aa9fe281b12398159458a5236aad424e50c836db04
4
- data.tar.gz: 2d0916cbe4bb8e2dc51e5995da05e9916765295077bc8f9dd052b547bf930580
3
+ metadata.gz: '059b88946e08617f9a036ee2b91e80bc9214e327eab48afc92459ac70eb7448c'
4
+ data.tar.gz: de5db665aa4f2454b1776e6265c485694232949a083d8b9de5b6613c6b00fb81
5
5
  SHA512:
6
- metadata.gz: 10c99f1cdad23636725a3bc53a5c41e93933b6b01a1f8cceeb61475648f1611cd9f298e1ce12b7f7c6ad1892f98d30e34e1771d3868ec9002e7959abba2a0bc8
7
- data.tar.gz: 292bc237131ffaa3f1b75306f9b3a82db161a3d84bdfb3199b581b22fc37cc47d7b5af38bf9b642a957f832358b8112eaee7d0e894d3298bb79eb3210a9e1f03
6
+ metadata.gz: 1416372c9e996e68ecfb40f12986c67a9cd188c9dfd9dd712cfe55a31defd53ebb76075ca6b64b7c447a2e63371b47fd7006026038ee950101dcdcda3106b770
7
+ data.tar.gz: 56c4b7c06d00ba074d23f87430028418a590ce73132d76d33635892eee12047f93902ca2230008b3400e97f55e2ca7c189b82c18bdfc177dbb9cc37940b30448
@@ -54,7 +54,13 @@
54
54
 
55
55
  <xsl:template match="/">
56
56
  <xsl:call-template name="namespaceCheck"/>
57
- <fo:root xsl:use-attribute-sets="root-style" xml:lang="{$lang}">
57
+ <fo:root xml:lang="{$lang}">
58
+ <xsl:variable name="root-style">
59
+ <root-style xsl:use-attribute-sets="root-style"/>
60
+ </xsl:variable>
61
+ <xsl:call-template name="insertRootStyle">
62
+ <xsl:with-param name="root-style" select="$root-style"/>
63
+ </xsl:call-template>
58
64
  <fo:layout-master-set>
59
65
 
60
66
  <!-- Cover page -->
@@ -1209,7 +1215,7 @@
1209
1215
 
1210
1216
 
1211
1217
 
1212
- <xsl:param name="svg_images"/><xsl:variable name="images" select="document($svg_images)"/><xsl:param name="basepath"/><xsl:param name="external_index"/><xsl:param name="syntax-highlight">false</xsl:param><xsl:key name="bibitems" match="*[local-name() = 'bibitem']" use="@id"/><xsl:key name="bibitems_hidden" match="*[local-name() = 'bibitem'][@hidden='true'] | *[local-name() = 'references'][@hidden='true']//*[local-name() = 'bibitem']" use="@id"/><xsl:variable name="lang">
1218
+ <xsl:param name="svg_images"/><xsl:variable name="images" select="document($svg_images)"/><xsl:param name="basepath"/><xsl:param name="external_index"/><xsl:param name="syntax-highlight">false</xsl:param><xsl:variable name="lang">
1213
1219
  <xsl:call-template name="getLang"/>
1214
1220
  </xsl:variable><xsl:variable name="pageWidth_">
1215
1221
  215.9
@@ -1361,7 +1367,30 @@
1361
1367
  <xsl:attribute name="color">rgb(88, 88, 90)</xsl:attribute>
1362
1368
 
1363
1369
 
1364
- </xsl:attribute-set><xsl:attribute-set name="copyright-statement-style">
1370
+ </xsl:attribute-set><xsl:template name="insertRootStyle">
1371
+ <xsl:param name="root-style"/>
1372
+ <xsl:variable name="root-style_" select="xalan:nodeset($root-style)"/>
1373
+
1374
+ <xsl:variable name="additional_fonts_">
1375
+ <xsl:for-each select="//*[local-name() = 'misc-container'][1]/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value']">
1376
+ <xsl:value-of select="."/><xsl:if test="position() != last()">, </xsl:if>
1377
+ </xsl:for-each>
1378
+ </xsl:variable>
1379
+ <xsl:variable name="additional_fonts" select="normalize-space($additional_fonts_)"/>
1380
+
1381
+ <xsl:for-each select="$root-style_/root-style/@*">
1382
+ <xsl:choose>
1383
+ <xsl:when test="local-name() = 'font-family' and $additional_fonts != ''">
1384
+ <xsl:attribute name="{local-name()}">
1385
+ <xsl:value-of select="."/>, <xsl:value-of select="$additional_fonts"/>
1386
+ </xsl:attribute>
1387
+ </xsl:when>
1388
+ <xsl:otherwise>
1389
+ <xsl:copy-of select="."/>
1390
+ </xsl:otherwise>
1391
+ </xsl:choose>
1392
+ </xsl:for-each>
1393
+ </xsl:template><xsl:attribute-set name="copyright-statement-style">
1365
1394
 
1366
1395
  </xsl:attribute-set><xsl:attribute-set name="copyright-statement-title-style">
1367
1396
 
@@ -1909,15 +1938,15 @@
1909
1938
 
1910
1939
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
1911
1940
 
1912
- </xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
1941
+ </xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
1913
1942
 
1914
1943
 
1915
1944
 
1916
1945
 
1917
- <xsl:attribute name="font-weight">bold</xsl:attribute>
1918
- <xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
1919
- <xsl:attribute name="padding-right">0.5mm</xsl:attribute>
1920
-
1946
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
1947
+ <xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
1948
+ <xsl:attribute name="padding-right">0.5mm</xsl:attribute>
1949
+
1921
1950
  </xsl:attribute-set><xsl:attribute-set name="quote-style">
1922
1951
  <xsl:attribute name="margin-left">12mm</xsl:attribute>
1923
1952
  <xsl:attribute name="margin-right">12mm</xsl:attribute>
@@ -2666,8 +2695,27 @@
2666
2695
  <xsl:sort select="@displayorder" data-type="number"/>
2667
2696
  <xsl:apply-templates select="."/>
2668
2697
  </xsl:for-each>
2669
- </xsl:template><xsl:template match="text()">
2670
- <xsl:value-of select="."/>
2698
+ </xsl:template><xsl:variable name="tag_open">###fo:inline###</xsl:variable><xsl:variable name="tag_close">###/fo:inline###</xsl:variable><xsl:template match="text()" name="text">
2699
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
2700
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
2701
+ <xsl:call-template name="replace_fo_inline">
2702
+ <xsl:with-param name="text" select="$text"/>
2703
+ </xsl:call-template>
2704
+ </xsl:template><xsl:template name="replace_fo_inline">
2705
+ <xsl:param name="text"/>
2706
+ <xsl:choose>
2707
+ <xsl:when test="contains($text, $tag_open)">
2708
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
2709
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
2710
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
2711
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
2712
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
2713
+ <xsl:call-template name="replace_fo_inline">
2714
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
2715
+ </xsl:call-template>
2716
+ </xsl:when>
2717
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
2718
+ </xsl:choose>
2671
2719
  </xsl:template><xsl:template match="*[local-name()='br']">
2672
2720
  <xsl:value-of select="$linebreak"/>
2673
2721
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -4328,24 +4376,28 @@
4328
4376
  </xsl:template><xsl:template name="add-zero-spaces-equal">
4329
4377
  <xsl:param name="text" select="."/>
4330
4378
  <xsl:variable name="zero-space-after-equals">==========</xsl:variable>
4379
+ <xsl:variable name="regex_zero-space-after-equals">(==========)</xsl:variable>
4331
4380
  <xsl:variable name="zero-space-after-equal">=</xsl:variable>
4381
+ <xsl:variable name="regex_zero-space-after-equal">(=)</xsl:variable>
4332
4382
  <xsl:variable name="zero-space">​</xsl:variable>
4333
4383
  <xsl:choose>
4334
4384
  <xsl:when test="contains($text, $zero-space-after-equals)">
4335
- <xsl:value-of select="substring-before($text, $zero-space-after-equals)"/>
4385
+ <!-- <xsl:value-of select="substring-before($text, $zero-space-after-equals)"/>
4336
4386
  <xsl:value-of select="$zero-space-after-equals"/>
4337
4387
  <xsl:value-of select="$zero-space"/>
4338
4388
  <xsl:call-template name="add-zero-spaces-equal">
4339
4389
  <xsl:with-param name="text" select="substring-after($text, $zero-space-after-equals)"/>
4340
- </xsl:call-template>
4390
+ </xsl:call-template> -->
4391
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),$regex_zero-space-after-equals,concat('$1',$zero_width_space))"/>
4341
4392
  </xsl:when>
4342
4393
  <xsl:when test="contains($text, $zero-space-after-equal)">
4343
- <xsl:value-of select="substring-before($text, $zero-space-after-equal)"/>
4394
+ <!-- <xsl:value-of select="substring-before($text, $zero-space-after-equal)"/>
4344
4395
  <xsl:value-of select="$zero-space-after-equal"/>
4345
4396
  <xsl:value-of select="$zero-space"/>
4346
4397
  <xsl:call-template name="add-zero-spaces-equal">
4347
4398
  <xsl:with-param name="text" select="substring-after($text, $zero-space-after-equal)"/>
4348
- </xsl:call-template>
4399
+ </xsl:call-template> -->
4400
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),$regex_zero-space-after-equal,concat('$1',$zero_width_space))"/>
4349
4401
  </xsl:when>
4350
4402
  <xsl:otherwise>
4351
4403
  <xsl:value-of select="$text"/>
@@ -4832,7 +4884,12 @@
4832
4884
 
4833
4885
  <fo:inline xsl:use-attribute-sets="termnote-name-style">
4834
4886
 
4887
+ <xsl:if test="not(*[local-name() = 'name']/following-sibling::node()[1][self::text()][normalize-space()=''])">
4888
+ <xsl:attribute name="padding-right">1mm</xsl:attribute>
4889
+ </xsl:if>
4890
+
4835
4891
 
4892
+
4836
4893
 
4837
4894
  <!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
4838
4895
  <!-- <xsl:if test="*[not(local-name()='name')][1][node()[normalize-space() != ''][1][local-name() = 'add'] and node()[normalize-space() != ''][last()][local-name() = 'add']]"> -->
@@ -5824,7 +5881,73 @@
5824
5881
  <xsl:with-param name="text" select="$text_step1"/>
5825
5882
  </xsl:call-template>
5826
5883
  </xsl:variable>
5827
- <xsl:value-of select="$text_step2"/>
5884
+
5885
+ <!-- <xsl:value-of select="$text_step2"/> -->
5886
+
5887
+ <!-- add zero-width space after space -->
5888
+ <xsl:variable name="text_step3" select="java:replaceAll(java:java.lang.String.new($text_step2),' ',' ​')"/>
5889
+
5890
+ <!-- split text by zero-width space -->
5891
+ <xsl:variable name="text_step4">
5892
+ <xsl:call-template name="split_for_interspers">
5893
+ <xsl:with-param name="pText" select="$text_step3"/>
5894
+ <xsl:with-param name="sep" select="$zero_width_space"/>
5895
+ </xsl:call-template>
5896
+ </xsl:variable>
5897
+
5898
+ <xsl:for-each select="xalan:nodeset($text_step4)/node()">
5899
+ <xsl:choose>
5900
+ <xsl:when test="local-name() = 'interspers'"> <!-- word with length more than 30 will be interspersed with zero-width space -->
5901
+ <xsl:call-template name="interspers">
5902
+ <xsl:with-param name="str" select="."/>
5903
+ </xsl:call-template>
5904
+ </xsl:when>
5905
+ <xsl:otherwise>
5906
+ <xsl:value-of select="."/>
5907
+ </xsl:otherwise>
5908
+ </xsl:choose>
5909
+ </xsl:for-each>
5910
+
5911
+ </xsl:template><xsl:variable name="interspers_tag_open">###interspers123###</xsl:variable><xsl:variable name="interspers_tag_close">###/interspers123###</xsl:variable><xsl:template name="split_for_interspers">
5912
+ <xsl:param name="pText" select="."/>
5913
+ <xsl:param name="sep" select="','"/>
5914
+ <!-- word with length more than 30 will be interspersed with zero-width space -->
5915
+ <xsl:variable name="regex" select="concat('([^', $zero_width_space, ']{31,})')"/> <!-- sequence of characters (more 31), that doesn't contains zero-width space -->
5916
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new($pText),$regex,concat($interspers_tag_open,'$1',$interspers_tag_close))"/>
5917
+ <xsl:call-template name="replace_tag_interspers">
5918
+ <xsl:with-param name="text" select="$text"/>
5919
+ </xsl:call-template>
5920
+ </xsl:template><xsl:template name="replace_tag_interspers">
5921
+ <xsl:param name="text"/>
5922
+ <xsl:choose>
5923
+ <xsl:when test="contains($text, $interspers_tag_open)">
5924
+ <xsl:value-of select="substring-before($text, $interspers_tag_open)"/>
5925
+ <xsl:variable name="text_after" select="substring-after($text, $interspers_tag_open)"/>
5926
+ <interspers>
5927
+ <xsl:value-of select="substring-before($text_after, $interspers_tag_close)"/>
5928
+ </interspers>
5929
+ <xsl:call-template name="replace_tag_interspers">
5930
+ <xsl:with-param name="text" select="substring-after($text_after, $interspers_tag_close)"/>
5931
+ </xsl:call-template>
5932
+ </xsl:when>
5933
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
5934
+ </xsl:choose>
5935
+ </xsl:template><xsl:template name="interspers">
5936
+ <xsl:param name="str"/>
5937
+ <xsl:param name="char" select="$zero_width_space"/>
5938
+ <xsl:if test="$str != ''">
5939
+ <xsl:value-of select="substring($str, 1, 1)"/>
5940
+
5941
+ <xsl:variable name="next_char" select="substring($str, 2, 1)"/>
5942
+ <xsl:if test="not(contains(concat(' -.:=_— ', $char), $next_char))">
5943
+ <xsl:value-of select="$char"/>
5944
+ </xsl:if>
5945
+
5946
+ <xsl:call-template name="interspers">
5947
+ <xsl:with-param name="str" select="substring($str, 2)"/>
5948
+ <xsl:with-param name="char" select="$char"/>
5949
+ </xsl:call-template>
5950
+ </xsl:if>
5828
5951
  </xsl:template><xsl:template match="*" mode="syntax_highlight">
5829
5952
  <xsl:apply-templates mode="syntax_highlight"/>
5830
5953
  </xsl:template><xsl:variable name="syntax_highlight_styles_">
@@ -6210,7 +6333,7 @@
6210
6333
  <xsl:variable name="element">
6211
6334
 
6212
6335
  <xsl:choose>
6213
- <xsl:when test="$num = 1">inline</xsl:when>
6336
+ <xsl:when test="$num = 1 and not(contains($fo_element, 'block'))">inline</xsl:when>
6214
6337
  <xsl:otherwise>block</xsl:otherwise>
6215
6338
  </xsl:choose>
6216
6339
 
@@ -6266,7 +6389,7 @@
6266
6389
  </xsl:otherwise>
6267
6390
  </xsl:choose> -->
6268
6391
  </fo:block>
6269
- </xsl:template><xsl:template match="*[local-name() = 'termsource']/text()[starts-with(., '[SOURCE: Adapted from: ')]" priority="2">
6392
+ </xsl:template><xsl:template match="*[local-name() = 'termsource']/text()[starts-with(., '[SOURCE: Adapted from: ') or starts-with(., '[SOURCE: Quoted from: ') or starts-with(., '[SOURCE: Modified from: ')]" priority="2">
6270
6393
  <xsl:text>[</xsl:text><xsl:value-of select="substring-after(., '[SOURCE: ')"/>
6271
6394
  </xsl:template><xsl:template match="*[local-name() = 'termsource']/text()">
6272
6395
  <xsl:if test="normalize-space() != ''">
@@ -6302,7 +6425,8 @@
6302
6425
  <fo:inline><xsl:apply-templates/></fo:inline>
6303
6426
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
6304
6427
  <xsl:if test="normalize-space() != ''">
6305
- <xsl:value-of select="."/>
6428
+ <!-- <xsl:value-of select="."/> -->
6429
+ <xsl:call-template name="text"/>
6306
6430
  </xsl:if>
6307
6431
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
6308
6432
  <fo:block-container margin-left="0mm">
@@ -6342,11 +6466,24 @@
6342
6466
  </xsl:template><xsl:template match="*[local-name() = 'author']">
6343
6467
  <xsl:text>— </xsl:text>
6344
6468
  <xsl:apply-templates/>
6345
- </xsl:template><xsl:template match="*[local-name() = 'eref']">
6469
+ </xsl:template><xsl:variable name="bibitems_">
6470
+ <xsl:for-each select="//*[local-name() = 'bibitem']">
6471
+ <xsl:copy-of select="."/>
6472
+ </xsl:for-each>
6473
+ </xsl:variable><xsl:variable name="bibitems" select="xalan:nodeset($bibitems_)"/><xsl:variable name="bibitems_hidden_">
6474
+ <xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
6475
+ <xsl:copy-of select="."/>
6476
+ </xsl:for-each>
6477
+ <xsl:for-each select="//*[local-name() = 'references'][@hidden='true']//*[local-name() = 'bibitem']">
6478
+ <xsl:copy-of select="."/>
6479
+ </xsl:for-each>
6480
+ </xsl:variable><xsl:variable name="bibitems_hidden" select="xalan:nodeset($bibitems_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
6346
6481
  <xsl:variable name="current_bibitemid" select="@bibitemid"/>
6347
- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/>
6482
+ <!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
6483
+ <xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
6348
6484
  <xsl:choose>
6349
- <xsl:when test="$external-destination != '' or not(key('bibitems_hidden', $current_bibitemid))"> <!-- if in the bibliography there is the item with @bibitemid (and not hidden), then create link (internal to the bibitem or external) -->
6485
+ <!-- <xsl:when test="$external-destination != '' or not(key('bibitems_hidden', $current_bibitemid))"> --> <!-- if in the bibliography there is the item with @bibitemid (and not hidden), then create link (internal to the bibitem or external) -->
6486
+ <xsl:when test="$external-destination != '' or not($bibitems_hidden/*[local-name() ='bibitem'][@id = $current_bibitemid])"> <!-- if in the bibliography there is the item with @bibitemid (and not hidden), then create link (internal to the bibitem or external) -->
6350
6487
  <fo:inline xsl:use-attribute-sets="eref-style">
6351
6488
  <xsl:if test="@type = 'footnote'">
6352
6489
  <xsl:attribute name="keep-together.within-line">always</xsl:attribute>
@@ -7485,7 +7622,7 @@
7485
7622
  <xsl:copy>
7486
7623
  <xsl:copy-of select="@*"/>
7487
7624
  <!-- copy all elements from bibliography except 'Normative references' (moved to 'sections') -->
7488
- <xsl:for-each select="*[not(@normative='true') and not(*[*[@normative='true']])]">
7625
+ <xsl:for-each select="*[not(@normative='true') and not(*[@normative='true'])]">
7489
7626
  <xsl:sort select="@displayorder" data-type="number"/>
7490
7627
  <xsl:apply-templates select="." mode="update_xml_step1"/>
7491
7628
  </xsl:for-each>
@@ -7734,22 +7871,25 @@
7734
7871
  <xsl:param name="pText" select="."/>
7735
7872
  <xsl:param name="sep" select="','"/>
7736
7873
  <xsl:param name="normalize-space" select="'true'"/>
7874
+ <xsl:param name="keep_sep" select="'false'"/>
7737
7875
  <xsl:if test="string-length($pText) &gt;0">
7738
- <item>
7739
- <xsl:choose>
7740
- <xsl:when test="$normalize-space = 'true'">
7741
- <xsl:value-of select="normalize-space(substring-before(concat($pText, $sep), $sep))"/>
7742
- </xsl:when>
7743
- <xsl:otherwise>
7744
- <xsl:value-of select="substring-before(concat($pText, $sep), $sep)"/>
7745
- </xsl:otherwise>
7746
- </xsl:choose>
7747
- </item>
7748
- <xsl:call-template name="split">
7749
- <xsl:with-param name="pText" select="substring-after($pText, $sep)"/>
7750
- <xsl:with-param name="sep" select="$sep"/>
7751
- <xsl:with-param name="normalize-space" select="$normalize-space"/>
7752
- </xsl:call-template>
7876
+ <item>
7877
+ <xsl:choose>
7878
+ <xsl:when test="$normalize-space = 'true'">
7879
+ <xsl:value-of select="normalize-space(substring-before(concat($pText, $sep), $sep))"/>
7880
+ </xsl:when>
7881
+ <xsl:otherwise>
7882
+ <xsl:value-of select="substring-before(concat($pText, $sep), $sep)"/>
7883
+ </xsl:otherwise>
7884
+ </xsl:choose>
7885
+ </item>
7886
+ <xsl:if test="$keep_sep = 'true' and contains($pText, $sep)"><item><xsl:value-of select="$sep"/></item></xsl:if>
7887
+ <xsl:call-template name="split">
7888
+ <xsl:with-param name="pText" select="substring-after($pText, $sep)"/>
7889
+ <xsl:with-param name="sep" select="$sep"/>
7890
+ <xsl:with-param name="normalize-space" select="$normalize-space"/>
7891
+ <xsl:with-param name="keep_sep" select="$keep_sep"/>
7892
+ </xsl:call-template>
7753
7893
  </xsl:if>
7754
7894
  </xsl:template><xsl:template name="getDocumentId">
7755
7895
  <xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
@@ -527,7 +527,7 @@
527
527
  </define>
528
528
  <define name="LocalityType">
529
529
  <data type="string">
530
- <param name="pattern">section|clause|part|paragraph|chapter|page|whole|table|annex|figure|note|list|example|volume|issue|time|anchor|locality:[a-zA-Z0-9_]+</param>
530
+ <param name="pattern">section|clause|part|paragraph|chapter|page|title|line|whole|table|annex|figure|note|list|example|volume|issue|time|anchor|locality:[a-zA-Z0-9_]+</param>
531
531
  </data>
532
532
  </define>
533
533
  <define name="referenceFrom">
@@ -677,6 +677,9 @@
677
677
  <zeroOrMore>
678
678
  <ref name="extent"/>
679
679
  </zeroOrMore>
680
+ <optional>
681
+ <ref name="bibliographic_size"/>
682
+ </optional>
680
683
  <zeroOrMore>
681
684
  <ref name="accesslocation"/>
682
685
  </zeroOrMore>
@@ -922,9 +925,29 @@
922
925
  <text/>
923
926
  </element>
924
927
  </define>
928
+ <define name="sizevalue">
929
+ <element name="value">
930
+ <attribute name="type"/>
931
+ <text/>
932
+ </element>
933
+ </define>
934
+ <define name="bibliographic_size">
935
+ <element name="size">
936
+ <oneOrMore>
937
+ <ref name="sizevalue"/>
938
+ </oneOrMore>
939
+ </element>
940
+ </define>
925
941
  <define name="extent">
926
942
  <element name="extent">
927
- <ref name="BibItemLocality"/>
943
+ <choice>
944
+ <zeroOrMore>
945
+ <ref name="locality"/>
946
+ </zeroOrMore>
947
+ <zeroOrMore>
948
+ <ref name="localityStack"/>
949
+ </zeroOrMore>
950
+ </choice>
928
951
  </element>
929
952
  </define>
930
953
  <define name="series">
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
3
- VERSION = "2.0.5".freeze
3
+ VERSION = "2.0.8".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ribose
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.8
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-03-07 00:00:00.000000000 Z
11
+ date: 2022-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  - !ruby/object:Gem::Version
245
245
  version: '0'
246
246
  requirements: []
247
- rubygems_version: 3.2.32
247
+ rubygems_version: 3.3.9
248
248
  signing_key:
249
249
  specification_version: 4
250
250
  summary: metanorma-ribose lets you write Ribose standards in AsciiDoc.