metanorma-csa 1.9.3 → 1.9.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: bafc881cbffc3a575e225d56264d50e18d46cbe74e91e92ed369603623f2398a
4
- data.tar.gz: a45f716f6d4f93ca5c4aa845499732466b1e784b7b9a3486ca492c6dcca7e054
3
+ metadata.gz: 52b62cc7064b035d413c88f8a3de6d094eced063f016624b43f44bce1e5bf3e3
4
+ data.tar.gz: f4740d1004f59307a4c5280ba6c538cbeb7e891ee03c725f4753afad4349efee
5
5
  SHA512:
6
- metadata.gz: b29c772a70fc9f0251c0b32710147f206685d7db9cf02ad726d9f51336dfd833a235b73fd7c936a6a140f1576842610fc8c681eaa65d21b136df03bd7b126023
7
- data.tar.gz: 654a0ebc73f3de10bbd72f71caf11f97268d7fd83d3fcd9373b1f1b0d48106decd19d7ac72ba24d5ef4b659337f0814694b961de824068246d7bbea3016832ad
6
+ metadata.gz: 9f63606c5204e50d7e53133dfaa6bde5131ff34d9f5e3626699b2a32c847f5754048bbbf358d719f94d7a2a8813f33aa1f8e0f0c67f90d7e5f4d63e2a8321b54
7
+ data.tar.gz: 33d553fb0447c97833a2fd77c6b65bc0fbcbc9c102220037f2967418581ff6ee4d520d6a92dc128a2f283800b54279574e4fdad758edcda40bae63b13553da45
@@ -91,7 +91,7 @@ module Asciidoctor
91
91
  def pdf_converter(node)
92
92
  return if node.attr("no-pdf")
93
93
 
94
- IsoDoc::Csa::PdfConvert.new(html_extract_attributes(node))
94
+ IsoDoc::Csa::PdfConvert.new(pdf_extract_attributes(node))
95
95
  end
96
96
 
97
97
  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>
@@ -6,6 +6,8 @@
6
6
  <xsl:param name="external_index"/><!-- path to index xml, generated on 1st pass, based on FOP Intermediate Format -->
7
7
  <xsl:variable name="images" select="document($svg_images)"/>
8
8
  <xsl:param name="basepath"/>
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"/>
9
11
 
10
12
  <xsl:variable name="pageWidth" select="215.9"/>
11
13
  <xsl:variable name="pageHeight" select="279.4"/>
@@ -214,7 +216,7 @@
214
216
  <fo:list-block>
215
217
  <xsl:attribute name="provisional-distance-between-starts">
216
218
  <xsl:choose>
217
- <xsl:when test="@level = 2">10mm</xsl:when>
219
+ <xsl:when test="@level &gt;= 2"><xsl:value-of select="(@level - 1) * 10"/>mm</xsl:when>
218
220
  <xsl:otherwise>3mm</xsl:otherwise>
219
221
  </xsl:choose>
220
222
  </xsl:attribute>
@@ -278,7 +280,7 @@
278
280
 
279
281
  <xsl:variable name="display">
280
282
  <xsl:choose>
281
- <xsl:when test="$level &gt;= 3">false</xsl:when>
283
+ <xsl:when test="$level &gt; $toc_level">false</xsl:when>
282
284
  <xsl:otherwise>true</xsl:otherwise>
283
285
  </xsl:choose>
284
286
  </xsl:variable>
@@ -525,32 +527,6 @@
525
527
  </xsl:if>
526
528
  </xsl:template>
527
529
 
