metanorma-itu 1.4.0 → 1.4.3

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: 289ed3fed7e3c8d9a52e0de224e73db390c93a2378ae0a25c66d2ff12af255fd
4
- data.tar.gz: fba11b78fa3488fc1f1ac9642d602e8eafc7bff0d4b9af09bbf929f868f89eb8
3
+ metadata.gz: ae257da364e6e0e56b29c4da7d8a403812f5fd07ab0e8e5e538e0ff4ddcee57b
4
+ data.tar.gz: d20a7c7aa06a781127d74bec94efa03a08cb77e1ab190b6afe31a7401ea3a960
5
5
  SHA512:
6
- metadata.gz: bf6c0f9873c415a381273594e030864096e5a7a58fd4a9771021fd8dff447abfeea3fa307f51025cf8a2fbb5e4d91da3ac562000ec466c26c82db973a6508da9
7
- data.tar.gz: fd0be35b3e8a1e280a7098e5966bc3ff3f976708b15ea9bc5a46bf911e36b47d2ccd243eab31a23abfea88f83d0f8b6aebccaaad7052b3d7277d23c70b40093b
6
+ metadata.gz: d8b5d6a0cd4300502e68e1527d833d30bd6fef92d5a9bf5d3829d00942e93fdb06bd9bdb64d55e01dcb65f5b982a29c8c8283b52966f9abb7e7f8f3ac57b039c
7
+ data.tar.gz: 4d9f70319c6e95b856c3df39f414dfe32b68e5149a6bc1982b95e86aff68bbbbc73a6eec34f0882786b756ef17b8d21a2dbeb403d9882239231ba7b32858151e
@@ -8,9 +8,6 @@ require_relative "./cleanup"
8
8
 
9
9
  module Asciidoctor
10
10
  module ITU
11
- # A {Converter} implementation that generates RSD output, and a document
12
- # schema encapsulation of the document for validation
13
- #
14
11
  class Converter < Standoc::Converter
15
12
  XML_ROOT_TAG = "itu-standard".freeze
16
13
  XML_NAMESPACE = "https://www.metanorma.org/ns/itu".freeze
@@ -72,11 +69,11 @@ module Asciidoctor
72
69
 
73
70
  def sectiontype_streamline(ret)
74
71
  case ret
75
- when "definitions" then "terms and definitions"
72
+ when "definitions", "terms defined elsewhere",
73
+ "terms defined in this recommendation"
74
+ "terms and definitions"
76
75
  when "abbreviations and acronyms" then "symbols and abbreviated terms"
77
76
  when "references" then "normative references"
78
- when "terms defined elsewhere" then "terms and definitions"
79
- when "terms defined in this recommendation" then "terms and definitions"
80
77
  else
81
78
  super
82
79
  end
@@ -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>
@@ -1814,9 +1814,6 @@
1814
1814
  <optional>
1815
1815
  <ref name="termsubject"/>
1816
1816
  </optional>
1817
- <optional>
1818
- <ref name="termusage"/>
1819
- </optional>
1820
1817
  <oneOrMore>
1821
1818
  <ref name="termdefinition"/>
1822
1819
  </oneOrMore>
@@ -1880,17 +1877,37 @@
1880
1877
  </attribute>
1881
1878
  </optional>
1882
1879
  <optional>
1883
- <attribute name="geographicArea"/>
1880
+ <attribute name="geographic-area"/>
1884
1881
  </optional>
1885
1882
  <choice>
1886
1883
  <ref name="expression_designation"/>
1887
1884
  <ref name="letter_symbol_designation"/>
1888
1885
  <ref name="graphical_symbol_designation"/>
1889
1886
  </choice>
1887
+ <optional>
1888
+ <ref name="fieldofapplication"/>
1889
+ </optional>
1890
+ <optional>
1891
+ <ref name="usageinfo"/>
1892
+ </optional>
1890
1893
  <zeroOrMore>
1891
1894
  <ref name="termsource"/>
1892
1895
  </zeroOrMore>
1893
1896
  </define>
