metanorma-m3aawg 2.2.2 → 2.2.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: 9518c9b0243d2af6756c53c9e8c7ca134f47a27e8c1a7f3853e64afe5356c683
4
- data.tar.gz: 2ed5fda8227b7437f18bf8e2c3d3e79a78d1d1991e011498fdd3f5c79ced59c7
3
+ metadata.gz: daee9c6cb2f4a9ca2f0ba3848ff1b40c876d891781c03c65ea9a439154db640d
4
+ data.tar.gz: d5e1cafea8eab1a2b4169c32b96be652aa6befdeb12f3eb85594fc69c8859ebd
5
5
  SHA512:
6
- metadata.gz: 6918e142b7feb406bb74ce70ecb8c1b44ebc4cba50db0294e996f60abc75d671044acc10242ca73b455fba4fc3a2bbc5f71a67c19814094d014a26c35f820aa6
7
- data.tar.gz: 93b117b5c02bed144d6cbf4a014525c3dfa946f4e6aef6288d251554d85fe534dbef17c75083dfde1d3d8d960a3aa558625166623737efb08a2d37a2314822f9
6
+ metadata.gz: 38608fd80156d3152c9c1e8ea86bed27e719cc608123f8dc1f6bcb5e5cccd86bb884144b26e069d617ddb90d18f352d75d0d8793745bc3eb891dd67a78616afb
7
+ data.tar.gz: 24d9bb5565baeaea25991ed54a4f13cac425fb23618a371279eac9e62f9fdc5e30ae0cf2d31245bc4d4a409862f31894257f3ed8400b5df392ae2119a002886d
@@ -705,14 +705,14 @@
705
705
  BUT DON'T put any another conditions together with $namespace = '...' (such conditions will be ignored). For another conditions, please use nested xsl:if or xsl:choose -->
706
706
 
707
707
  <!--
708
- <misc-container>
708
+ <metanorma-extension>
709
709
  <presentation-metadata>
710
710
  <papersize>letter</papersize>
711
711
  </presentation-metadata>
712
- </misc-container>
712
+ </metanorma-extension>
713
713
  -->
714
714
 
715
- <xsl:variable name="papersize" select="java:toLowerCase(java:java.lang.String.new(normalize-space(//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'presentation-metadata']/*[local-name() = 'papersize'])))"/>
715
+ <xsl:variable name="papersize" select="java:toLowerCase(java:java.lang.String.new(normalize-space(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata']/*[local-name() = 'papersize'])))"/>
716
716
  <xsl:variable name="papersize_width_">
717
717
  <xsl:choose>
718
718
  <xsl:when test="$papersize = 'letter'">215.9</xsl:when>
@@ -829,7 +829,7 @@
829
829
  <xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
830
830
 
831
831
  <xsl:variable name="title-list-tables">
832
- <xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
832
+ <xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
833
833
  <xsl:value-of select="$toc_table_title"/>
834
834
  <xsl:if test="normalize-space($toc_table_title) = ''">
835
835
  <xsl:call-template name="getTitle">
@@ -839,7 +839,7 @@
839
839
  </xsl:variable>
840
840
 
841
841
  <xsl:variable name="title-list-figures">
842
- <xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
842
+ <xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
843
843
  <xsl:value-of select="$toc_figure_title"/>
844
844
  <xsl:if test="normalize-space($toc_figure_title) = ''">
845
845
  <xsl:call-template name="getTitle">
@@ -849,7 +849,7 @@
849
849
  </xsl:variable>
850
850
 
851
851
  <xsl:variable name="title-list-recommendations">
852
- <xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
852
+ <xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
853
853
  <xsl:value-of select="$toc_requirement_title"/>
854
854
  <xsl:if test="normalize-space($toc_requirement_title) = ''">
855
855
  <xsl:call-template name="getTitle">
@@ -921,7 +921,7 @@
921
921
  <xsl:variable name="root-style_" select="xalan:nodeset($root-style)"/>