528
- <!--
529
- <fn reference="1">
530
- <p id="_8e5cf917-f75a-4a49-b0aa-1714cb6cf954">Formerly denoted as 15 % (m/m).</p>
531
- </fn>
532
- -->
533
- <xsl:template match="csa:title/csa:fn | csa:p/csa:fn[not(ancestor::csa:table)]" priority="2">
534
- <fo:footnote keep-with-previous.within-line="always">
535
- <xsl:variable name="number" select="@reference"/>
536
-
537
- <fo:inline font-size="65%" keep-with-previous.within-line="always" vertical-align="super">
538
- <fo:basic-link internal-destination="footnote_{@reference}" fox:alt-text="footnote {@reference}">
539
- <xsl:value-of select="$number"/><!-- + count(//csa:bibitem/csa:note) -->
540
- </fo:basic-link>
541
- </fo:inline>
542
- <fo:footnote-body>
543
- <fo:block font-family="Azo Sans Lt" font-size="10pt" margin-bottom="12pt" font-weight="normal" text-indent="0" start-indent="0" color="rgb(168, 170, 173)" text-align="left">
544
- <fo:inline id="footnote_{@reference}" keep-with-next.within-line="always" font-size="60%" vertical-align="super">
545
- <xsl:value-of select="$number "/><!-- + count(//csa:bibitem/csa:note) -->
546
- </fo:inline>
547
- <xsl:for-each select="csa:p">
548
- <xsl:apply-templates/>
549
- </xsl:for-each>
550
- </fo:block>
551
- </fo:footnote-body>
552
- </fo:footnote>
553
- </xsl:template>
554
530
 
555
531
  <xsl:template match="csa:fn/csa:p">
556
532
  <fo:block>
@@ -1459,6 +1435,80 @@
1459
1435
 
1460
1436
  </xsl:attribute-set><xsl:attribute-set name="toc-style">
1461
1437
  <xsl:attribute name="line-height">135%</xsl:attribute>
1438
+ </xsl:attribute-set><xsl:attribute-set name="fn-style">
1439
+ <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
1440
+ </xsl:attribute-set><xsl:attribute-set name="fn-num-style">
1441
+ <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
1442
+
1443
+
1444
+
1445
+ <xsl:attribute name="font-size">65%</xsl:attribute>
1446
+ <xsl:attribute name="vertical-align">super</xsl:attribute>
1447
+
1448
+
1449
+
1450
+
1451
+
1452
+
1453
+
1454
+
1455
+
1456
+
1457
+
1458
+
1459
+
1460
+
1461
+ </xsl:attribute-set><xsl:attribute-set name="fn-body-style">
1462
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
1463
+ <xsl:attribute name="font-style">normal</xsl:attribute>
1464
+ <xsl:attribute name="text-indent">0</xsl:attribute>
1465
+ <xsl:attribute name="start-indent">0</xsl:attribute>
1466
+
1467
+
1468
+
1469
+ <xsl:attribute name="font-family">Azo Sans Lt</xsl:attribute>
1470
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
1471
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1472
+ <xsl:attribute name="color">rgb(168, 170, 173)</xsl:attribute>
1473
+ <xsl:attribute name="text-align">left</xsl:attribute>
1474
+
1475
+
1476
+
1477
+
1478
+
1479
+
1480
+
1481
+
1482
+
1483
+
1484
+
1485
+
1486
+
1487
+
1488
+
1489
+
1490
+ </xsl:attribute-set><xsl:attribute-set name="fn-body-num-style">
1491
+ <xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
1492
+
1493
+
1494
+
1495
+ <xsl:attribute name="font-size">60%</xsl:attribute>
1496
+ <xsl:attribute name="vertical-align">super</xsl:attribute>
1497
+
1498
+
1499
+
1500
+
1501
+
1502
+
1503
+
1504
+
1505
+
1506
+
1507
+
1508
+
1509
+
1510
+
1511
+
1462
1512
  </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">
1463
1513
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
1464
1514
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
@@ -2387,6 +2437,102 @@
2387
2437
 
2388
2438
  </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">
2389
2439
  <xsl:apply-templates/>
2440
+ </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">
2441
+
2442
+ <!-- list of footnotes to calculate actual footnotes number -->
2443
+ <xsl:variable name="p_fn_">
2444
+ <xsl:choose>
2445
+ <xsl:when test="@current_fn_number"> <!-- for BSI, footnote reference number calculated already -->
2446
+ <fn gen_id="{generate-id(.)}">
2447
+ <xsl:copy-of select="@*"/>
2448
+ <xsl:copy-of select="node()"/>
2449
+ </fn>
2450
+ </xsl:when>
2451
+ <xsl:otherwise>
2452
+ <!-- itetation for:
2453
+ footnotes in bibdata/title
2454
+ footnotes in bibliography
2455
+ footnotes in document's body (except table's head/body/foot and figure text)
2456
+ -->
2457
+ <xsl:for-each select="ancestor::*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']/*[local-name() = 'note'][@type='title-footnote']">
2458
+ <fn gen_id="{generate-id(.)}">
2459
+ <xsl:copy-of select="@*"/>
2460
+ <xsl:copy-of select="node()"/>
2461
+ </fn>
2462
+ </xsl:for-each>
2463
+ <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']/*">
2464
+ <xsl:sort select="@displayorder" data-type="number"/>
2465
+ <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])]">
2466
+ <!-- copy unique fn -->
2467
+ <fn gen_id="{generate-id(.)}">
2468
+ <xsl:copy-of select="@*"/>
2469
+ <xsl:copy-of select="node()"/>
2470
+ </fn>
2471
+ </xsl:for-each>
2472
+ </xsl:for-each>
2473
+ </xsl:otherwise>
2474
+ </xsl:choose>
2475
+ </xsl:variable>
2476
+ <xsl:variable name="p_fn" select="xalan:nodeset($p_fn_)"/>
2477
+
2478
+ <xsl:variable name="gen_id" select="generate-id(.)"/>
2479
+ <xsl:variable name="lang" select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibdata']//*[local-name()='language'][@current = 'true']"/>
2480
+ <xsl:variable name="reference" select="@reference"/>
2481
+ <!-- fn sequence number in document -->
2482
+ <xsl:variable name="current_fn_number">
2483
+ <xsl:choose>
2484
+ <xsl:when test="@current_fn_number"><xsl:value-of select="@current_fn_number"/></xsl:when> <!-- for BSI -->
2485
+ <xsl:otherwise>
2486
+ <xsl:value-of select="count($p_fn//fn[@reference = $reference]/preceding-sibling::fn) + 1"/>
2487
+ </xsl:otherwise>
2488
+ </xsl:choose>
2489
+ </xsl:variable>
2490
+ <xsl:variable name="current_fn_number_text">
2491
+ <xsl:value-of select="$current_fn_number"/>
2492
+
2493
+
2494
+ </xsl:variable>
2495
+
2496
+ <xsl:variable name="ref_id" select="concat('footnote_', $lang, '_', $reference, '_', $current_fn_number)"/>
2497
+ <xsl:variable name="footnote_inline">
2498
+ <fo:inline xsl:use-attribute-sets="fn-num-style">
2499
+
2500
+ <fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
2501
+ <xsl:value-of select="$current_fn_number_text"/>
2502
+ </fo:basic-link>
2503
+ </fo:inline>
2504
+ </xsl:variable>
2505
+ <!-- DEBUG: p_fn=<xsl:copy-of select="$p_fn"/>
2506
+ gen_id=<xsl:value-of select="$gen_id"/> -->
2507
+ <xsl:choose>
2508
+ <xsl:when test="normalize-space(@skip_footnote_body) = 'true'">
2509
+ <xsl:copy-of select="$footnote_inline"/>
2510
+ </xsl:when>
2511
+ <xsl:when test="$p_fn//fn[@gen_id = $gen_id] or normalize-space(@skip_footnote_body) = 'false'">
2512
+ <fo:footnote xsl:use-attribute-sets="fn-style">
2513
+ <xsl:copy-of select="$footnote_inline"/>
2514
+ <fo:footnote-body>
2515
+
2516
+ <fo:block-container text-indent="0" start-indent="0">
2517
+
2518
+
2519
+ <fo:block xsl:use-attribute-sets="fn-body-style">
2520
+
2521
+
2522
+ <fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style">
2523
+
2524
+ <xsl:value-of select="$current_fn_number_text"/>
2525
+ </fo:inline>
2526
+ <xsl:apply-templates/>
2527
+ </fo:block>
2528
+ </fo:block-container>
2529
+ </fo:footnote-body>
2530
+ </fo:footnote>
2531
+ </xsl:when>
2532
+ <xsl:otherwise>
2533
+ <xsl:copy-of select="$footnote_inline"/>
2534
+ </xsl:otherwise>
2535
+ </xsl:choose>
2390
2536
  </xsl:template><xsl:template name="fn_display">
