metanorma-cc 1.8.3 → 1.8.4

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: '09051dfdeea6a295286b0b55b546ff965f76427554632f50b995ddc7f3842a9e'
4
- data.tar.gz: '08f80ffd700b0947b75a81ef3ccc6031b8f6044f69dde7e291d8606ee2cbd412'
3
+ metadata.gz: 52349210dedcc74e07d51461b7b93f27d7a19b66fe3dc11df3012b1fb5dd26cb
4
+ data.tar.gz: 55bcac678c4489d7777e07a341e238d41aec1afb309292e01de46d4548706319
5
5
  SHA512:
6
- metadata.gz: 341a642e16714923295261707ce8d4efbd8dd06aadb54fb6c25b5bca7eb474ba3ca3ebb6218c045c2ef30447c897dc774571241f212d1d65c66c2d14eda7da37
7
- data.tar.gz: d2a80f70cf8ca48edde2ef672befcfd7a38204e61f4da62b091b1422f4a6044a0bac1215aa2f126498a933c581eddadda588ed306a929363ce75c0ac57984be7
6
+ metadata.gz: 6e29004810ebfaeb721713b21c97ec3061ee0ddc0310202cdc34c44c33c03500753c1c93f57a1041ad231a9743c22461b2db912d88ba8afe64e9e35f7f3224cf
7
+ data.tar.gz: 67d3593cc66b53b6752d78ed0c9c4b54f2262f11ddd2ebd8b4e059ccfbcd4f515dd31307b9ca6256a29924926c6b1f62014f5531c6bc7620df7266d63adc9e10
@@ -35,13 +35,13 @@ module Asciidoctor
35
35
  end
36
36
 
37
37
  def outputs(node, ret)