1897
+ <define name="fieldofapplication">
1898
+ <element name="field-of-application">
1899
+ <oneOrMore>
1900
+ <ref name="PureTextElement"/>
1901
+ </oneOrMore>
1902
+ </element>
1903
+ </define>
1904
+ <define name="usageinfo">
1905
+ <element name="usage-info">
1906
+ <oneOrMore>
1907
+ <ref name="PureTextElement"/>
1908
+ </oneOrMore>
1909
+ </element>
1910
+ </define>
1894
1911
  <define name="letter_symbol_designation">
1895
1912
  <element name="letter-symbol">
1896
1913
  <optional>
@@ -1946,7 +1963,7 @@
1946
1963
  </zeroOrMore>
1947
1964
  </element>
1948
1965
  <optional>
1949
- <element name="abbreviationType">
1966
+ <element name="abbreviation-type">
1950
1967
  <ref name="AbbreviationType"/>
1951
1968
  </element>
1952
1969
  </optional>
@@ -1956,7 +1973,7 @@
1956
1973
  </element>
1957
1974
  </optional>
1958
1975
  <optional>
1959
- <element name="grammarInfo">
1976
+ <element name="grammar-info">
1960
1977
  <ref name="Grammar"/>
1961
1978
  </element>
1962
1979
  </optional>
@@ -1983,6 +2000,11 @@
1983
2000
  <ref name="GrammarGender"/>
1984
2001
  </element>
1985
2002
  </zeroOrMore>
2003
+ <zeroOrMore>
2004
+ <element name="number">
2005
+ <ref name="GrammarNumber"/>
2006
+ </element>
2007
+ </zeroOrMore>
1986
2008
  <optional>
1987
2009
  <element name="isPreposition">
1988
2010
  <data type="boolean"/>
@@ -2014,7 +2036,7 @@
2014
2036
  </element>
2015
2037
  </optional>
2016
2038
  <zeroOrMore>
2017
- <element name="grammarvalue">
2039
+ <element name="grammar-value">
2018
2040
  <text/>
2019
2041
  </element>
2020
2042
  </zeroOrMore>
@@ -2027,6 +2049,13 @@
2027
2049
  <value>common</value>
2028
2050
  </choice>
2029
2051
  </define>
2052
+ <define name="GrammarNumber">
2053
+ <choice>
2054
+ <value>singular</value>
2055
+ <value>dual</value>
2056
+ <value>plural</value>
2057
+ </choice>
2058
+ </define>
2030
2059
  <define name="termdomain">
2031
2060
  <element name="domain">
2032
2061
  <oneOrMore>
@@ -2041,13 +2070,6 @@
2041
2070
  </oneOrMore>
2042
2071
  </element>
2043
2072
  </define>
2044
- <define name="termusage">
2045
- <element name="usageinfo">
2046
- <oneOrMore>
2047
- <ref name="BasicBlock"/>
2048
- </oneOrMore>
2049
- </element>
2050
- </define>
2051
2073
  <define name="termdefinition">
2052
2074
  <element name="definition">
2053
2075
  <choice>
@@ -2061,9 +2083,17 @@
2061
2083
  </element>
2062
2084
  </define>
2063
2085
  <define name="verbaldefinition">
2064
- <element name="verbaldefinition">
2086
+ <element name="verbal-definition">
2065
2087
  <oneOrMore>
2066
- <ref name="paragraph"/>
2088
+ <choice>
2089
+ <ref name="paragraph"/>
2090
+ <ref name="dl"/>
2091
+ <ref name="ol"/>
2092
+ <ref name="ul"/>
2093
+ <ref name="table"/>
2094
+ <ref name="figure"/>
2095
+ <ref name="formula"/>
2096
+ </choice>
2067
2097
  </oneOrMore>
2068
2098
  <zeroOrMore>
2069
2099
  <ref name="termsource"/>
@@ -2071,7 +2101,7 @@
2071
2101
  </element>
2072
2102
  </define>
2073
2103
  <define name="nonverbalrep">
2074
- <element name="nonverbalrepresentation">
2104
+ <element name="non-verbal-representation">
2075
2105
  <oneOrMore>
2076
2106
  <choice>
2077
2107
  <ref name="table"/>
@@ -2163,6 +2193,12 @@
2163
2193
  <value>modified</value>