2391
2537
  <xsl:variable name="references">
2392
2538
 
@@ -2577,6 +2723,8 @@
2577
2723
 
2578
2724
  </fo:basic-link>
2579
2725
  </fo:inline>
2726
+ </xsl:template><xsl:template match="*[local-name()='fn']/text()[normalize-space() != '']">
2727
+ <fo:inline><xsl:value-of select="."/></fo:inline>
2580
2728
  </xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
2581
2729
  <fo:inline>
2582
2730
  <xsl:apply-templates/>
@@ -3567,22 +3715,6 @@
3567
3715
  <xsl:if test="not(preceding-sibling::*[local-name() = 'p'])"><xsl:value-of select="$callout"/></xsl:if>
3568
3716
  <xsl:apply-templates/>
3569
3717
  </fo:inline>
3570
- </xsl:template><xsl:template match="*[local-name() = 'modification']">
3571
- <xsl:variable name="title-modified">
3572
-
3573
-
3574
- <xsl:call-template name="getTitle">
3575
- <xsl:with-param name="name" select="'title-modified'"/>
3576
- </xsl:call-template>
3577
-
3578
- </xsl:variable>
3579
-
3580
- <xsl:variable name="text"><xsl:apply-templates/></xsl:variable>
3581
- <xsl:choose>
3582
- <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>
3583
- <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>
3584
- </xsl:choose>
3585
- <xsl:apply-templates/>
3586
3718
  </xsl:template><xsl:template match="*[local-name() = 'xref']">