38
- File.open(@filename + ".xml", "w:UTF-8") { |f| f.write(ret) }
39
- presentation_xml_converter(node).convert(@filename + ".xml")
40
- html_converter(node).convert(@filename + ".presentation.xml",
38
+ File.open("#{@filename}.xml", "w:UTF-8") { |f| f.write(ret) }
39
+ presentation_xml_converter(node).convert("#{@filename}.xml")
40
+ html_converter(node).convert("#{@filename}.presentation.xml",
41
41
  nil, false, "#{@filename}.html")
42
- doc_converter(node).convert(@filename + ".presentation.xml",
42
+ doc_converter(node).convert("#{@filename}.presentation.xml",
43
43
  nil, false, "#{@filename}.doc")
44
- pdf_converter(node)&.convert(@filename + ".presentation.xml",
44
+ pdf_converter(node)&.convert("#{@filename}.presentation.xml",
45
45
  nil, false, "#{@filename}.pdf")
46
46
  end
47
47
 
@@ -52,7 +52,7 @@ module Asciidoctor
52
52
  def pdf_converter(node)
53
53
  return if node.attr("no-pdf")
54
54
 
55
- IsoDoc::CC::PdfConvert.new(html_extract_attributes(node))
55
+ IsoDoc::CC::PdfConvert.new(pdf_extract_attributes(node))
56
56
  end
57
57
 
58
58
  def doc_converter(node)
@@ -1796,6 +1796,20 @@
1796
1796
  <data type="ID"/>
1797
1797
  </attribute>
1798
1798
  </optional>
1799
+ <optional>
1800
+ <attribute name="language"/>
1801
+ </optional>
1802
+ <optional>
1803
+ <attribute name="script"/>
1804
+ </optional>
1805
+ <optional>
1806
+ <attribute name="tag"/>
1807
+ </optional>
1808
+ <optional>
1809
+ <attribute name="multilingual-rendering">
1810
+ <ref name="MultilingualRenderingType"/>
1811
+ </attribute>
1812
+ </optional>
1799
1813
  <oneOrMore>
1800
1814
  <ref name="preferred"/>
1801
1815
  </oneOrMore>
@@ -7,6 +7,8 @@
7
7
  <xsl:variable name="images" select="document($svg_images)"/>
8
8
  <xsl:param name="basepath"/>
9
9
 
10
+ <xsl:key name="kfn" match="*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure') and not(ancestor::*[local-name() = 'name'])])]" use="@reference"/>
11
+
10
12
  <xsl:variable name="pageWidth" select="210"/>
11
13
  <xsl:variable name="pageHeight" select="297"/>
12
14
  <xsl:variable name="marginLeftRight1" select="19"/>
@@ -329,7 +331,7 @@
329
331
 
330
332
  <xsl:variable name="display">
331
333
  <xsl:choose>
332
- <xsl:when test="$level &gt; 2">false</xsl:when>
334
+ <xsl:when test="$level &gt; $toc_level">false</xsl:when>
333
335
  <xsl:otherwise>true</xsl:otherwise>
334
336
  </xsl:choose>
335
337
  </xsl:variable>
@@ -500,35 +502,7 @@
500
502
  </xsl:if>
501
503
  </xsl:template>
502
504
 
503
- <!--
504
- <fn reference="1">
505
- <p id="_8e5cf917-f75a-4a49-b0aa-1714cb6cf954">Formerly denoted as 15 % (m/m).</p>
506
- </fn>
507
- -->
508
- <xsl:template match="csd:p/csd:fn">
509
- <fo:footnote>
510
- <xsl:variable name="number">
511
- <xsl:number level="any" count="csd:p/csd:fn"/>
512
- </xsl:variable>
513
- <fo:inline font-size="65%" keep-with-previous.within-line="always" vertical-align="super">
514
- <fo:basic-link internal-destination="footnote_{@reference}" fox:alt-text="footnote {@reference}">
515
- <!-- <xsl:value-of select="@reference"/> -->
516
- <xsl:value-of select="$number + count(//csd:bibitem/csd:note)"/><!-- <xsl:text>)</xsl:text> -->
517
- </fo:basic-link>
518
- </fo:inline>
519
- <fo:footnote-body>
520
- <fo:block font-size="10pt" margin-bottom="12pt">
521
- <fo:inline id="footnote_{@reference}" keep-with-next.within-line="always" font-size="60%" vertical-align="super"> <!-- baseline-shift="30%" padding-right="3mm" font-size="60%" alignment-baseline="hanging" -->
522
- <xsl:value-of select="$number + count(//csd:bibitem/csd:note)"/><!-- <xsl:text>)</xsl:text> -->
523
- </fo:inline>
524
- <xsl:for-each select="csd:p">
525
- <xsl:apply-templates/>
526
- </xsl:for-each>
527
- </fo:block>
528
- </fo:footnote-body>
529
- </fo:footnote>
530
- </xsl:template>
531
-
505
+
532
506
  <xsl:template match="csd:p/csd:fn/csd:p">
533
507
  <xsl:apply-templates/>
534
508
  </xsl:template>
@@ -1378,6 +1352,77 @@
1378
1352
 
1379
1353
  </xsl:attribute-set><xsl:attribute-set name="toc-style">
1380
1354
  <xsl:attribute name="line-height">135%</xsl:attribute>
1355
+ </xsl:attribute-set><xsl:attribute-set name="fn-style">
1356
+ <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
1357
+ </xsl:attribute-set><xsl:attribute-set name="fn-num-style">
1358
+ <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
1359
+
1360
+
1361
+
1362
+
1363
+ <xsl:attribute name="font-size">65%</xsl:attribute>
1364
+ <xsl:attribute name="vertical-align">super</xsl:attribute>
1365
+
1366
+
1367
+
1368
+
1369
+
1370
+
1371
+
1372
+
1373
+
1374
+
1375
+
1376
+
1377
+
1378
+ </xsl:attribute-set><xsl:attribute-set name="fn-body-style">
1379
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
1380
+ <xsl:attribute name="font-style">normal</xsl:attribute>
1381
+ <xsl:attribute name="text-indent">0</xsl:attribute>
1382
+ <xsl:attribute name="start-indent">0</xsl:attribute>
1383
+
1384
+
1385
+
1386
+
1387
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
1388
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1389
+
1390
+
1391
+
1392
+
1393
+
1394
+
1395
+
1396
+
1397
+
1398
+
1399
+
1400
+
1401
+
1402
+
1403
+
1404
+ </xsl:attribute-set><xsl:attribute-set name="fn-body-num-style">
1405
+ <xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
1406
+
1407
+
1408
+
1409
+
1410
+ <xsl:attribute name="font-size">60%</xsl:attribute>
1411
+ <xsl:attribute name="vertical-align">super</xsl:attribute>
1412
+
1413
+
1414
+
1415
+
1416
+
1417
+
1418
+
1419
+
1420
+
1421
+
1422
+
1423
+
1424
+
1425
+
1381
1426
  </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:template name="OLD_processPrefaceSectionsDefault_Contents">
1382
1427
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
1383
1428
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
@@ -2310,6 +2355,102 @@
2310
2355
 
2311
2356
  </xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='name']" mode="process"/><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" mode="process">
