metanorma-ribose 1.8.0 → 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: 9e7818f73172304b4b38b0f297392cbe64581c73ac5c9076ef99331bc73a0e8a
4
- data.tar.gz: 513ab32b53e6e772ecef3d96f3bf378418dd713d6bb6bc2c1021412c1c3b5756
3
+ metadata.gz: c2d4f73d7ccad32355d85a39753e3ce6450eaff993b6bb26d0cda2dd4a232720
4
+ data.tar.gz: 28401b3153809534ed01936fbb47cdcf81cb7b6717caf54b795cf7c4497ae5b6
5
5
  SHA512:
6
- metadata.gz: 29952bc554a83a70682df70b3f1e2efd9ad57de87178d2c5a8a74f47eb3673125728b2c813269704fffcca767f2d9a301be20a21d03da5b5e36b45753a78ab90
7
- data.tar.gz: 26dbda2906d1c951d3934c08e589cbc46bea384a7e942930e3050443a7346954bac01d62f95123ee485d4b68df1391641f66f833f3132855d5b74f31c3586658
6
+ metadata.gz: 11a38d3364da6e60d584926a1f8848d749d90bf27d30b15d787df734cd76abc5b180e38bb703dc514530bb984ee6ab4a9e56d9a32b00b2132e122ef5b5d4a82f
7
+ data.tar.gz: 2603c9ee2111307457b9732f48a636e70dae58f9a41cef42b3223821c86ecbb7266686363dc12c2379d91c345b1020dd73af7165ab1e78d114d633c35b84ce91
@@ -26,7 +26,7 @@ module Asciidoctor
26
26
 
27
27
  def make_preface(xml, sect)
28
28
  if xml.at("//foreword | //introduction | //acknowledgements | "\
29
- "//clause[@preface] | //executivesummary")
29
+ "//clause[@preface] | //executivesummary")
30
30
  preface = sect.add_previous_sibling("<preface/>").first
31
31
  f = xml.at("//foreword") and preface.add_child f.remove
32
32
  f = xml.at("//executivesummary") and preface.add_child f.remove
@@ -45,7 +45,7 @@ module Asciidoctor
45
45
 
46
46
  def executivesummary_parse(attrs, xml, node)
47
47
  xml.executivesummary **attr_code(attrs) do |xml_section|
48
- xml_section.title { |t| t << node.title || "Executive Summary" }
48
+ xml_section.title { |t| t << (node.title || "Executive Summary") }
49
49
  content = node.content
50
50
  xml_section << content
51
51
  end
@@ -67,7 +67,7 @@ module Asciidoctor
67
67
  def pdf_converter(node)
68
68
  return nil if node.attr("no-pdf")
69
69
 
70
- IsoDoc::Ribose::PdfConvert.new(html_extract_attributes(node))
70
+ IsoDoc::Ribose::PdfConvert.new(pdf_extract_attributes(node))
71
71
  end
72
72
 
73
73
  def doc_converter(node)
@@ -58,7 +58,7 @@
58
58
  <attribute name="alt"/>
59
59
  </optional>
60
60
  <optional>
61
- <attribute name="updatetype">
61
+ <attribute name="update-type">
62
62
  <data type="boolean"/>
63
63
  </attribute>
64
64
  </optional>
@@ -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>
@@ -1814,9 +1828,6 @@
1814
1828
  <optional>
1815
1829
  <ref name="termsubject"/>
1816
1830
  </optional>
1817
- <optional>
1818
- <ref name="termusage"/>
1819
- </optional>
1820
1831
  <oneOrMore>
1821
1832
  <ref name="termdefinition"/>
1822
1833
  </oneOrMore>
@@ -1880,17 +1891,37 @@
1880
1891
  </attribute>
1881
1892
  </optional>
1882
1893
  <optional>
1883
- <attribute name="geographicArea"/>
1894
+ <attribute name="geographic-area"/>
1884
1895
  </optional>
1885
1896
  <choice>
1886
1897
  <ref name="expression_designation"/>
1887
1898
  <ref name="letter_symbol_designation"/>
1888
1899
  <ref name="graphical_symbol_designation"/>
1889
1900
  </choice>
1901
+ <optional>
1902
+ <ref name="fieldofapplication"/>
1903
+ </optional>
1904
+ <optional>
1905
+ <ref name="usageinfo"/>
1906
+ </optional>
1890
1907
  <zeroOrMore>
1891
1908
  <ref name="termsource"/>
1892
1909
  </zeroOrMore>
1893
1910
  </define>
1911
+ <define name="fieldofapplication">
1912
+ <element name="field-of-application">
1913
+ <oneOrMore>
1914
+ <ref name="PureTextElement"/>
1915
+ </oneOrMore>
1916
+ </element>
1917
+ </define>
1918
+ <define name="usageinfo">
1919
+ <element name="usage-info">
1920
+ <oneOrMore>
1921
+ <ref name="PureTextElement"/>
1922
+ </oneOrMore>
1923
+ </element>
1924
+ </define>
1894
1925
  <define name="letter_symbol_designation">