3587
3719
  <fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
3588
3720
 
@@ -4818,62 +4950,69 @@
4818
4950
  <xsl:variable name="termsource_text">
4819
4951
  <xsl:apply-templates/>
4820
4952
  </xsl:variable>
4821
-
4822
- <xsl:choose>
4953
+ <xsl:copy-of select="$termsource_text"/>
4954
+ <!-- <xsl:choose>
4823
4955
  <xsl:when test="starts-with(normalize-space($termsource_text), '[')">
4824
- <!-- <xsl:apply-templates /> -->
4825
4956
  <xsl:copy-of select="$termsource_text"/>
4826
4957
  </xsl:when>
4827
4958
  <xsl:otherwise>
4828
-
4829
-
4959
+ <xsl:if test="$namespace = 'bsi'">
4960
+ <xsl:choose>
4961
+ <xsl:when test="$document_type = 'PAS' and starts-with(*[local-name() = 'origin']/@citeas, '[')"><xsl:text>{</xsl:text></xsl:when>
4962
+ <xsl:otherwise><xsl:text>[</xsl:text></xsl:otherwise>
4963
+ </xsl:choose>
4964
+ </xsl:if>
4965
+ <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'">
4830
4966
  <xsl:text>[</xsl:text>
4831
-
4832
- <!-- <xsl:apply-templates /> -->
4967
+ </xsl:if>
4833
4968
  <xsl:copy-of select="$termsource_text"/>
4834
-
4835
-
4969
+ <xsl:if test="$namespace = 'bsi'">
4970
+ <xsl:choose>
4971
+ <xsl:when test="$document_type = 'PAS' and starts-with(*[local-name() = 'origin']/@citeas, '[')"><xsl:text>}</xsl:text></xsl:when>
4972
+ <xsl:otherwise><xsl:text>]</xsl:text></xsl:otherwise>
4973
+ </xsl:choose>
4974
+ </xsl:if>
4975
+ <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'">
4836
4976
  <xsl:text>]</xsl:text>
4837
-
4977
+ </xsl:if>
4838
4978
  </xsl:otherwise>
4839
- </xsl:choose>
4979
+ </xsl:choose> -->
4840
4980
  </fo:block>
4841
4981
  </xsl:template><xsl:template match="*[local-name() = 'termsource']/text()">
4842
4982
  <xsl:if test="normalize-space() != ''">
4843
4983
  <xsl:value-of select="."/>
4844
4984
  </xsl:if>
4845
- </xsl:template><xsl:variable name="localized.source">
4846
- <xsl:call-template name="getLocalizedString">
4847
- <xsl:with-param name="key">source</xsl:with-param>
4848
- </xsl:call-template>
4849
- </xsl:variable><xsl:template match="*[local-name() = 'origin']">
4985
+ </xsl:template><xsl:template match="*[local-name() = 'termsource']/*[local-name() = 'strong'][1][following-sibling::*[1][local-name() = 'origin']]/text()">
4986
+ <fo:inline>
4987
+
4988
+
4989
+ <xsl:value-of select="."/>
4990
+ </fo:inline>
4991
+ </xsl:template><xsl:template match="*[local-name() = 'origin']">
4850
4992
  <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