2312
2357
  <xsl:apply-templates/>
2358
+ </xsl:template><xsl:template match="*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure') and not(ancestor::*[local-name() = 'name'])])]" priority="2" name="fn">
2359
+
2360
+ <!-- list of footnotes to calculate actual footnotes number -->
2361
+ <xsl:variable name="p_fn_">
2362
+ <xsl:choose>
2363
+ <xsl:when test="@current_fn_number"> <!-- for BSI, footnote reference number calculated already -->
2364
+ <fn gen_id="{generate-id(.)}">
2365
+ <xsl:copy-of select="@*"/>
2366
+ <xsl:copy-of select="node()"/>
2367
+ </fn>
2368
+ </xsl:when>
2369
+ <xsl:otherwise>
2370
+ <!-- itetation for:
2371
+ footnotes in bibdata/title
2372
+ footnotes in bibliography
2373
+ footnotes in document's body (except table's head/body/foot and figure text)
2374
+ -->
2375
+ <xsl:for-each select="ancestor::*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']/*[local-name() = 'note'][@type='title-footnote']">
2376
+ <fn gen_id="{generate-id(.)}">
2377
+ <xsl:copy-of select="@*"/>
2378
+ <xsl:copy-of select="node()"/>
2379
+ </fn>
2380
+ </xsl:for-each>
2381
+ <xsl:for-each select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='preface']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='sections']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='annex'] | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibliography']/*">
2382
+ <xsl:sort select="@displayorder" data-type="number"/>
2383
+ <xsl:for-each select=".//*[local-name() = 'bibitem'][ancestor::*[local-name() = 'references']]/*[local-name() = 'note'] | .//*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure') and not(ancestor::*[local-name() = 'name'])])][generate-id(.)=generate-id(key('kfn',@reference)[1])]">
2384
+ <!-- copy unique fn -->
2385
+ <fn gen_id="{generate-id(.)}">
2386
+ <xsl:copy-of select="@*"/>
2387
+ <xsl:copy-of select="node()"/>
2388
+ </fn>
2389
+ </xsl:for-each>
2390
+ </xsl:for-each>
2391
+ </xsl:otherwise>
2392
+ </xsl:choose>
2393
+ </xsl:variable>
2394
+ <xsl:variable name="p_fn" select="xalan:nodeset($p_fn_)"/>
2395
+
2396
+ <xsl:variable name="gen_id" select="generate-id(.)"/>
2397
+ <xsl:variable name="lang" select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibdata']//*[local-name()='language'][@current = 'true']"/>
2398
+ <xsl:variable name="reference" select="@reference"/>
2399
+ <!-- fn sequence number in document -->
2400
+ <xsl:variable name="current_fn_number">
2401
+ <xsl:choose>
2402
+ <xsl:when test="@current_fn_number"><xsl:value-of select="@current_fn_number"/></xsl:when> <!-- for BSI -->
2403
+ <xsl:otherwise>
2404
+ <xsl:value-of select="count($p_fn//fn[@reference = $reference]/preceding-sibling::fn) + 1"/>
2405
+ </xsl:otherwise>
2406
+ </xsl:choose>
2407
+ </xsl:variable>
2408
+ <xsl:variable name="current_fn_number_text">
2409
+ <xsl:value-of select="$current_fn_number"/>
2410
+
2411
+
2412
+ </xsl:variable>
2413
+
2414
+ <xsl:variable name="ref_id" select="concat('footnote_', $lang, '_', $reference, '_', $current_fn_number)"/>
2415
+ <xsl:variable name="footnote_inline">
2416
+ <fo:inline xsl:use-attribute-sets="fn-num-style">
2417
+
2418
+ <fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
2419
+ <xsl:value-of select="$current_fn_number_text"/>
2420
+ </fo:basic-link>
2421
+ </fo:inline>
2422
+ </xsl:variable>
2423
+ <!-- DEBUG: p_fn=<xsl:copy-of select="$p_fn"/>
2424
+ gen_id=<xsl:value-of select="$gen_id"/> -->
2425
+ <xsl:choose>
2426
+ <xsl:when test="normalize-space(@skip_footnote_body) = 'true'">
2427
+ <xsl:copy-of select="$footnote_inline"/>
2428
+ </xsl:when>
2429
+ <xsl:when test="$p_fn//fn[@gen_id = $gen_id] or normalize-space(@skip_footnote_body) = 'false'">
2430
+ <fo:footnote xsl:use-attribute-sets="fn-style">
2431
+ <xsl:copy-of select="$footnote_inline"/>
2432
+ <fo:footnote-body>
2433
+
2434
+ <fo:block-container text-indent="0" start-indent="0">
2435
+
2436
+
2437
+ <fo:block xsl:use-attribute-sets="fn-body-style">
2438
+
2439
+
2440
+ <fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style">
2441
+
2442
+ <xsl:value-of select="$current_fn_number_text"/>
2443
+ </fo:inline>
2444
+ <xsl:apply-templates/>
2445
+ </fo:block>
2446
+ </fo:block-container>
2447
+ </fo:footnote-body>
2448
+ </fo:footnote>
2449
+ </xsl:when>
2450
+ <xsl:otherwise>
2451
+ <xsl:copy-of select="$footnote_inline"/>
2452
+ </xsl:otherwise>
2453
+ </xsl:choose>
2313
2454
  </xsl:template><xsl:template name="fn_display">
