metanorma-ribose 2.1.1 → 2.1.2

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: 7860855d867c347047a010958d4fbef99add32657da444ebb3b243997f5bfab9
4
- data.tar.gz: 41f12250adeacd7ef9d8428cfb2f2483d1bbf2152192b007fbbd21891b409763
3
+ metadata.gz: 4b01f4b4b2238e9ae48eb5b174ee5e1b56342e356fa82f4f0976e12456633430
4
+ data.tar.gz: ea96ec56d44388731e58f29f2e618423f57dccd82fd06cfe714fb178c58d31cf
5
5
  SHA512:
6
- metadata.gz: 0224b9d5a2af2c9f8792de48d7cc884702557ea768d0a77e555f7c0f0b92108ef56db5c72e365e4264f45fd55dde793376f25b8c37d3bbc7a7ba3cf2b2089a71
7
- data.tar.gz: 77e6544dc2d389a672f1d26f076ef618aa7e32b7949680271f9d54ad07d31bab020a107e8c628528a986fccb7ddb799aa45011a63bfcc517cf5e90abab235f69
6
+ metadata.gz: 48defe9cb9e094cbe27ed601c4e1df9733b6cc05a5f1bb14d0f5934fadfbc76b19e0b9214dff1aa309448fc7836619fa8706ddd2a2595cfbc311edb10749ac9f
7
+ data.tar.gz: 0d2c7cfa89ed0ffa775b17d70767ca4f64f12a766a9ccf73005797f2f5f558edc4cf1bce4085ca9971f6256656022a307ab73e20088a6aa09ed337baba35ead3
@@ -709,6 +709,12 @@ pre {
709
709
  font-size: 1em;
710
710
  text-align: center; }
711
711
 
712
+ .ListTitle {
713
+ font-weight: 700;
714
+ font-size: 1em;
715
+ text-align: center;
716
+ text-align: left; }
717
+
712
718
  .FigureTitle,