922
922
 
923
923
  <xsl:variable name="additional_fonts_">
924
- <xsl:for-each select="//*[contains(local-name(), '-standard')][1]/*[local-name() = 'misc-container']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value'] | //*[contains(local-name(), '-standard')][1]/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value']">
924
+ <xsl:for-each select="//*[contains(local-name(), '-standard')][1]/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value'] | //*[contains(local-name(), '-standard')][1]/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value']">
925
925
  <xsl:value-of select="."/><xsl:if test="position() != last()">, </xsl:if>
926
926
  </xsl:for-each>
927
927
  </xsl:variable>
@@ -1965,10 +1965,10 @@
1965
1965
 
1966
1966
  <xsl:template name="processTablesFigures_Contents">
1967
1967
  <xsl:param name="always"/>
1968
- <xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
1968
+ <xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
1969
1969
  <xsl:call-template name="processTables_Contents"/>
1970
1970
  </xsl:if>
1971
- <xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
1971
+ <xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
1972
1972
  <xsl:call-template name="processFigures_Contents"/>
1973
1973
  </xsl:if>
1974
1974
  </xsl:template>
@@ -2311,6 +2311,8 @@
2311
2311
  <xsl:attribute name="margin-right"><xsl:value-of select="$margin-side"/>mm</xsl:attribute>
2312
2312
  </xsl:if>
2313
2313
 
2314
+ <xsl:call-template name="setBordersTableArray"/>
2315
+
2314
2316
  </xsl:element>
2315
2317
  </xsl:variable>
2316
2318
 
@@ -2455,6 +2457,10 @@
2455
2457
 
2456
2458
  </xsl:template>
2457
2459
 
2460
+ <xsl:template name="setBordersTableArray">
2461
+
2462
+ </xsl:template>
2463
+
2458
2464
  <xsl:template match="*[local-name()='table']/*[local-name() = 'name']">
2459
2465
  <xsl:param name="continued"/>
2460
2466
  <xsl:if test="normalize-space() != ''">
@@ -2929,6 +2935,8 @@
2929
2935
  <fo:table-row>
2930
2936
  <fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
2931
2937
 
2938
+ <xsl:call-template name="setBordersTableArray"/>
2939
+
2932
2940
  <!-- fn will be processed inside 'note' processing -->
2933
2941
 
2934
2942
  <!-- for BSI (not PAS) display Notes before footnotes -->
@@ -3050,6 +3058,8 @@
3050
3058
  <xsl:template match="*[local-name()='thead']/*[local-name()='tr']" priority="2">
3051
3059
  <fo:table-row xsl:use-attribute-sets="table-header-row-style">
3052
3060
 
3061
+ <xsl:call-template name="setBordersTableArray"/>
3062
+
3053
3063
  <xsl:call-template name="setTableRowAttributes"/>
3054
3064
 
3055
3065
  <xsl:apply-templates/>
@@ -3073,6 +3083,8 @@
3073
3083
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
3074
3084
  </xsl:if>
3075
3085
 
3086
+ <xsl:call-template name="setBordersTableArray"/>
3087
+
3076
3088
  <xsl:call-template name="setTableRowAttributes"/>
3077
3089
  <xsl:apply-templates/>
3078
3090
  </fo:table-row>
@@ -3092,6 +3104,8 @@
3092
3104
  <xsl:with-param name="default">center</xsl:with-param>
3093
3105
  </xsl:call-template>
3094
3106
 
3107
+ <xsl:call-template name="setBordersTableArray"/>
3108
+
3095
3109
  <xsl:if test="$lang = 'ar'">
3096
3110
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
3097
3111
  </xsl:if>
@@ -3144,6 +3158,8 @@
3144
3158
 
3145
3159
  <!-- bsi -->
3146
3160
 
3161
+ <xsl:call-template name="setBordersTableArray"/>
3162
+
3147
3163
  <xsl:if test=".//*[local-name() = 'table']"> <!-- if there is nested table -->