2314
2455
  <xsl:variable name="references">
2315
2456
 
@@ -2502,6 +2643,8 @@
2502
2643
 
2503
2644
  </fo:basic-link>
2504
2645
  </fo:inline>
2646
+ </xsl:template><xsl:template match="*[local-name()='fn']/text()[normalize-space() != '']">
2647
+ <fo:inline><xsl:value-of select="."/></fo:inline>
2505
2648
  </xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
2506
2649
  <fo:inline>
2507
2650
  <xsl:apply-templates/>
@@ -3494,22 +3637,6 @@
3494
3637
  <xsl:if test="not(preceding-sibling::*[local-name() = 'p'])"><xsl:value-of select="$callout"/></xsl:if>
3495
3638
  <xsl:apply-templates/>
3496
3639
  </fo:inline>
3497
- </xsl:template><xsl:template match="*[local-name() = 'modification']">
3498
- <xsl:variable name="title-modified">
3499
-
3500
-
3501
- <xsl:call-template name="getTitle">
3502
- <xsl:with-param name="name" select="'title-modified'"/>
3503
- </xsl:call-template>
3504
-
3505
- </xsl:variable>
3506
-
3507
- <xsl:variable name="text"><xsl:apply-templates/></xsl:variable>
3508
- <xsl:choose>
3509
- <xsl:when test="$lang = 'zh'"><xsl:text>、</xsl:text><xsl:value-of select="$title-modified"/><xsl:if test="normalize-space($text) != ''"><xsl:text>—</xsl:text></xsl:if></xsl:when>
3510
- <xsl:otherwise><xsl:text>, </xsl:text><xsl:value-of select="$title-modified"/><xsl:if test="normalize-space($text) != ''"><xsl:text> — </xsl:text></xsl:if></xsl:otherwise>
3511
- </xsl:choose>
3512
- <xsl:apply-templates/>
3513
3640
  </xsl:template><xsl:template match="*[local-name() = 'xref']">
3514
3641
  <fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
3515
3642
 
@@ -4741,62 +4868,69 @@
4741
4868
  <xsl:variable name="termsource_text">
4742
4869
  <xsl:apply-templates/>
4743
4870
  </xsl:variable>
4744
-
4745
- <xsl:choose>
4871
+ <xsl:copy-of select="$termsource_text"/>
4872
+ <!-- <xsl:choose>
4746
4873
  <xsl:when test="starts-with(normalize-space($termsource_text), '[')">