713
719
  .SourceTitle {
714
720
  font-weight: 700;
@@ -359,6 +359,7 @@ pre {
359
359
 
360
360
  @include admonitionBlock();
361
361
  @include recommendationBlock();
362
+ @include listBlock();
362
363
 
363
364
  .FigureTitle,
364
365
  .SourceTitle {
@@ -111,7 +111,7 @@ p.AdmonitionTitle, p.RecommendationTitle {
111
111
  mso-bidi-font-family: {{bodyfont}};
112
112
  mso-ansi-language: EN-GB; }
113
113
 
114
- p.TableTitle {
114
+ p.TableTitle, p.ListTitle {
115
115
  mso-style-unhide: no;
116
116
  mso-style-qformat: yes;
117
117
  mso-style-parent: "";
@@ -142,13 +142,15 @@ p.Note, div.Note, li.Note, p.TableFootnote, div.TableFootnote, li.TableFootnote
142
142
  line-height: {{normalfontsize}};
143
143
  mso-pagination: widow-orphan;
144
144
  tab-stops: 20.15pt;
145
- font-size: {{smallerfontsize}};
146
145
  mso-bidi-font-size: {{smallerfontsize}};
147
- font-family: {{bodyfont}};
148
146
  mso-fareast-font-family: {{bodyfont}};
149
147
  mso-bidi-font-family: {{bodyfont}};
150
148
  mso-ansi-language: EN-GB; }
151
149
 
150
+ p.Note, li.Note, p.TableFootnote, div.TableFootnote, li.TableFootnote {
151
+ font-size: {{smallerfontsize}};
152
+ font-family: {{bodyfont}}; }
153
+
152
154
  p.ANNEX, li.ANNEX, div.ANNEX {
153
155
  mso-style-name: ANNEX;
154
156
  mso-style-priority: 10;
@@ -493,12 +495,14 @@ p.Quote, li.Quote, div.Quote {
493
495
  line-height: {{normalfontsize}};
494
496
  mso-pagination: widow-orphan;
495
497
  tab-stops: 20.15pt;
496
- font-size: {{normalfontsize}};
497
- font-family: {{bodyfont}};
498
498
  mso-fareast-font-family: {{bodyfont}};
499
499
  mso-bidi-font-family: {{bodyfont}};
500
500
  mso-ansi-language: EN-GB; }
501
501
 
502
+ p.Quote, li.Quote {
503
+ font-size: {{normalfontsize}};
504
+ font-family: {{bodyfont}}; }
505
+
502
506
  p.QuoteAttribution {
503
507
  text-align: right;
504
508
  mso-style-priority: 99;
@@ -528,8 +532,6 @@ p.Admonition, li.Admonition, div.Admonition {
528
532
  mso-border-themecolor: accent1;
529
533
  padding: 0cm;
530
534
  mso-padding-alt: 10.0pt 10.0pt 10.0pt 10.0pt;
531
- font-size: {{normalfontsize}};
532
- font-family: {{bodyfont}};
533
535
  mso-ascii-font-family: {{bodyfont}};
534
536
  mso-ascii-theme-font: minor-latin;
535
537
  mso-fareast-font-family: {{bodyfont}};
@@ -540,7 +542,11 @@ p.Admonition, li.Admonition, div.Admonition {
540
542
  mso-bidi-theme-font: minor-bidi;
541
543
  color: #4472C4;
542
544
  mso-themecolor: accent1;
543
- mso-ansi-language: EN-AU;
545
+ mso-ansi-language: EN-AU; }
546
+
547
+ p.Admonition, li.Admonition {
548
+ font-size: {{normalfontsize}};
549
+ font-family: {{bodyfont}};
544
550
  font-style: italic; }
545
551
 
546
552
  p.Code, li.Code, div.Code {
@@ -765,7 +771,9 @@ aside {
765
771
 
766
772
  p.example, li.example, td.example {
767
773
  margin-right: 0pt;
768
- margin-left: 0pt; }
774
+ margin-left: 0pt;
775
+ font-size: {{smallerfontsize}};
776
+ font-family: {{bodyfont}}; }
769
777
 
770
778
  div.example {
771
779
  margin-right: 36.0pt;
@@ -774,9 +782,7 @@ div.example {
774
782
  margin-bottom: 0cm; }
775
783
 
776
784
  p.example, li.example, div.example, td.example {
777
- mso-pagination: none;
778
- font-size: {{smallerfontsize}};
779
- font-family: {{bodyfont}}; }
785
+ mso-pagination: none; }
780
786
 
781
787
  td.example p.MsoListParagraph {
782
788
  font-size: {{smallerfontsize}}; }
@@ -105,7 +105,7 @@ p.AdmonitionTitle, p.RecommendationTitle
105
105
  mso-fareast-font-family:$bodyfont;
106
106
  mso-bidi-font-family:$bodyfont;
107
107
  mso-ansi-language:EN-GB;}
108
- p.TableTitle
108
+ p.TableTitle, p.ListTitle
109
109
  {mso-style-unhide:no;
110
110
  mso-style-qformat:yes;
111
111
  mso-style-parent:"";
@@ -135,12 +135,14 @@ p.Note, div.Note, li.Note, p.TableFootnote, div.TableFootnote, li.TableFootnote
135
135
  line-height:$normalfontsize;
136
136
  mso-pagination:widow-orphan;
137
137
  tab-stops:20.15pt;
138
- font-size:$smallerfontsize;
139
138
  mso-bidi-font-size:$smallerfontsize;
140
- font-family:$bodyfont;
141
139
  mso-fareast-font-family:$bodyfont;
142
140
  mso-bidi-font-family:$bodyfont;
143
141
  mso-ansi-language:EN-GB;}
142
+ p.Note, li.Note, p.TableFootnote, div.TableFootnote, li.TableFootnote {
143
+ font-size:$smallerfontsize;
144
+ font-family:$bodyfont;
145
+ }
144
146
  p.ANNEX, li.ANNEX, div.ANNEX
145
147
  {mso-style-name:ANNEX;
146
148
  mso-style-priority:10;
@@ -470,11 +472,13 @@ p.Quote, li.Quote, div.Quote
470
472
  line-height:$normalfontsize;
471
473
  mso-pagination:widow-orphan;
472
474
  tab-stops:20.15pt;
473
- font-size:$normalfontsize;
474
- font-family:$bodyfont;
475
475
  mso-fareast-font-family:$bodyfont;
476
476
  mso-bidi-font-family:$bodyfont;
477
477
  mso-ansi-language:EN-GB;}
478
+ p.Quote, li.Quote {
479
+ font-size:$normalfontsize;
480
+ font-family:$bodyfont;
481
+ }
478
482
  p.QuoteAttribution
479
483
  {text-align:right;
480
484
  mso-style-priority:99;
@@ -504,8 +508,6 @@ p.Admonition, li.Admonition, div.Admonition
504
508
  mso-border-themecolor:accent1;
505
509
  padding:0cm;
506
510
  mso-padding-alt:10.0pt 10.0pt 10.0pt 10.0pt;
507
- font-size:$normalfontsize;
508
- font-family:$bodyfont;
509
511
  mso-ascii-font-family:$bodyfont;
510
512
  mso-ascii-theme-font:minor-latin;
511
513
  mso-fareast-font-family:$bodyfont;
@@ -517,6 +519,10 @@ p.Admonition, li.Admonition, div.Admonition
517
519
  color:#4472C4;
518
520
  mso-themecolor:accent1;
519
521
  mso-ansi-language:EN-AU;
522
+ }
523
+ p.Admonition, li.Admonition {
524
+ font-size:$normalfontsize;
525
+ font-family:$bodyfont;
520
526
  font-style:italic;}
521
527
  p.Code, li.Code, div.Code
522
528
  {mso-style-name:Code;
@@ -720,6 +726,8 @@ margin-left: -36.0pt;
720
726
  p.example, li.example, td.example {
721
727
  margin-right: 0pt;
722
728
  margin-left: 0pt;
729
+ font-size:$smallerfontsize;
730
+ font-family:$bodyfont;
723
731
  }
724
732
 
725
733
  div.example {
@@ -731,8 +739,7 @@ div.example {
731
739
 
732
740
  p.example, li.example, div.example, td.example {
733
741
  mso-pagination:none;
734
- font-size:$smallerfontsize;
735
- font-family:$bodyfont;}
742
+ }
736
743
 
737
744
  td.example p.MsoListParagraph {
738
745
  font-size: $smallerfontsize;
@@ -320,12 +320,13 @@
320
320
  <!-- background image -->
321
321
  <fo:block-container absolute-position="fixed" left="0mm" top="0mm" font-size="0">
322
322
  <fo:block>
323
- <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Cover-Background))}" width="{$pageWidth}mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
323
+ <!-- <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Cover-Background))}" width="{$pageWidth}mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/> -->
324
+ <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Cover-Background))}" height="{$pageHeight}mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
324
325
  </fo:block>
325
326
  </fo:block-container>
326
327
 
327
328
  <!-- Ribose logo -->
328
- <fo:block-container absolute-position="fixed" left="171mm" top="246mm" height="30mm" width="40mm">
329
+ <fo:block-container absolute-position="fixed" left="171mm" top="{$pageHeight - 33.4}mm" height="30mm" width="40mm"> <!-- top="246mm" -->
329
330
  <fo:block>
330
331
  <fo:instream-foreign-object content-width="32mm" fox:alt-text="Ribose Logo">
331
332
  <xsl:copy-of select="$Ribose-Logo"/>
@@ -333,7 +334,7 @@
333
334
  </fo:block>
334
335
  </fo:block-container>
335
336
 
336
- <fo:block-container absolute-position="fixed" left="0mm" top="227mm" height="41mm" display-align="after">
337
+ <fo:block-container absolute-position="fixed" left="0mm" top="{$pageHeight - 52.4}mm" height="41mm" display-align="after"> <!-- top="227mm" -->
337
338
  <fo:block font-size="10pt" line-height="1.4">
338
339
  <fo:table table-layout="fixed" width="100%">
339
340
  <fo:table-column column-width="proportional-column-width(13)"/>
@@ -392,7 +393,7 @@
392
393
  </fo:block-container>
393
394
 
394
395
  <!-- title and version -->
395
- <fo:block-container height="60mm" display-align="center">
396
+ <fo:block-container margin-top="{$pageHeight - 279.4}mm" height="60mm" display-align="center">
396
397
  <xsl:variable name="title" select="/rsd:rsd-standard/rsd:bibdata/rsd:title[@language = $lang]"/>
397
398
  <xsl:if test="string-length($title) &gt; 80">
398
399
  <xsl:attribute name="margin-right">-30mm</xsl:attribute>
@@ -1212,14 +1213,41 @@
1212
1213
 
1213
1214
 
1214
1215
 
1215
- <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:param name="add_math_as_text">true</xsl:param><xsl:param name="table_if">false</xsl:param><xsl:param name="table_widths"/><xsl:variable name="table_widths_from_if" select="xalan:nodeset($table_widths)"/><xsl:param name="table_if_debug">false</xsl:param><xsl:variable name="isGenerateTableIF_">
1216
+ <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:param name="add_math_as_text">true</xsl:param><xsl:param name="table_if">false</xsl:param><xsl:param name="table_widths"/><xsl:variable name="table_widths_from_if" select="xalan:nodeset($table_widths)"/><xsl:variable name="table_widths_from_if_calculated_">
1217
+ <xsl:for-each select="$table_widths_from_if//table">
1218
+ <xsl:copy>
1219
+ <xsl:copy-of select="@*"/>
1220
+ <xsl:call-template name="calculate-column-widths-autolayout-algorithm"/>
1221
+ </xsl:copy>
1222
+ </xsl:for-each>
1223
+ </xsl:variable><xsl:variable name="table_widths_from_if_calculated" select="xalan:nodeset($table_widths_from_if_calculated_)"/><xsl:param name="table_if_debug">false</xsl:param><xsl:variable name="isGenerateTableIF_">
1216
1224
  false
1217
1225
  </xsl:variable><xsl:variable name="isGenerateTableIF" select="normalize-space($isGenerateTableIF_)"/><xsl:variable name="lang">
1218
1226
  <xsl:call-template name="getLang"/>
1219
- </xsl:variable><xsl:variable name="pageWidth_">
1220
- 215.9
1227
+ </xsl:variable><xsl:variable name="papersize" select="java:toLowerCase(java:java.lang.String.new(normalize-space(//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'presentation-metadata']/*[local-name() = 'papersize'])))"/><xsl:variable name="papersize_width_">
1228
+ <xsl:choose>
1229
+ <xsl:when test="$papersize = 'letter'">215.9</xsl:when>
1230
+ <xsl:when test="$papersize = 'a4'">210</xsl:when>
1231
+ </xsl:choose>
1232
+ </xsl:variable><xsl:variable name="papersize_width" select="normalize-space($papersize_width_)"/><xsl:variable name="papersize_height_">
1233
+ <xsl:choose>
1234
+ <xsl:when test="$papersize = 'letter'">279.4</xsl:when>
1235
+ <xsl:when test="$papersize = 'a4'">297</xsl:when>
1236
+ </xsl:choose>
1237
+ </xsl:variable><xsl:variable name="papersize_height" select="normalize-space($papersize_height_)"/><xsl:variable name="pageWidth_">
1238
+ <xsl:choose>
1239
+ <xsl:when test="$papersize_width != ''"><xsl:value-of select="$papersize_width"/></xsl:when>
1240
+ <xsl:otherwise>
1241
+ 215.9
1242
+ </xsl:otherwise>
1243
+ </xsl:choose>
1221
1244
  </xsl:variable><xsl:variable name="pageWidth" select="normalize-space($pageWidth_)"/><xsl:variable name="pageHeight_">
1222
- 279.4
1245
+ <xsl:choose>
1246
+ <xsl:when test="$papersize_height != ''"><xsl:value-of select="$papersize_height"/></xsl:when>
1247
+ <xsl:otherwise>
1248
+ 279.4
1249
+ </xsl:otherwise>
1250
+ </xsl:choose>
1223
1251
  </xsl:variable><xsl:variable name="pageHeight" select="normalize-space($pageHeight_)"/><xsl:variable name="marginLeftRight1_">
1224
1252
  29
1225
1253
  </xsl:variable><xsl:variable name="marginLeftRight1" select="normalize-space($marginLeftRight1_)"/><xsl:variable name="marginLeftRight2_">
@@ -1820,6 +1848,26 @@
1820
1848
  <xsl:attribute name="font-weight">bold</xsl:attribute>
1821
1849
  <xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
1822
1850
 
1851
+ </xsl:attribute-set><xsl:attribute-set name="dl-name-style">
1852
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
1853
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
1854
+
1855
+
1856
+
1857
+
1858
+
1859
+
1860
+
1861
+
1862
+
1863
+
1864
+
1865
+
1866
+
1867
+
1868
+ <xsl:attribute name="font-weight">300</xsl:attribute>
1869
+ <xsl:attribute name="color">black</xsl:attribute>
1870
+
1823
1871
  </xsl:attribute-set><xsl:attribute-set name="dd-cell-style">
1824
1872
  <xsl:attribute name="padding-left">2mm</xsl:attribute>
1825
1873
  </xsl:attribute-set><xsl:attribute-set name="appendix-style">
@@ -2176,6 +2224,25 @@
2176
2224
 
2177
2225
 
2178
2226
 
2227
+ </xsl:attribute-set><xsl:attribute-set name="list-name-style">
2228
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
2229
+
2230
+
2231
+
2232
+
2233
+
2234
+
2235
+
2236
+
2237
+
2238
+
2239
+
2240
+
2241
+
2242
+
2243
+ <xsl:attribute name="font-weight">300</xsl:attribute>
2244
+ <xsl:attribute name="color">black</xsl:attribute>
2245
+
2179
2246
  </xsl:attribute-set><xsl:attribute-set name="list-item-style">
2180
2247
 
2181
2248
 
@@ -2594,13 +2661,13 @@
2594
2661
 
2595
2662
  </xsl:attribute-set><xsl:variable name="border-block-added">2.5pt solid rgb(0, 176, 80)</xsl:variable><xsl:variable name="border-block-deleted">2.5pt solid rgb(255, 0, 0)</xsl:variable><xsl:variable name="ace_tag">ace-tag_</xsl:variable><xsl:template name="processPrefaceSectionsDefault_Contents">
2596
2663
  <xsl:variable name="nodes_preface_">
2597
- <xsl:for-each select="/*/*[local-name()='preface']/*">
2664
+ <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
2598
2665
  <node id="{@id}"/>
2599
2666
  </xsl:for-each>
2600
2667
  </xsl:variable>
2601
2668
  <xsl:variable name="nodes_preface" select="xalan:nodeset($nodes_preface_)"/>
2602
2669
 
2603
- <xsl:for-each select="/*/*[local-name()='preface']/*">
2670
+ <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
2604
2671
  <xsl:sort select="@displayorder" data-type="number"/>
2605
2672
 
2606
2673
  <!-- process Section's title -->
@@ -2666,7 +2733,7 @@
2666
2733
  </xsl:for-each>
2667
2734
  </figures>
2668
2735
  </xsl:template><xsl:template name="processPrefaceSectionsDefault">
2669
- <xsl:for-each select="/*/*[local-name()='preface']/*">
2736
+ <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
2670
2737
  <xsl:sort select="@displayorder" data-type="number"/>
2671
2738
  <xsl:apply-templates select="."/>
2672
2739
  </xsl:for-each>
@@ -3274,8 +3341,9 @@
3274
3341
  <xsl:value-of select="translate($math_text, ' ', '#')"/><!-- mathml images as one 'word' without spaces -->
3275
3342
  </xsl:if>
3276
3343
  </xsl:template><xsl:template name="calculate-column-widths-autolayout-algorithm">
3277
- <xsl:param name="table"/>
3278
- <xsl:param name="if">false</xsl:param> <!-- via intermediate format -->
3344
+ <xsl:param name="parent_table_page-width"/> <!-- for nested tables, in re-calculate step -->
3345
+
3346
+ <!-- via intermediate format -->
3279
3347
 
3280
3348
  <!-- The algorithm uses two passes through the table data and scales linearly with the size of the table -->
3281
3349
 
@@ -3286,9 +3354,8 @@
3286
3354
  <!-- get current table id -->
3287
3355
  <xsl:variable name="table_id" select="@id"/>
3288
3356
  <!-- find table by id in the file 'table_widths' -->
3289
- <xsl:variable name="table-if_" select="$table_widths_from_if//table[@id = $table_id]"/>
3290
- <xsl:variable name="table-if" select="xalan:nodeset($table-if_)"/>
3291
-
3357
+ <!-- <xsl:variable name="table-if_" select="$table_widths_from_if//table[@id = $table_id]"/>
3358
+ <xsl:variable name="table-if" select="xalan:nodeset($table-if_)"/> -->
3292
3359
 
3293
3360
  <!-- table='<xsl:copy-of select="$table"/>' -->
3294
3361
  <!-- table_id='<xsl:value-of select="$table_id"/>\ -->
@@ -3296,24 +3363,13 @@
3296
3363
  <!-- table_widths_from_if='<xsl:copy-of select="$table_widths_from_if"/>' -->
3297
3364
 
3298
3365
  <xsl:variable name="table_with_cell_widths_">
3299
- <xsl:choose>
3300
- <xsl:when test="$if = 'true' and normalize-space($table-if) != ''"> <!-- if we read column's width from IF and there is table in IF -->
3301
-
3302
- <!-- Example: <column>10</column>
3303
- <column>11</column>
3304
- -->
3305
- <xsl:apply-templates select="$table-if" mode="determine_cell_widths-if"/>
3306
- </xsl:when>
3307
- <xsl:otherwise>
3308
- <xsl:apply-templates select="xalan:nodeset($table)" mode="determine_cell_widths"/>
3309
- </xsl:otherwise>
3310
- </xsl:choose>
3366
+ <xsl:apply-templates select="." mode="determine_cell_widths-if"/> <!-- read column's width from IF -->
3311
3367
  </xsl:variable>
3312
3368
  <xsl:variable name="table_with_cell_widths" select="xalan:nodeset($table_with_cell_widths_)"/>
3313
3369
 
3314
- <xsl:if test="$table_if_debug = 'true'">
3370
+ <!-- <xsl:if test="$table_if_debug = 'true'">
3315
3371
  <xsl:copy-of select="$table_with_cell_widths"/>
3316
- </xsl:if>
3372
+ </xsl:if> -->
3317
3373
 
3318
3374
 
3319
3375
  <!-- The minimum and maximum cell widths are then used to determine the corresponding minimum and maximum widths for the columns. -->
@@ -3359,8 +3415,12 @@
3359
3415
 
3360
3416
  <xsl:variable name="page_width">
3361
3417
  <xsl:choose>
3362
- <xsl:when test="$if = 'true'"><xsl:value-of select="$table-if/@page-width"/></xsl:when>
3363
- <xsl:otherwise>75</xsl:otherwise>
3418
+ <xsl:when test="$parent_table_page-width != ''">
3419
+ <xsl:value-of select="$parent_table_page-width"/>
3420
+ </xsl:when>
3421
+ <xsl:otherwise>
3422
+ <xsl:value-of select="@page-width"/>
3423
+ </xsl:otherwise>
3364
3424
  </xsl:choose>
3365
3425
  </xsl:variable>
3366
3426
 
@@ -3368,9 +3428,6 @@
3368
3428
  <table_width>
3369
3429
  <xsl:copy-of select="$table_widths"/>
3370
3430
  </table_width>
3371
- <!-- <debug>$table_widths/@width_min=<xsl:value-of select="$table_widths/table/@width_min"/></debug>
3372
- <debug>$table_widths/@width_max=<xsl:value-of select="$table_widths/table/@width_max"/></debug>
3373
- -->
3374
3431
  <debug>$page_width=<xsl:value-of select="$page_width"/></debug>
3375
3432
  </xsl:if>
3376
3433
 
@@ -3381,11 +3438,11 @@
3381
3438
  <xsl:when test="$table_widths/table/@width_min &gt;= $page_width and 1 = 2"> <!-- this condition isn't working see case 3 below -->
3382
3439
  <!-- call old algorithm -->
3383
3440
  <case1/>
3384
- <xsl:variable name="cols-count" select="count(xalan:nodeset($table)/*/tr[1]/td)"/>
3441
+ <!-- <xsl:variable name="cols-count" select="count(xalan:nodeset($table)/*/tr[1]/td)"/>
3385
3442
  <xsl:call-template name="calculate-column-widths-proportional">
3386
3443
  <xsl:with-param name="cols-count" select="$cols-count"/>
3387
3444
  <xsl:with-param name="table" select="$table"/>
3388
- </xsl:call-template>
3445
+ </xsl:call-template> -->
3389
3446
  </xsl:when>
3390
3447
  <!-- 2. The maximum table width fits within the available space. In this case, set the columns to their maximum widths. -->
3391
3448
  <xsl:when test="$table_widths/table/@width_max &lt;= $page_width">
@@ -3429,95 +3486,49 @@
3429
3486
  <xsl:otherwise><unknown_case/></xsl:otherwise>
3430
3487
  </xsl:choose>
3431
3488
 
3489
+ </xsl:template><xsl:template name="get-calculated-column-widths-autolayout-algorithm">
3432
3490
 
3433
- </xsl:template><xsl:template match="@*|node()" mode="determine_cell_widths">
3434
- <xsl:copy>
3435
- <xsl:apply-templates select="@*|node()" mode="determine_cell_widths"/>
3436
- </xsl:copy>
3437
- </xsl:template><xsl:template match="td | th" mode="determine_cell_widths">
3438
- <xsl:copy>
3439
- <xsl:copy-of select="@*"/>
3491
+ <!-- if nested 'dl' or 'table' -->
3492
+ <xsl:variable name="parent_table_id" select="normalize-space(ancestor::*[local-name() = 'table' or local-name() = 'dl'][1]/@id)"/>
3493
+ <parent_table_id><xsl:value-of select="$parent_table_id"/></parent_table_id>
3440
3494
 
3441
- <!-- The maximum width is given by the widest line. -->
3442
- <xsl:variable name="widths_max">
3443
- <xsl:for-each select=".//*[local-name() = 'p']">
3444
- <xsl:call-template name="add_width"/>
3445
- </xsl:for-each>
3446
- <xsl:if test="not(*[local-name() = 'p'])">
3447
- <xsl:call-template name="add_width"/>
3448
- </xsl:if>
3449
- </xsl:variable>
3450
- <xsl:variable name="width_max">
3451
- <xsl:for-each select="xalan:nodeset($widths_max)//width">
3452
- <xsl:sort select="." data-type="number" order="descending"/>
3453
- <xsl:if test="position() = 1"><xsl:value-of select="."/></xsl:if>
3454
- </xsl:for-each>
3455
- </xsl:variable>
3456
- <xsl:attribute name="width_max">
3457
- <xsl:value-of select="$width_max"/>
3458
- </xsl:attribute>
3495
+ <parent_element><xsl:value-of select="local-name(..)"/></parent_element>
3459
3496
 
3460
- <!-- The minimum width is given by the widest text element (word, image, etc.) -->
3461
- <!-- To do: image width -->
3462
- <xsl:variable name="td_text">
3463
- <xsl:apply-templates select="." mode="td_text"/>
3464
- </xsl:variable>
3465
- <xsl:variable name="words">
3466
- <xsl:variable name="string_with_added_zerospaces">
3467
- <xsl:call-template name="add-zero-spaces-java">
3468
- <xsl:with-param name="text" select="$td_text"/>
3469
- </xsl:call-template>
3497
+ <xsl:variable name="parent_table_page-width_">
3498
+ <xsl:if test="$parent_table_id != ''">
3499
+ <!-- determine column number in the parent table -->
3500
+ <xsl:variable name="parent_table_column_number">
3501
+ <xsl:choose>
3502
+ <xsl:when test="parent::*[local-name() = 'dd']">2</xsl:when>
3503
+ <xsl:otherwise> <!-- parent is table -->
3504
+ <xsl:value-of select="count(ancestor::*[local-name() = 'td'][1]/preceding-sibling::*[local-name() = 'td']) + 1"/>
3505
+ </xsl:otherwise>
3506
+ </xsl:choose>
3470
3507
  </xsl:variable>
3471
- <xsl:call-template name="tokenize">
3472
- <xsl:with-param name="text" select="normalize-space(translate($string_with_added_zerospaces, '​­', ' '))"/> <!-- replace zero-width-space and soft-hyphen to space -->
3473
- </xsl:call-template>
3474
- </xsl:variable>
3475
-
3476
- <xsl:variable name="max_word_length">
3477
- <xsl:call-template name="max_length">
3478
- <xsl:with-param name="words" select="xalan:nodeset($words)"/>
3479
- </xsl:call-template>
3480
- </xsl:variable>
3481
- <xsl:variable name="width_min">
3482
- <xsl:value-of select="$max_word_length"/>
3483
- </xsl:variable>
3484
- <xsl:attribute name="width_min">
3485
- <xsl:value-of select="$width_min"/>
3486
- </xsl:attribute>
3487
- <!-- width_max="1" width_min="1.5"> --> <!-- see 'tokenize' template, multiply 1.5 for all latin capitals -->
3488
- <xsl:if test="$width_min &gt; $width_max">
3489
- <xsl:attribute name="width_max">
3490
- <xsl:value-of select="$width_min"/>
3491
- </xsl:attribute>
3508
+ <!-- find table by id in the file 'table_widths' and get all Nth `<column>...</column> -->
3509
+ <xsl:value-of select="$table_widths_from_if_calculated//table[@id = $parent_table_id]/column[number($parent_table_column_number)]"/>
3492
3510
  </xsl:if>
3493
- <xsl:if test="$width_min = 0">
3494
- <xsl:attribute name="width_min">1</xsl:attribute>
3495
- </xsl:if>
3496
-
3497
- <xsl:apply-templates select="node()" mode="determine_cell_widths"/>
3498
-
3499
- </xsl:copy>
3500
- </xsl:template><xsl:template name="add_width">
3501
- <xsl:variable name="p_text"><xsl:apply-templates select="." mode="td_text"/></xsl:variable>
3502
- <xsl:variable name="p_text_len_" select="string-length(normalize-space($p_text))"/>
3503
-
3504
- <xsl:variable name="p_text_len">
3505
- <xsl:choose>
3506
- <xsl:when test="normalize-space(translate($p_text, concat($upper,'0123456789'), '')) = ''"> <!-- english word in CAPITAL letters -->
3507
- <xsl:value-of select="$p_text_len_ * 1.5"/>
3508
- </xsl:when>
3509
- <xsl:otherwise><xsl:value-of select="$p_text_len_"/></xsl:otherwise>
3510
- </xsl:choose>
3511
3511
  </xsl:variable>
3512
+ <xsl:variable name="parent_table_page-width" select="normalize-space($parent_table_page-width_)"/>
3512
3513
 
3513
- <xsl:variable name="math_addon_text">
3514
- <xsl:for-each select=".//*[local-name() = 'math']">
3515
- <xsl:apply-templates mode="td_text"/>
3516
- </xsl:for-each>
3517
- </xsl:variable>
3518
- <xsl:variable name="math_addon_length" select="string-length(normalize-space($math_addon_text)) * 0.2"/> <!-- plus 20% -->
3514
+ <!-- get current table id -->
3515
+ <xsl:variable name="table_id" select="@id"/>
3516
+
3517
+ <xsl:choose>
3518
+ <xsl:when test="$parent_table_id = '' or $parent_table_page-width = ''">
3519
+ <!-- find table by id in the file 'table_widths' and get all `<column>...</column> -->
3520
+ <xsl:copy-of select="$table_widths_from_if_calculated//table[@id = $table_id]/node()"/>
3521
+ </xsl:when>
3522
+ <xsl:otherwise>
3523
+ <!-- recalculate columns width based on parent table width -->
3524
+ <xsl:for-each select="$table_widths_from_if//table[@id = $table_id]">
3525
+ <xsl:call-template name="calculate-column-widths-autolayout-algorithm">
3526
+ <xsl:with-param name="parent_table_page-width" select="$parent_table_page-width"/> <!-- padding-left = 2mm = 50000-->
3527
+ </xsl:call-template>
3528
+ </xsl:for-each>
3529
+ </xsl:otherwise>
3530
+ </xsl:choose>
3519
3531
 
3520
- <width><xsl:value-of select="$p_text_len + $math_addon_length"/></width>
3521
3532
  </xsl:template><xsl:template match="@*|node()" mode="determine_cell_widths-if">
3522
3533
  <xsl:copy>
3523
3534
  <xsl:apply-templates select="@*|node()" mode="determine_cell_widths-if"/>
@@ -4303,11 +4314,19 @@
4303
4314
 
4304
4315
 
4305
4316
 
4317
+
4318
+ <xsl:if test="ancestor::*[local-name() = 'dd' or local-name() = 'td']">
4319
+ <xsl:attribute name="margin-top">0</xsl:attribute>
4320
+ </xsl:if>
4321
+
4306
4322
  <fo:block>
4307
4323
 
4308
4324
 
4309
4325
 
4310
4326
 
4327
+ <xsl:apply-templates select="*[local-name() = 'name']">
4328
+ <xsl:with-param name="process">true</xsl:with-param>
4329
+ </xsl:apply-templates>
4311
4330
 
4312
4331
  <xsl:if test="$isGenerateTableIF = 'true'">
4313
4332
  <!-- to determine start of table -->
@@ -4330,6 +4349,7 @@
4330
4349
  </xsl:choose>
4331
4350
 
4332
4351
 
4352
+
4333
4353
  <xsl:choose>
4334
4354
  <xsl:when test="$isGenerateTableIF = 'true'">
4335
4355
  <!-- generate IF for table widths -->
@@ -4458,6 +4478,18 @@
4458
4478
  </xsl:if> <!-- END: a few components -->
4459
4479
  </fo:block-container>
4460
4480
  </fo:block-container>
4481
+
4482
+ <xsl:if test="$isGenerateTableIF = 'true'"> <!-- process nested 'dl' -->
4483
+ <xsl:apply-templates select="*[local-name() = 'dd']/*[local-name() = 'dl']"/>
4484
+ </xsl:if>
4485
+
4486
+ </xsl:template><xsl:template match="*[local-name() = 'dl']/*[local-name() = 'name']">
4487
+ <xsl:param name="process">false</xsl:param>
4488
+ <xsl:if test="$process = 'true'">
4489
+ <fo:block xsl:use-attribute-sets="dl-name-style">
4490
+ <xsl:apply-templates/>
4491
+ </fo:block>
4492
+ </xsl:if>
4461
4493
  </xsl:template><xsl:template name="setColumnWidth_dl">
4462
4494
  <xsl:param name="colwidths"/>
4463
4495
  <xsl:param name="maxlength_dt"/>
@@ -4466,6 +4498,11 @@
4466
4498
  <!-- <colwidths><xsl:copy-of select="$colwidths"/></colwidths> -->
4467
4499
 
4468
4500
  <xsl:choose>
4501
+ <xsl:when test="xalan:nodeset($colwidths)/autolayout">
4502
+ <xsl:call-template name="insertTableColumnWidth">
4503
+ <xsl:with-param name="colwidths" select="$colwidths"/>
4504
+ </xsl:call-template>
4505
+ </xsl:when>
4469
4506
  <xsl:when test="ancestor::*[local-name()='dl']"><!-- second level, i.e. inlined table -->
4470
4507
  <fo:table-column column-width="50%"/>
4471
4508
  <fo:table-column column-width="50%"/>
@@ -4718,12 +4755,24 @@
4718
4755
  </td>
4719
4756
  <td>
4720
4757
 
4721
- <xsl:copy-of select="following-sibling::*[local-name()='dd'][1]/node()"/>
4758
+ <xsl:copy-of select="following-sibling::*[local-name()='dd'][1]/node()[not(local-name() = 'dl')]"/>
4759
+
4760
+ <!-- get paragraphs from nested 'dl' -->
4761
+ <xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]/*[local-name() = 'dl']" mode="dl_if_nested"/>
4762
+
4722
4763
 
4723
4764
  </td>
4724
4765
  </tr>
4725
4766
 
4726
- </xsl:template><xsl:template match="*[local-name()='dd']" mode="dl_if"/><xsl:template match="*[local-name()='em']">
4767
+ </xsl:template><xsl:template match="*[local-name()='dd']" mode="dl_if"/><xsl:template match="*[local-name()='dl']" mode="dl_if_nested">
4768
+ <xsl:for-each select="*[local-name() = 'dt']">
4769
+ <p>
4770
+ <xsl:copy-of select="node()"/>
4771
+ <xsl:text> </xsl:text>
4772
+ <xsl:copy-of select="following-sibling::*[local-name()='dd'][1]/*[local-name() = 'p']/node()"/>
4773
+ </p>
4774
+ </xsl:for-each>
4775
+ </xsl:template><xsl:template match="*[local-name()='dd']" mode="dl_if_nested"/><xsl:template match="*[local-name()='em']">
4727
4776
  <fo:inline font-style="italic">
4728
4777
  <xsl:apply-templates/>
4729
4778
  </fo:inline>
@@ -4759,7 +4808,7 @@
4759
4808
 
4760
4809
 
4761
4810
 
4762
-
4811
+ <!-- 10 -->
4763
4812
 
4764
4813
 
4765
4814
 
@@ -6801,7 +6850,7 @@
6801
6850
 
6802
6851
 
6803
6852
 
6804
-
6853
+ <!-- 9 -->
6805
6854
 
6806
6855
 
6807
6856
 
@@ -6901,7 +6950,7 @@
6901
6950
  <xsl:for-each select="xalan:nodeset($text_step4)/node()">
6902
6951
  <xsl:choose>
6903
6952
  <xsl:when test="local-name() = 'interspers'"> <!-- word with length more than 30 will be interspersed with zero-width space -->
6904
- <xsl:call-template name="interspers">
6953
+ <xsl:call-template name="interspers-java">
6905
6954
  <xsl:with-param name="str" select="."/>
6906
6955
  </xsl:call-template>
6907
6956
  </xsl:when>
@@ -6951,6 +7000,10 @@
6951
7000
  <xsl:with-param name="char" select="$char"/>
6952
7001
  </xsl:call-template>
6953
7002
  </xsl:if>
7003
+ </xsl:template><xsl:template name="interspers-java">
7004
+ <xsl:param name="str"/>
7005
+ <xsl:param name="char" select="$zero_width_space"/>
7006
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($str),'([^ -.:=_—])',concat('$1', $char))"/> <!-- insert $char after each char excep space, - . : = _ etc. -->
6954
7007
  </xsl:template><xsl:template match="*" mode="syntax_highlight">
6955
7008
  <xsl:apply-templates mode="syntax_highlight"/>
6956
7009
  </xsl:template><xsl:variable name="syntax_highlight_styles_">
@@ -7906,6 +7959,11 @@
7906
7959
  </xsl:otherwise>
7907
7960
  </xsl:choose>
7908
7961
  </xsl:template><xsl:template match="*[local-name()='ul'] | *[local-name()='ol']" mode="list" name="list">
7962
+
7963
+ <xsl:apply-templates select="*[local-name() = 'name']">
7964
+ <xsl:with-param name="process">true</xsl:with-param>
7965
+ </xsl:apply-templates>
7966
+
7909
7967
  <fo:list-block xsl:use-attribute-sets="list-style">
7910
7968
 
7911
7969
 
@@ -7916,12 +7974,23 @@
7916
7974
 
7917
7975
 
7918
7976
 
7977
+ <xsl:if test="*[local-name() = 'name']">
7978
+ <xsl:attribute name="margin-top">0pt</xsl:attribute>
7979
+ </xsl:if>
7980
+
7919
7981
  <xsl:apply-templates select="node()[not(local-name() = 'note')]"/>
7920
7982
  </fo:list-block>
7921
7983
  <!-- <xsl:for-each select="./iho:note">
7922
7984
  <xsl:call-template name="note"/>
7923
7985
  </xsl:for-each> -->
7924
7986
  <xsl:apply-templates select="./*[local-name() = 'note']"/>
7987
+ </xsl:template><xsl:template match="*[local-name() = 'ol' or local-name() = 'ul']/*[local-name() = 'name']">
7988
+ <xsl:param name="process">false</xsl:param>
7989
+ <xsl:if test="$process = 'true'">
7990
+ <fo:block xsl:use-attribute-sets="list-name-style">
7991
+ <xsl:apply-templates/>
7992
+ </fo:block>
7993
+ </xsl:if>
7925
7994
  </xsl:template><xsl:template match="*[local-name()='li']">
7926
7995
  <fo:list-item xsl:use-attribute-sets="list-item-style">
7927
7996
  <xsl:copy-of select="@id"/>
@@ -8206,20 +8275,18 @@
8206
8275
  </fo:list-item-label>
8207
8276
  <fo:list-item-body start-indent="body-start()">
8208
8277
  <fo:block>
8209
- <xsl:if test="rsd:docidentifier">
8278
+ <xsl:variable name="docidentifier">
8210
8279
  <xsl:choose>
8211
8280
  <xsl:when test="rsd:docidentifier/@type = 'metanorma'"/>
8212
- <xsl:otherwise><fo:inline><xsl:value-of select="rsd:docidentifier[not(@type = 'metanorma-ordinal')]"/>, </fo:inline></xsl:otherwise>
8281
+ <xsl:otherwise>
8282
+ <xsl:value-of select="rsd:docidentifier[not(@type = 'metanorma-ordinal')]"/>
8283
+ </xsl:otherwise>
8213
8284
  </xsl:choose>
8285
+ </xsl:variable>
8286
+ <xsl:value-of select="$docidentifier"/>
8287
+ <xsl:if test="normalize-space($docidentifier) != '' and rsd:formattedref">
8288
+ <xsl:text>, </xsl:text>
8214
8289
  </xsl:if>
8215
- <xsl:choose>
8216
- <xsl:when test="rsd:title[@type = 'main' and @language = 'en']">
8217
- <xsl:apply-templates select="rsd:title[@type = 'main' and @language = 'en']"/>
8218
- </xsl:when>
8219
- <xsl:otherwise>
8220
- <xsl:apply-templates select="rsd:title"/>
8221
- </xsl:otherwise>
8222
- </xsl:choose>
8223
8290
  <xsl:apply-templates select="rsd:formattedref"/>
8224
8291
  </fo:block>
8225
8292
  </fo:list-item-body>
@@ -8230,42 +8297,16 @@
8230
8297
  </xsl:template><xsl:template name="processBibitem">
8231
8298
 
8232
8299
 
8300
+ <!-- start RSD bibitem processing -->
8233
8301
  <xsl:if test=".//rsd:fn">
8234
8302
  <xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
8235
8303
  </xsl:if>
8236
- <xsl:value-of select="rsd:docidentifier"/>
8304
+ <xsl:variable name="docidentifier" select="rsd:docidentifier"/>
8305
+ <xsl:value-of select="$docidentifier"/>
8237
8306
  <xsl:apply-templates select="rsd:note"/>
8238
- <xsl:if test="rsd:docidentifier">, </xsl:if>
8239
- <xsl:choose>
8240
- <xsl:when test="rsd:formattedref">
8241
- <xsl:apply-templates select="rsd:formattedref"/>
8242
- </xsl:when>
8243
- <xsl:otherwise>
8244
- <xsl:for-each select="rsd:contributor[rsd:role/@type='publisher']/rsd:organization/rsd:name">
8245
- <xsl:apply-templates/>
8246
- <xsl:if test="position() != last()">, </xsl:if>
8247
- <xsl:if test="position() = last()">: </xsl:if>
8248
- </xsl:for-each>
8249
- <!-- rsd:docidentifier -->
8250
-
8251
- <xsl:choose>
8252
- <xsl:when test="rsd:title[@type = 'main' and @language = 'en']">
8253
- <fo:inline><xsl:apply-templates select="rsd:title[@type = 'main' and @language = 'en']"/><xsl:text>. </xsl:text></fo:inline>
8254
- </xsl:when>
8255
- <xsl:otherwise>
8256
- <fo:inline><xsl:apply-templates select="rsd:title"/><xsl:text>. </xsl:text></fo:inline>
8257
- </xsl:otherwise>
8258
- </xsl:choose>
8259
-
8260
- <xsl:for-each select="rsd:contributor[rsd:role/@type='publisher']/rsd:organization/rsd:name">
8261
- <xsl:apply-templates/>
8262
- <xsl:if test="position() != last()">, </xsl:if>
8263
- </xsl:for-each>
8264
- <xsl:if test="rsd:date[@type='published']/rsd:on">
8265
- <xsl:text> (</xsl:text><xsl:value-of select="rsd:date[@type='published']/rsd:on"/><xsl:text>)</xsl:text>
8266
- </xsl:if>
8267
- </xsl:otherwise>
8268
- </xsl:choose>
8307
+ <xsl:if test="normalize-space($docidentifier) != '' and rsd:formattedref">, </xsl:if>
8308
+ <xsl:apply-templates select="rsd:formattedref"/>
8309
+ <!-- END RSD bibitem processing -->
8269
8310
 
8270
8311
  </xsl:template><xsl:template name="processBibitemDocId">
8271
8312
  <xsl:variable name="_doc_ident" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'metanorma-ordinal' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]"/>
@@ -8592,25 +8633,32 @@
8592
8633
  </fo:block-container>
8593
8634
 
8594
8635
  </xsl:template><xsl:template name="displayAdmonitionName">
8595
-
8636
+ <xsl:param name="sep"/> <!-- Example: ' - ' -->
8637
+ <!-- <xsl:choose>
8638
+ <xsl:when test="$namespace = 'nist-cswp' or $namespace = 'nist-sp'">
8639
+ <xsl:choose>
8640
+ <xsl:when test="@type='important'"><xsl:apply-templates select="@type"/></xsl:when>
8641
+ <xsl:otherwise>
8642
+ <xsl:apply-templates select="*[local-name() = 'name']"/>
8643
+ </xsl:otherwise>
8644
+ </xsl:choose>
8645
+ </xsl:when>
8646
+ <xsl:otherwise>
8596
8647
  <xsl:apply-templates select="*[local-name() = 'name']"/>
8597
8648
  <xsl:if test="not(*[local-name() = 'name'])">
8598
8649
  <xsl:apply-templates select="@type"/>
8599
8650
  </xsl:if>
8600
-
8601
- </xsl:template><xsl:template match="*[local-name() = 'admonition']/*[local-name() = 'name']">
8602
- <xsl:apply-templates/>
8603
- </xsl:template><xsl:template match="*[local-name() = 'admonition']/@type">
8604
- <xsl:variable name="admonition_type_">
8605
- <xsl:call-template name="getLocalizedString">
8606
- <xsl:with-param name="key">admonition.<xsl:value-of select="."/></xsl:with-param>
8607
- </xsl:call-template>
8651
+ </xsl:otherwise>
8652
+ </xsl:choose> -->
8653
+ <xsl:variable name="name">
8654
+ <xsl:apply-templates select="*[local-name() = 'name']"/>
8608
8655
  </xsl:variable>
8609
- <xsl:variable name="admonition_type" select="normalize-space(java:toUpperCase(java:java.lang.String.new($admonition_type_)))"/>
8610
- <xsl:value-of select="$admonition_type"/>
8611
- <xsl:if test="$admonition_type = ''">
8612
- <xsl:value-of select="java:toUpperCase(java:java.lang.String.new(.))"/>
8656
+ <xsl:copy-of select="$name"/>
8657
+ <xsl:if test="normalize-space($name) != ''">
8658
+ <xsl:value-of select="$sep"/>
8613
8659
  </xsl:if>
8660
+ </xsl:template><xsl:template match="*[local-name() = 'admonition']/*[local-name() = 'name']">
8661
+ <xsl:apply-templates/>
8614
8662
  </xsl:template><xsl:template match="*[local-name() = 'admonition']/*[local-name() = 'p']">
8615
8663
 
8616
8664
  <fo:block xsl:use-attribute-sets="admonition-p-style">
@@ -614,12 +614,12 @@
614
614
  <optional>
615
615
  <ref name="fetched"/>
616
616
  </optional>
617
- <choice>
618
- <oneOrMore>
619
- <ref name="btitle"/>
620
- </oneOrMore>
617
+ <optional>
621
618
  <ref name="formattedref"/>
622
- </choice>
619
+ </optional>
620
+ <oneOrMore>
621
+ <ref name="btitle"/>
622
+ </oneOrMore>
623
623
  <zeroOrMore>
624
624
  <ref name="bsource"/>
625
625
  </zeroOrMore>
@@ -986,36 +986,34 @@
986
986
  <ref name="SeriesType"/>
987
987
  </attribute>
988
988
  </optional>
989
- <choice>
989
+ <optional>
990
990
  <ref name="formattedref"/>
991
- <group>
992
- <ref name="btitle"/>
993
- <optional>
994
- <ref name="bplace"/>
995
- </optional>
996
- <optional>
997
- <ref name="seriesorganization"/>
998
- </optional>
999
- <optional>
1000
- <ref name="abbreviation"/>
1001
- </optional>
1002
- <optional>
1003
- <ref name="seriesfrom"/>
1004
- </optional>
1005
- <optional>
1006
- <ref name="seriesto"/>
1007
- </optional>
1008
- <optional>
1009
- <ref name="seriesnumber"/>
1010
- </optional>
1011
- <optional>
1012
- <ref name="seriespartnumber"/>
1013
- </optional>
1014
- <optional>
1015
- <ref name="seriesrun"/>
1016
- </optional>
1017
- </group>
1018
- </choice>
991
+ </optional>
992
+ <ref name="btitle"/>
993
+ <optional>
994
+ <ref name="bplace"/>
995
+ </optional>
996
+ <optional>
997
+ <ref name="seriesorganization"/>
998
+ </optional>
999
+ <optional>
1000
+ <ref name="abbreviation"/>
1001
+ </optional>
1002
+ <optional>
1003
+ <ref name="seriesfrom"/>
1004
+ </optional>
1005
+ <optional>
1006
+ <ref name="seriesto"/>
1007
+ </optional>
1008
+ <optional>
1009
+ <ref name="seriesnumber"/>
1010
+ </optional>
1011
+ <optional>
1012
+ <ref name="seriespartnumber"/>
1013
+ </optional>
1014
+ <optional>
1015
+ <ref name="seriesrun"/>
1016
+ </optional>
1019
1017
  </element>
1020
1018
  </define>
1021
1019
  <define name="SeriesType">
@@ -282,6 +282,9 @@
282
282
  <ref name="MultilingualRenderingType"/>
283
283
  </attribute>
284
284
  </optional>
285
+ <optional>
286
+ <ref name="tname"/>
287
+ </optional>
285
288
  <oneOrMore>
286
289
  <ref name="ul_li"/>
287
290
  </oneOrMore>
@@ -324,6 +327,9 @@
324
327
  </choice>
325
328
  </attribute>
326
329
  </optional>
330
+ <optional>
331
+ <ref name="tname"/>
332
+ </optional>
327
333
  <oneOrMore>
328
334
  <ref name="li"/>
329
335
  </oneOrMore>
@@ -360,6 +366,9 @@
360
366
  <ref name="MultilingualRenderingType"/>
361
367
  </attribute>
362
368
  </optional>
369
+ <optional>
370
+ <ref name="tname"/>
371
+ </optional>
363
372
  <oneOrMore>
364
373
  <ref name="dt"/>
365
374
  <ref name="dd"/>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
3
- VERSION = "2.1.1".freeze
3
+ VERSION = "2.1.2".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.1.1
4
+ version: 2.1.2
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-05-16 00:00:00.000000000 Z
11
+ date: 2022-06-06 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.3.9
247
+ rubygems_version: 3.3.7
248
248
  signing_key:
249
249
  specification_version: 4
250
250
  summary: metanorma-ribose lets you write Ribose standards in AsciiDoc.