1895
1926
  <element name="letter-symbol">
1896
1927
  <optional>
@@ -1946,7 +1977,7 @@
1946
1977
  </zeroOrMore>
1947
1978
  </element>
1948
1979
  <optional>
1949
- <element name="abbreviationType">
1980
+ <element name="abbreviation-type">
1950
1981
  <ref name="AbbreviationType"/>
1951
1982
  </element>
1952
1983
  </optional>
@@ -1956,7 +1987,7 @@
1956
1987
  </element>
1957
1988
  </optional>
1958
1989
  <optional>
1959
- <element name="grammarInfo">
1990
+ <element name="grammar-info">
1960
1991
  <ref name="Grammar"/>
1961
1992
  </element>
1962
1993
  </optional>
@@ -1983,6 +2014,11 @@
1983
2014
  <ref name="GrammarGender"/>
1984
2015
  </element>
1985
2016
  </zeroOrMore>
2017
+ <zeroOrMore>
2018
+ <element name="number">
2019
+ <ref name="GrammarNumber"/>
2020
+ </element>
2021
+ </zeroOrMore>
1986
2022
  <optional>
1987
2023
  <element name="isPreposition">
1988
2024
  <data type="boolean"/>
@@ -2014,7 +2050,7 @@
2014
2050
  </element>
2015
2051
  </optional>
2016
2052
  <zeroOrMore>
2017
- <element name="grammarvalue">
2053
+ <element name="grammar-value">
2018
2054
  <text/>
2019
2055
  </element>
2020
2056
  </zeroOrMore>
@@ -2027,6 +2063,13 @@
2027
2063
  <value>common</value>
2028
2064
  </choice>
2029
2065
  </define>
2066
+ <define name="GrammarNumber">
2067
+ <choice>
2068
+ <value>singular</value>
2069
+ <value>dual</value>
2070
+ <value>plural</value>
2071
+ </choice>
2072
+ </define>
2030
2073
  <define name="termdomain">
2031
2074
  <element name="domain">
2032
2075
  <oneOrMore>
@@ -2041,13 +2084,6 @@
2041
2084
  </oneOrMore>
2042
2085
  </element>
2043
2086
  </define>
2044
- <define name="termusage">
2045
- <element name="usageinfo">
2046
- <oneOrMore>
2047
- <ref name="BasicBlock"/>
2048
- </oneOrMore>
2049
- </element>
2050
- </define>
2051
2087
  <define name="termdefinition">
2052
2088
  <element name="definition">
2053
2089
  <choice>
@@ -2061,9 +2097,17 @@
2061
2097
  </element>
2062
2098
  </define>
2063
2099
  <define name="verbaldefinition">
2064
- <element name="verbaldefinition">
2100
+ <element name="verbal-definition">
2065
2101
  <oneOrMore>
2066
- <ref name="paragraph"/>
2102
+ <choice>
2103
+ <ref name="paragraph"/>
2104
+ <ref name="dl"/>
2105
+ <ref name="ol"/>
2106
+ <ref name="ul"/>
2107
+ <ref name="table"/>
2108
+ <ref name="figure"/>
2109
+ <ref name="formula"/>
2110
+ </choice>
2067
2111
  </oneOrMore>
2068
2112
  <zeroOrMore>
2069
2113
  <ref name="termsource"/>
@@ -2071,7 +2115,7 @@
2071
2115
  </element>
2072
2116
  </define>
2073
2117
  <define name="nonverbalrep">
2074
- <element name="nonverbalrepresentation">
2118
+ <element name="non-verbal-representation">
2075
2119
  <oneOrMore>
2076
2120
  <choice>
2077
2121
  <ref name="table"/>
@@ -2163,6 +2207,12 @@
2163
2207
  <value>modified</value>
2164
2208
  </choice>
2165
2209
  </attribute>
2210
+ <attribute name="type">
2211
+ <choice>
2212
+ <value>authoritative</value>
2213
+ <value>lineage</value>
2214
+ </choice>
2215
+ </attribute>
2166
2216
  <ref name="origin"/>
2167
2217
  <optional>
2168
2218
  <ref name="modification"/>
@@ -562,12 +562,12 @@ h3 {
562
562
  font-size: 1.1em;
563
563
  font-weight: 100; }
564
564
 