4747
- <!-- <xsl:apply-templates /> -->
4748
4874
  <xsl:copy-of select="$termsource_text"/>
4749
4875
  </xsl:when>
4750
4876
  <xsl:otherwise>
4751
-
4752
-
4877
+ <xsl:if test="$namespace = 'bsi'">
4878
+ <xsl:choose>
4879
+ <xsl:when test="$document_type = 'PAS' and starts-with(*[local-name() = 'origin']/@citeas, '[')"><xsl:text>{</xsl:text></xsl:when>
4880
+ <xsl:otherwise><xsl:text>[</xsl:text></xsl:otherwise>
4881
+ </xsl:choose>
4882
+ </xsl:if>
4883
+ <xsl:if test="$namespace = 'gb' or $namespace = 'iso' or $namespace = 'iec' or $namespace = 'itu' or $namespace = 'unece' or $namespace = 'unece-rec' or $namespace = 'nist-cswp' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper' or $namespace = 'csa' or $namespace = 'csd' or $namespace = 'm3d' or $namespace = 'iho' or $namespace = 'bipm' or $namespace = 'jcgm'">
4753
4884
  <xsl:text>[</xsl:text>
4754
-
4755
- <!-- <xsl:apply-templates /> -->
4885
+ </xsl:if>
4756
4886
  <xsl:copy-of select="$termsource_text"/>
4757
-
4758
-
4887
+ <xsl:if test="$namespace = 'bsi'">
4888
+ <xsl:choose>
4889
+ <xsl:when test="$document_type = 'PAS' and starts-with(*[local-name() = 'origin']/@citeas, '[')"><xsl:text>}</xsl:text></xsl:when>
4890
+ <xsl:otherwise><xsl:text>]</xsl:text></xsl:otherwise>
4891
+ </xsl:choose>
4892
+ </xsl:if>
4893
+ <xsl:if test="$namespace = 'gb' or $namespace = 'iso' or $namespace = 'iec' or $namespace = 'itu' or $namespace = 'unece' or $namespace = 'unece-rec' or $namespace = 'nist-cswp' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper' or $namespace = 'csa' or $namespace = 'csd' or $namespace = 'm3d' or $namespace = 'iho' or $namespace = 'bipm' or $namespace = 'jcgm'">
4759
4894
  <xsl:text>]</xsl:text>
4760
-
4895
+ </xsl:if>
4761
4896
  </xsl:otherwise>
4762
- </xsl:choose>
4897
+ </xsl:choose> -->
4763
4898
  </fo:block>
4764
4899
  </xsl:template><xsl:template match="*[local-name() = 'termsource']/text()">
4765
4900
  <xsl:if test="normalize-space() != ''">
4766
4901
  <xsl:value-of select="."/>
4767
4902
  </xsl:if>
4768
- </xsl:template><xsl:variable name="localized.source">
4769
- <xsl:call-template name="getLocalizedString">
4770
- <xsl:with-param name="key">source</xsl:with-param>
4771
- </xsl:call-template>
4772
- </xsl:variable><xsl:template match="*[local-name() = 'origin']">
4903
+ </xsl:template><xsl:template match="*[local-name() = 'termsource']/*[local-name() = 'strong'][1][following-sibling::*[1][local-name() = 'origin']]/text()">
4904
+ <fo:inline>
4905
+
4906
+
4907
+ <xsl:value-of select="."/>
4908
+ </fo:inline>
4909
+ </xsl:template><xsl:template match="*[local-name() = 'origin']">
4773
4910
  <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
4774
4911
  <xsl:if test="normalize-space(@citeas) = ''">
4775
4912
  <xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
4776
4913
  </xsl:if>
4777
-
4778
-
4779
- <fo:inline>
4780
-
4781
-
4782
-
4783
-
4784
-
4785
-
4786
-
4787
- <xsl:call-template name="getTitle">
4788
- <xsl:with-param name="name" select="'title-source'"/>
4789
- </xsl:call-template>
4790
- <xsl:text>: </xsl:text>
4791
-
4792
-
4793
- </fo:inline>
4794
-
4795
4914
  <fo:inline xsl:use-attribute-sets="origin-style">
4796
4915
  <xsl:apply-templates/>