4851
4993
  <xsl:if test="normalize-space(@citeas) = ''">
4852
4994
  <xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
4853
4995
  </xsl:if>
4854
-
4855
-
4856
- <fo:inline>
4857
-
4858
-
4859
-
4860
-
4861
-
4862
-
4863
-
4864
- <xsl:call-template name="getTitle">
4865
- <xsl:with-param name="name" select="'title-source'"/>
4866
- </xsl:call-template>
4867
- <xsl:text>: </xsl:text>
4868
-
4869
-
4870
- </fo:inline>
4871
-
4872
4996
  <fo:inline xsl:use-attribute-sets="origin-style">
4873
4997
  <xsl:apply-templates/>
4874
4998
  </fo:inline>
4999
+ </fo:basic-link>
5000
+ </xsl:template><xsl:template match="*[local-name() = 'modification']">
5001
+ <xsl:variable name="title-modified">
4875
5002
 
4876
- </fo:basic-link>
5003
+
5004
+ <xsl:call-template name="getTitle">
5005
+ <xsl:with-param name="name" select="'title-modified'"/>
5006
+ </xsl:call-template>
5007
+
5008
+ </xsl:variable>
5009
+
5010
+ <xsl:variable name="text"><xsl:apply-templates/></xsl:variable>
5011
+ <xsl:choose>
5012
+ <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>
5013
+ <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>
5014
+ </xsl:choose>
5015
+ <xsl:apply-templates/>
4877
5016
  </xsl:template><xsl:template match="*[local-name() = 'modification']/*[local-name() = 'p']">
4878
5017
  <fo:inline><xsl:apply-templates/></fo:inline>
4879
5018
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
@@ -5471,7 +5610,31 @@
5471
5610
  <fo:block-container border="1pt solid black" width="50%">
5472
5611
  <fo:block> </fo:block>
5473
5612
  </fo:block-container>
5474
- </xsl:template><xsl:template match="*[local-name() = 'toc']">
5613
+ </xsl:template><xsl:variable name="toc_level">
5614
+ <xsl:choose>
5615
+ <xsl:when test="1 = 2"/> <!-- to do https://github.com/metanorma/mn-native-pdf/issues/337: if there is value in xml -->
5616
+ <xsl:otherwise><!-- default value -->
5617
+
5618
+
5619
+ 2
5620
+
5621
+
5622
+
5623
+
5624
+
5625
+
5626
+
5627
+
5628
+
5629
+
5630
+
5631
+
5632
+
5633
+
5634
+
5635
+ </xsl:otherwise>
5636
+ </xsl:choose>
5637
+ </xsl:variable><xsl:template match="*[local-name() = 'toc']">
5475
5638
  <xsl:param name="colwidths"/>
5476
5639
  <xsl:variable name="colwidths_">
5477
5640
  <xsl:choose>
@@ -6111,4 +6274,14 @@
6111
6274
  </xsl:otherwise>
6112
6275
  </xsl:choose>
6113
6276
  </xsl:if>
6277
+ </xsl:template><xsl:template name="setAltText">
6278
+ <xsl:param name="value"/>
6279
+ <xsl:attribute name="fox:alt-text">
6280
+ <xsl:choose>
6281
+ <xsl:when test="normalize-space($value) != ''">
6282
+ <xsl:value-of select="$value"/>
6283
+ </xsl:when>
6284
+ <xsl:otherwise>_</xsl:otherwise>
6285
+ </xsl:choose>
6286
+ </xsl:attribute>
6114
6287
  </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 Csa
3
- VERSION = "1.9.3".freeze
3
+ VERSION = "1.9.4".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-csa
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.3
4
+ version: 1.9.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
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
248
  - !ruby/object:Gem::Version
249
249
  version: '0'
250
250
  requirements: []
251
- rubygems_version: 3.2.22
251
+ rubygems_version: 3.2.32
252
252
  signing_key:
253
253
  specification_version: 4
254
254
  summary: metanorma-csa lets you write CSA Normal Documents (CSAND) in AsciiDoc.