565
- .TermNum,
566
- .Terms,
567
- .AltTerms {
568
- color: #1661AD;
565
+ .TermNum {
569
566
  font-weight: 100; }
570
567
 
568
+ .TermNum, .Terms, .AltTerms {
569
+ color: #1661AD; }
570
+
571
571
  h2.TermNum {
572
572
  margin-bottom: 0; }
573
573
 
@@ -232,13 +232,14 @@ h3 {
232
232
  font-weight: 100;
233
233
  }
234
234
 
235
- .TermNum,
236
- .Terms,
237
- .AltTerms {
238
- color: #1661AD;
235
+ .TermNum {
239
236
  font-weight: 100;
240
237
  }
241
238
 
239
+ .TermNum, .Terms, .AltTerms {
240
+ color: #1661AD;
241
+ }
242
+
242
243
  h2.TermNum {
243
244
  margin-bottom: 0;
244
245
  }
@@ -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>
@@ -10,6 +10,14 @@ module IsoDoc
10
10
  prefix_name(elem, "<br/><br/>", lbl, "title")
11
11
  end
12
12
 
13
+ def termsource1(elem)
14
+ mod = elem.at(ns("./modification")) and
15
+ termsource_modification(mod)
16
+ elem.children = l10n("<strong>#{@i18n.source}:</strong> "\
17
+ "#{elem.children.to_xml.strip}")
18
+ elem&.next_element&.name == "termsource" and elem.next = "; "
19
+ end
20
+
13
21
  include Init
14
22
  end
15
23
  end
@@ -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="215.9"/>
11
13
  <xsl:variable name="pageHeight" select="279.4"/>
12
14
  <xsl:variable name="marginLeftRight1" select="29"/>
@@ -435,8 +437,8 @@
435
437
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
436
438
  <xsl:attribute name="color">black</xsl:attribute>
437
439
  </xsl:if>
438
- <xsl:if test="@level = 2">
439
- <xsl:attribute name="margin-left">16.5mm</xsl:attribute>
440
+ <xsl:if test="@level &gt;= 2">
441
+ <xsl:attribute name="margin-left"><xsl:value-of select="(@level - 1) * 16.5"/>mm</xsl:attribute>
440
442
  <xsl:attribute name="space-before">4pt</xsl:attribute>
441
443
  <xsl:attribute name="space-after">5pt</xsl:attribute>
442
444
  </xsl:if>
@@ -537,7 +539,7 @@
537
539
 
538
540
  <xsl:variable name="display">
539
541
  <xsl:choose>
540
- <xsl:when test="$level &gt;= 3">false</xsl:when>
542
+ <xsl:when test="$level &gt; $toc_level">false</xsl:when>
541
543
  <xsl:otherwise>true</xsl:otherwise>
542
544
  </xsl:choose>
543
545
  </xsl:variable>
@@ -843,33 +845,7 @@
843
845
  </xsl:if>
844
846
  </xsl:template>
845
847
 
846
- <!--
847
- <fn reference="1">
848
- <p id="_8e5cf917-f75a-4a49-b0aa-1714cb6cf954">Formerly denoted as 15 % (m/m).</p>
849
- </fn>
850
- -->
851
- <xsl:template match="rsd:title/rsd:fn | rsd:p/rsd:fn[not(ancestor::rsd:table)]" priority="2">
852
- <fo:footnote keep-with-previous.within-line="always">
853
- <xsl:variable name="number" select="@reference"/>
854
-
855
- <fo:inline font-size="65%" keep-with-previous.within-line="always" vertical-align="super">
856
- <fo:basic-link internal-destination="footnote_{@reference}" fox:alt-text="footnote {@reference}">
857
- <xsl:value-of select="$number"/><!-- + count(//rsd:bibitem/rsd:note) -->
858
- </fo:basic-link>
859
- </fo:inline>
860
- <fo:footnote-body>
861
- <fo:block font-size="10pt" margin-bottom="12pt" font-weight="normal" text-indent="0" start-indent="0" color="rgb(168, 170, 173)" text-align="left">
862
- <fo:inline id="footnote_{@reference}" keep-with-next.within-line="always" font-size="60%" vertical-align="super">
863
- <xsl:value-of select="$number "/><!-- + count(//rsd:bibitem/rsd:note) -->
864
- </fo:inline>
865
- <xsl:for-each select="rsd:p">
866
- <xsl:apply-templates/>
867
- </xsl:for-each>
868
- </fo:block>
869
- </fo:footnote-body>
870
- </fo:footnote>
871
- </xsl:template>
872
-
848
+
873
849
  <xsl:template match="rsd:fn/rsd:p">
874
850
  <fo:block>
875
851
  <xsl:apply-templates/>
@@ -1100,11 +1076,11 @@
1100
1076
  <xsl:if test="preceding-sibling::*[1][self::rsd:name]">
1101
1077
  <xsl:attribute name="space-before">11mm</xsl:attribute>
1102
1078
  <fo:inline padding-right="1mm">
1103
- <xsl:apply-templates select="ancestor::rsd:term/rsd:name" mode="presentation"/>
1079
+ <xsl:apply-templates select="ancestor::rsd:term[1]/rsd:name" mode="presentation"/>
1104
1080
  </fo:inline>
1105
1081
  </xsl:if>
1106
1082
 
1107
- <fo:inline padding-right="4mm"><xsl:apply-templates/></fo:inline>
1083
+ <fo:inline padding-right="4mm"><xsl:if test="local-name() = 'preferred'"><xsl:call-template name="setStyle_preferred"/></xsl:if><xsl:apply-templates/></fo:inline>
1108
1084
 
1109
1085
  <xsl:variable name="term_kind">
1110
1086
  <xsl:choose>
@@ -2081,6 +2057,79 @@
2081
2057
 
2082
2058
  </xsl:attribute-set><xsl:attribute-set name="toc-style">
2083
2059
  <xsl:attribute name="line-height">135%</xsl:attribute>
2060
+ </xsl:attribute-set><xsl:attribute-set name="fn-style">
2061
+ <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
2062
+ </xsl:attribute-set><xsl:attribute-set name="fn-num-style">
2063
+ <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
2064
+
2065
+
2066
+
2067
+
2068
+
2069
+
2070
+
2071
+
2072
+
2073
+
2074
+
2075
+
2076
+
2077
+
2078
+ <xsl:attribute name="font-size">65%</xsl:attribute>
2079
+ <xsl:attribute name="vertical-align">super</xsl:attribute>
2080
+
2081
+
2082
+
2083
+ </xsl:attribute-set><xsl:attribute-set name="fn-body-style">
2084
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
2085
+ <xsl:attribute name="font-style">normal</xsl:attribute>
2086
+ <xsl:attribute name="text-indent">0</xsl:attribute>
2087
+ <xsl:attribute name="start-indent">0</xsl:attribute>
2088
+
2089
+
2090
+
2091
+
2092
+
2093
+
2094
+
2095
+
2096
+
2097
+
2098
+
2099
+
2100
+
2101
+
2102
+
2103
+
2104
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
2105
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
2106
+ <xsl:attribute name="color">rgb(168, 170, 173)</xsl:attribute>
2107
+ <xsl:attribute name="text-align">left</xsl:attribute>
2108
+
2109
+
2110
+
2111
+ </xsl:attribute-set><xsl:attribute-set name="fn-body-num-style">
2112
+ <xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
2113
+
2114
+
2115
+
2116
+
2117
+
2118
+
2119
+
2120
+
2121
+
2122
+
2123
+
2124
+
2125
+
2126
+
2127
+
2128
+ <xsl:attribute name="font-size">60%</xsl:attribute>
2129
+ <xsl:attribute name="vertical-align">super</xsl:attribute>
2130
+
2131
+
2132
+
2084
2133
  </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">
2085
2134
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
2086
2135
  <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
@@ -2106,7 +2155,8 @@
2106
2155
  <xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]" mode="contents"/>
2107
2156
 
2108
2157
  </xsl:template><xsl:template name="processMainSectionsDefault_Contents">
2109
- <xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
2158
+
2159
+ <xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true'] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][@normative='true']]">
2110
2160
  <xsl:sort select="@displayorder" data-type="number"/>
2111
2161
  <xsl:apply-templates select="." mode="contents"/>
2112
2162
  </xsl:for-each>
@@ -2116,7 +2166,7 @@
2116
2166
  <xsl:apply-templates select="." mode="contents"/>
2117
2167
  </xsl:for-each>
2118
2168
 
2119
- <xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]">
2169
+ <xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true') and not(*[local-name()='references'][@normative='true'])] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]">
2120
2170
  <xsl:sort select="@displayorder" data-type="number"/>
2121
2171
  <xsl:apply-templates select="." mode="contents"/>
2122
2172
  </xsl:for-each>
@@ -3040,6 +3090,102 @@
3040
3090
 
3041
3091
  </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">
3042
3092
  <xsl:apply-templates/>
3093
+ </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">
3094
+
3095
+ <!-- list of footnotes to calculate actual footnotes number -->
3096
+ <xsl:variable name="p_fn_">
3097
+ <xsl:choose>
3098
+ <xsl:when test="@current_fn_number"> <!-- for BSI, footnote reference number calculated already -->
3099
+ <fn gen_id="{generate-id(.)}">
3100
+ <xsl:copy-of select="@*"/>
3101
+ <xsl:copy-of select="node()"/>
3102
+ </fn>
3103
+ </xsl:when>
3104
+ <xsl:otherwise>
3105
+ <!-- itetation for:
3106
+ footnotes in bibdata/title
3107
+ footnotes in bibliography
3108
+ footnotes in document's body (except table's head/body/foot and figure text)
3109
+ -->
3110
+ <xsl:for-each select="ancestor::*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']/*[local-name() = 'note'][@type='title-footnote']">
3111
+ <fn gen_id="{generate-id(.)}">
3112
+ <xsl:copy-of select="@*"/>
3113
+ <xsl:copy-of select="node()"/>
3114
+ </fn>
3115
+ </xsl:for-each>
3116
+ <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']/*">
3117
+ <xsl:sort select="@displayorder" data-type="number"/>
3118
+ <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])]">
3119
+ <!-- copy unique fn -->
3120
+ <fn gen_id="{generate-id(.)}">
3121
+ <xsl:copy-of select="@*"/>
3122
+ <xsl:copy-of select="node()"/>
3123
+ </fn>
3124
+ </xsl:for-each>
3125
+ </xsl:for-each>
3126
+ </xsl:otherwise>
3127
+ </xsl:choose>
3128
+ </xsl:variable>
3129
+ <xsl:variable name="p_fn" select="xalan:nodeset($p_fn_)"/>
3130
+
3131
+ <xsl:variable name="gen_id" select="generate-id(.)"/>
3132
+ <xsl:variable name="lang" select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibdata']//*[local-name()='language'][@current = 'true']"/>
3133
+ <xsl:variable name="reference" select="@reference"/>
3134
+ <!-- fn sequence number in document -->
3135
+ <xsl:variable name="current_fn_number">
3136
+ <xsl:choose>
3137
+ <xsl:when test="@current_fn_number"><xsl:value-of select="@current_fn_number"/></xsl:when> <!-- for BSI -->
3138
+ <xsl:otherwise>
3139
+ <xsl:value-of select="count($p_fn//fn[@reference = $reference]/preceding-sibling::fn) + 1"/>
3140
+ </xsl:otherwise>
3141
+ </xsl:choose>
3142
+ </xsl:variable>
3143
+ <xsl:variable name="current_fn_number_text">
3144
+ <xsl:value-of select="$current_fn_number"/>
3145
+
3146
+
3147
+ </xsl:variable>
3148
+
3149
+ <xsl:variable name="ref_id" select="concat('footnote_', $lang, '_', $reference, '_', $current_fn_number)"/>
3150
+ <xsl:variable name="footnote_inline">
3151
+ <fo:inline xsl:use-attribute-sets="fn-num-style">
3152
+
3153
+ <fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
3154
+ <xsl:value-of select="$current_fn_number_text"/>
3155
+ </fo:basic-link>
3156
+ </fo:inline>
3157
+ </xsl:variable>
3158
+ <!-- DEBUG: p_fn=<xsl:copy-of select="$p_fn"/>
3159
+ gen_id=<xsl:value-of select="$gen_id"/> -->
3160
+ <xsl:choose>
3161
+ <xsl:when test="normalize-space(@skip_footnote_body) = 'true'">
3162
+ <xsl:copy-of select="$footnote_inline"/>
3163
+ </xsl:when>
3164
+ <xsl:when test="$p_fn//fn[@gen_id = $gen_id] or normalize-space(@skip_footnote_body) = 'false'">
3165
+ <fo:footnote xsl:use-attribute-sets="fn-style">
3166
+ <xsl:copy-of select="$footnote_inline"/>
3167
+ <fo:footnote-body>
3168
+
3169
+ <fo:block-container text-indent="0" start-indent="0">
3170
+
3171
+
3172
+ <fo:block xsl:use-attribute-sets="fn-body-style">
3173
+
3174
+
3175
+ <fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style">
3176
+
3177
+ <xsl:value-of select="$current_fn_number_text"/>
3178
+ </fo:inline>
3179
+ <xsl:apply-templates/>
3180
+ </fo:block>
3181
+ </fo:block-container>
3182
+ </fo:footnote-body>
3183
+ </fo:footnote>
3184
+ </xsl:when>
3185
+ <xsl:otherwise>
3186
+ <xsl:copy-of select="$footnote_inline"/>
3187
+ </xsl:otherwise>
3188
+ </xsl:choose>
3043
3189
  </xsl:template><xsl:template name="fn_display">