3148
3164
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
3149
3165
  </xsl:if>
@@ -6785,7 +6801,7 @@
6785
6801
  <!-- sourcecode -->
6786
6802
  <!-- =============== -->
6787
6803
 
6788
- <xsl:variable name="source-highlighter-css_" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'source-highlighter-css']"/>
6804
+ <xsl:variable name="source-highlighter-css_" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'source-highlighter-css']"/>
6789
6805
  <xsl:variable name="sourcecode_css_" select="java:org.metanorma.fop.Util.parseCSS($source-highlighter-css_)"/>
6790
6806
  <xsl:variable name="sourcecode_css" select="xalan:nodeset($sourcecode_css_)"/>
6791
6807
 
@@ -8853,8 +8869,8 @@
8853
8869
 
8854
8870
  <xsl:variable name="toc_level">
8855
8871
  <!-- https://www.metanorma.org/author/ref/document-attributes/ -->
8856
- <xsl:variable name="htmltoclevels" select="normalize-space(//*[local-name() = 'misc-container']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'HTML TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :htmltoclevels Number of table of contents levels to render in HTML/PDF output; used to override :toclevels:-->
8857
- <xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'misc-container']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
8872
+ <xsl:variable name="htmltoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'HTML TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :htmltoclevels Number of table of contents levels to render in HTML/PDF output; used to override :toclevels:-->
8873
+ <xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
8858
8874
  <xsl:choose>
8859
8875
  <xsl:when test="$htmltoclevels != ''"><xsl:value-of select="number($htmltoclevels)"/></xsl:when> <!-- if there is value in xml -->
8860
8876
  <xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
@@ -9843,6 +9859,7 @@
9843
9859
  <xsl:choose>
9844
9860
  <xsl:when test="$lang = 'ar' and $align = 'left'">start</xsl:when>
9845
9861
  <xsl:when test="$lang = 'ar' and $align = 'right'">end</xsl:when>
9862
+ <xsl:when test="$align = 'justified'">justify</xsl:when>
9846
9863
  <xsl:when test="$align != '' and not($align = 'indent')"><xsl:value-of select="$align"/></xsl:when>
9847
9864
  <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
9848
9865
  <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
@@ -705,14 +705,14 @@
705
705
  BUT DON'T put any another conditions together with $namespace = '...' (such conditions will be ignored). For another conditions, please use nested xsl:if or xsl:choose -->
706
706
 
707
707
  <!--
708
- <misc-container>
708
+ <metanorma-extension>
709
709
  <presentation-metadata>
710
710
  <papersize>letter</papersize>
711
711
  </presentation-metadata>
712
- </misc-container>
712
+ </metanorma-extension>
713
713
  -->
714
714
 
715
- <xsl:variable name="papersize" select="java:toLowerCase(java:java.lang.String.new(normalize-space(//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'presentation-metadata']/*[local-name() = 'papersize'])))"/>
715
+ <xsl:variable name="papersize" select="java:toLowerCase(java:java.lang.String.new(normalize-space(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata']/*[local-name() = 'papersize'])))"/>
716
716
  <xsl:variable name="papersize_width_">
717
717
  <xsl:choose>
718
718
  <xsl:when test="$papersize = 'letter'">215.9</xsl:when>
@@ -829,7 +829,7 @@
829
829
  <xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
830
830
 
831
831
  <xsl:variable name="title-list-tables">
832
- <xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
832
+ <xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
833
833
  <xsl:value-of select="$toc_table_title"/>
834
834
  <xsl:if test="normalize-space($toc_table_title) = ''">
835
835
  <xsl:call-template name="getTitle">
@@ -839,7 +839,7 @@
839
839
  </xsl:variable>
840
840
 
841
841
  <xsl:variable name="title-list-figures">
842
- <xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
842
+ <xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
843
843
  <xsl:value-of select="$toc_figure_title"/>
