metanorma-iho 1.3.10 → 1.3.11
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 +4 -4
- data/lib/isodoc/iho/html/htmlstyle.css +4 -0
- data/lib/isodoc/iho/iho.specification.xsl +161 -77
- data/lib/isodoc/iho/iho.standard.xsl +161 -77
- data/lib/metanorma/iho/basicdoc.rng +22 -13
- data/lib/metanorma/iho/isodoc.rng +1 -1
- data/lib/metanorma/iho/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 100b5f6c6d6fce44f839dcf4557aff142d7c1d849b8f6cad449a95b661b560a1
|
|
4
|
+
data.tar.gz: ca922377ab14ae8f23c30470715b646d087f56a38301b7bced17d78326476aee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c3950dab3f53f3eb6c8b0afa02f5544b66282ced77113cf6535bea03286159fdb0dd859916f156f52e44a73faed8934c523d8a4b882c078b97a45141dc35b76
|
|
7
|
+
data.tar.gz: 7351f1838009919ccf3e68f1608b29c0265405de6a929376351bff2ef1664bfc6b08c6768fadbb2136f1b4b1f673b8b54c958a7459ebb8179b19f4c0ddd148a1
|
|
@@ -1441,6 +1441,7 @@
|
|
|
1441
1441
|
|
|
1442
1442
|
<!-- Characters -->
|
|
1443
1443
|
<xsl:variable name="linebreak">
</xsl:variable>
|
|
1444
|
+
<xsl:variable name="em_space"> </xsl:variable>
|
|
1444
1445
|
<xsl:variable name="tab_zh"> </xsl:variable>
|
|
1445
1446
|
<xsl:variable name="non_breaking_hyphen">‑</xsl:variable>
|
|
1446
1447
|
<xsl:variable name="thin_space"> </xsl:variable>
|
|
@@ -4810,7 +4811,15 @@
|
|
|
4810
4811
|
<!-- END requirement, recommendation, permission table -->
|
|
4811
4812
|
<!-- ========== -->
|
|
4812
4813
|
|
|
4814
|
+
<xsl:attribute-set name="terms-style">
|
|
4815
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
4816
|
+
</xsl:attribute-set>
|
|
4817
|
+
|
|
4818
|
+
<xsl:template name="refine_terms-style">
|
|
4819
|
+
</xsl:template>
|
|
4820
|
+
|
|
4813
4821
|
<xsl:attribute-set name="term-style">
|
|
4822
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
4814
4823
|
<xsl:attribute name="margin-bottom">10pt</xsl:attribute>
|
|
4815
4824
|
</xsl:attribute-set> <!-- term-style -->
|
|
4816
4825
|
|
|
@@ -4908,7 +4917,10 @@
|
|
|
4908
4917
|
<xsl:template match="mn:terms">
|
|
4909
4918
|
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
|
4910
4919
|
<xsl:call-template name="setNamedDestination"/>
|
|
4911
|
-
<fo:block id="{@id}">
|
|
4920
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="terms-style">
|
|
4921
|
+
<xsl:call-template name="refine_terms-style"/>
|
|
4922
|
+
<xsl:call-template name="addTagElementT"/>
|
|
4923
|
+
|
|
4912
4924
|
<xsl:apply-templates/>
|
|
4913
4925
|
</fo:block>
|
|
4914
4926
|
</xsl:template>
|
|
@@ -4917,6 +4929,7 @@
|
|
|
4917
4929
|
<xsl:call-template name="setNamedDestination"/>
|
|
4918
4930
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
|
4919
4931
|
<xsl:call-template name="refine_term-style"/>
|
|
4932
|
+
<xsl:call-template name="addTagElementT"/>
|
|
4920
4933
|
|
|
4921
4934
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
|
4922
4935
|
</fo:block>
|
|
@@ -5147,7 +5160,9 @@
|
|
|
5147
5160
|
|
|
5148
5161
|
<xsl:template match="mn:definitions">
|
|
5149
5162
|
<xsl:call-template name="setNamedDestination"/>
|
|
5150
|
-
<fo:block id="{@id}">
|
|
5163
|
+
<fo:block id="{@id}" role="Sect">
|
|
5164
|
+
<xsl:call-template name="addTagElementT"/>
|
|
5165
|
+
|
|
5151
5166
|
<xsl:apply-templates/>
|
|
5152
5167
|
</fo:block>
|
|
5153
5168
|
</xsl:template>
|
|
@@ -5230,6 +5245,7 @@
|
|
|
5230
5245
|
<xsl:template match="mn:termexample/mn:p">
|
|
5231
5246
|
<xsl:variable name="element">inline
|
|
5232
5247
|
|
|
5248
|
+
<xsl:value-of select="$example_display_in"/>
|
|
5233
5249
|
</xsl:variable>
|
|
5234
5250
|
<xsl:choose>
|
|
5235
5251
|
<xsl:when test="contains($element, 'block')">
|
|
@@ -5624,6 +5640,9 @@
|
|
|
5624
5640
|
</xsl:attribute-set><!-- table-note-style -->
|
|
5625
5641
|
|
|
5626
5642
|
<xsl:template name="refine_table-note-style">
|
|
5643
|
+
<xsl:if test="self::mn:note">
|
|
5644
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
5645
|
+
</xsl:if>
|
|
5627
5646
|
</xsl:template> <!-- refine_table-note-style -->
|
|
5628
5647
|
|
|
5629
5648
|
<xsl:attribute-set name="table-fn-style">
|
|
@@ -6925,7 +6944,7 @@
|
|
|
6925
6944
|
</xsl:template> <!-- table/note -->
|
|
6926
6945
|
|
|
6927
6946
|
<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">
|
|
6928
|
-
<xsl:apply-templates
|
|
6947
|
+
<fo:inline role="P"><xsl:apply-templates/></fo:inline>
|
|
6929
6948
|
</xsl:template>
|
|
6930
6949
|
|
|
6931
6950
|
<!-- ============================ -->
|
|
@@ -7854,6 +7873,7 @@
|
|
|
7854
7873
|
<!-- ========================== -->
|
|
7855
7874
|
|
|
7856
7875
|
<xsl:attribute-set name="dl-block-style">
|
|
7876
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
7857
7877
|
</xsl:attribute-set>
|
|
7858
7878
|
|
|
7859
7879
|
<xsl:template name="refine_dl-block-style">
|
|
@@ -7863,18 +7883,21 @@
|
|
|
7863
7883
|
</xsl:template>
|
|
7864
7884
|
|
|
7865
7885
|
<xsl:attribute-set name="dt-row-style">
|
|
7886
|
+
<xsl:attribute name="role">LI</xsl:attribute>
|
|
7866
7887
|
</xsl:attribute-set>
|
|
7867
7888
|
|
|
7868
7889
|
<xsl:template name="refine_dt-row-style">
|
|
7869
7890
|
</xsl:template>
|
|
7870
7891
|
|
|
7871
7892
|
<xsl:attribute-set name="dt-cell-style">
|
|
7893
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
7872
7894
|
</xsl:attribute-set>
|
|
7873
7895
|
|
|
7874
7896
|
<xsl:template name="refine_dt-cell-style">
|
|
7875
7897
|
</xsl:template> <!-- refine_dt-cell-style -->
|
|
7876
7898
|
|
|
7877
7899
|
<xsl:attribute-set name="dt-block-style">
|
|
7900
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
7878
7901
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
|
7879
7902
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
7880
7903
|
</xsl:attribute-set>
|
|
@@ -7892,6 +7915,7 @@
|
|
|
7892
7915
|
</xsl:template>
|
|
7893
7916
|
|
|
7894
7917
|
<xsl:attribute-set name="dd-cell-style">
|
|
7918
|
+
<xsl:attribute name="role">LBody</xsl:attribute>
|
|
7895
7919
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
|
7896
7920
|
</xsl:attribute-set>
|
|
7897
7921
|
|
|
@@ -7927,7 +7951,7 @@
|
|
|
7927
7951
|
<xsl:variable name="isAdded" select="@added"/>
|
|
7928
7952
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
|
7929
7953
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
|
7930
|
-
<fo:block-container xsl:use-attribute-sets="dl-block-style"
|
|
7954
|
+
<fo:block-container xsl:use-attribute-sets="dl-block-style">
|
|
7931
7955
|
|
|
7932
7956
|
<xsl:call-template name="refine_dl-block-style"/>
|
|
7933
7957
|
|
|
@@ -8047,7 +8071,7 @@
|
|
|
8047
8071
|
<fo:block id="{concat('table_if_start_',@id)}" keep-with-next="always" font-size="1pt">Start table '<xsl:value-of select="@id"/>'.</fo:block>
|
|
8048
8072
|
</xsl:if>
|
|
8049
8073
|
|
|
8050
|
-
<fo:table width="95%" table-layout="fixed">
|
|
8074
|
+
<fo:table width="95%" table-layout="fixed" role="L">
|
|
8051
8075
|
|
|
8052
8076
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
|
8053
8077
|
<xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
|
|
@@ -8116,7 +8140,7 @@
|
|
|
8116
8140
|
<xsl:with-param name="table_or_dl">dl</xsl:with-param>
|
|
8117
8141
|
</xsl:apply-templates>
|
|
8118
8142
|
|
|
8119
|
-
</xsl:when>
|
|
8143
|
+
</xsl:when> <!-- $isGenerateTableIF = 'true' -->
|
|
8120
8144
|
<xsl:otherwise>
|
|
8121
8145
|
|
|
8122
8146
|
<xsl:variable name="simple-table">
|
|
@@ -8171,7 +8195,7 @@
|
|
|
8171
8195
|
<xsl:with-param name="isContainsKeepTogetherTag" select="$isContainsKeepTogetherTag"/>
|
|
8172
8196
|
</xsl:call-template>
|
|
8173
8197
|
|
|
8174
|
-
<fo:table-body>
|
|
8198
|
+
<fo:table-body role="SKIP">
|
|
8175
8199
|
|
|
8176
8200
|
<!-- DEBUG -->
|
|
8177
8201
|
<xsl:if test="$table_if_debug = 'true'">
|
|
@@ -8382,8 +8406,8 @@
|
|
|
8382
8406
|
<td number-columns-spanned="2">NOTE <xsl:apply-templates /> </td>
|
|
8383
8407
|
</tr>
|
|
8384
8408
|
-->
|
|
8385
|
-
<fo:table-row>
|
|
8386
|
-
<fo:table-cell number-columns-spanned="2">
|
|
8409
|
+
<fo:table-row role="SKIP">
|
|
8410
|
+
<fo:table-cell number-columns-spanned="2" role="SKIP">
|
|
8387
8411
|
<fo:block role="SKIP">
|
|
8388
8412
|
<xsl:call-template name="note"/>
|
|
8389
8413
|
</fo:block>
|
|
@@ -8447,7 +8471,7 @@
|
|
|
8447
8471
|
<xsl:call-template name="refine_dt-cell-style"/>
|
|
8448
8472
|
|
|
8449
8473
|
<xsl:call-template name="setNamedDestination"/>
|
|
8450
|
-
<fo:block xsl:use-attribute-sets="dt-block-style"
|
|
8474
|
+
<fo:block xsl:use-attribute-sets="dt-block-style">
|
|
8451
8475
|
|
|
8452
8476
|
<xsl:choose>
|
|
8453
8477
|
<xsl:when test="$isGenerateTableIF = 'true'">
|
|
@@ -8536,7 +8560,7 @@
|
|
|
8536
8560
|
</xsl:variable>
|
|
8537
8561
|
<xsl:choose>
|
|
8538
8562
|
<xsl:when test="$is_inline_element_after_where = 'true'">
|
|
8539
|
-
<fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
|
|
8563
|
+
<fo:inline role="SKIP"><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
|
|
8540
8564
|
</xsl:when>
|
|
8541
8565
|
<xsl:otherwise>
|
|
8542
8566
|
<xsl:apply-templates select="."/>
|
|
@@ -8813,6 +8837,7 @@
|
|
|
8813
8837
|
<!-- ====== -->
|
|
8814
8838
|
|
|
8815
8839
|
<xsl:attribute-set name="note-style">
|
|
8840
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
8816
8841
|
<!-- <xsl:attribute name="font-size">11pt</xsl:attribute> -->
|
|
8817
8842
|
<xsl:attribute name="margin-top">4pt</xsl:attribute>
|
|
8818
8843
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
@@ -8826,6 +8851,7 @@
|
|
|
8826
8851
|
<xsl:variable name="note-body-indent-table">5mm</xsl:variable>
|
|
8827
8852
|
|
|
8828
8853
|
<xsl:attribute-set name="note-name-style">
|
|
8854
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
8829
8855
|
<!-- <xsl:attribute name="font-size">11pt</xsl:attribute> -->
|
|
8830
8856
|
<xsl:attribute name="padding-right">2mm</xsl:attribute>
|
|
8831
8857
|
</xsl:attribute-set> <!-- note-name-style -->
|
|
@@ -8839,9 +8865,13 @@
|
|
|
8839
8865
|
</xsl:attribute-set>
|
|
8840
8866
|
|
|
8841
8867
|
<xsl:template name="refine_table-note-name-style">
|
|
8868
|
+
<xsl:if test="self::mn:note">
|
|
8869
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
8870
|
+
</xsl:if>
|
|
8842
8871
|
</xsl:template> <!-- refine_table-note-name-style -->
|
|
8843
8872
|
|
|
8844
8873
|
<xsl:attribute-set name="note-p-style">
|
|
8874
|
+
<xsl:attribute name="role">P</xsl:attribute>
|
|
8845
8875
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
|
8846
8876
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
|
8847
8877
|
</xsl:attribute-set> <!-- note-p-style -->
|
|
@@ -8850,6 +8880,7 @@
|
|
|
8850
8880
|
</xsl:template>
|
|
8851
8881
|
|
|
8852
8882
|
<xsl:attribute-set name="termnote-style">
|
|
8883
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
8853
8884
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
|
8854
8885
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
|
8855
8886
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
|
@@ -8860,12 +8891,14 @@
|
|
|
8860
8891
|
</xsl:template> <!-- refine_termnote-style -->
|
|
8861
8892
|
|
|
8862
8893
|
<xsl:attribute-set name="termnote-name-style">
|
|
8894
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
8863
8895
|
</xsl:attribute-set> <!-- termnote-name-style -->
|
|
8864
8896
|
|
|
8865
8897
|
<xsl:template name="refine_termnote-name-style">
|
|
8866
8898
|
</xsl:template>
|
|
8867
8899
|
|
|
8868
8900
|
<xsl:attribute-set name="termnote-p-style">
|
|
8901
|
+
<xsl:attribute name="role">P</xsl:attribute>
|
|
8869
8902
|
</xsl:attribute-set>
|
|
8870
8903
|
|
|
8871
8904
|
<xsl:template name="refine_termnote-p-style">
|
|
@@ -8880,7 +8913,7 @@
|
|
|
8880
8913
|
|
|
8881
8914
|
<xsl:call-template name="setNamedDestination"/>
|
|
8882
8915
|
|
|
8883
|
-
<fo:block-container xsl:use-attribute-sets="note-style"
|
|
8916
|
+
<fo:block-container xsl:use-attribute-sets="note-style">
|
|
8884
8917
|
<xsl:if test="not(parent::mn:references)">
|
|
8885
8918
|
<xsl:copy-of select="@id"/>
|
|
8886
8919
|
</xsl:if>
|
|
@@ -8890,11 +8923,11 @@
|
|
|
8890
8923
|
<xsl:call-template name="refine_note-style"/>
|
|
8891
8924
|
|
|
8892
8925
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
8893
|
-
<fo:block>
|
|
8926
|
+
<fo:block role="SKIP">
|
|
8894
8927
|
|
|
8895
8928
|
<xsl:call-template name="refine_note_block_style"/>
|
|
8896
8929
|
|
|
8897
|
-
<fo:inline xsl:use-attribute-sets="note-name-style"
|
|
8930
|
+
<fo:inline xsl:use-attribute-sets="note-name-style">
|
|
8898
8931
|
|
|
8899
8932
|
<xsl:apply-templates select="mn:fmt-name/mn:tab" mode="tab"/>
|
|
8900
8933
|
|
|
@@ -8917,7 +8950,15 @@
|
|
|
8917
8950
|
|
|
8918
8951
|
</fo:inline>
|
|
8919
8952
|
|
|
8920
|
-
<xsl:
|
|
8953
|
+
<xsl:choose>
|
|
8954
|
+
<xsl:when test="parent::mn:formattedref and ancestor::mn:bibitem">
|
|
8955
|
+
<fo:inline role="P"><xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/></fo:inline>
|
|
8956
|
+
</xsl:when>
|
|
8957
|
+
<xsl:otherwise>
|
|
8958
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
|
8959
|
+
</xsl:otherwise>
|
|
8960
|
+
</xsl:choose>
|
|
8961
|
+
|
|
8921
8962
|
</fo:block>
|
|
8922
8963
|
</fo:block-container>
|
|
8923
8964
|
</fo:block-container>
|
|
@@ -8930,13 +8971,13 @@
|
|
|
8930
8971
|
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
|
8931
8972
|
<xsl:choose>
|
|
8932
8973
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
|
8933
|
-
<fo:inline xsl:use-attribute-sets="note-p-style"
|
|
8974
|
+
<fo:inline xsl:use-attribute-sets="note-p-style">
|
|
8934
8975
|
<xsl:call-template name="refine_note-p-style"/>
|
|
8935
8976
|
<xsl:apply-templates/>
|
|
8936
8977
|
</fo:inline>
|
|
8937
8978
|
</xsl:when>
|
|
8938
8979
|
<xsl:otherwise>
|
|
8939
|
-
<fo:block xsl:use-attribute-sets="note-p-style"
|
|
8980
|
+
<fo:block xsl:use-attribute-sets="note-p-style">
|
|
8940
8981
|
<xsl:call-template name="refine_note-p-style"/>
|
|
8941
8982
|
<xsl:apply-templates/>
|
|
8942
8983
|
</fo:block>
|
|
@@ -9585,7 +9626,8 @@
|
|
|
9585
9626
|
|
|
9586
9627
|
<!-- debug scale='<xsl:value-of select="$scale"/>', indent='<xsl:value-of select="$indent"/>' -->
|
|
9587
9628
|
|
|
9588
|
-
<fo:external-graphic src="{$src}"
|
|
9629
|
+
<fo:external-graphic src="{$src}" vertical-align="middle">
|
|
9630
|
+
<xsl:call-template name="addAltText"/>
|
|
9589
9631
|
|
|
9590
9632
|
<xsl:if test="parent::mn:logo"> <!-- publisher's logo -->
|
|
9591
9633
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
|
@@ -9649,11 +9691,12 @@
|
|
|
9649
9691
|
<xsl:choose>
|
|
9650
9692
|
<xsl:when test="$isDeleted = 'true'">
|
|
9651
9693
|
<!-- enclose in svg -->
|
|
9652
|
-
<fo:instream-foreign-object
|
|
9694
|
+
<fo:instream-foreign-object>
|
|
9653
9695
|
<xsl:attribute name="width">100%</xsl:attribute>
|
|
9654
9696
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
|
9655
9697
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
|
9656
9698
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
|
9699
|
+
<xsl:call-template name="addAltText"/>
|
|
9657
9700
|
|
|
9658
9701
|
<xsl:apply-templates select="." mode="cross_image"/>
|
|
9659
9702
|
|
|
@@ -9669,7 +9712,8 @@
|
|
|
9669
9712
|
<xsl:value-of select="concat('scale=', $scale,', indent=', $indent)"/>
|
|
9670
9713
|
</fo:block> -->
|
|
9671
9714
|
|
|
9672
|
-
<fo:external-graphic src="{$src}"
|
|
9715
|
+
<fo:external-graphic src="{$src}">
|
|
9716
|
+
<xsl:call-template name="addAltText"/>
|
|
9673
9717
|
|
|
9674
9718
|
<xsl:choose>
|
|
9675
9719
|
<!-- default -->
|
|
@@ -9729,6 +9773,25 @@
|
|
|
9729
9773
|
</xsl:choose>
|
|
9730
9774
|
</xsl:template>
|
|
9731
9775
|
|
|
9776
|
+
<xsl:template name="addAltText">
|
|
9777
|
+
<xsl:param name="name">Image</xsl:param>
|
|
9778
|
+
<xsl:variable name="alt-text">
|
|
9779
|
+
<xsl:choose>
|
|
9780
|
+
<xsl:when test="self::mn:image and normalize-space(@alt) != ''">
|
|
9781
|
+
<xsl:value-of select="@alt"/>
|
|
9782
|
+
</xsl:when>
|
|
9783
|
+
<xsl:when test="normalize-space(../@alt) != ''">
|
|
9784
|
+
<xsl:value-of select="../@alt"/>
|
|
9785
|
+
</xsl:when>
|
|
9786
|
+
<xsl:when test="normalize-space(../mn:fmt-name) != ''">
|
|
9787
|
+
<xsl:value-of select="../mn:fmt-name"/>
|
|
9788
|
+
</xsl:when>
|
|
9789
|
+
<xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise>
|
|
9790
|
+
</xsl:choose>
|
|
9791
|
+
</xsl:variable>
|
|
9792
|
+
<xsl:attribute name="fox:alt-text"><xsl:value-of select="$alt-text"/></xsl:attribute>
|
|
9793
|
+
</xsl:template>
|
|
9794
|
+
|
|
9732
9795
|
<xsl:template name="setImageWidth">
|
|
9733
9796
|
<xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
|
|
9734
9797
|
<xsl:value-of select="@width"/>
|
|
@@ -9917,6 +9980,9 @@
|
|
|
9917
9980
|
|
|
9918
9981
|
<xsl:variable name="alt-text">
|
|
9919
9982
|
<xsl:choose>
|
|
9983
|
+
<xsl:when test="normalize-space(../@alt) != ''">
|
|
9984
|
+
<xsl:value-of select="../@alt"/>
|
|
9985
|
+
</xsl:when>
|
|
9920
9986
|
<xsl:when test="normalize-space(../mn:fmt-name) != ''">
|
|
9921
9987
|
<xsl:value-of select="../mn:fmt-name"/>
|
|
9922
9988
|
</xsl:when>
|
|
@@ -11513,6 +11579,7 @@
|
|
|
11513
11579
|
|
|
11514
11580
|
<!-- admonition -->
|
|
11515
11581
|
<xsl:attribute-set name="admonition-style">
|
|
11582
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
11516
11583
|
<xsl:attribute name="border">0.5pt solid rgb(79, 129, 189)</xsl:attribute>
|
|
11517
11584
|
<xsl:attribute name="color">rgb(79, 129, 189)</xsl:attribute>
|
|
11518
11585
|
<xsl:attribute name="margin-left">16mm</xsl:attribute>
|
|
@@ -11524,6 +11591,7 @@
|
|
|
11524
11591
|
</xsl:template>
|
|
11525
11592
|
|
|
11526
11593
|
<xsl:attribute-set name="admonition-container-style">
|
|
11594
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
11527
11595
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
|
11528
11596
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
|
11529
11597
|
<xsl:attribute name="padding">2mm</xsl:attribute>
|
|
@@ -11534,6 +11602,7 @@
|
|
|
11534
11602
|
</xsl:template>
|
|
11535
11603
|
|
|
11536
11604
|
<xsl:attribute-set name="admonition-name-style">
|
|
11605
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
11537
11606
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
11538
11607
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
11539
11608
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
@@ -11564,7 +11633,7 @@
|
|
|
11564
11633
|
<xsl:call-template name="refine_admonition-style"/>
|
|
11565
11634
|
|
|
11566
11635
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
11567
|
-
<fo:block-container xsl:use-attribute-sets="admonition-container-style"
|
|
11636
|
+
<fo:block-container xsl:use-attribute-sets="admonition-container-style">
|
|
11568
11637
|
|
|
11569
11638
|
<xsl:call-template name="refine_admonition-container-style"/>
|
|
11570
11639
|
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
|
@@ -12389,9 +12458,9 @@
|
|
|
12389
12458
|
<xsl:template name="fo_inline_bookmark">
|
|
12390
12459
|
<xsl:param name="bookmark_id"/>
|
|
12391
12460
|
<!-- <fo:inline id="{@id}" font-size="1pt"/> -->
|
|
12392
|
-
<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>
|
|
12461
|
+
<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>
|
|
12393
12462
|
<!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
|
|
12394
|
-
<xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
|
|
12463
|
+
<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>
|
|
12395
12464
|
</xsl:template>
|
|
12396
12465
|
<!-- =================== -->
|
|
12397
12466
|
<!-- End of Index processing -->
|
|
@@ -12559,6 +12628,13 @@
|
|
|
12559
12628
|
<!-- End Form's elements processing -->
|
|
12560
12629
|
<!-- =================== -->
|
|
12561
12630
|
|
|
12631
|
+
<xsl:attribute-set name="toc-container-style">
|
|
12632
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
12633
|
+
</xsl:attribute-set>
|
|
12634
|
+
|
|
12635
|
+
<xsl:template name="refine_toc-container-style">
|
|
12636
|
+
</xsl:template>
|
|
12637
|
+
|
|
12562
12638
|
<xsl:attribute-set name="toc-style">
|
|
12563
12639
|
<xsl:attribute name="line-height">115%</xsl:attribute>
|
|
12564
12640
|
</xsl:attribute-set>
|
|
@@ -13996,6 +14072,13 @@
|
|
|
13996
14072
|
<!-- ===================================== -->
|
|
13997
14073
|
<!-- ===================================== -->
|
|
13998
14074
|
|
|
14075
|
+
<xsl:attribute-set name="annex-style">
|
|
14076
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
14077
|
+
</xsl:attribute-set>
|
|
14078
|
+
|
|
14079
|
+
<xsl:template name="refine_annex-style">
|
|
14080
|
+
</xsl:template>
|
|
14081
|
+
|
|
13999
14082
|
<xsl:attribute-set name="annex-title-style">
|
|
14000
14083
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
14001
14084
|
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
|
@@ -14009,6 +14092,40 @@
|
|
|
14009
14092
|
<xsl:template name="refine_annex-title-style">
|
|
14010
14093
|
</xsl:template>
|
|
14011
14094
|
|
|
14095
|
+
<xsl:template match="mn:annex[normalize-space() != '']">
|
|
14096
|
+
<xsl:choose>
|
|
14097
|
+
<xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
|
|
14098
|
+
<fo:block role="SKIP">
|
|
14099
|
+
<xsl:apply-templates/>
|
|
14100
|
+
</fo:block>
|
|
14101
|
+
</xsl:when>
|
|
14102
|
+
<xsl:otherwise>
|
|
14103
|
+
|
|
14104
|
+
<fo:block break-after="page"/>
|
|
14105
|
+
<xsl:call-template name="setNamedDestination"/>
|
|
14106
|
+
|
|
14107
|
+
<fo:block xsl:use-attribute-sets="annex-style">
|
|
14108
|
+
|
|
14109
|
+
<xsl:call-template name="setId"/>
|
|
14110
|
+
|
|
14111
|
+
<!-- <xsl:if test="$namespace = 'iso'"> -->
|
|
14112
|
+
<xsl:call-template name="addTagElementT"/>
|
|
14113
|
+
<!-- </xsl:if> -->
|
|
14114
|
+
|
|
14115
|
+
<xsl:call-template name="setBlockSpanAll"/>
|
|
14116
|
+
|
|
14117
|
+
<xsl:call-template name="refine_annex-style"/>
|
|
14118
|
+
|
|
14119
|
+
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
|
14120
|
+
|
|
14121
|
+
<fo:block role="SKIP">
|
|
14122
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
|
14123
|
+
</fo:block>
|
|
14124
|
+
</fo:block>
|
|
14125
|
+
</xsl:otherwise>
|
|
14126
|
+
</xsl:choose>
|
|
14127
|
+
</xsl:template>
|
|
14128
|
+
|
|
14012
14129
|
<xsl:attribute-set name="p-zzSTDTitle1-style">
|
|
14013
14130
|
</xsl:attribute-set>
|
|
14014
14131
|
|
|
@@ -14526,22 +14643,14 @@
|
|
|
14526
14643
|
</xsl:attribute-set>
|
|
14527
14644
|
|
|
14528
14645
|
<xsl:attribute-set name="clause-style">
|
|
14529
|
-
|
|
14646
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
14530
14647
|
</xsl:attribute-set>
|
|
14531
14648
|
|
|
14532
14649
|
<xsl:template name="refine_clause-style">
|
|
14533
|
-
|
|
14534
|
-
|
|
14535
|
-
|
|
14536
|
-
|
|
14537
|
-
<xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
|
|
14538
|
-
</xsl:call-template>
|
|
14539
|
-
</xsl:variable>
|
|
14540
|
-
<xsl:if test="$level >= 4">
|
|
14541
|
-
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
|
14542
|
-
</xsl:if>
|
|
14543
|
-
</xsl:if> -->
|
|
14544
|
-
</xsl:template>
|
|
14650
|
+
<xsl:if test="parent::mn:copyright-statement">
|
|
14651
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
14652
|
+
</xsl:if>
|
|
14653
|
+
</xsl:template> <!-- refine_clause-style -->
|
|
14545
14654
|
|
|
14546
14655
|
<!-- main sections -->
|
|
14547
14656
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
|
@@ -14551,6 +14660,10 @@
|
|
|
14551
14660
|
|
|
14552
14661
|
<xsl:call-template name="sections_element_style"/>
|
|
14553
14662
|
|
|
14663
|
+
<!-- <xsl:if test="$namespace = 'rsd'"> -->
|
|
14664
|
+
<xsl:call-template name="addTagElementT"/>
|
|
14665
|
+
<!-- </xsl:if> -->
|
|
14666
|
+
|
|
14554
14667
|
<xsl:call-template name="addReviewHelper"/>
|
|
14555
14668
|
|
|
14556
14669
|
<xsl:apply-templates/>
|
|
@@ -14613,16 +14726,15 @@
|
|
|
14613
14726
|
|
|
14614
14727
|
<xsl:template match="mn:clause[normalize-space() != '' or mn:figure or @id]" name="template_clause"> <!-- if clause isn't empty -->
|
|
14615
14728
|
<xsl:call-template name="setNamedDestination"/>
|
|
14616
|
-
<fo:block>
|
|
14617
|
-
<xsl:if test="parent::mn:copyright-statement">
|
|
14618
|
-
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
14619
|
-
</xsl:if>
|
|
14729
|
+
<fo:block role="Sect">
|
|
14620
14730
|
|
|
14621
14731
|
<xsl:call-template name="setId"/>
|
|
14622
14732
|
|
|
14733
|
+
<xsl:call-template name="addTagElementT"/>
|
|
14734
|
+
|
|
14623
14735
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
14624
14736
|
|
|
14625
|
-
<xsl:call-template name="
|
|
14737
|
+
<xsl:call-template name="refine_clause-style"/>
|
|
14626
14738
|
|
|
14627
14739
|
<xsl:call-template name="addReviewHelper"/>
|
|
14628
14740
|
|
|
@@ -14630,41 +14742,6 @@
|
|
|
14630
14742
|
</fo:block>
|
|
14631
14743
|
</xsl:template>
|
|
14632
14744
|
|
|
14633
|
-
<xsl:template name="refine_clause_style">
|
|
14634
|
-
</xsl:template> <!-- refine_clause_style -->
|
|
14635
|
-
|
|
14636
|
-
<xsl:template match="mn:annex[normalize-space() != '']">
|
|
14637
|
-
<xsl:choose>
|
|
14638
|
-
<xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
|
|
14639
|
-
<fo:block>
|
|
14640
|
-
<xsl:apply-templates/>
|
|
14641
|
-
</fo:block>
|
|
14642
|
-
</xsl:when>
|
|
14643
|
-
<xsl:otherwise>
|
|
14644
|
-
|
|
14645
|
-
<fo:block break-after="page"/>
|
|
14646
|
-
<xsl:call-template name="setNamedDestination"/>
|
|
14647
|
-
|
|
14648
|
-
<fo:block id="{@id}">
|
|
14649
|
-
|
|
14650
|
-
<xsl:call-template name="setBlockSpanAll"/>
|
|
14651
|
-
|
|
14652
|
-
<xsl:call-template name="refine_annex_style"/>
|
|
14653
|
-
|
|
14654
|
-
</fo:block>
|
|
14655
|
-
|
|
14656
|
-
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
|
14657
|
-
|
|
14658
|
-
<fo:block>
|
|
14659
|
-
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
|
14660
|
-
</fo:block>
|
|
14661
|
-
</xsl:otherwise>
|
|
14662
|
-
</xsl:choose>
|
|
14663
|
-
</xsl:template>
|
|
14664
|
-
|
|
14665
|
-
<xsl:template name="refine_annex_style">
|
|
14666
|
-
</xsl:template>
|
|
14667
|
-
|
|
14668
14745
|
<xsl:template match="mn:name/text() | mn:fmt-name/text()">
|
|
14669
14746
|
<!-- 0xA0 to space replacement -->
|
|
14670
14747
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
|
@@ -14780,6 +14857,13 @@
|
|
|
14780
14857
|
<xsl:template name="addTagElementT">
|
|
14781
14858
|
<xsl:variable name="title_">
|
|
14782
14859
|
<xsl:apply-templates select="mn:fmt-title"/>
|
|
14860
|
+
<xsl:if test="not(mn:fmt-title) and self::mn:term">
|
|
14861
|
+
<name>
|
|
14862
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
|
14863
|
+
<xsl:text> </xsl:text>
|
|
14864
|
+
<xsl:apply-templates select="mn:fmt-preferred/node()[1]"/>
|
|
14865
|
+
</name>
|
|
14866
|
+
</xsl:if>
|
|
14783
14867
|
</xsl:variable>
|
|
14784
14868
|
<xsl:variable name="title__">
|
|
14785
14869
|
<xsl:for-each select="xalan:nodeset($title_)/*/node()">
|
|
@@ -14789,7 +14873,7 @@
|
|
|
14789
14873
|
</xsl:choose>
|
|
14790
14874
|
</xsl:for-each>
|
|
14791
14875
|
</xsl:variable>
|
|
14792
|
-
<xsl:variable name="title" select="normalize-space($title__)"/>
|
|
14876
|
+
<xsl:variable name="title" select="normalize-space(translate($title__, concat($em_space,' 
'), ' '))"/>
|
|
14793
14877
|
<xsl:if test="$title != ''">
|
|
14794
14878
|
<xsl:attribute name="fox:title">
|
|
14795
14879
|
<xsl:if test="ancestor::mn:sections">
|
|
@@ -1441,6 +1441,7 @@
|
|
|
1441
1441
|
|
|
1442
1442
|
<!-- Characters -->
|
|
1443
1443
|
<xsl:variable name="linebreak">
</xsl:variable>
|
|
1444
|
+
<xsl:variable name="em_space"> </xsl:variable>
|
|
1444
1445
|
<xsl:variable name="tab_zh"> </xsl:variable>
|
|
1445
1446
|
<xsl:variable name="non_breaking_hyphen">‑</xsl:variable>
|
|
1446
1447
|
<xsl:variable name="thin_space"> </xsl:variable>
|
|
@@ -4810,7 +4811,15 @@
|
|
|
4810
4811
|
<!-- END requirement, recommendation, permission table -->
|
|
4811
4812
|
<!-- ========== -->
|
|
4812
4813
|
|
|
4814
|
+
<xsl:attribute-set name="terms-style">
|
|
4815
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
4816
|
+
</xsl:attribute-set>
|
|
4817
|
+
|
|
4818
|
+
<xsl:template name="refine_terms-style">
|
|
4819
|
+
</xsl:template>
|
|
4820
|
+
|
|
4813
4821
|
<xsl:attribute-set name="term-style">
|
|
4822
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
4814
4823
|
<xsl:attribute name="margin-bottom">10pt</xsl:attribute>
|
|
4815
4824
|
</xsl:attribute-set> <!-- term-style -->
|
|
4816
4825
|
|
|
@@ -4908,7 +4917,10 @@
|
|
|
4908
4917
|
<xsl:template match="mn:terms">
|
|
4909
4918
|
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
|
4910
4919
|
<xsl:call-template name="setNamedDestination"/>
|
|
4911
|
-
<fo:block id="{@id}">
|
|
4920
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="terms-style">
|
|
4921
|
+
<xsl:call-template name="refine_terms-style"/>
|
|
4922
|
+
<xsl:call-template name="addTagElementT"/>
|
|
4923
|
+
|
|
4912
4924
|
<xsl:apply-templates/>
|
|
4913
4925
|
</fo:block>
|
|
4914
4926
|
</xsl:template>
|
|
@@ -4917,6 +4929,7 @@
|
|
|
4917
4929
|
<xsl:call-template name="setNamedDestination"/>
|
|
4918
4930
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
|
4919
4931
|
<xsl:call-template name="refine_term-style"/>
|
|
4932
|
+
<xsl:call-template name="addTagElementT"/>
|
|
4920
4933
|
|
|
4921
4934
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
|
4922
4935
|
</fo:block>
|
|
@@ -5147,7 +5160,9 @@
|
|
|
5147
5160
|
|
|
5148
5161
|
<xsl:template match="mn:definitions">
|
|
5149
5162
|
<xsl:call-template name="setNamedDestination"/>
|
|
5150
|
-
<fo:block id="{@id}">
|
|
5163
|
+
<fo:block id="{@id}" role="Sect">
|
|
5164
|
+
<xsl:call-template name="addTagElementT"/>
|
|
5165
|
+
|
|
5151
5166
|
<xsl:apply-templates/>
|
|
5152
5167
|
</fo:block>
|
|
5153
5168
|
</xsl:template>
|
|
@@ -5230,6 +5245,7 @@
|
|
|
5230
5245
|
<xsl:template match="mn:termexample/mn:p">
|
|
5231
5246
|
<xsl:variable name="element">inline
|
|
5232
5247
|
|
|
5248
|
+
<xsl:value-of select="$example_display_in"/>
|
|
5233
5249
|
</xsl:variable>
|
|
5234
5250
|
<xsl:choose>
|
|
5235
5251
|
<xsl:when test="contains($element, 'block')">
|
|
@@ -5624,6 +5640,9 @@
|
|
|
5624
5640
|
</xsl:attribute-set><!-- table-note-style -->
|
|
5625
5641
|
|
|
5626
5642
|
<xsl:template name="refine_table-note-style">
|
|
5643
|
+
<xsl:if test="self::mn:note">
|
|
5644
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
5645
|
+
</xsl:if>
|
|
5627
5646
|
</xsl:template> <!-- refine_table-note-style -->
|
|
5628
5647
|
|
|
5629
5648
|
<xsl:attribute-set name="table-fn-style">
|
|
@@ -6925,7 +6944,7 @@
|
|
|
6925
6944
|
</xsl:template> <!-- table/note -->
|
|
6926
6945
|
|
|
6927
6946
|
<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">
|
|
6928
|
-
<xsl:apply-templates
|
|
6947
|
+
<fo:inline role="P"><xsl:apply-templates/></fo:inline>
|
|
6929
6948
|
</xsl:template>
|
|
6930
6949
|
|
|
6931
6950
|
<!-- ============================ -->
|
|
@@ -7854,6 +7873,7 @@
|
|
|
7854
7873
|
<!-- ========================== -->
|
|
7855
7874
|
|
|
7856
7875
|
<xsl:attribute-set name="dl-block-style">
|
|
7876
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
7857
7877
|
</xsl:attribute-set>
|
|
7858
7878
|
|
|
7859
7879
|
<xsl:template name="refine_dl-block-style">
|
|
@@ -7863,18 +7883,21 @@
|
|
|
7863
7883
|
</xsl:template>
|
|
7864
7884
|
|
|
7865
7885
|
<xsl:attribute-set name="dt-row-style">
|
|
7886
|
+
<xsl:attribute name="role">LI</xsl:attribute>
|
|
7866
7887
|
</xsl:attribute-set>
|
|
7867
7888
|
|
|
7868
7889
|
<xsl:template name="refine_dt-row-style">
|
|
7869
7890
|
</xsl:template>
|
|
7870
7891
|
|
|
7871
7892
|
<xsl:attribute-set name="dt-cell-style">
|
|
7893
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
7872
7894
|
</xsl:attribute-set>
|
|
7873
7895
|
|
|
7874
7896
|
<xsl:template name="refine_dt-cell-style">
|
|
7875
7897
|
</xsl:template> <!-- refine_dt-cell-style -->
|
|
7876
7898
|
|
|
7877
7899
|
<xsl:attribute-set name="dt-block-style">
|
|
7900
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
7878
7901
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
|
7879
7902
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
7880
7903
|
</xsl:attribute-set>
|
|
@@ -7892,6 +7915,7 @@
|
|
|
7892
7915
|
</xsl:template>
|
|
7893
7916
|
|
|
7894
7917
|
<xsl:attribute-set name="dd-cell-style">
|
|
7918
|
+
<xsl:attribute name="role">LBody</xsl:attribute>
|
|
7895
7919
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
|
7896
7920
|
</xsl:attribute-set>
|
|
7897
7921
|
|
|
@@ -7927,7 +7951,7 @@
|
|
|
7927
7951
|
<xsl:variable name="isAdded" select="@added"/>
|
|
7928
7952
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
|
7929
7953
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
|
7930
|
-
<fo:block-container xsl:use-attribute-sets="dl-block-style"
|
|
7954
|
+
<fo:block-container xsl:use-attribute-sets="dl-block-style">
|
|
7931
7955
|
|
|
7932
7956
|
<xsl:call-template name="refine_dl-block-style"/>
|
|
7933
7957
|
|
|
@@ -8047,7 +8071,7 @@
|
|
|
8047
8071
|
<fo:block id="{concat('table_if_start_',@id)}" keep-with-next="always" font-size="1pt">Start table '<xsl:value-of select="@id"/>'.</fo:block>
|
|
8048
8072
|
</xsl:if>
|
|
8049
8073
|
|
|
8050
|
-
<fo:table width="95%" table-layout="fixed">
|
|
8074
|
+
<fo:table width="95%" table-layout="fixed" role="L">
|
|
8051
8075
|
|
|
8052
8076
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
|
8053
8077
|
<xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
|
|
@@ -8116,7 +8140,7 @@
|
|
|
8116
8140
|
<xsl:with-param name="table_or_dl">dl</xsl:with-param>
|
|
8117
8141
|
</xsl:apply-templates>
|
|
8118
8142
|
|
|
8119
|
-
</xsl:when>
|
|
8143
|
+
</xsl:when> <!-- $isGenerateTableIF = 'true' -->
|
|
8120
8144
|
<xsl:otherwise>
|
|
8121
8145
|
|
|
8122
8146
|
<xsl:variable name="simple-table">
|
|
@@ -8171,7 +8195,7 @@
|
|
|
8171
8195
|
<xsl:with-param name="isContainsKeepTogetherTag" select="$isContainsKeepTogetherTag"/>
|
|
8172
8196
|
</xsl:call-template>
|
|
8173
8197
|
|
|
8174
|
-
<fo:table-body>
|
|
8198
|
+
<fo:table-body role="SKIP">
|
|
8175
8199
|
|
|
8176
8200
|
<!-- DEBUG -->
|
|
8177
8201
|
<xsl:if test="$table_if_debug = 'true'">
|
|
@@ -8382,8 +8406,8 @@
|
|
|
8382
8406
|
<td number-columns-spanned="2">NOTE <xsl:apply-templates /> </td>
|
|
8383
8407
|
</tr>
|
|
8384
8408
|
-->
|
|
8385
|
-
<fo:table-row>
|
|
8386
|
-
<fo:table-cell number-columns-spanned="2">
|
|
8409
|
+
<fo:table-row role="SKIP">
|
|
8410
|
+
<fo:table-cell number-columns-spanned="2" role="SKIP">
|
|
8387
8411
|
<fo:block role="SKIP">
|
|
8388
8412
|
<xsl:call-template name="note"/>
|
|
8389
8413
|
</fo:block>
|
|
@@ -8447,7 +8471,7 @@
|
|
|
8447
8471
|
<xsl:call-template name="refine_dt-cell-style"/>
|
|
8448
8472
|
|
|
8449
8473
|
<xsl:call-template name="setNamedDestination"/>
|
|
8450
|
-
<fo:block xsl:use-attribute-sets="dt-block-style"
|
|
8474
|
+
<fo:block xsl:use-attribute-sets="dt-block-style">
|
|
8451
8475
|
|
|
8452
8476
|
<xsl:choose>
|
|
8453
8477
|
<xsl:when test="$isGenerateTableIF = 'true'">
|
|
@@ -8536,7 +8560,7 @@
|
|
|
8536
8560
|
</xsl:variable>
|
|
8537
8561
|
<xsl:choose>
|
|
8538
8562
|
<xsl:when test="$is_inline_element_after_where = 'true'">
|
|
8539
|
-
<fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
|
|
8563
|
+
<fo:inline role="SKIP"><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
|
|
8540
8564
|
</xsl:when>
|
|
8541
8565
|
<xsl:otherwise>
|
|
8542
8566
|
<xsl:apply-templates select="."/>
|
|
@@ -8813,6 +8837,7 @@
|
|
|
8813
8837
|
<!-- ====== -->
|
|
8814
8838
|
|
|
8815
8839
|
<xsl:attribute-set name="note-style">
|
|
8840
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
8816
8841
|
<!-- <xsl:attribute name="font-size">11pt</xsl:attribute> -->
|
|
8817
8842
|
<xsl:attribute name="margin-top">4pt</xsl:attribute>
|
|
8818
8843
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
@@ -8826,6 +8851,7 @@
|
|
|
8826
8851
|
<xsl:variable name="note-body-indent-table">5mm</xsl:variable>
|
|
8827
8852
|
|
|
8828
8853
|
<xsl:attribute-set name="note-name-style">
|
|
8854
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
8829
8855
|
<!-- <xsl:attribute name="font-size">11pt</xsl:attribute> -->
|
|
8830
8856
|
<xsl:attribute name="padding-right">2mm</xsl:attribute>
|
|
8831
8857
|
</xsl:attribute-set> <!-- note-name-style -->
|
|
@@ -8839,9 +8865,13 @@
|
|
|
8839
8865
|
</xsl:attribute-set>
|
|
8840
8866
|
|
|
8841
8867
|
<xsl:template name="refine_table-note-name-style">
|
|
8868
|
+
<xsl:if test="self::mn:note">
|
|
8869
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
8870
|
+
</xsl:if>
|
|
8842
8871
|
</xsl:template> <!-- refine_table-note-name-style -->
|
|
8843
8872
|
|
|
8844
8873
|
<xsl:attribute-set name="note-p-style">
|
|
8874
|
+
<xsl:attribute name="role">P</xsl:attribute>
|
|
8845
8875
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
|
8846
8876
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
|
8847
8877
|
</xsl:attribute-set> <!-- note-p-style -->
|
|
@@ -8850,6 +8880,7 @@
|
|
|
8850
8880
|
</xsl:template>
|
|
8851
8881
|
|
|
8852
8882
|
<xsl:attribute-set name="termnote-style">
|
|
8883
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
8853
8884
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
|
8854
8885
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
|
8855
8886
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
|
@@ -8860,12 +8891,14 @@
|
|
|
8860
8891
|
</xsl:template> <!-- refine_termnote-style -->
|
|
8861
8892
|
|
|
8862
8893
|
<xsl:attribute-set name="termnote-name-style">
|
|
8894
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
8863
8895
|
</xsl:attribute-set> <!-- termnote-name-style -->
|
|
8864
8896
|
|
|
8865
8897
|
<xsl:template name="refine_termnote-name-style">
|
|
8866
8898
|
</xsl:template>
|
|
8867
8899
|
|
|
8868
8900
|
<xsl:attribute-set name="termnote-p-style">
|
|
8901
|
+
<xsl:attribute name="role">P</xsl:attribute>
|
|
8869
8902
|
</xsl:attribute-set>
|
|
8870
8903
|
|
|
8871
8904
|
<xsl:template name="refine_termnote-p-style">
|
|
@@ -8880,7 +8913,7 @@
|
|
|
8880
8913
|
|
|
8881
8914
|
<xsl:call-template name="setNamedDestination"/>
|
|
8882
8915
|
|
|
8883
|
-
<fo:block-container xsl:use-attribute-sets="note-style"
|
|
8916
|
+
<fo:block-container xsl:use-attribute-sets="note-style">
|
|
8884
8917
|
<xsl:if test="not(parent::mn:references)">
|
|
8885
8918
|
<xsl:copy-of select="@id"/>
|
|
8886
8919
|
</xsl:if>
|
|
@@ -8890,11 +8923,11 @@
|
|
|
8890
8923
|
<xsl:call-template name="refine_note-style"/>
|
|
8891
8924
|
|
|
8892
8925
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
8893
|
-
<fo:block>
|
|
8926
|
+
<fo:block role="SKIP">
|
|
8894
8927
|
|
|
8895
8928
|
<xsl:call-template name="refine_note_block_style"/>
|
|
8896
8929
|
|
|
8897
|
-
<fo:inline xsl:use-attribute-sets="note-name-style"
|
|
8930
|
+
<fo:inline xsl:use-attribute-sets="note-name-style">
|
|
8898
8931
|
|
|
8899
8932
|
<xsl:apply-templates select="mn:fmt-name/mn:tab" mode="tab"/>
|
|
8900
8933
|
|
|
@@ -8917,7 +8950,15 @@
|
|
|
8917
8950
|
|
|
8918
8951
|
</fo:inline>
|
|
8919
8952
|
|
|
8920
|
-
<xsl:
|
|
8953
|
+
<xsl:choose>
|
|
8954
|
+
<xsl:when test="parent::mn:formattedref and ancestor::mn:bibitem">
|
|
8955
|
+
<fo:inline role="P"><xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/></fo:inline>
|
|
8956
|
+
</xsl:when>
|
|
8957
|
+
<xsl:otherwise>
|
|
8958
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
|
8959
|
+
</xsl:otherwise>
|
|
8960
|
+
</xsl:choose>
|
|
8961
|
+
|
|
8921
8962
|
</fo:block>
|
|
8922
8963
|
</fo:block-container>
|
|
8923
8964
|
</fo:block-container>
|
|
@@ -8930,13 +8971,13 @@
|
|
|
8930
8971
|
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
|
8931
8972
|
<xsl:choose>
|
|
8932
8973
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
|
8933
|
-
<fo:inline xsl:use-attribute-sets="note-p-style"
|
|
8974
|
+
<fo:inline xsl:use-attribute-sets="note-p-style">
|
|
8934
8975
|
<xsl:call-template name="refine_note-p-style"/>
|
|
8935
8976
|
<xsl:apply-templates/>
|
|
8936
8977
|
</fo:inline>
|
|
8937
8978
|
</xsl:when>
|
|
8938
8979
|
<xsl:otherwise>
|
|
8939
|
-
<fo:block xsl:use-attribute-sets="note-p-style"
|
|
8980
|
+
<fo:block xsl:use-attribute-sets="note-p-style">
|
|
8940
8981
|
<xsl:call-template name="refine_note-p-style"/>
|
|
8941
8982
|
<xsl:apply-templates/>
|
|
8942
8983
|
</fo:block>
|
|
@@ -9585,7 +9626,8 @@
|
|
|
9585
9626
|
|
|
9586
9627
|
<!-- debug scale='<xsl:value-of select="$scale"/>', indent='<xsl:value-of select="$indent"/>' -->
|
|
9587
9628
|
|
|
9588
|
-
<fo:external-graphic src="{$src}"
|
|
9629
|
+
<fo:external-graphic src="{$src}" vertical-align="middle">
|
|
9630
|
+
<xsl:call-template name="addAltText"/>
|
|
9589
9631
|
|
|
9590
9632
|
<xsl:if test="parent::mn:logo"> <!-- publisher's logo -->
|
|
9591
9633
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
|
@@ -9649,11 +9691,12 @@
|
|
|
9649
9691
|
<xsl:choose>
|
|
9650
9692
|
<xsl:when test="$isDeleted = 'true'">
|
|
9651
9693
|
<!-- enclose in svg -->
|
|
9652
|
-
<fo:instream-foreign-object
|
|
9694
|
+
<fo:instream-foreign-object>
|
|
9653
9695
|
<xsl:attribute name="width">100%</xsl:attribute>
|
|
9654
9696
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
|
9655
9697
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
|
9656
9698
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
|
9699
|
+
<xsl:call-template name="addAltText"/>
|
|
9657
9700
|
|
|
9658
9701
|
<xsl:apply-templates select="." mode="cross_image"/>
|
|
9659
9702
|
|
|
@@ -9669,7 +9712,8 @@
|
|
|
9669
9712
|
<xsl:value-of select="concat('scale=', $scale,', indent=', $indent)"/>
|
|
9670
9713
|
</fo:block> -->
|
|
9671
9714
|
|
|
9672
|
-
<fo:external-graphic src="{$src}"
|
|
9715
|
+
<fo:external-graphic src="{$src}">
|
|
9716
|
+
<xsl:call-template name="addAltText"/>
|
|
9673
9717
|
|
|
9674
9718
|
<xsl:choose>
|
|
9675
9719
|
<!-- default -->
|
|
@@ -9729,6 +9773,25 @@
|
|
|
9729
9773
|
</xsl:choose>
|
|
9730
9774
|
</xsl:template>
|
|
9731
9775
|
|
|
9776
|
+
<xsl:template name="addAltText">
|
|
9777
|
+
<xsl:param name="name">Image</xsl:param>
|
|
9778
|
+
<xsl:variable name="alt-text">
|
|
9779
|
+
<xsl:choose>
|
|
9780
|
+
<xsl:when test="self::mn:image and normalize-space(@alt) != ''">
|
|
9781
|
+
<xsl:value-of select="@alt"/>
|
|
9782
|
+
</xsl:when>
|
|
9783
|
+
<xsl:when test="normalize-space(../@alt) != ''">
|
|
9784
|
+
<xsl:value-of select="../@alt"/>
|
|
9785
|
+
</xsl:when>
|
|
9786
|
+
<xsl:when test="normalize-space(../mn:fmt-name) != ''">
|
|
9787
|
+
<xsl:value-of select="../mn:fmt-name"/>
|
|
9788
|
+
</xsl:when>
|
|
9789
|
+
<xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise>
|
|
9790
|
+
</xsl:choose>
|
|
9791
|
+
</xsl:variable>
|
|
9792
|
+
<xsl:attribute name="fox:alt-text"><xsl:value-of select="$alt-text"/></xsl:attribute>
|
|
9793
|
+
</xsl:template>
|
|
9794
|
+
|
|
9732
9795
|
<xsl:template name="setImageWidth">
|
|
9733
9796
|
<xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
|
|
9734
9797
|
<xsl:value-of select="@width"/>
|
|
@@ -9917,6 +9980,9 @@
|
|
|
9917
9980
|
|
|
9918
9981
|
<xsl:variable name="alt-text">
|
|
9919
9982
|
<xsl:choose>
|
|
9983
|
+
<xsl:when test="normalize-space(../@alt) != ''">
|
|
9984
|
+
<xsl:value-of select="../@alt"/>
|
|
9985
|
+
</xsl:when>
|
|
9920
9986
|
<xsl:when test="normalize-space(../mn:fmt-name) != ''">
|
|
9921
9987
|
<xsl:value-of select="../mn:fmt-name"/>
|
|
9922
9988
|
</xsl:when>
|
|
@@ -11513,6 +11579,7 @@
|
|
|
11513
11579
|
|
|
11514
11580
|
<!-- admonition -->
|
|
11515
11581
|
<xsl:attribute-set name="admonition-style">
|
|
11582
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
11516
11583
|
<xsl:attribute name="border">0.5pt solid rgb(79, 129, 189)</xsl:attribute>
|
|
11517
11584
|
<xsl:attribute name="color">rgb(79, 129, 189)</xsl:attribute>
|
|
11518
11585
|
<xsl:attribute name="margin-left">16mm</xsl:attribute>
|
|
@@ -11524,6 +11591,7 @@
|
|
|
11524
11591
|
</xsl:template>
|
|
11525
11592
|
|
|
11526
11593
|
<xsl:attribute-set name="admonition-container-style">
|
|
11594
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
11527
11595
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
|
11528
11596
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
|
11529
11597
|
<xsl:attribute name="padding">2mm</xsl:attribute>
|
|
@@ -11534,6 +11602,7 @@
|
|
|
11534
11602
|
</xsl:template>
|
|
11535
11603
|
|
|
11536
11604
|
<xsl:attribute-set name="admonition-name-style">
|
|
11605
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
11537
11606
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
11538
11607
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
11539
11608
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
@@ -11564,7 +11633,7 @@
|
|
|
11564
11633
|
<xsl:call-template name="refine_admonition-style"/>
|
|
11565
11634
|
|
|
11566
11635
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
11567
|
-
<fo:block-container xsl:use-attribute-sets="admonition-container-style"
|
|
11636
|
+
<fo:block-container xsl:use-attribute-sets="admonition-container-style">
|
|
11568
11637
|
|
|
11569
11638
|
<xsl:call-template name="refine_admonition-container-style"/>
|
|
11570
11639
|
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
|
@@ -12389,9 +12458,9 @@
|
|
|
12389
12458
|
<xsl:template name="fo_inline_bookmark">
|
|
12390
12459
|
<xsl:param name="bookmark_id"/>
|
|
12391
12460
|
<!-- <fo:inline id="{@id}" font-size="1pt"/> -->
|
|
12392
|
-
<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>
|
|
12461
|
+
<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>
|
|
12393
12462
|
<!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
|
|
12394
|
-
<xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
|
|
12463
|
+
<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>
|
|
12395
12464
|
</xsl:template>
|
|
12396
12465
|
<!-- =================== -->
|
|
12397
12466
|
<!-- End of Index processing -->
|
|
@@ -12559,6 +12628,13 @@
|
|
|
12559
12628
|
<!-- End Form's elements processing -->
|
|
12560
12629
|
<!-- =================== -->
|
|
12561
12630
|
|
|
12631
|
+
<xsl:attribute-set name="toc-container-style">
|
|
12632
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
12633
|
+
</xsl:attribute-set>
|
|
12634
|
+
|
|
12635
|
+
<xsl:template name="refine_toc-container-style">
|
|
12636
|
+
</xsl:template>
|
|
12637
|
+
|
|
12562
12638
|
<xsl:attribute-set name="toc-style">
|
|
12563
12639
|
<xsl:attribute name="line-height">115%</xsl:attribute>
|
|
12564
12640
|
</xsl:attribute-set>
|
|
@@ -13996,6 +14072,13 @@
|
|
|
13996
14072
|
<!-- ===================================== -->
|
|
13997
14073
|
<!-- ===================================== -->
|
|
13998
14074
|
|
|
14075
|
+
<xsl:attribute-set name="annex-style">
|
|
14076
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
14077
|
+
</xsl:attribute-set>
|
|
14078
|
+
|
|
14079
|
+
<xsl:template name="refine_annex-style">
|
|
14080
|
+
</xsl:template>
|
|
14081
|
+
|
|
13999
14082
|
<xsl:attribute-set name="annex-title-style">
|
|
14000
14083
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
14001
14084
|
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
|
@@ -14009,6 +14092,40 @@
|
|
|
14009
14092
|
<xsl:template name="refine_annex-title-style">
|
|
14010
14093
|
</xsl:template>
|
|
14011
14094
|
|
|
14095
|
+
<xsl:template match="mn:annex[normalize-space() != '']">
|
|
14096
|
+
<xsl:choose>
|
|
14097
|
+
<xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
|
|
14098
|
+
<fo:block role="SKIP">
|
|
14099
|
+
<xsl:apply-templates/>
|
|
14100
|
+
</fo:block>
|
|
14101
|
+
</xsl:when>
|
|
14102
|
+
<xsl:otherwise>
|
|
14103
|
+
|
|
14104
|
+
<fo:block break-after="page"/>
|
|
14105
|
+
<xsl:call-template name="setNamedDestination"/>
|
|
14106
|
+
|
|
14107
|
+
<fo:block xsl:use-attribute-sets="annex-style">
|
|
14108
|
+
|
|
14109
|
+
<xsl:call-template name="setId"/>
|
|
14110
|
+
|
|
14111
|
+
<!-- <xsl:if test="$namespace = 'iso'"> -->
|
|
14112
|
+
<xsl:call-template name="addTagElementT"/>
|
|
14113
|
+
<!-- </xsl:if> -->
|
|
14114
|
+
|
|
14115
|
+
<xsl:call-template name="setBlockSpanAll"/>
|
|
14116
|
+
|
|
14117
|
+
<xsl:call-template name="refine_annex-style"/>
|
|
14118
|
+
|
|
14119
|
+
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
|
14120
|
+
|
|
14121
|
+
<fo:block role="SKIP">
|
|
14122
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
|
14123
|
+
</fo:block>
|
|
14124
|
+
</fo:block>
|
|
14125
|
+
</xsl:otherwise>
|
|
14126
|
+
</xsl:choose>
|
|
14127
|
+
</xsl:template>
|
|
14128
|
+
|
|
14012
14129
|
<xsl:attribute-set name="p-zzSTDTitle1-style">
|
|
14013
14130
|
</xsl:attribute-set>
|
|
14014
14131
|
|
|
@@ -14526,22 +14643,14 @@
|
|
|
14526
14643
|
</xsl:attribute-set>
|
|
14527
14644
|
|
|
14528
14645
|
<xsl:attribute-set name="clause-style">
|
|
14529
|
-
|
|
14646
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
14530
14647
|
</xsl:attribute-set>
|
|
14531
14648
|
|
|
14532
14649
|
<xsl:template name="refine_clause-style">
|
|
14533
|
-
|
|
14534
|
-
|
|
14535
|
-
|
|
14536
|
-
|
|
14537
|
-
<xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
|
|
14538
|
-
</xsl:call-template>
|
|
14539
|
-
</xsl:variable>
|
|
14540
|
-
<xsl:if test="$level >= 4">
|
|
14541
|
-
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
|
14542
|
-
</xsl:if>
|
|
14543
|
-
</xsl:if> -->
|
|
14544
|
-
</xsl:template>
|
|
14650
|
+
<xsl:if test="parent::mn:copyright-statement">
|
|
14651
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
14652
|
+
</xsl:if>
|
|
14653
|
+
</xsl:template> <!-- refine_clause-style -->
|
|
14545
14654
|
|
|
14546
14655
|
<!-- main sections -->
|
|
14547
14656
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
|
@@ -14551,6 +14660,10 @@
|
|
|
14551
14660
|
|
|
14552
14661
|
<xsl:call-template name="sections_element_style"/>
|
|
14553
14662
|
|
|
14663
|
+
<!-- <xsl:if test="$namespace = 'rsd'"> -->
|
|
14664
|
+
<xsl:call-template name="addTagElementT"/>
|
|
14665
|
+
<!-- </xsl:if> -->
|
|
14666
|
+
|
|
14554
14667
|
<xsl:call-template name="addReviewHelper"/>
|
|
14555
14668
|
|
|
14556
14669
|
<xsl:apply-templates/>
|
|
@@ -14613,16 +14726,15 @@
|
|
|
14613
14726
|
|
|
14614
14727
|
<xsl:template match="mn:clause[normalize-space() != '' or mn:figure or @id]" name="template_clause"> <!-- if clause isn't empty -->
|
|
14615
14728
|
<xsl:call-template name="setNamedDestination"/>
|
|
14616
|
-
<fo:block>
|
|
14617
|
-
<xsl:if test="parent::mn:copyright-statement">
|
|
14618
|
-
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
14619
|
-
</xsl:if>
|
|
14729
|
+
<fo:block role="Sect">
|
|
14620
14730
|
|
|
14621
14731
|
<xsl:call-template name="setId"/>
|
|
14622
14732
|
|
|
14733
|
+
<xsl:call-template name="addTagElementT"/>
|
|
14734
|
+
|
|
14623
14735
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
14624
14736
|
|
|
14625
|
-
<xsl:call-template name="
|
|
14737
|
+
<xsl:call-template name="refine_clause-style"/>
|
|
14626
14738
|
|
|
14627
14739
|
<xsl:call-template name="addReviewHelper"/>
|
|
14628
14740
|
|
|
@@ -14630,41 +14742,6 @@
|
|
|
14630
14742
|
</fo:block>
|
|
14631
14743
|
</xsl:template>
|
|
14632
14744
|
|
|
14633
|
-
<xsl:template name="refine_clause_style">
|
|
14634
|
-
</xsl:template> <!-- refine_clause_style -->
|
|
14635
|
-
|
|
14636
|
-
<xsl:template match="mn:annex[normalize-space() != '']">
|
|
14637
|
-
<xsl:choose>
|
|
14638
|
-
<xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
|
|
14639
|
-
<fo:block>
|
|
14640
|
-
<xsl:apply-templates/>
|
|
14641
|
-
</fo:block>
|
|
14642
|
-
</xsl:when>
|
|
14643
|
-
<xsl:otherwise>
|
|
14644
|
-
|
|
14645
|
-
<fo:block break-after="page"/>
|
|
14646
|
-
<xsl:call-template name="setNamedDestination"/>
|
|
14647
|
-
|
|
14648
|
-
<fo:block id="{@id}">
|
|
14649
|
-
|
|
14650
|
-
<xsl:call-template name="setBlockSpanAll"/>
|
|
14651
|
-
|
|
14652
|
-
<xsl:call-template name="refine_annex_style"/>
|
|
14653
|
-
|
|
14654
|
-
</fo:block>
|
|
14655
|
-
|
|
14656
|
-
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
|
14657
|
-
|
|
14658
|
-
<fo:block>
|
|
14659
|
-
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
|
14660
|
-
</fo:block>
|
|
14661
|
-
</xsl:otherwise>
|
|
14662
|
-
</xsl:choose>
|
|
14663
|
-
</xsl:template>
|
|
14664
|
-
|
|
14665
|
-
<xsl:template name="refine_annex_style">
|
|
14666
|
-
</xsl:template>
|
|
14667
|
-
|
|
14668
14745
|
<xsl:template match="mn:name/text() | mn:fmt-name/text()">
|
|
14669
14746
|
<!-- 0xA0 to space replacement -->
|
|
14670
14747
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
|
@@ -14780,6 +14857,13 @@
|
|
|
14780
14857
|
<xsl:template name="addTagElementT">
|
|
14781
14858
|
<xsl:variable name="title_">
|
|
14782
14859
|
<xsl:apply-templates select="mn:fmt-title"/>
|
|
14860
|
+
<xsl:if test="not(mn:fmt-title) and self::mn:term">
|
|
14861
|
+
<name>
|
|
14862
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
|
14863
|
+
<xsl:text> </xsl:text>
|
|
14864
|
+
<xsl:apply-templates select="mn:fmt-preferred/node()[1]"/>
|
|
14865
|
+
</name>
|
|
14866
|
+
</xsl:if>
|
|
14783
14867
|
</xsl:variable>
|
|
14784
14868
|
<xsl:variable name="title__">
|
|
14785
14869
|
<xsl:for-each select="xalan:nodeset($title_)/*/node()">
|
|
@@ -14789,7 +14873,7 @@
|
|
|
14789
14873
|
</xsl:choose>
|
|
14790
14874
|
</xsl:for-each>
|
|
14791
14875
|
</xsl:variable>
|
|
14792
|
-
<xsl:variable name="title" select="normalize-space($title__)"/>
|
|
14876
|
+
<xsl:variable name="title" select="normalize-space(translate($title__, concat($em_space,' 
'), ' '))"/>
|
|
14793
14877
|
<xsl:if test="$title != ''">
|
|
14794
14878
|
<xsl:attribute name="fox:title">
|
|
14795
14879
|
<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
|