3044
3190
  <xsl:variable name="references">
3045
3191
 
@@ -3234,6 +3380,8 @@
3234
3380
 
3235
3381
  </fo:basic-link>
3236
3382
  </fo:inline>
3383
+ </xsl:template><xsl:template match="*[local-name()='fn']/text()[normalize-space() != '']">
3384
+ <fo:inline><xsl:value-of select="."/></fo:inline>
3237
3385
  </xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
3238
3386
  <fo:inline>
3239
3387
  <xsl:apply-templates/>
@@ -3538,6 +3686,7 @@
3538
3686
  <fo:table-cell>
3539
3687
 
3540
3688
  <fo:block margin-top="6pt">
3689
+ <xsl:copy-of select="@id"/>
3541
3690
 
3542
3691
 
3543
3692
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -3609,8 +3758,10 @@
3609
3758
  </xsl:template><xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
3610
3759
  <fo:inline font-weight="bold">
3611
3760
 
3612
- <xsl:attribute name="font-weight">normal</xsl:attribute>
3613
- <xsl:attribute name="color">black</xsl:attribute>
3761
+ <xsl:if test="not(parent::*[local-name() = 'termsource'])">
3762
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
3763
+ <xsl:attribute name="color">black</xsl:attribute>
3764
+ </xsl:if>
3614
3765
 