844
844
  <xsl:if test="normalize-space($toc_figure_title) = ''">
845
845
  <xsl:call-template name="getTitle">
@@ -849,7 +849,7 @@
849
849
  </xsl:variable>
850
850
 
851
851
  <xsl:variable name="title-list-recommendations">
852
- <xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
852
+ <xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
853
853
  <xsl:value-of select="$toc_requirement_title"/>
854
854
  <xsl:if test="normalize-space($toc_requirement_title) = ''">
855
855
  <xsl:call-template name="getTitle">
@@ -921,7 +921,7 @@
921
921
  <xsl:variable name="root-style_" select="xalan:nodeset($root-style)"/>
922
922
 
923
923
  <xsl:variable name="additional_fonts_">
924
- <xsl:for-each select="//*[contains(local-name(), '-standard')][1]/*[local-name() = 'misc-container']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value'] | //*[contains(local-name(), '-standard')][1]/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value']">
924
+ <xsl:for-each select="//*[contains(local-name(), '-standard')][1]/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value'] | //*[contains(local-name(), '-standard')][1]/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value']">
925
925
  <xsl:value-of select="."/><xsl:if test="position() != last()">, </xsl:if>
926
926
  </xsl:for-each>
927
927
  </xsl:variable>
@@ -1965,10 +1965,10 @@
1965
1965
 
1966
1966
  <xsl:template name="processTablesFigures_Contents">
1967
1967
  <xsl:param name="always"/>
1968
- <xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
1968
+ <xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
1969
1969
  <xsl:call-template name="processTables_Contents"/>
1970
1970
  </xsl:if>
1971
- <xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
1971
+ <xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
1972
1972
  <xsl:call-template name="processFigures_Contents"/>
1973
1973
  </xsl:if>
1974
1974
  </xsl:template>
@@ -2311,6 +2311,8 @@
2311
2311
  <xsl:attribute name="margin-right"><xsl:value-of select="$margin-side"/>mm</xsl:attribute>
2312
2312
  </xsl:if>
2313
2313
 
2314
+ <xsl:call-template name="setBordersTableArray"/>
2315
+
2314
2316
  </xsl:element>
2315
2317
  </xsl:variable>
2316
2318
 
@@ -2455,6 +2457,10 @@
2455
2457
 
2456
2458
  </xsl:template>
2457
2459
 
2460
+ <xsl:template name="setBordersTableArray">
2461
+
2462
+ </xsl:template>
2463
+
2458
2464
  <xsl:template match="*[local-name()='table']/*[local-name() = 'name']">
2459
2465
  <xsl:param name="continued"/>
2460
2466
  <xsl:if test="normalize-space() != ''">
@@ -2929,6 +2935,8 @@
2929
2935
  <fo:table-row>
2930
2936
  <fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
2931
2937
 
2938
+ <xsl:call-template name="setBordersTableArray"/>
2939
+
2932
2940
  <!-- fn will be processed inside 'note' processing -->
2933
2941
 
2934
2942
  <!-- for BSI (not PAS) display Notes before footnotes -->
@@ -3050,6 +3058,8 @@
3050
3058
  <xsl:template match="*[local-name()='thead']/*[local-name()='tr']" priority="2">
3051
3059
  <fo:table-row xsl:use-attribute-sets="table-header-row-style">
3052
3060
 
3061
+ <xsl:call-template name="setBordersTableArray"/>
3062
+
3053
3063
  <xsl:call-template name="setTableRowAttributes"/>
3054
3064
 
3055
3065
  <xsl:apply-templates/>
@@ -3073,6 +3083,8 @@
3073
3083
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
3074
3084
  </xsl:if>
3075
3085
 
3086
+ <xsl:call-template name="setBordersTableArray"/>
3087
+
3076
3088
  <xsl:call-template name="setTableRowAttributes"/>
3077
3089
  <xsl:apply-templates/>