4797
4916
  </fo:inline>
4917
+ </fo:basic-link>
4918
+ </xsl:template><xsl:template match="*[local-name() = 'modification']">
4919
+ <xsl:variable name="title-modified">
4798
4920
 
4799
- </fo:basic-link>
4921
+
4922
+ <xsl:call-template name="getTitle">
4923
+ <xsl:with-param name="name" select="'title-modified'"/>
4924
+ </xsl:call-template>
4925
+
4926
+ </xsl:variable>
4927
+
4928
+ <xsl:variable name="text"><xsl:apply-templates/></xsl:variable>
4929
+ <xsl:choose>
4930
+ <xsl:when test="$lang = 'zh'"><xsl:text>、</xsl:text><xsl:value-of select="$title-modified"/><xsl:if test="normalize-space($text) != ''"><xsl:text>—</xsl:text></xsl:if></xsl:when>
4931
+ <xsl:otherwise><xsl:text>, </xsl:text><xsl:value-of select="$title-modified"/><xsl:if test="normalize-space($text) != ''"><xsl:text> — </xsl:text></xsl:if></xsl:otherwise>
4932
+ </xsl:choose>
4933
+ <xsl:apply-templates/>
4800
4934
  </xsl:template><xsl:template match="*[local-name() = 'modification']/*[local-name() = 'p']">
4801
4935
  <fo:inline><xsl:apply-templates/></fo:inline>
4802
4936
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
@@ -5403,7 +5537,31 @@
5403
5537
  <fo:block-container border="1pt solid black" width="50%">
5404
5538
  <fo:block> </fo:block>
5405
5539
  </fo:block-container>
5406
- </xsl:template><xsl:template match="*[local-name() = 'toc']">
5540
+ </xsl:template><xsl:variable name="toc_level">
5541
+ <xsl:choose>
5542
+ <xsl:when test="1 = 2"/> <!-- to do https://github.com/metanorma/mn-native-pdf/issues/337: if there is value in xml -->
5543
+ <xsl:otherwise><!-- default value -->
5544
+
5545
+
5546
+
5547
+ 2
5548
+
5549
+
5550
+
5551
+
5552
+
5553
+
5554
+
5555
+
5556
+
5557
+
5558
+
5559
+
5560
+
5561
+
5562
+ </xsl:otherwise>
5563
+ </xsl:choose>
5564
+ </xsl:variable><xsl:template match="*[local-name() = 'toc']">
5407
5565
  <xsl:param name="colwidths"/>
5408
5566
  <xsl:variable name="colwidths_">
5409
5567
  <xsl:choose>
@@ -6043,4 +6201,14 @@
6043
6201
  </xsl:otherwise>
6044
6202
  </xsl:choose>
6045
6203
  </xsl:if>
6204
+ </xsl:template><xsl:template name="setAltText">
6205
+ <xsl:param name="value"/>
6206
+ <xsl:attribute name="fox:alt-text">
6207
+ <xsl:choose>
6208
+ <xsl:when test="normalize-space($value) != ''">
6209
+ <xsl:value-of select="$value"/>
6210
+ </xsl:when>
6211
+ <xsl:otherwise>_</xsl:otherwise>
6212
+ </xsl:choose>
6213
+ </xsl:attribute>
6046
6214
  </xsl:template></xsl:stylesheet>
@@ -17,7 +17,6 @@ $('#toggle').on('click', function(){
17
17
  else {
18
18
  $('nav').show();
19
19
  $('nav').animate({ 'left': '0px' }, 'slow');
20
- $('.container').animate({ 'padding-left': '360px' }, 'slow');
21
20
  }
22
21
  });
23
22
  </script>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module CC
3
- VERSION = "1.8.3".freeze
3
+ VERSION = "1.8.4".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-cc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.3
4
+ version: 1.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-29 00:00:00.000000000 Z
11
+ date: 2021-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic
@@ -251,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
251
  - !ruby/object:Gem::Version
252
252
  version: '0'
253
253
  requirements: []
254
- rubygems_version: 3.2.22
254
+ rubygems_version: 3.2.32
255
255
  signing_key:
256
256
  specification_version: 4
257
257
  summary: metanorma-cc lets you write CalConnect standards in AsciiDoc.