2164
2194
  </choice>
2165
2195
  </attribute>
2196
+ <attribute name="type">
2197
+ <choice>
2198
+ <value>authoritative</value>
2199
+ <value>lineage</value>
2200
+ </choice>
2201
+ </attribute>
2166
2202
  <ref name="origin"/>
2167
2203
  <optional>
2168
2204
  <ref name="modification"/>
@@ -130,7 +130,7 @@ module Asciidoctor
130
130
 
131
131
  def termdef_style(xmldoc)
132
132
  xmldoc.xpath("//term").each do |t|
133
- para = t.at("./definition/verbaldefinition") || return
133
+ para = t.at("./definition/verbal-definition") || return
134
134
  term = t.at("./preferred//name").text
135
135
  termdef_warn(term, /^[A-Z][a-z]+/, t, term, "term is not lowercase")
136
136
  termdef_warn(para.text, /^[a-z]/, t, term,
@@ -33,7 +33,7 @@ module IsoDoc
33
33
 
34
34
  def term_cleanup2(docxml)
35
35
  docxml.xpath("//p[@class = 'TermNum']").each do |d|
36
- d1 = d.next_element and d1.name == "p" or next
36
+ (d1 = d.next_element and d1.name == "p") or next
37
37
  d1.children.each { |e| e.parent = d }
38
38
  d1.remove
39
39
  end
@@ -959,7 +959,7 @@ h4 {
959
959
  font-size: 1.2em; }
960
960
 
961
961
  /* Terms */
962
- .TermNum, .Terms, .AltTerms {
962
+ .TermNum {
963
963
  font-weight: 400; }
964
964
 
965
965
  h2.TermNum {
@@ -294,7 +294,7 @@ h4 {
294
294
 
295
295
  /* Terms */
296
296
 
297
- .TermNum, .Terms, .AltTerms {
297
+ .TermNum {
298
298
  font-weight: 400;
299
299
  }
300
300
 
@@ -445,7 +445,6 @@ p.Terms, li.Terms, div.Terms {
445
445
  mso-fareast-font-family: {{headerfont}};
446
446
  mso-bidi-font-family: {{headerfont}};
447
447
  mso-ansi-language: EN-GB;
448
- font-weight: bold;
449
448
  mso-bidi-font-weight: normal; }
450
449
 
451
450
  p.AltTerms, li.AltTerms, div.AltTerms {
@@ -427,7 +427,6 @@ p.Terms, li.Terms, div.Terms
427
427
  mso-fareast-font-family:$headerfont;
428
428
  mso-bidi-font-family:$headerfont;
429
429
  mso-ansi-language:EN-GB;
430
- font-weight:bold;
431
430
  mso-bidi-font-weight:normal;}
432
431
  p.AltTerms, li.AltTerms, div.AltTerms
433
432
  {mso-style-name:"AltTerm\(s\)";
@@ -1768,9 +1768,10 @@
1768
1768
  <xsl:otherwise>5mm</xsl:otherwise>
1769
1769
  </xsl:choose>
1770
1770
  </xsl:attribute>
1771
- <xsl:apply-templates select="ancestor::itu:term/itu:name" mode="presentation"/>
1771
+ <xsl:apply-templates select="ancestor::itu:term[1]/itu:name" mode="presentation"/>
1772
1772
  </fo:inline>
1773
1773
  <fo:inline font-weight="bold">
1774
+ <xsl:call-template name="setStyle_preferred"/>
1774
1775
  <xsl:apply-templates/>
1775
1776
  </fo:inline>
1776
1777
  <xsl:if test="../itu:termsource/itu:origin">
@@ -2922,7 +2923,8 @@
2922
2923
  <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"/>
2923
2924
 
2924
2925
  </xsl:template><xsl:template name="processMainSectionsDefault_Contents">
2925
- <xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
2926
+
2927
+ <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']]">
2926
2928
  <xsl:sort select="@displayorder" data-type="number"/>
2927
2929
  <xsl:apply-templates select="." mode="contents"/>
2928
2930
  </xsl:for-each>
@@ -2932,7 +2934,7 @@
2932
2934
  <xsl:apply-templates select="." mode="contents"/>
2933
2935
  </xsl:for-each>
2934
2936
 
2935
- <xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]">
2937
+ <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')]]">
2936
2938
  <xsl:sort select="@displayorder" data-type="number"/>
2937
2939
  <xsl:apply-templates select="." mode="contents"/>
2938
2940
  </xsl:for-each>
@@ -4418,6 +4420,7 @@
4418
4420
  </xsl:if>
4419
4421
 
4420
4422
  <fo:block margin-top="6pt">
4423
+ <xsl:copy-of select="@id"/>
4421
4424
 
4422
4425
 
4423
4426
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -5267,14 +5270,18 @@
5267
5270
  </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
5268
5271
  <fo:inline><xsl:apply-templates/></fo:inline>
5269
5272
  </xsl:template><xsl:template match="*[local-name() = 'terms']">
5273
+ <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
5270
5274
  <fo:block id="{@id}">
5271
5275
  <xsl:apply-templates/>
5272
5276
  </fo:block>
5273
5277
  </xsl:template><xsl:template match="*[local-name() = 'term']">
5278
+ <!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
5274
5279
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
5275
5280
 
5276
5281
 
5277
-
5282
+ <xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
5283
+
5284
+ </xsl:if>
5278
5285
  <xsl:apply-templates/>
5279
5286
  </fo:block>
5280
5287
  </xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
@@ -5698,12 +5705,12 @@
5698
5705
  </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">
5699
5706
  <xsl:apply-templates mode="contents"/>
5700
5707
  <xsl:text> </xsl:text>
5701
- </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">
5708
+ </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">
5702
5709
  <xsl:apply-templates mode="bookmarks"/>
5703
5710
  <xsl:text> </xsl:text>
5704
5711
  </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">
5705
5712
  <xsl:value-of select="."/>
5706
- </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">
5713
+ </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">
5707
5714
  <xsl:value-of select="."/>
5708
5715
  </xsl:template><xsl:template match="node()" mode="contents">
5709
5716
  <xsl:apply-templates mode="contents"/>
@@ -5973,6 +5980,8 @@
5973
5980
 
5974
5981
 
5975
5982
 
5983
+
5984
+
5976
5985
  <fo:block xsl:use-attribute-sets="sourcecode-style">
5977
5986
  <xsl:variable name="_font-size">
5978
5987
 
@@ -6006,13 +6015,17 @@
6006
6015
 
6007
6016
 
6008
6017
 
6018
+
6019
+
6009
6020
  <xsl:apply-templates/>
6010
6021
  </fo:block>
6011
-
6022
+
6012
6023
 
6013
6024
  <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
6014
6025
 
6015
6026
 
6027
+
6028
+
6016
6029
  </fo:block-container>
6017
6030
  </fo:block-container>
6018
6031
  </xsl:template><xsl:template match="*[local-name()='sourcecode']/text()" priority="2">
@@ -6248,7 +6261,8 @@
6248
6261
  </fo:block>
6249
6262
  </fo:table-cell>
6250
6263
  </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
6251
- <fo:block font-size="11pt" color="rgb(237, 193, 35)"> <!-- font-weight="bold" margin-bottom="4pt" text-align="center" -->
6264
+ <fo:block font-size="11pt">
6265
+
6252
6266
  <xsl:apply-templates/>
6253
6267
  </fo:block>
6254
6268
  </xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
@@ -6364,13 +6378,15 @@
6364
6378
  <!-- <xsl:apply-templates /> -->
6365
6379
  <xsl:copy-of select="$termsource_text"/>
6366
6380
  </xsl:when>
6367
- <xsl:otherwise>
6381
+ <xsl:otherwise>
6382
+
6368
6383
 
6369
6384
  <xsl:text>[</xsl:text>
6370
6385
 
6371
6386
  <!-- <xsl:apply-templates /> -->
6372
6387
  <xsl:copy-of select="$termsource_text"/>
6373
6388
 
6389
+
6374
6390
  <xsl:text>]</xsl:text>
6375
6391
 
6376
6392
  </xsl:otherwise>
@@ -6437,12 +6453,20 @@
6437
6453
  </xsl:template><xsl:template match="*[local-name() = 'author']">
6438
6454
  <xsl:text>— </xsl:text>
6439
6455
  <xsl:apply-templates/>
6440
- </xsl:template><xsl:template match="*[local-name() = 'eref']">
6456
+ </xsl:template><xsl:variable name="bibitem_hidden_">
6457
+ <xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
6458
+ <xsl:copy-of select="."/>
6459
+ </xsl:for-each>
6460
+ <xsl:for-each select="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem']">
6461
+ <xsl:copy-of select="."/>
6462
+ </xsl:for-each>
6463
+ </xsl:variable><xsl:variable name="bibitem_hidden" select="xalan:nodeset($bibitem_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
6441
6464
 
6442
6465
  <xsl:variable name="bibitemid">
6443
6466
  <xsl:choose>
6444
- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"/>
6445
- <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6467
+ <!-- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"></xsl:when>
6468
+ <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"></xsl:when> -->
6469
+ <xsl:when test="$bibitem_hidden/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
6446
6470
  <xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
6447
6471
  </xsl:choose>
6448
6472
  </xsl:variable>
@@ -6534,10 +6558,10 @@
6534
6558
  </xsl:choose>
6535
6559
  </xsl:variable>
6536
6560
 
6537
- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
6561
+ <!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
6538
6562
 
6539
6563
  <xsl:choose>
6540
- <xsl:when test="$language = 'zh'">
6564
+ <xsl:when test="$lang = 'zh'">
6541
6565
  <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
6542
6566
  </xsl:when>
6543
6567
  <xsl:when test="../../@inline-header = 'true'">
@@ -6571,24 +6595,29 @@
6571
6595
  </xsl:template><xsl:template match="*[local-name() = 'deprecates']">
6572
6596
  <xsl:variable name="title-deprecated">
6573
6597
 
6574
-
6575
- <xsl:call-template name="getTitle">
6576
- <xsl:with-param name="name" select="'title-deprecated'"/>
6598
+ <xsl:call-template name="getLocalizedString">
6599
+ <xsl:with-param name="key">deprecated</xsl:with-param>
6577
6600
  </xsl:call-template>
6578
6601
 
6602
+
6579
6603
  </xsl:variable>
6580
6604
  <fo:block xsl:use-attribute-sets="deprecates-style">
6581
6605
  <xsl:value-of select="$title-deprecated"/>: <xsl:apply-templates/>
6582
6606
  </fo:block>
6607
+ </xsl:template><xsl:template name="setStyle_preferred">
6608
+ <xsl:if test="*[local-name() = 'strong']">
6609
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
6610
+ </xsl:if>
6583
6611
  </xsl:template><xsl:template match="*[local-name() = 'definition']">
6584
6612
  <fo:block xsl:use-attribute-sets="definition-style">
6585
6613
  <xsl:apply-templates/>
6586
6614
  </fo:block>
6587
6615
  </xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]">
6588
6616
  <xsl:apply-templates/>
6589
- </xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p']">
6617
+ </xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p'][1]">
6590
6618
  <fo:inline> <xsl:apply-templates/></fo:inline>
6591
- <fo:block> </fo:block>
6619
+ <!-- <fo:block>&#xA0;</fo:block> -->
6620
+ <fo:block/>
6592
6621
  </xsl:template><xsl:template match="/*/*[local-name() = 'sections']/*" priority="2">
6593
6622
 
6594
6623
  <fo:block>
@@ -7528,12 +7557,15 @@
7528
7557
  <xsl:param name="default">left</xsl:param>
7529
7558
  <xsl:attribute name="text-align">
7530
7559
  <xsl:choose>
7531
- <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
7560
+ <xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
7532
7561
  <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
7533
7562
  <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
7534
7563
  <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
7535
7564
  </xsl:choose>
7536
7565
  </xsl:attribute>
7566
+ <xsl:if test="@align = 'indent'">
7567
+ <xsl:attribute name="margin-left">7mm</xsl:attribute>
7568
+ </xsl:if>
7537
7569
  </xsl:template><xsl:template name="number-to-words">
7538
7570
  <xsl:param name="number"/>
7539
7571
  <xsl:param name="first"/>