3078
3090
  </fo:table-row>
@@ -3092,6 +3104,8 @@
3092
3104
  <xsl:with-param name="default">center</xsl:with-param>
3093
3105
  </xsl:call-template>
3094
3106
 
3107
+ <xsl:call-template name="setBordersTableArray"/>
3108
+
3095
3109
  <xsl:if test="$lang = 'ar'">
3096
3110
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
3097
3111
  </xsl:if>
@@ -3144,6 +3158,8 @@
3144
3158
 
3145
3159
  <!-- bsi -->
3146
3160
 
3161
+ <xsl:call-template name="setBordersTableArray"/>
3162
+
3147
3163
  <xsl:if test=".//*[local-name() = 'table']"> <!-- if there is nested table -->
3148
3164
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
3149
3165
  </xsl:if>
@@ -6785,7 +6801,7 @@
6785
6801
  <!-- sourcecode -->
6786
6802
  <!-- =============== -->
6787
6803
 
6788
- <xsl:variable name="source-highlighter-css_" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'source-highlighter-css']"/>
6804
+ <xsl:variable name="source-highlighter-css_" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'source-highlighter-css']"/>
6789
6805
  <xsl:variable name="sourcecode_css_" select="java:org.metanorma.fop.Util.parseCSS($source-highlighter-css_)"/>
6790
6806
  <xsl:variable name="sourcecode_css" select="xalan:nodeset($sourcecode_css_)"/>
6791
6807
 
@@ -8853,8 +8869,8 @@
8853
8869
 
8854
8870
  <xsl:variable name="toc_level">
8855
8871
  <!-- https://www.metanorma.org/author/ref/document-attributes/ -->
8856
- <xsl:variable name="htmltoclevels" select="normalize-space(//*[local-name() = 'misc-container']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'HTML TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :htmltoclevels Number of table of contents levels to render in HTML/PDF output; used to override :toclevels:-->
8857
- <xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'misc-container']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
8872
+ <xsl:variable name="htmltoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'HTML TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :htmltoclevels Number of table of contents levels to render in HTML/PDF output; used to override :toclevels:-->
8873
+ <xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
8858
8874
  <xsl:choose>
8859
8875
  <xsl:when test="$htmltoclevels != ''"><xsl:value-of select="number($htmltoclevels)"/></xsl:when> <!-- if there is value in xml -->
8860
8876
  <xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
@@ -9843,6 +9859,7 @@
9843
9859
  <xsl:choose>
9844
9860
  <xsl:when test="$lang = 'ar' and $align = 'left'">start</xsl:when>
9845
9861
  <xsl:when test="$lang = 'ar' and $align = 'right'">end</xsl:when>
9862
+ <xsl:when test="$align = 'justified'">justify</xsl:when>
9846
9863
  <xsl:when test="$align != '' and not($align = 'indent')"><xsl:value-of select="$align"/></xsl:when>
9847
9864
  <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
9848
9865
  <xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
@@ -1316,7 +1316,7 @@
1316
1316
  <value>commentaryOf</value>
1317
1317
  <value>hasCommentary</value>
1318
1318
  <value>related</value>
1319
- <value>complements</value>
1319
+ <value>hasComplement</value>
1320
1320
  <value>complementOf</value>
1321
1321
  <value>obsoletes</value>
1322
1322
  <value>obsoletedBy</value>
@@ -1580,7 +1580,7 @@
1580
1580
  </element>
1581
1581
  </define>
1582
1582
  <define name="misccontainer">
1583
- <element name="misc-container">
1583
+ <element name="metanorma-extension">
1584
1584
  <oneOrMore>
1585
1585
  <ref name="AnyElement"/>
1586
1586
  </oneOrMore>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module M3AAWG
3
- VERSION = "2.2.2".freeze
3
+ VERSION = "2.2.3".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-m3aawg
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-30 00:00:00.000000000 Z
11
+ date: 2023-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities