metanorma-plateau 1.2.14 → 1.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0014e7cf98799f9ee7a921932aaeadd753071bba0a34e5892c4a8a21b65c3ca4
|
|
4
|
+
data.tar.gz: 01a2c307f33cd0ef465dab9b61feaa2ee4e46c40ea04bcc4bcc5f913fa0ac8d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 63106ef098edcb00a800ada211bfaa7fd660393f62ffdc87394993bab4452181b885149b5decadc80463ae571e60fd5ba97f7e0cd02c4f792e7706892ae2420d
|
|
7
|
+
data.tar.gz: c17d6c95177e33d7c12e4352c1ba14fc9b145c70cbb0356b99c62d5508551f177508fd775c729ee4c1828cfe6c09de5b6dae4d9abf32a08d63b2ad9da76c796b
|
|
@@ -2193,6 +2193,7 @@
|
|
|
2193
2193
|
|
|
2194
2194
|
<!-- Characters -->
|
|
2195
2195
|
<xsl:variable name="linebreak">
</xsl:variable>
|
|
2196
|
+
<xsl:variable name="em_space"> </xsl:variable>
|
|
2196
2197
|
<xsl:variable name="tab_zh"> </xsl:variable>
|
|
2197
2198
|
<xsl:variable name="non_breaking_hyphen">‑</xsl:variable>
|
|
2198
2199
|
<xsl:variable name="thin_space"> </xsl:variable>
|
|
@@ -5685,7 +5686,15 @@
|
|
|
5685
5686
|
<!-- END requirement, recommendation, permission table -->
|
|
5686
5687
|
<!-- ========== -->
|
|
5687
5688
|
|
|
5689
|
+
<xsl:attribute-set name="terms-style">
|
|
5690
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
5691
|
+
</xsl:attribute-set>
|
|
5692
|
+
|
|
5693
|
+
<xsl:template name="refine_terms-style">
|
|
5694
|
+
</xsl:template>
|
|
5695
|
+
|
|
5688
5696
|
<xsl:attribute-set name="term-style">
|
|
5697
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
5689
5698
|
<xsl:attribute name="space-after">12pt</xsl:attribute>
|
|
5690
5699
|
</xsl:attribute-set> <!-- term-style -->
|
|
5691
5700
|
|
|
@@ -5786,7 +5795,10 @@
|
|
|
5786
5795
|
<xsl:template match="mn:terms">
|
|
5787
5796
|
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
|
5788
5797
|
<xsl:call-template name="setNamedDestination"/>
|
|
5789
|
-
<fo:block id="{@id}">
|
|
5798
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="terms-style">
|
|
5799
|
+
<xsl:call-template name="refine_terms-style"/>
|
|
5800
|
+
<xsl:call-template name="addTagElementT"/>
|
|
5801
|
+
|
|
5790
5802
|
<xsl:apply-templates/>
|
|
5791
5803
|
</fo:block>
|
|
5792
5804
|
</xsl:template>
|
|
@@ -5795,6 +5807,7 @@
|
|
|
5795
5807
|
<xsl:call-template name="setNamedDestination"/>
|
|
5796
5808
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
|
5797
5809
|
<xsl:call-template name="refine_term-style"/>
|
|
5810
|
+
<xsl:call-template name="addTagElementT"/>
|
|
5798
5811
|
|
|
5799
5812
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
|
5800
5813
|
</fo:block>
|
|
@@ -6025,7 +6038,9 @@
|
|
|
6025
6038
|
|
|
6026
6039
|
<xsl:template match="mn:definitions">
|
|
6027
6040
|
<xsl:call-template name="setNamedDestination"/>
|
|
6028
|
-
<fo:block id="{@id}">
|
|
6041
|
+
<fo:block id="{@id}" role="Sect">
|
|
6042
|
+
<xsl:call-template name="addTagElementT"/>
|
|
6043
|
+
|
|
6029
6044
|
<xsl:apply-templates/>
|
|
6030
6045
|
</fo:block>
|
|
6031
6046
|
</xsl:template>
|
|
@@ -6101,6 +6116,7 @@
|
|
|
6101
6116
|
<xsl:template match="mn:termexample/mn:p">
|
|
6102
6117
|
<xsl:variable name="element">inline
|
|
6103
6118
|
|
|
6119
|
+
<xsl:value-of select="$example_display_in"/>
|
|
6104
6120
|
</xsl:variable>
|
|
6105
6121
|
<xsl:choose>
|
|
6106
6122
|
<xsl:when test="contains($element, 'block')">
|
|
@@ -6491,6 +6507,9 @@
|
|
|
6491
6507
|
</xsl:attribute-set><!-- table-note-style -->
|
|
6492
6508
|
|
|
6493
6509
|
<xsl:template name="refine_table-note-style">
|
|
6510
|
+
<xsl:if test="self::mn:note">
|
|
6511
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
6512
|
+
</xsl:if>
|
|
6494
6513
|
<xsl:attribute name="margin-left"><xsl:value-of select="$tableAnnotationIndent"/></xsl:attribute>
|
|
6495
6514
|
</xsl:template> <!-- refine_table-note-style -->
|
|
6496
6515
|
|
|
@@ -7798,7 +7817,7 @@
|
|
|
7798
7817
|
</xsl:template> <!-- table/note -->
|
|
7799
7818
|
|
|
7800
7819
|
<xsl:template match="mn:table/*[self::mn:note or self::mn:example]/mn:p | mn:table/mn:tfoot//*[self::mn:note or self::mn:example]/mn:p" priority="2">
|
|
7801
|
-
<xsl:apply-templates
|
|
7820
|
+
<fo:inline role="P"><xsl:apply-templates/></fo:inline>
|
|
7802
7821
|
</xsl:template>
|
|
7803
7822
|
|
|
7804
7823
|
<!-- ============================ -->
|
|
@@ -8728,6 +8747,7 @@
|
|
|
8728
8747
|
<!-- ========================== -->
|
|
8729
8748
|
|
|
8730
8749
|
<xsl:attribute-set name="dl-block-style">
|
|
8750
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
8731
8751
|
<xsl:attribute name="margin-bottom">16pt</xsl:attribute>
|
|
8732
8752
|
</xsl:attribute-set>
|
|
8733
8753
|
|
|
@@ -8741,18 +8761,21 @@
|
|
|
8741
8761
|
</xsl:template>
|
|
8742
8762
|
|
|
8743
8763
|
<xsl:attribute-set name="dt-row-style">
|
|
8764
|
+
<xsl:attribute name="role">LI</xsl:attribute>
|
|
8744
8765
|
</xsl:attribute-set>
|
|
8745
8766
|
|
|
8746
8767
|
<xsl:template name="refine_dt-row-style">
|
|
8747
8768
|
</xsl:template>
|
|
8748
8769
|
|
|
8749
8770
|
<xsl:attribute-set name="dt-cell-style">
|
|
8771
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
8750
8772
|
</xsl:attribute-set>
|
|
8751
8773
|
|
|
8752
8774
|
<xsl:template name="refine_dt-cell-style">
|
|
8753
8775
|
</xsl:template> <!-- refine_dt-cell-style -->
|
|
8754
8776
|
|
|
8755
8777
|
<xsl:attribute-set name="dt-block-style">
|
|
8778
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
8756
8779
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
|
8757
8780
|
</xsl:attribute-set>
|
|
8758
8781
|
|
|
@@ -8773,6 +8796,7 @@
|
|
|
8773
8796
|
</xsl:template>
|
|
8774
8797
|
|
|
8775
8798
|
<xsl:attribute-set name="dd-cell-style">
|
|
8799
|
+
<xsl:attribute name="role">LBody</xsl:attribute>
|
|
8776
8800
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
|
8777
8801
|
</xsl:attribute-set>
|
|
8778
8802
|
|
|
@@ -8808,7 +8832,7 @@
|
|
|
8808
8832
|
<xsl:variable name="isAdded" select="@added"/>
|
|
8809
8833
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
|
8810
8834
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
|
8811
|
-
<fo:block-container xsl:use-attribute-sets="dl-block-style"
|
|
8835
|
+
<fo:block-container xsl:use-attribute-sets="dl-block-style">
|
|
8812
8836
|
|
|
8813
8837
|
<xsl:call-template name="refine_dl-block-style"/>
|
|
8814
8838
|
|
|
@@ -8932,7 +8956,7 @@
|
|
|
8932
8956
|
<fo:block id="{concat('table_if_start_',@id)}" keep-with-next="always" font-size="1pt">Start table '<xsl:value-of select="@id"/>'.</fo:block>
|
|
8933
8957
|
</xsl:if>
|
|
8934
8958
|
|
|
8935
|
-
<fo:table width="95%" table-layout="fixed">
|
|
8959
|
+
<fo:table width="95%" table-layout="fixed" role="L">
|
|
8936
8960
|
|
|
8937
8961
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
|
8938
8962
|
<xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
|
|
@@ -9000,7 +9024,7 @@
|
|
|
9000
9024
|
<xsl:with-param name="table_or_dl">dl</xsl:with-param>
|
|
9001
9025
|
</xsl:apply-templates>
|
|
9002
9026
|
|
|
9003
|
-
</xsl:when>
|
|
9027
|
+
</xsl:when> <!-- $isGenerateTableIF = 'true' -->
|
|
9004
9028
|
<xsl:otherwise>
|
|
9005
9029
|
|
|
9006
9030
|
<xsl:variable name="simple-table">
|
|
@@ -9084,7 +9108,7 @@
|
|
|
9084
9108
|
</xsl:choose>
|
|
9085
9109
|
<!-- $namespace = 'plateau' -->
|
|
9086
9110
|
|
|
9087
|
-
<fo:table-body>
|
|
9111
|
+
<fo:table-body role="SKIP">
|
|
9088
9112
|
|
|
9089
9113
|
<!-- DEBUG -->
|
|
9090
9114
|
<xsl:if test="$table_if_debug = 'true'">
|
|
@@ -9293,8 +9317,8 @@
|
|
|
9293
9317
|
<td number-columns-spanned="2">NOTE <xsl:apply-templates /> </td>
|
|
9294
9318
|
</tr>
|
|
9295
9319
|
-->
|
|
9296
|
-
<fo:table-row>
|
|
9297
|
-
<fo:table-cell number-columns-spanned="2">
|
|
9320
|
+
<fo:table-row role="SKIP">
|
|
9321
|
+
<fo:table-cell number-columns-spanned="2" role="SKIP">
|
|
9298
9322
|
<fo:block role="SKIP">
|
|
9299
9323
|
<xsl:call-template name="note"/>
|
|
9300
9324
|
</fo:block>
|
|
@@ -9358,7 +9382,7 @@
|
|
|
9358
9382
|
<xsl:call-template name="refine_dt-cell-style"/>
|
|
9359
9383
|
|
|
9360
9384
|
<xsl:call-template name="setNamedDestination"/>
|
|
9361
|
-
<fo:block xsl:use-attribute-sets="dt-block-style"
|
|
9385
|
+
<fo:block xsl:use-attribute-sets="dt-block-style">
|
|
9362
9386
|
|
|
9363
9387
|
<xsl:choose>
|
|
9364
9388
|
<xsl:when test="$isGenerateTableIF = 'true'">
|
|
@@ -9447,7 +9471,7 @@
|
|
|
9447
9471
|
</xsl:variable>
|
|
9448
9472
|
<xsl:choose>
|
|
9449
9473
|
<xsl:when test="$is_inline_element_after_where = 'true'">
|
|
9450
|
-
<fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
|
|
9474
|
+
<fo:inline role="SKIP"><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
|
|
9451
9475
|
</xsl:when>
|
|
9452
9476
|
<xsl:otherwise>
|
|
9453
9477
|
<xsl:apply-templates select="."/>
|
|
@@ -9720,6 +9744,7 @@
|
|
|
9720
9744
|
<!-- ====== -->
|
|
9721
9745
|
|
|
9722
9746
|
<xsl:attribute-set name="note-style">
|
|
9747
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
9723
9748
|
<xsl:attribute name="text-indent">0mm</xsl:attribute>
|
|
9724
9749
|
<xsl:attribute name="space-before">2pt</xsl:attribute>
|
|
9725
9750
|
</xsl:attribute-set> <!-- note-style -->
|
|
@@ -9735,6 +9760,7 @@
|
|
|
9735
9760
|
<xsl:variable name="note-body-indent-table">5mm</xsl:variable>
|
|
9736
9761
|
|
|
9737
9762
|
<xsl:attribute-set name="note-name-style">
|
|
9763
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
9738
9764
|
</xsl:attribute-set> <!-- note-name-style -->
|
|
9739
9765
|
|
|
9740
9766
|
<xsl:template name="refine_note-name-style">
|
|
@@ -9748,16 +9774,21 @@
|
|
|
9748
9774
|
</xsl:attribute-set>
|
|
9749
9775
|
|
|
9750
9776
|
<xsl:template name="refine_table-note-name-style">
|
|
9777
|
+
<xsl:if test="self::mn:note">
|
|
9778
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
9779
|
+
</xsl:if>
|
|
9751
9780
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
9752
9781
|
</xsl:template> <!-- refine_table-note-name-style -->
|
|
9753
9782
|
|
|
9754
9783
|
<xsl:attribute-set name="note-p-style">
|
|
9784
|
+
<xsl:attribute name="role">P</xsl:attribute>
|
|
9755
9785
|
</xsl:attribute-set> <!-- note-p-style -->
|
|
9756
9786
|
|
|
9757
9787
|
<xsl:template name="refine_note-p-style">
|
|
9758
9788
|
</xsl:template>
|
|
9759
9789
|
|
|
9760
9790
|
<xsl:attribute-set name="termnote-style">
|
|
9791
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
9761
9792
|
<xsl:attribute name="text-indent">0mm</xsl:attribute>
|
|
9762
9793
|
<xsl:attribute name="space-before">4pt</xsl:attribute>
|
|
9763
9794
|
<xsl:attribute name="space-after">4pt</xsl:attribute>
|
|
@@ -9767,12 +9798,14 @@
|
|
|
9767
9798
|
</xsl:template> <!-- refine_termnote-style -->
|
|
9768
9799
|
|
|
9769
9800
|
<xsl:attribute-set name="termnote-name-style">
|
|
9801
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
9770
9802
|
</xsl:attribute-set> <!-- termnote-name-style -->
|
|
9771
9803
|
|
|
9772
9804
|
<xsl:template name="refine_termnote-name-style">
|
|
9773
9805
|
</xsl:template>
|
|
9774
9806
|
|
|
9775
9807
|
<xsl:attribute-set name="termnote-p-style">
|
|
9808
|
+
<xsl:attribute name="role">P</xsl:attribute>
|
|
9776
9809
|
</xsl:attribute-set>
|
|
9777
9810
|
|
|
9778
9811
|
<xsl:template name="refine_termnote-p-style">
|
|
@@ -9787,7 +9820,7 @@
|
|
|
9787
9820
|
|
|
9788
9821
|
<xsl:call-template name="setNamedDestination"/>
|
|
9789
9822
|
|
|
9790
|
-
<fo:block-container xsl:use-attribute-sets="note-style"
|
|
9823
|
+
<fo:block-container xsl:use-attribute-sets="note-style">
|
|
9791
9824
|
<xsl:if test="not(parent::mn:references)">
|
|
9792
9825
|
<xsl:copy-of select="@id"/>
|
|
9793
9826
|
</xsl:if>
|
|
@@ -9797,11 +9830,11 @@
|
|
|
9797
9830
|
<xsl:call-template name="refine_note-style"/>
|
|
9798
9831
|
|
|
9799
9832
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
9800
|
-
<fo:block>
|
|
9833
|
+
<fo:block role="SKIP">
|
|
9801
9834
|
|
|
9802
9835
|
<xsl:call-template name="refine_note_block_style"/>
|
|
9803
9836
|
|
|
9804
|
-
<fo:inline xsl:use-attribute-sets="note-name-style"
|
|
9837
|
+
<fo:inline xsl:use-attribute-sets="note-name-style">
|
|
9805
9838
|
|
|
9806
9839
|
<xsl:apply-templates select="mn:fmt-name/mn:tab" mode="tab"/>
|
|
9807
9840
|
|
|
@@ -9824,7 +9857,15 @@
|
|
|
9824
9857
|
|
|
9825
9858
|
</fo:inline>
|
|
9826
9859
|
|
|
9827
|
-
<xsl:
|
|
9860
|
+
<xsl:choose>
|
|
9861
|
+
<xsl:when test="parent::mn:formattedref and ancestor::mn:bibitem">
|
|
9862
|
+
<fo:inline role="P"><xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/></fo:inline>
|
|
9863
|
+
</xsl:when>
|
|
9864
|
+
<xsl:otherwise>
|
|
9865
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
|
9866
|
+
</xsl:otherwise>
|
|
9867
|
+
</xsl:choose>
|
|
9868
|
+
|
|
9828
9869
|
</fo:block>
|
|
9829
9870
|
</fo:block-container>
|
|
9830
9871
|
</fo:block-container>
|
|
@@ -9840,13 +9881,13 @@
|
|
|
9840
9881
|
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
|
9841
9882
|
<xsl:choose>
|
|
9842
9883
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
|
9843
|
-
<fo:inline xsl:use-attribute-sets="note-p-style"
|
|
9884
|
+
<fo:inline xsl:use-attribute-sets="note-p-style">
|
|
9844
9885
|
<xsl:call-template name="refine_note-p-style"/>
|
|
9845
9886
|
<xsl:apply-templates/>
|
|
9846
9887
|
</fo:inline>
|
|
9847
9888
|
</xsl:when>
|
|
9848
9889
|
<xsl:otherwise>
|
|
9849
|
-
<fo:block xsl:use-attribute-sets="note-p-style"
|
|
9890
|
+
<fo:block xsl:use-attribute-sets="note-p-style">
|
|
9850
9891
|
<xsl:call-template name="refine_note-p-style"/>
|
|
9851
9892
|
<xsl:apply-templates/>
|
|
9852
9893
|
</fo:block>
|
|
@@ -10504,7 +10545,8 @@
|
|
|
10504
10545
|
|
|
10505
10546
|
<!-- debug scale='<xsl:value-of select="$scale"/>', indent='<xsl:value-of select="$indent"/>' -->
|
|
10506
10547
|
|
|
10507
|
-
<fo:external-graphic src="{$src}"
|
|
10548
|
+
<fo:external-graphic src="{$src}" vertical-align="middle">
|
|
10549
|
+
<xsl:call-template name="addAltText"/>
|
|
10508
10550
|
|
|
10509
10551
|
<xsl:if test="parent::mn:logo"> <!-- publisher's logo -->
|
|
10510
10552
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
|
@@ -10568,11 +10610,12 @@
|
|
|
10568
10610
|
<xsl:choose>
|
|
10569
10611
|
<xsl:when test="$isDeleted = 'true'">
|
|
10570
10612
|
<!-- enclose in svg -->
|
|
10571
|
-
<fo:instream-foreign-object
|
|
10613
|
+
<fo:instream-foreign-object>
|
|
10572
10614
|
<xsl:attribute name="width">100%</xsl:attribute>
|
|
10573
10615
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
|
10574
10616
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
|
10575
10617
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
|
10618
|
+
<xsl:call-template name="addAltText"/>
|
|
10576
10619
|
|
|
10577
10620
|
<xsl:apply-templates select="." mode="cross_image"/>
|
|
10578
10621
|
|
|
@@ -10588,7 +10631,8 @@
|
|
|
10588
10631
|
<xsl:value-of select="concat('scale=', $scale,', indent=', $indent)"/>
|
|
10589
10632
|
</fo:block> -->
|
|
10590
10633
|
|
|
10591
|
-
<fo:external-graphic src="{$src}"
|
|
10634
|
+
<fo:external-graphic src="{$src}">
|
|
10635
|
+
<xsl:call-template name="addAltText"/>
|
|
10592
10636
|
|
|
10593
10637
|
<xsl:choose>
|
|
10594
10638
|
<!-- default -->
|
|
@@ -10648,6 +10692,25 @@
|
|
|
10648
10692
|
</xsl:choose>
|
|
10649
10693
|
</xsl:template>
|
|
10650
10694
|
|
|
10695
|
+
<xsl:template name="addAltText">
|
|
10696
|
+
<xsl:param name="name">Image</xsl:param>
|
|
10697
|
+
<xsl:variable name="alt-text">
|
|
10698
|
+
<xsl:choose>
|
|
10699
|
+
<xsl:when test="self::mn:image and normalize-space(@alt) != ''">
|
|
10700
|
+
<xsl:value-of select="@alt"/>
|
|
10701
|
+
</xsl:when>
|
|
10702
|
+
<xsl:when test="normalize-space(../@alt) != ''">
|
|
10703
|
+
<xsl:value-of select="../@alt"/>
|
|
10704
|
+
</xsl:when>
|
|
10705
|
+
<xsl:when test="normalize-space(../mn:fmt-name) != ''">
|
|
10706
|
+
<xsl:value-of select="../mn:fmt-name"/>
|
|
10707
|
+
</xsl:when>
|
|
10708
|
+
<xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise>
|
|
10709
|
+
</xsl:choose>
|
|
10710
|
+
</xsl:variable>
|
|
10711
|
+
<xsl:attribute name="fox:alt-text"><xsl:value-of select="$alt-text"/></xsl:attribute>
|
|
10712
|
+
</xsl:template>
|
|
10713
|
+
|
|
10651
10714
|
<xsl:template name="setImageWidth">
|
|
10652
10715
|
<xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
|
|
10653
10716
|
<xsl:value-of select="@width"/>
|
|
@@ -10836,6 +10899,9 @@
|
|
|
10836
10899
|
|
|
10837
10900
|
<xsl:variable name="alt-text">
|
|
10838
10901
|
<xsl:choose>
|
|
10902
|
+
<xsl:when test="normalize-space(../@alt) != ''">
|
|
10903
|
+
<xsl:value-of select="../@alt"/>
|
|
10904
|
+
</xsl:when>
|
|
10839
10905
|
<xsl:when test="normalize-space(../mn:fmt-name) != ''">
|
|
10840
10906
|
<xsl:value-of select="../mn:fmt-name"/>
|
|
10841
10907
|
</xsl:when>
|
|
@@ -12440,12 +12506,14 @@
|
|
|
12440
12506
|
|
|
12441
12507
|
<!-- admonition -->
|
|
12442
12508
|
<xsl:attribute-set name="admonition-style">
|
|
12509
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
12443
12510
|
</xsl:attribute-set> <!-- admonition-style -->
|
|
12444
12511
|
|
|
12445
12512
|
<xsl:template name="refine_admonition-style">
|
|
12446
12513
|
</xsl:template>
|
|
12447
12514
|
|
|
12448
12515
|
<xsl:attribute-set name="admonition-container-style">
|
|
12516
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
12449
12517
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
|
12450
12518
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
|
12451
12519
|
</xsl:attribute-set> <!-- admonition-container-style -->
|
|
@@ -12454,6 +12522,7 @@
|
|
|
12454
12522
|
</xsl:template>
|
|
12455
12523
|
|
|
12456
12524
|
<xsl:attribute-set name="admonition-name-style">
|
|
12525
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
12457
12526
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
12458
12527
|
</xsl:attribute-set> <!-- admonition-name-style -->
|
|
12459
12528
|
|
|
@@ -12478,7 +12547,7 @@
|
|
|
12478
12547
|
<xsl:call-template name="refine_admonition-style"/>
|
|
12479
12548
|
|
|
12480
12549
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
12481
|
-
<fo:block-container xsl:use-attribute-sets="admonition-container-style"
|
|
12550
|
+
<fo:block-container xsl:use-attribute-sets="admonition-container-style">
|
|
12482
12551
|
|
|
12483
12552
|
<xsl:call-template name="refine_admonition-container-style"/>
|
|
12484
12553
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
@@ -13289,9 +13358,9 @@
|
|
|
13289
13358
|
<xsl:template name="fo_inline_bookmark">
|
|
13290
13359
|
<xsl:param name="bookmark_id"/>
|
|
13291
13360
|
<!-- <fo:inline id="{@id}" font-size="1pt"/> -->
|
|
13292
|
-
<fo:inline id="{@id}" font-size="1pt"><xsl:if test="preceding-sibling::node()[self::mn:fmt-annotation-start][@source = $bookmark_id] and following-sibling::node()[self::mn:fmt-annotation-end][@source = $bookmark_id]"><xsl:attribute name="line-height">0.1</xsl:attribute></xsl:if><xsl:value-of select="$hair_space"/></fo:inline>
|
|
13361
|
+
<fo:inline id="{@id}" font-size="1pt" role="SKIP"><xsl:if test="preceding-sibling::node()[self::mn:fmt-annotation-start][@source = $bookmark_id] and following-sibling::node()[self::mn:fmt-annotation-end][@source = $bookmark_id]"><xsl:attribute name="line-height">0.1</xsl:attribute></xsl:if><fo:wrapper role="artifact"><xsl:value-of select="$hair_space"/></fo:wrapper></fo:inline>
|
|
13293
13362
|
<!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
|
|
13294
|
-
<xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
|
|
13363
|
+
<xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt" role="SKIP"><fo:wrapper role="artifact"> </fo:wrapper></fo:inline></xsl:if>
|
|
13295
13364
|
</xsl:template>
|
|
13296
13365
|
<!-- =================== -->
|
|
13297
13366
|
<!-- End of Index processing -->
|
|
@@ -13459,6 +13528,13 @@
|
|
|
13459
13528
|
<!-- End Form's elements processing -->
|
|
13460
13529
|
<!-- =================== -->
|
|
13461
13530
|
|
|
13531
|
+
<xsl:attribute-set name="toc-container-style">
|
|
13532
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
13533
|
+
</xsl:attribute-set>
|
|
13534
|
+
|
|
13535
|
+
<xsl:template name="refine_toc-container-style">
|
|
13536
|
+
</xsl:template>
|
|
13537
|
+
|
|
13462
13538
|
<xsl:attribute-set name="toc-style">
|
|
13463
13539
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
13464
13540
|
</xsl:attribute-set>
|
|
@@ -14840,6 +14916,13 @@
|
|
|
14840
14916
|
<!-- ===================================== -->
|
|
14841
14917
|
<!-- ===================================== -->
|
|
14842
14918
|
|
|
14919
|
+
<xsl:attribute-set name="annex-style">
|
|
14920
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
14921
|
+
</xsl:attribute-set>
|
|
14922
|
+
|
|
14923
|
+
<xsl:template name="refine_annex-style">
|
|
14924
|
+
</xsl:template>
|
|
14925
|
+
|
|
14843
14926
|
<xsl:attribute-set name="annex-title-style">
|
|
14844
14927
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
14845
14928
|
<xsl:attribute name="font-size">14pt</xsl:attribute>
|
|
@@ -14850,6 +14933,40 @@
|
|
|
14850
14933
|
<xsl:template name="refine_annex-title-style">
|
|
14851
14934
|
</xsl:template>
|
|
14852
14935
|
|
|
14936
|
+
<xsl:template match="mn:annex[normalize-space() != '']">
|
|
14937
|
+
<xsl:choose>
|
|
14938
|
+
<xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
|
|
14939
|
+
<fo:block role="SKIP">
|
|
14940
|
+
<xsl:apply-templates/>
|
|
14941
|
+
</fo:block>
|
|
14942
|
+
</xsl:when>
|
|
14943
|
+
<xsl:otherwise>
|
|
14944
|
+
|
|
14945
|
+
<fo:block break-after="page"/>
|
|
14946
|
+
<xsl:call-template name="setNamedDestination"/>
|
|
14947
|
+
|
|
14948
|
+
<fo:block xsl:use-attribute-sets="annex-style">
|
|
14949
|
+
|
|
14950
|
+
<xsl:call-template name="setId"/>
|
|
14951
|
+
|
|
14952
|
+
<!-- <xsl:if test="$namespace = 'iso'"> -->
|
|
14953
|
+
<xsl:call-template name="addTagElementT"/>
|
|
14954
|
+
<!-- </xsl:if> -->
|
|
14955
|
+
|
|
14956
|
+
<xsl:call-template name="setBlockSpanAll"/>
|
|
14957
|
+
|
|
14958
|
+
<xsl:call-template name="refine_annex-style"/>
|
|
14959
|
+
|
|
14960
|
+
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
|
14961
|
+
|
|
14962
|
+
<fo:block role="SKIP">
|
|
14963
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
|
14964
|
+
</fo:block>
|
|
14965
|
+
</fo:block>
|
|
14966
|
+
</xsl:otherwise>
|
|
14967
|
+
</xsl:choose>
|
|
14968
|
+
</xsl:template>
|
|
14969
|
+
|
|
14853
14970
|
<xsl:attribute-set name="p-zzSTDTitle1-style">
|
|
14854
14971
|
</xsl:attribute-set>
|
|
14855
14972
|
|
|
@@ -15468,22 +15585,14 @@
|
|
|
15468
15585
|
</xsl:attribute-set>
|
|
15469
15586
|
|
|
15470
15587
|
<xsl:attribute-set name="clause-style">
|
|
15471
|
-
|
|
15588
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
15472
15589
|
</xsl:attribute-set>
|
|
15473
15590
|
|
|
15474
15591
|
<xsl:template name="refine_clause-style">
|
|
15475
|
-
|
|
15476
|
-
|
|
15477
|
-
|
|
15478
|
-
|
|
15479
|
-
<xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
|
|
15480
|
-
</xsl:call-template>
|
|
15481
|
-
</xsl:variable>
|
|
15482
|
-
<xsl:if test="$level >= 4">
|
|
15483
|
-
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
|
15484
|
-
</xsl:if>
|
|
15485
|
-
</xsl:if> -->
|
|
15486
|
-
</xsl:template>
|
|
15592
|
+
<xsl:if test="parent::mn:copyright-statement">
|
|
15593
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
15594
|
+
</xsl:if>
|
|
15595
|
+
</xsl:template> <!-- refine_clause-style -->
|
|
15487
15596
|
|
|
15488
15597
|
<!-- main sections -->
|
|
15489
15598
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
|
@@ -15493,6 +15602,10 @@
|
|
|
15493
15602
|
|
|
15494
15603
|
<xsl:call-template name="sections_element_style"/>
|
|
15495
15604
|
|
|
15605
|
+
<!-- <xsl:if test="$namespace = 'rsd'"> -->
|
|
15606
|
+
<xsl:call-template name="addTagElementT"/>
|
|
15607
|
+
<!-- </xsl:if> -->
|
|
15608
|
+
|
|
15496
15609
|
<xsl:call-template name="addReviewHelper"/>
|
|
15497
15610
|
|
|
15498
15611
|
<xsl:apply-templates/>
|
|
@@ -15555,16 +15668,15 @@
|
|
|
15555
15668
|
|
|
15556
15669
|
<xsl:template match="mn:clause[normalize-space() != '' or mn:figure or @id]" name="template_clause"> <!-- if clause isn't empty -->
|
|
15557
15670
|
<xsl:call-template name="setNamedDestination"/>
|
|
15558
|
-
<fo:block>
|
|
15559
|
-
<xsl:if test="parent::mn:copyright-statement">
|
|
15560
|
-
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
15561
|
-
</xsl:if>
|
|
15671
|
+
<fo:block role="Sect">
|
|
15562
15672
|
|
|
15563
15673
|
<xsl:call-template name="setId"/>
|
|
15564
15674
|
|
|
15675
|
+
<xsl:call-template name="addTagElementT"/>
|
|
15676
|
+
|
|
15565
15677
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
15566
15678
|
|
|
15567
|
-
<xsl:call-template name="
|
|
15679
|
+
<xsl:call-template name="refine_clause-style"/>
|
|
15568
15680
|
|
|
15569
15681
|
<xsl:call-template name="addReviewHelper"/>
|
|
15570
15682
|
|
|
@@ -15572,41 +15684,6 @@
|
|
|
15572
15684
|
</fo:block>
|
|
15573
15685
|
</xsl:template>
|
|
15574
15686
|
|
|
15575
|
-
<xsl:template name="refine_clause_style">
|
|
15576
|
-
</xsl:template> <!-- refine_clause_style -->
|
|
15577
|
-
|
|
15578
|
-
<xsl:template match="mn:annex[normalize-space() != '']">
|
|
15579
|
-
<xsl:choose>
|
|
15580
|
-
<xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
|
|
15581
|
-
<fo:block>
|
|
15582
|
-
<xsl:apply-templates/>
|
|
15583
|
-
</fo:block>
|
|
15584
|
-
</xsl:when>
|
|
15585
|
-
<xsl:otherwise>
|
|
15586
|
-
|
|
15587
|
-
<fo:block break-after="page"/>
|
|
15588
|
-
<xsl:call-template name="setNamedDestination"/>
|
|
15589
|
-
|
|
15590
|
-
<fo:block id="{@id}">
|
|
15591
|
-
|
|
15592
|
-
<xsl:call-template name="setBlockSpanAll"/>
|
|
15593
|
-
|
|
15594
|
-
<xsl:call-template name="refine_annex_style"/>
|
|
15595
|
-
|
|
15596
|
-
</fo:block>
|
|
15597
|
-
|
|
15598
|
-
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
|
15599
|
-
|
|
15600
|
-
<fo:block>
|
|
15601
|
-
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
|
15602
|
-
</fo:block>
|
|
15603
|
-
</xsl:otherwise>
|
|
15604
|
-
</xsl:choose>
|
|
15605
|
-
</xsl:template>
|
|
15606
|
-
|
|
15607
|
-
<xsl:template name="refine_annex_style">
|
|
15608
|
-
</xsl:template>
|
|
15609
|
-
|
|
15610
15687
|
<xsl:template match="mn:name/text() | mn:fmt-name/text()">
|
|
15611
15688
|
<!-- 0xA0 to space replacement -->
|
|
15612
15689
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
|
@@ -15722,6 +15799,13 @@
|
|
|
15722
15799
|
<xsl:template name="addTagElementT">
|
|
15723
15800
|
<xsl:variable name="title_">
|
|
15724
15801
|
<xsl:apply-templates select="mn:fmt-title"/>
|
|
15802
|
+
<xsl:if test="not(mn:fmt-title) and self::mn:term">
|
|
15803
|
+
<name>
|
|
15804
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
|
15805
|
+
<xsl:text> </xsl:text>
|
|
15806
|
+
<xsl:apply-templates select="mn:fmt-preferred/node()[1]"/>
|
|
15807
|
+
</name>
|
|
15808
|
+
</xsl:if>
|
|
15725
15809
|
</xsl:variable>
|
|
15726
15810
|
<xsl:variable name="title__">
|
|
15727
15811
|
<xsl:for-each select="xalan:nodeset($title_)/*/node()">
|
|
@@ -15731,7 +15815,7 @@
|
|
|
15731
15815
|
</xsl:choose>
|
|
15732
15816
|
</xsl:for-each>
|
|
15733
15817
|
</xsl:variable>
|
|
15734
|
-
<xsl:variable name="title" select="normalize-space($title__)"/>
|
|
15818
|
+
<xsl:variable name="title" select="normalize-space(translate($title__, concat($em_space,' 
'), ' '))"/>
|
|
15735
15819
|
<xsl:if test="$title != ''">
|
|
15736
15820
|
<xsl:attribute name="fox:title">
|
|
15737
15821
|
<xsl:if test="ancestor::mn:sections">
|
|
@@ -1527,12 +1527,16 @@ to indicate that the index range covers a range of locations between the current
|
|
|
1527
1527
|
<ref name="index-primary">
|
|
1528
1528
|
<a:documentation>Primary index term to be recorded at the current location</a:documentation>
|
|
1529
1529
|
</ref>
|
|
1530
|
-
<
|
|
1531
|
-
<
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1530
|
+
<optional>
|
|
1531
|
+
<ref name="index-secondary">
|
|
1532
|
+
<a:documentation>Secondary index term to be recorded at the current location</a:documentation>
|
|
1533
|
+
</ref>
|
|
1534
|
+
</optional>
|
|
1535
|
+
<optional>
|
|
1536
|
+
<ref name="index-tertiary">
|
|
1537
|
+
<a:documentation>Tertiary index term to be recorded at the current </a:documentation>
|
|
1538
|
+
</ref>
|
|
1539
|
+
</optional>
|
|
1536
1540
|
</element>
|
|
1537
1541
|
</define>
|
|
1538
1542
|
<define name="index-xref">
|
|
@@ -1547,12 +1551,16 @@ The text in the inline element is the primary index term to be be cross-referenc
|
|
|
1547
1551
|
<ref name="index-primary">
|
|
1548
1552
|
<a:documentation>The primary index term to be cross-referenced</a:documentation>
|
|
1549
1553
|
</ref>
|
|
1550
|
-
<
|
|
1551
|
-
<
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1554
|
+
<optional>
|
|
1555
|
+
<ref name="index-secondary">
|
|
1556
|
+
<a:documentation>The secondary index term to be cross-referenced</a:documentation>
|
|
1557
|
+
</ref>
|
|
1558
|
+
</optional>
|
|
1559
|
+
<optional>
|
|
1560
|
+
<ref name="index-tertiary">
|
|
1561
|
+
<a:documentation>The tertiary index term to be cross-referenced</a:documentation>
|
|
1562
|
+
</ref>
|
|
1563
|
+
</optional>
|
|
1556
1564
|
<element name="target">
|
|
1557
1565
|
<a:documentation>The index term to be cross-referenced to</a:documentation>
|
|
1558
1566
|
<oneOrMore>
|
|
@@ -1933,7 +1941,8 @@ or as the string "auto"</a:documentation>
|
|
|
1933
1941
|
<define name="mathml">
|
|
1934
1942
|
<a:documentation>Encoding of MathML: the official W3C MathML 4 grammar (namespace
|
|
1935
1943
|
http://www.w3.org/1998/Math/MathML), via the metanorma wrapper in
|
|
1936
|
-
grammars/mathml/. See grammars/mathml/README.adoc
|
|
1944
|
+
grammars/mathml/. See grammars/mathml/README.adoc, basicdoc-models#35,
|
|
1945
|
+
and the MathML 3 -> 4 migration: basicdoc-models#39 / metanorma#585.</a:documentation>
|
|
1937
1946
|
<externalRef href="metanorma-mathml.rng"/>
|
|
1938
1947
|
</define>
|
|
1939
1948
|
<define name="StemAttributes">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
|
3
|
-
<!-- VERSION v2.
|
|
3
|
+
<!-- VERSION v2.2.0 -->
|
|
4
4
|
|
|
5
5
|
<!--
|
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|