3615
3766
  <xsl:apply-templates/>
3616
3767
  </fo:inline>
@@ -4246,22 +4397,6 @@
4246
4397
  <xsl:if test="not(preceding-sibling::*[local-name() = 'p'])"><xsl:value-of select="$callout"/></xsl:if>
4247
4398
  <xsl:apply-templates/>
4248
4399
  </fo:inline>
4249
- </xsl:template><xsl:template match="*[local-name() = 'modification']">
4250
- <xsl:variable name="title-modified">
4251
-
4252
-
4253
- <xsl:call-template name="getTitle">
4254
- <xsl:with-param name="name" select="'title-modified'"/>
4255
- </xsl:call-template>
4256
-
4257
- </xsl:variable>
4258
-
4259
- <xsl:variable name="text"><xsl:apply-templates/></xsl:variable>
4260
- <xsl:choose>
4261
- <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>
4262
- <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>
4263
- </xsl:choose>
4264
- <xsl:apply-templates/>
4265
4400
  </xsl:template><xsl:template match="*[local-name() = 'xref']">
4266
4401
  <fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
4267
4402
 
@@ -4400,14 +4535,18 @@
4400
4535
  </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
4401
4536
  <fo:inline><xsl:apply-templates/></fo:inline>
4402
4537
  </xsl:template><xsl:template match="*[local-name() = 'terms']">
4538
+ <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
4403
4539
  <fo:block id="{@id}">
4404
4540
  <xsl:apply-templates/>
4405
4541
  </fo:block>
4406
4542
  </xsl:template><xsl:template match="*[local-name() = 'term']">
4543
+ <!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
4407
4544
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
4408
4545
 
4409
4546
 
4410
-
4547
+ <xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
4548
+
4549
+ </xsl:if>
4411
4550
  <xsl:apply-templates/>
4412
4551
  </fo:block>
4413
4552
  </xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
@@ -4840,12 +4979,12 @@
4840
4979
  </xsl:template><xsl:template match="*[local-name() = 'emf']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="contents">
4841
4980
  <xsl:apply-templates mode="contents"/>
4842
4981
  <xsl:text> </xsl:text>
4843
- </xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="bookmarks">
4982
+ </xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name'] | *[local-name() = 'sourcecode']/*[local-name() = 'name']" mode="bookmarks">
4844
4983
  <xsl:apply-templates mode="bookmarks"/>
4845
4984
  <xsl:text> </xsl:text>
4846
4985
  </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']/text()" mode="contents" priority="2">
4847
4986
  <xsl:value-of select="."/>
4848
- </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']//text()" mode="bookmarks" priority="2">
4987
+ </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement' or local-name() = 'sourcecode']/*[local-name() = 'name']//text()" mode="bookmarks" priority="2">
4849
4988
  <xsl:value-of select="."/>
4850
4989
  </xsl:template><xsl:template match="node()" mode="contents">
4851
4990
  <xsl:apply-templates mode="contents"/>
@@ -5117,6 +5256,8 @@
5117
5256
  <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
5118
5257
 
5119
5258
 
5259
+
5260
+
5120
5261
  <fo:block xsl:use-attribute-sets="sourcecode-style">
5121
5262
  <xsl:variable name="_font-size">
5122
5263
 
@@ -5169,10 +5310,14 @@
5169
5310
  </xsl:if>
5170
5311
 
5171
5312
 
5313
+
5314
+
5172
5315
  <xsl:apply-templates/>
5173
5316
  </fo:block>
5317
+
5174
5318
 
5175
5319
 
5320
+
5176
5321
 
5177
5322
  </fo:block-container>
5178
5323
  </fo:block-container>
@@ -5409,7 +5554,8 @@
5409
5554
  </fo:block>
5410
5555
  </fo:table-cell>
5411
5556
  </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
5412
- <fo:block font-size="11pt" color="rgb(237, 193, 35)"> <!-- font-weight="bold" margin-bottom="4pt" text-align="center" -->
5557
+ <fo:block font-size="11pt">
5558
+
5413
5559
  <xsl:apply-templates/>
5414
5560
  </fo:block>
5415
5561
  </xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
@@ -5529,57 +5675,71 @@
5529
5675
  <xsl:variable name="termsource_text">
5530
5676
  <xsl:apply-templates/>
5531
5677
  </xsl:variable>
5532
-
5533
- <xsl:choose>
5678
+ <xsl:copy-of select="$termsource_text"/>
5679
+ <!-- <xsl:choose>
5534
5680
  <xsl:when test="starts-with(normalize-space($termsource_text), '[')">
5535
- <!-- <xsl:apply-templates /> -->
5536
5681
  <xsl:copy-of select="$termsource_text"/>
5537
5682
  </xsl:when>
5538
- <xsl:otherwise>
5539
-
5540
- <!-- <xsl:apply-templates /> -->
5683
+ <xsl:otherwise>
5684
+ <xsl:if test="$namespace = 'bsi'">
5685
+ <xsl:choose>
5686
+ <xsl:when test="$document_type = 'PAS' and starts-with(*[local-name() = 'origin']/@citeas, '[')"><xsl:text>{</xsl:text></xsl:when>
5687
+ <xsl:otherwise><xsl:text>[</xsl:text></xsl:otherwise>
5688
+ </xsl:choose>
5689
+ </xsl:if>
5690
+ <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'">
5691
+ <xsl:text>[</xsl:text>
5692
+ </xsl:if>
5541
5693
  <xsl:copy-of select="$termsource_text"/>
5542
-
5694
+ <xsl:if test="$namespace = 'bsi'">
5695
+ <xsl:choose>
5696
+ <xsl:when test="$document_type = 'PAS' and starts-with(*[local-name() = 'origin']/@citeas, '[')"><xsl:text>}</xsl:text></xsl:when>
5697
+ <xsl:otherwise><xsl:text>]</xsl:text></xsl:otherwise>
5698
+ </xsl:choose>
5699
+ </xsl:if>
5700
+ <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'">
5701
+ <xsl:text>]</xsl:text>
5702
+ </xsl:if>
5543
5703
  </xsl:otherwise>
5544
- </xsl:choose>
5704
+ </xsl:choose> -->
5545
5705
  </fo:block>
5546
5706
  </xsl:template><xsl:template match="*[local-name() = 'termsource']/text()">
5547
5707
  <xsl:if test="normalize-space() != ''">
5548
5708
  <xsl:value-of select="."/>
5549
5709
  </xsl:if>
5550
- </xsl:template><xsl:variable name="localized.source">
5551
- <xsl:call-template name="getLocalizedString">
5552
- <xsl:with-param name="key">source</xsl:with-param>
5553
- </xsl:call-template>
5554
- </xsl:variable><xsl:template match="*[local-name() = 'origin']">
5710
+ </xsl:template><xsl:template match="*[local-name() = 'termsource']/*[local-name() = 'strong'][1][following-sibling::*[1][local-name() = 'origin']]/text()">
5711
+ <fo:inline>
5712
+
5713
+ <xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
5714
+
5715
+
5716
+ <xsl:value-of select="."/>
5717
+ </fo:inline>
5718
+ </xsl:template><xsl:template match="*[local-name() = 'origin']">
5555
5719
  <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
5556
5720
  <xsl:if test="normalize-space(@citeas) = ''">
5557
5721
  <xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
5558
5722
  </xsl:if>
5559
-
5560
-
5561
- <fo:inline>
5562
-
5563
-
5564
- <xsl:attribute name="font-weight">bold</xsl:attribute>
5565
- <xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
5566
-
5567
-
5568
-
5569
-
5570
- <xsl:value-of select="$localized.source"/>
5571
- <xsl:text>: </xsl:text>
5572
-
5573
-
5574
-
5575
-
5576
- </fo:inline>
5577
-
5578
5723
  <fo:inline xsl:use-attribute-sets="origin-style">
5579
5724
  <xsl:apply-templates/>
5580
5725
  </fo:inline>
5726
+ </fo:basic-link>
5727
+ </xsl:template><xsl:template match="*[local-name() = 'modification']">
5728
+ <xsl:variable name="title-modified">
5581
5729
 
5582
- </fo:basic-link>
5730
+
5731
+ <xsl:call-template name="getTitle">
5732
+ <xsl:with-param name="name" select="'title-modified'"/>
5733
+ </xsl:call-template>
5734
+
5735
+ </xsl:variable>
5736
+
5737
+ <xsl:variable name="text"><xsl:apply-templates/></xsl:variable>
5738
+ <xsl:choose>
5739
+ <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>
5740
+ <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>
5741
+ </xsl:choose>
5742
+ <xsl:apply-templates/>
5583
5743
  </xsl:template><xsl:template match="*[local-name() = 'modification']/*[local-name() = 'p']">
5584
5744
  <fo:inline><xsl:apply-templates/></fo:inline>
5585
5745
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
@@ -5622,12 +5782,20 @@
5622
5782
  </xsl:template><xsl:template match="*[local-name() = 'author']">
5623
5783
  <xsl:text>— </xsl:text>
5624
5784
  <xsl:apply-templates/>
5625
- </xsl:template><xsl:template match="*[local-name() = 'eref']">
5785
+ </xsl:template><xsl:variable name="bibitem_hidden_">
5786
+ <xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
5787
+ <xsl:copy-of select="."/>
5788
+ </xsl:for-each>
5789
+ <xsl:for-each select="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem']">
5790
+ <xsl:copy-of select="."/>
5791
+ </xsl:for-each>
5792
+ </xsl:variable><xsl:variable name="bibitem_hidden" select="xalan:nodeset($bibitem_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
5626
5793
 
5627
5794
  <xsl:variable name="bibitemid">
5628
5795
  <xsl:choose>
5629
- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"/>
5630
- <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
5796
+ <!-- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"></xsl:when>
5797
+ <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"></xsl:when> -->
5798
+ <xsl:when test="$bibitem_hidden/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
5631
5799
  <xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
5632
5800
  </xsl:choose>
5633
5801
  </xsl:variable>
@@ -5711,10 +5879,10 @@
5711
5879
  </xsl:choose>
5712
5880
  </xsl:variable>
5713
5881
 
5714
- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
5882
+ <!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
5715
5883
 
5716
5884
  <xsl:choose>
5717
- <xsl:when test="$language = 'zh'">
5885
+ <xsl:when test="$lang = 'zh'">
5718
5886
  <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
5719
5887
  </xsl:when>
5720
5888
  <xsl:when test="../../@inline-header = 'true'">
@@ -5757,15 +5925,20 @@
5757
5925
  <fo:block xsl:use-attribute-sets="deprecates-style">
5758
5926
  <xsl:value-of select="$title-deprecated"/>: <xsl:apply-templates/>
5759
5927
  </fo:block>
5928
+ </xsl:template><xsl:template name="setStyle_preferred">
5929
+ <xsl:if test="*[local-name() = 'strong']">
5930
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
5931
+ </xsl:if>
5760
5932
  </xsl:template><xsl:template match="*[local-name() = 'definition']">
5761
5933
  <fo:block xsl:use-attribute-sets="definition-style">
5762
5934
  <xsl:apply-templates/>
5763
5935
  </fo:block>
5764
5936
  </xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]">
5765
5937
  <xsl:apply-templates/>
5766
- </xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p']">
5938
+ </xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p'][1]">
5767
5939
  <fo:inline> <xsl:apply-templates/></fo:inline>
5768
- <fo:block> </fo:block>
5940
+ <!-- <fo:block>&#xA0;</fo:block> -->
5941
+ <fo:block/>
5769
5942
  </xsl:template><xsl:template match="/*/*[local-name() = 'sections']/*" priority="2">
5770
5943
 
5771
5944
  <fo:block>
@@ -6164,7 +6337,31 @@
6164
6337
  <fo:block-container border="1pt solid black" width="50%">
6165
6338
  <fo:block> </fo:block>
6166
6339
  </fo:block-container>
6167
- </xsl:template><xsl:template match="*[local-name() = 'toc']">
6340
+ </xsl:template><xsl:variable name="toc_level">
6341
+ <xsl:choose>
6342
+ <xsl:when test="1 = 2"/> <!-- to do https://github.com/metanorma/mn-native-pdf/issues/337: if there is value in xml -->
6343
+ <xsl:otherwise><!-- default value -->
6344
+
6345
+
6346
+
6347
+
6348
+
6349
+
6350
+
6351
+
6352
+
6353
+
6354
+
6355
+
6356
+
6357
+
6358
+
6359
+ 2
6360
+
6361
+
6362
+ </xsl:otherwise>
6363
+ </xsl:choose>
6364
+ </xsl:variable><xsl:template match="*[local-name() = 'toc']">
6168
6365
  <xsl:param name="colwidths"/>
6169
6366
  <xsl:variable name="colwidths_">
6170
6367
  <xsl:choose>
@@ -6699,12 +6896,15 @@
6699
6896
  <xsl:param name="default">left</xsl:param>
6700
6897
  <xsl:attribute name="text-align">
6701
6898
  <xsl:choose>
6702
- <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
6899
+ <xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
6703
6900
  <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
6704
6901
  <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
6705
6902
  <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
6706
6903
  </xsl:choose>
6707
6904
  </xsl:attribute>
6905
+ <xsl:if test="@align = 'indent'">
6906
+ <xsl:attribute name="margin-left">7mm</xsl:attribute>
6907
+ </xsl:if>
6708
6908
  </xsl:template><xsl:template name="number-to-words">
6709
6909
  <xsl:param name="number"/>
6710
6910
  <xsl:param name="first"/>
@@ -6801,4 +7001,14 @@
6801
7001
  </xsl:otherwise>
6802
7002
  </xsl:choose>
6803
7003
  </xsl:if>
7004
+ </xsl:template><xsl:template name="setAltText">
7005
+ <xsl:param name="value"/>
7006
+ <xsl:attribute name="fox:alt-text">
7007
+ <xsl:choose>
7008
+ <xsl:when test="normalize-space($value) != ''">
7009
+ <xsl:value-of select="$value"/>
7010
+ </xsl:when>
7011
+ <xsl:otherwise>_</xsl:otherwise>
7012
+ </xsl:choose>
7013
+ </xsl:attribute>
6804
7014
  </xsl:template></xsl:stylesheet>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
3
- VERSION = "1.8.0".freeze
3
+ VERSION = "1.8.4".freeze
4
4
  end
5
5
  end
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
 
31
31
  spec.add_dependency "metanorma-generic", "~> 1.11.0"
32
32
 
33
- spec.add_development_dependency "byebug", "~> 9.1"
33
+ spec.add_development_dependency "debug"
34
34
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
35
35
  spec.add_development_dependency "guard", "~> 2.14"
36
36
  spec.add_development_dependency "guard-rspec", "~> 4.7"
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: 1.8.0
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-10-25 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
@@ -25,19 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.11.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: byebug
28
+ name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '9.1'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '9.1'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: equivalent-xml
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
245
  - !ruby/object:Gem::Version
246
246
  version: '0'
247
247
  requirements: []
248
- rubygems_version: 3.2.22
248
+ rubygems_version: 3.2.32
249
249
  signing_key:
250
250
  specification_version: 4
251
251
  summary: metanorma-ribose lets you write Ribose standards in AsciiDoc.