metanorma-iec 2.8.11 → 2.8.12
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/iec/html/htmlstyle.css +4 -0
- data/lib/isodoc/iec/iec.international-standard.xsl +161 -77
- data/lib/metanorma/iec/basicdoc.rng +22 -13
- data/lib/metanorma/iec/isodoc.rng +1 -1
- data/lib/metanorma/iec/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: 4c59ee1d944a70515831e1be726a556a36d35d86ca17d4ec1cd973470dc0e931
|
|
4
|
+
data.tar.gz: 9c7d59d176404a708b61ce599994a570ab0d67c7476448f838f6b63e6949786f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b66f29a9f0ee0c747b5d279b253dc860360050a2731a445d3706c6942582719318c33ad70e71ef009abf2eba6db76b9b36a8bd0bfadea992919cef781d2a0c6c
|
|
7
|
+
data.tar.gz: 3fe9bbf9c0dedbc6ec18a1d08f5c083a2c6d2c5f870bc930d0d6f8feb3a0248e87c984148d2ca4caac966d564a0bb0895835e4664d041f68ec132d98f0c10993
|
|
@@ -2396,6 +2396,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
2396
2396
|
|
|
2397
2397
|
<!-- Characters -->
|
|
2398
2398
|
<xsl:variable name="linebreak">
</xsl:variable>
|
|
2399
|
+
<xsl:variable name="em_space"> </xsl:variable>
|
|
2399
2400
|
<xsl:variable name="tab_zh"> </xsl:variable>
|
|
2400
2401
|
<xsl:variable name="non_breaking_hyphen">‑</xsl:variable>
|
|
2401
2402
|
<xsl:variable name="thin_space"> </xsl:variable>
|
|
@@ -5776,7 +5777,15 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
5776
5777
|
<!-- END requirement, recommendation, permission table -->
|
|
5777
5778
|
<!-- ========== -->
|
|
5778
5779
|
|
|
5780
|
+
<xsl:attribute-set name="terms-style">
|
|
5781
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
5782
|
+
</xsl:attribute-set>
|
|
5783
|
+
|
|
5784
|
+
<xsl:template name="refine_terms-style">
|
|
5785
|
+
</xsl:template>
|
|
5786
|
+
|
|
5779
5787
|
<xsl:attribute-set name="term-style">
|
|
5788
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
5780
5789
|
</xsl:attribute-set> <!-- term-style -->
|
|
5781
5790
|
|
|
5782
5791
|
<xsl:template name="refine_term-style">
|
|
@@ -5879,7 +5888,10 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
5879
5888
|
<xsl:template match="mn:terms">
|
|
5880
5889
|
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
|
5881
5890
|
<xsl:call-template name="setNamedDestination"/>
|
|
5882
|
-
<fo:block id="{@id}">
|
|
5891
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="terms-style">
|
|
5892
|
+
<xsl:call-template name="refine_terms-style"/>
|
|
5893
|
+
<xsl:call-template name="addTagElementT"/>
|
|
5894
|
+
|
|
5883
5895
|
<xsl:apply-templates/>
|
|
5884
5896
|
</fo:block>
|
|
5885
5897
|
</xsl:template>
|
|
@@ -5888,6 +5900,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
5888
5900
|
<xsl:call-template name="setNamedDestination"/>
|
|
5889
5901
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
|
5890
5902
|
<xsl:call-template name="refine_term-style"/>
|
|
5903
|
+
<xsl:call-template name="addTagElementT"/>
|
|
5891
5904
|
|
|
5892
5905
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
|
5893
5906
|
</fo:block>
|
|
@@ -6118,7 +6131,9 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
6118
6131
|
|
|
6119
6132
|
<xsl:template match="mn:definitions">
|
|
6120
6133
|
<xsl:call-template name="setNamedDestination"/>
|
|
6121
|
-
<fo:block id="{@id}">
|
|
6134
|
+
<fo:block id="{@id}" role="Sect">
|
|
6135
|
+
<xsl:call-template name="addTagElementT"/>
|
|
6136
|
+
|
|
6122
6137
|
<xsl:apply-templates/>
|
|
6123
6138
|
</fo:block>
|
|
6124
6139
|
</xsl:template>
|
|
@@ -6195,6 +6210,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
6195
6210
|
<xsl:template match="mn:termexample/mn:p">
|
|
6196
6211
|
<xsl:variable name="element">inline
|
|
6197
6212
|
|
|
6213
|
+
<xsl:value-of select="$example_display_in"/>
|
|
6198
6214
|
</xsl:variable>
|
|
6199
6215
|
<xsl:choose>
|
|
6200
6216
|
<xsl:when test="contains($element, 'block')">
|
|
@@ -6606,6 +6622,9 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
6606
6622
|
</xsl:attribute-set><!-- table-note-style -->
|
|
6607
6623
|
|
|
6608
6624
|
<xsl:template name="refine_table-note-style">
|
|
6625
|
+
<xsl:if test="self::mn:note">
|
|
6626
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
6627
|
+
</xsl:if>
|
|
6609
6628
|
</xsl:template> <!-- refine_table-note-style -->
|
|
6610
6629
|
|
|
6611
6630
|
<xsl:attribute-set name="table-fn-style">
|
|
@@ -7973,7 +7992,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
7973
7992
|
</xsl:template> <!-- table/note -->
|
|
7974
7993
|
|
|
7975
7994
|
<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">
|
|
7976
|
-
<xsl:apply-templates
|
|
7995
|
+
<fo:inline role="P"><xsl:apply-templates/></fo:inline>
|
|
7977
7996
|
</xsl:template>
|
|
7978
7997
|
|
|
7979
7998
|
<!-- ============================ -->
|
|
@@ -8902,6 +8921,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
8902
8921
|
<!-- ========================== -->
|
|
8903
8922
|
|
|
8904
8923
|
<xsl:attribute-set name="dl-block-style">
|
|
8924
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
8905
8925
|
</xsl:attribute-set>
|
|
8906
8926
|
|
|
8907
8927
|
<xsl:template name="refine_dl-block-style">
|
|
@@ -8911,18 +8931,21 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
8911
8931
|
</xsl:template>
|
|
8912
8932
|
|
|
8913
8933
|
<xsl:attribute-set name="dt-row-style">
|
|
8934
|
+
<xsl:attribute name="role">LI</xsl:attribute>
|
|
8914
8935
|
</xsl:attribute-set>
|
|
8915
8936
|
|
|
8916
8937
|
<xsl:template name="refine_dt-row-style">
|
|
8917
8938
|
</xsl:template>
|
|
8918
8939
|
|
|
8919
8940
|
<xsl:attribute-set name="dt-cell-style">
|
|
8941
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
8920
8942
|
</xsl:attribute-set>
|
|
8921
8943
|
|
|
8922
8944
|
<xsl:template name="refine_dt-cell-style">
|
|
8923
8945
|
</xsl:template> <!-- refine_dt-cell-style -->
|
|
8924
8946
|
|
|
8925
8947
|
<xsl:attribute-set name="dt-block-style">
|
|
8948
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
8926
8949
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
|
8927
8950
|
</xsl:attribute-set>
|
|
8928
8951
|
|
|
@@ -8939,6 +8962,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
8939
8962
|
</xsl:template>
|
|
8940
8963
|
|
|
8941
8964
|
<xsl:attribute-set name="dd-cell-style">
|
|
8965
|
+
<xsl:attribute name="role">LBody</xsl:attribute>
|
|
8942
8966
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
|
8943
8967
|
</xsl:attribute-set>
|
|
8944
8968
|
|
|
@@ -8974,7 +8998,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
8974
8998
|
<xsl:variable name="isAdded" select="@added"/>
|
|
8975
8999
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
|
8976
9000
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
|
8977
|
-
<fo:block-container xsl:use-attribute-sets="dl-block-style"
|
|
9001
|
+
<fo:block-container xsl:use-attribute-sets="dl-block-style">
|
|
8978
9002
|
|
|
8979
9003
|
<xsl:call-template name="refine_dl-block-style"/>
|
|
8980
9004
|
|
|
@@ -9096,7 +9120,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
9096
9120
|
<fo:block id="{concat('table_if_start_',@id)}" keep-with-next="always" font-size="1pt">Start table '<xsl:value-of select="@id"/>'.</fo:block>
|
|
9097
9121
|
</xsl:if>
|
|
9098
9122
|
|
|
9099
|
-
<fo:table width="95%" table-layout="fixed">
|
|
9123
|
+
<fo:table width="95%" table-layout="fixed" role="L">
|
|
9100
9124
|
|
|
9101
9125
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
|
9102
9126
|
<xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
|
|
@@ -9165,7 +9189,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
9165
9189
|
<xsl:with-param name="table_or_dl">dl</xsl:with-param>
|
|
9166
9190
|
</xsl:apply-templates>
|
|
9167
9191
|
|
|
9168
|
-
</xsl:when>
|
|
9192
|
+
</xsl:when> <!-- $isGenerateTableIF = 'true' -->
|
|
9169
9193
|
<xsl:otherwise>
|
|
9170
9194
|
|
|
9171
9195
|
<xsl:variable name="simple-table">
|
|
@@ -9220,7 +9244,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
9220
9244
|
<xsl:with-param name="isContainsKeepTogetherTag" select="$isContainsKeepTogetherTag"/>
|
|
9221
9245
|
</xsl:call-template>
|
|
9222
9246
|
|
|
9223
|
-
<fo:table-body>
|
|
9247
|
+
<fo:table-body role="SKIP">
|
|
9224
9248
|
|
|
9225
9249
|
<!-- DEBUG -->
|
|
9226
9250
|
<xsl:if test="$table_if_debug = 'true'">
|
|
@@ -9430,8 +9454,8 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
9430
9454
|
<td number-columns-spanned="2">NOTE <xsl:apply-templates /> </td>
|
|
9431
9455
|
</tr>
|
|
9432
9456
|
-->
|
|
9433
|
-
<fo:table-row>
|
|
9434
|
-
<fo:table-cell number-columns-spanned="2">
|
|
9457
|
+
<fo:table-row role="SKIP">
|
|
9458
|
+
<fo:table-cell number-columns-spanned="2" role="SKIP">
|
|
9435
9459
|
<fo:block role="SKIP">
|
|
9436
9460
|
<xsl:call-template name="note"/>
|
|
9437
9461
|
</fo:block>
|
|
@@ -9495,7 +9519,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
9495
9519
|
<xsl:call-template name="refine_dt-cell-style"/>
|
|
9496
9520
|
|
|
9497
9521
|
<xsl:call-template name="setNamedDestination"/>
|
|
9498
|
-
<fo:block xsl:use-attribute-sets="dt-block-style"
|
|
9522
|
+
<fo:block xsl:use-attribute-sets="dt-block-style">
|
|
9499
9523
|
|
|
9500
9524
|
<xsl:choose>
|
|
9501
9525
|
<xsl:when test="$isGenerateTableIF = 'true'">
|
|
@@ -9584,7 +9608,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
9584
9608
|
</xsl:variable>
|
|
9585
9609
|
<xsl:choose>
|
|
9586
9610
|
<xsl:when test="$is_inline_element_after_where = 'true'">
|
|
9587
|
-
<fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
|
|
9611
|
+
<fo:inline role="SKIP"><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
|
|
9588
9612
|
</xsl:when>
|
|
9589
9613
|
<xsl:otherwise>
|
|
9590
9614
|
<xsl:apply-templates select="."/>
|
|
@@ -9850,6 +9874,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
9850
9874
|
<!-- ====== -->
|
|
9851
9875
|
|
|
9852
9876
|
<xsl:attribute-set name="note-style">
|
|
9877
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
9853
9878
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
|
9854
9879
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
|
9855
9880
|
<xsl:attribute name="margin-bottom">9pt</xsl:attribute>
|
|
@@ -9862,6 +9887,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
9862
9887
|
<xsl:variable name="note-body-indent-table">5mm</xsl:variable>
|
|
9863
9888
|
|
|
9864
9889
|
<xsl:attribute-set name="note-name-style">
|
|
9890
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
9865
9891
|
<xsl:attribute name="padding-right">6mm</xsl:attribute>
|
|
9866
9892
|
</xsl:attribute-set> <!-- note-name-style -->
|
|
9867
9893
|
|
|
@@ -9873,9 +9899,13 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
9873
9899
|
</xsl:attribute-set>
|
|
9874
9900
|
|
|
9875
9901
|
<xsl:template name="refine_table-note-name-style">
|
|
9902
|
+
<xsl:if test="self::mn:note">
|
|
9903
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
9904
|
+
</xsl:if>
|
|
9876
9905
|
</xsl:template> <!-- refine_table-note-name-style -->
|
|
9877
9906
|
|
|
9878
9907
|
<xsl:attribute-set name="note-p-style">
|
|
9908
|
+
<xsl:attribute name="role">P</xsl:attribute>
|
|
9879
9909
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
|
9880
9910
|
</xsl:attribute-set> <!-- note-p-style -->
|
|
9881
9911
|
|
|
@@ -9883,6 +9913,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
9883
9913
|
</xsl:template>
|
|
9884
9914
|
|
|
9885
9915
|
<xsl:attribute-set name="termnote-style">
|
|
9916
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
9886
9917
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
|
9887
9918
|
<xsl:attribute name="margin-top">5pt</xsl:attribute>
|
|
9888
9919
|
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
|
|
@@ -9892,12 +9923,14 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
9892
9923
|
</xsl:template> <!-- refine_termnote-style -->
|
|
9893
9924
|
|
|
9894
9925
|
<xsl:attribute-set name="termnote-name-style">
|
|
9926
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
9895
9927
|
</xsl:attribute-set> <!-- termnote-name-style -->
|
|
9896
9928
|
|
|
9897
9929
|
<xsl:template name="refine_termnote-name-style">
|
|
9898
9930
|
</xsl:template>
|
|
9899
9931
|
|
|
9900
9932
|
<xsl:attribute-set name="termnote-p-style">
|
|
9933
|
+
<xsl:attribute name="role">P</xsl:attribute>
|
|
9901
9934
|
</xsl:attribute-set>
|
|
9902
9935
|
|
|
9903
9936
|
<xsl:template name="refine_termnote-p-style">
|
|
@@ -9912,7 +9945,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
9912
9945
|
|
|
9913
9946
|
<xsl:call-template name="setNamedDestination"/>
|
|
9914
9947
|
|
|
9915
|
-
<fo:block-container xsl:use-attribute-sets="note-style"
|
|
9948
|
+
<fo:block-container xsl:use-attribute-sets="note-style">
|
|
9916
9949
|
<xsl:if test="not(parent::mn:references)">
|
|
9917
9950
|
<xsl:copy-of select="@id"/>
|
|
9918
9951
|
</xsl:if>
|
|
@@ -9922,11 +9955,11 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
9922
9955
|
<xsl:call-template name="refine_note-style"/>
|
|
9923
9956
|
|
|
9924
9957
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
9925
|
-
<fo:block>
|
|
9958
|
+
<fo:block role="SKIP">
|
|
9926
9959
|
|
|
9927
9960
|
<xsl:call-template name="refine_note_block_style"/>
|
|
9928
9961
|
|
|
9929
|
-
<fo:inline xsl:use-attribute-sets="note-name-style"
|
|
9962
|
+
<fo:inline xsl:use-attribute-sets="note-name-style">
|
|
9930
9963
|
|
|
9931
9964
|
<xsl:apply-templates select="mn:fmt-name/mn:tab" mode="tab"/>
|
|
9932
9965
|
|
|
@@ -9949,7 +9982,15 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
9949
9982
|
|
|
9950
9983
|
</fo:inline>
|
|
9951
9984
|
|
|
9952
|
-
<xsl:
|
|
9985
|
+
<xsl:choose>
|
|
9986
|
+
<xsl:when test="parent::mn:formattedref and ancestor::mn:bibitem">
|
|
9987
|
+
<fo:inline role="P"><xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/></fo:inline>
|
|
9988
|
+
</xsl:when>
|
|
9989
|
+
<xsl:otherwise>
|
|
9990
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
|
9991
|
+
</xsl:otherwise>
|
|
9992
|
+
</xsl:choose>
|
|
9993
|
+
|
|
9953
9994
|
</fo:block>
|
|
9954
9995
|
</fo:block-container>
|
|
9955
9996
|
</fo:block-container>
|
|
@@ -9962,13 +10003,13 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
9962
10003
|
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
|
9963
10004
|
<xsl:choose>
|
|
9964
10005
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
|
9965
|
-
<fo:inline xsl:use-attribute-sets="note-p-style"
|
|
10006
|
+
<fo:inline xsl:use-attribute-sets="note-p-style">
|
|
9966
10007
|
<xsl:call-template name="refine_note-p-style"/>
|
|
9967
10008
|
<xsl:apply-templates/>
|
|
9968
10009
|
</fo:inline>
|
|
9969
10010
|
</xsl:when>
|
|
9970
10011
|
<xsl:otherwise>
|
|
9971
|
-
<fo:block xsl:use-attribute-sets="note-p-style"
|
|
10012
|
+
<fo:block xsl:use-attribute-sets="note-p-style">
|
|
9972
10013
|
<xsl:call-template name="refine_note-p-style"/>
|
|
9973
10014
|
<xsl:apply-templates/>
|
|
9974
10015
|
</fo:block>
|
|
@@ -10632,7 +10673,8 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
10632
10673
|
|
|
10633
10674
|
<!-- debug scale='<xsl:value-of select="$scale"/>', indent='<xsl:value-of select="$indent"/>' -->
|
|
10634
10675
|
|
|
10635
|
-
<fo:external-graphic src="{$src}"
|
|
10676
|
+
<fo:external-graphic src="{$src}" vertical-align="middle">
|
|
10677
|
+
<xsl:call-template name="addAltText"/>
|
|
10636
10678
|
|
|
10637
10679
|
<xsl:if test="parent::mn:logo"> <!-- publisher's logo -->
|
|
10638
10680
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
|
@@ -10696,11 +10738,12 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
10696
10738
|
<xsl:choose>
|
|
10697
10739
|
<xsl:when test="$isDeleted = 'true'">
|
|
10698
10740
|
<!-- enclose in svg -->
|
|
10699
|
-
<fo:instream-foreign-object
|
|
10741
|
+
<fo:instream-foreign-object>
|
|
10700
10742
|
<xsl:attribute name="width">100%</xsl:attribute>
|
|
10701
10743
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
|
10702
10744
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
|
10703
10745
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
|
10746
|
+
<xsl:call-template name="addAltText"/>
|
|
10704
10747
|
|
|
10705
10748
|
<xsl:apply-templates select="." mode="cross_image"/>
|
|
10706
10749
|
|
|
@@ -10716,7 +10759,8 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
10716
10759
|
<xsl:value-of select="concat('scale=', $scale,', indent=', $indent)"/>
|
|
10717
10760
|
</fo:block> -->
|
|
10718
10761
|
|
|
10719
|
-
<fo:external-graphic src="{$src}"
|
|
10762
|
+
<fo:external-graphic src="{$src}">
|
|
10763
|
+
<xsl:call-template name="addAltText"/>
|
|
10720
10764
|
|
|
10721
10765
|
<xsl:choose>
|
|
10722
10766
|
<!-- default -->
|
|
@@ -10776,6 +10820,25 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
10776
10820
|
</xsl:choose>
|
|
10777
10821
|
</xsl:template>
|
|
10778
10822
|
|
|
10823
|
+
<xsl:template name="addAltText">
|
|
10824
|
+
<xsl:param name="name">Image</xsl:param>
|
|
10825
|
+
<xsl:variable name="alt-text">
|
|
10826
|
+
<xsl:choose>
|
|
10827
|
+
<xsl:when test="self::mn:image and normalize-space(@alt) != ''">
|
|
10828
|
+
<xsl:value-of select="@alt"/>
|
|
10829
|
+
</xsl:when>
|
|
10830
|
+
<xsl:when test="normalize-space(../@alt) != ''">
|
|
10831
|
+
<xsl:value-of select="../@alt"/>
|
|
10832
|
+
</xsl:when>
|
|
10833
|
+
<xsl:when test="normalize-space(../mn:fmt-name) != ''">
|
|
10834
|
+
<xsl:value-of select="../mn:fmt-name"/>
|
|
10835
|
+
</xsl:when>
|
|
10836
|
+
<xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise>
|
|
10837
|
+
</xsl:choose>
|
|
10838
|
+
</xsl:variable>
|
|
10839
|
+
<xsl:attribute name="fox:alt-text"><xsl:value-of select="$alt-text"/></xsl:attribute>
|
|
10840
|
+
</xsl:template>
|
|
10841
|
+
|
|
10779
10842
|
<xsl:template name="setImageWidth">
|
|
10780
10843
|
<xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
|
|
10781
10844
|
<xsl:value-of select="@width"/>
|
|
@@ -10964,6 +11027,9 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
10964
11027
|
|
|
10965
11028
|
<xsl:variable name="alt-text">
|
|
10966
11029
|
<xsl:choose>
|
|
11030
|
+
<xsl:when test="normalize-space(../@alt) != ''">
|
|
11031
|
+
<xsl:value-of select="../@alt"/>
|
|
11032
|
+
</xsl:when>
|
|
10967
11033
|
<xsl:when test="normalize-space(../mn:fmt-name) != ''">
|
|
10968
11034
|
<xsl:value-of select="../mn:fmt-name"/>
|
|
10969
11035
|
</xsl:when>
|
|
@@ -12568,6 +12634,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
12568
12634
|
|
|
12569
12635
|
<!-- admonition -->
|
|
12570
12636
|
<xsl:attribute-set name="admonition-style">
|
|
12637
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
12571
12638
|
<xsl:attribute name="border">0.5pt solid black</xsl:attribute>
|
|
12572
12639
|
<xsl:attribute name="margin-left">-2mm</xsl:attribute>
|
|
12573
12640
|
<xsl:attribute name="margin-right">-2mm</xsl:attribute>
|
|
@@ -12579,6 +12646,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
12579
12646
|
</xsl:template>
|
|
12580
12647
|
|
|
12581
12648
|
<xsl:attribute-set name="admonition-container-style">
|
|
12649
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
12582
12650
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
|
12583
12651
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
|
12584
12652
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
@@ -12590,6 +12658,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
12590
12658
|
</xsl:template>
|
|
12591
12659
|
|
|
12592
12660
|
<xsl:attribute-set name="admonition-name-style">
|
|
12661
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
12593
12662
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
12594
12663
|
</xsl:attribute-set> <!-- admonition-name-style -->
|
|
12595
12664
|
|
|
@@ -12614,7 +12683,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
12614
12683
|
<xsl:call-template name="refine_admonition-style"/>
|
|
12615
12684
|
|
|
12616
12685
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
12617
|
-
<fo:block-container xsl:use-attribute-sets="admonition-container-style"
|
|
12686
|
+
<fo:block-container xsl:use-attribute-sets="admonition-container-style">
|
|
12618
12687
|
|
|
12619
12688
|
<xsl:call-template name="refine_admonition-container-style"/>
|
|
12620
12689
|
<fo:block text-align="justify">
|
|
@@ -13442,9 +13511,9 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
13442
13511
|
<xsl:template name="fo_inline_bookmark">
|
|
13443
13512
|
<xsl:param name="bookmark_id"/>
|
|
13444
13513
|
<!-- <fo:inline id="{@id}" font-size="1pt"/> -->
|
|
13445
|
-
<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>
|
|
13514
|
+
<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>
|
|
13446
13515
|
<!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
|
|
13447
|
-
<xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
|
|
13516
|
+
<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>
|
|
13448
13517
|
</xsl:template>
|
|
13449
13518
|
<!-- =================== -->
|
|
13450
13519
|
<!-- End of Index processing -->
|
|
@@ -13612,6 +13681,13 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
13612
13681
|
<!-- End Form's elements processing -->
|
|
13613
13682
|
<!-- =================== -->
|
|
13614
13683
|
|
|
13684
|
+
<xsl:attribute-set name="toc-container-style">
|
|
13685
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
13686
|
+
</xsl:attribute-set>
|
|
13687
|
+
|
|
13688
|
+
<xsl:template name="refine_toc-container-style">
|
|
13689
|
+
</xsl:template>
|
|
13690
|
+
|
|
13615
13691
|
<xsl:attribute-set name="toc-style">
|
|
13616
13692
|
</xsl:attribute-set>
|
|
13617
13693
|
|
|
@@ -15050,6 +15126,13 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
15050
15126
|
<!-- ===================================== -->
|
|
15051
15127
|
<!-- ===================================== -->
|
|
15052
15128
|
|
|
15129
|
+
<xsl:attribute-set name="annex-style">
|
|
15130
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
15131
|
+
</xsl:attribute-set>
|
|
15132
|
+
|
|
15133
|
+
<xsl:template name="refine_annex-style">
|
|
15134
|
+
</xsl:template>
|
|
15135
|
+
|
|
15053
15136
|
<xsl:attribute-set name="annex-title-style">
|
|
15054
15137
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
15055
15138
|
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
|
@@ -15063,6 +15146,40 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
15063
15146
|
<xsl:template name="refine_annex-title-style">
|
|
15064
15147
|
</xsl:template>
|
|
15065
15148
|
|
|
15149
|
+
<xsl:template match="mn:annex[normalize-space() != '']">
|
|
15150
|
+
<xsl:choose>
|
|
15151
|
+
<xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
|
|
15152
|
+
<fo:block role="SKIP">
|
|
15153
|
+
<xsl:apply-templates/>
|
|
15154
|
+
</fo:block>
|
|
15155
|
+
</xsl:when>
|
|
15156
|
+
<xsl:otherwise>
|
|
15157
|
+
|
|
15158
|
+
<fo:block break-after="page"/>
|
|
15159
|
+
<xsl:call-template name="setNamedDestination"/>
|
|
15160
|
+
|
|
15161
|
+
<fo:block xsl:use-attribute-sets="annex-style">
|
|
15162
|
+
|
|
15163
|
+
<xsl:call-template name="setId"/>
|
|
15164
|
+
|
|
15165
|
+
<!-- <xsl:if test="$namespace = 'iso'"> -->
|
|
15166
|
+
<xsl:call-template name="addTagElementT"/>
|
|
15167
|
+
<!-- </xsl:if> -->
|
|
15168
|
+
|
|
15169
|
+
<xsl:call-template name="setBlockSpanAll"/>
|
|
15170
|
+
|
|
15171
|
+
<xsl:call-template name="refine_annex-style"/>
|
|
15172
|
+
|
|
15173
|
+
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
|
15174
|
+
|
|
15175
|
+
<fo:block role="SKIP">
|
|
15176
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
|
15177
|
+
</fo:block>
|
|
15178
|
+
</fo:block>
|
|
15179
|
+
</xsl:otherwise>
|
|
15180
|
+
</xsl:choose>
|
|
15181
|
+
</xsl:template>
|
|
15182
|
+
|
|
15066
15183
|
<xsl:attribute-set name="p-zzSTDTitle1-style">
|
|
15067
15184
|
</xsl:attribute-set>
|
|
15068
15185
|
|
|
@@ -15552,22 +15669,14 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
15552
15669
|
</xsl:attribute-set>
|
|
15553
15670
|
|
|
15554
15671
|
<xsl:attribute-set name="clause-style">
|
|
15555
|
-
|
|
15672
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
15556
15673
|
</xsl:attribute-set>
|
|
15557
15674
|
|
|
15558
15675
|
<xsl:template name="refine_clause-style">
|
|
15559
|
-
|
|
15560
|
-
|
|
15561
|
-
|
|
15562
|
-
|
|
15563
|
-
<xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
|
|
15564
|
-
</xsl:call-template>
|
|
15565
|
-
</xsl:variable>
|
|
15566
|
-
<xsl:if test="$level >= 4">
|
|
15567
|
-
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
|
15568
|
-
</xsl:if>
|
|
15569
|
-
</xsl:if> -->
|
|
15570
|
-
</xsl:template>
|
|
15676
|
+
<xsl:if test="parent::mn:copyright-statement">
|
|
15677
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
15678
|
+
</xsl:if>
|
|
15679
|
+
</xsl:template> <!-- refine_clause-style -->
|
|
15571
15680
|
|
|
15572
15681
|
<!-- main sections -->
|
|
15573
15682
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
|
@@ -15577,6 +15686,10 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
15577
15686
|
|
|
15578
15687
|
<xsl:call-template name="sections_element_style"/>
|
|
15579
15688
|
|
|
15689
|
+
<!-- <xsl:if test="$namespace = 'rsd'"> -->
|
|
15690
|
+
<xsl:call-template name="addTagElementT"/>
|
|
15691
|
+
<!-- </xsl:if> -->
|
|
15692
|
+
|
|
15580
15693
|
<xsl:call-template name="addReviewHelper"/>
|
|
15581
15694
|
|
|
15582
15695
|
<xsl:apply-templates/>
|
|
@@ -15639,16 +15752,15 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
15639
15752
|
|
|
15640
15753
|
<xsl:template match="mn:clause[normalize-space() != '' or mn:figure or @id]" name="template_clause"> <!-- if clause isn't empty -->
|
|
15641
15754
|
<xsl:call-template name="setNamedDestination"/>
|
|
15642
|
-
<fo:block>
|
|
15643
|
-
<xsl:if test="parent::mn:copyright-statement">
|
|
15644
|
-
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
15645
|
-
</xsl:if>
|
|
15755
|
+
<fo:block role="Sect">
|
|
15646
15756
|
|
|
15647
15757
|
<xsl:call-template name="setId"/>
|
|
15648
15758
|
|
|
15759
|
+
<xsl:call-template name="addTagElementT"/>
|
|
15760
|
+
|
|
15649
15761
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
15650
15762
|
|
|
15651
|
-
<xsl:call-template name="
|
|
15763
|
+
<xsl:call-template name="refine_clause-style"/>
|
|
15652
15764
|
|
|
15653
15765
|
<xsl:call-template name="addReviewHelper"/>
|
|
15654
15766
|
|
|
@@ -15656,41 +15768,6 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
15656
15768
|
</fo:block>
|
|
15657
15769
|
</xsl:template>
|
|
15658
15770
|
|
|
15659
|
-
<xsl:template name="refine_clause_style">
|
|
15660
|
-
</xsl:template> <!-- refine_clause_style -->
|
|
15661
|
-
|
|
15662
|
-
<xsl:template match="mn:annex[normalize-space() != '']">
|
|
15663
|
-
<xsl:choose>
|
|
15664
|
-
<xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
|
|
15665
|
-
<fo:block>
|
|
15666
|
-
<xsl:apply-templates/>
|
|
15667
|
-
</fo:block>
|
|
15668
|
-
</xsl:when>
|
|
15669
|
-
<xsl:otherwise>
|
|
15670
|
-
|
|
15671
|
-
<fo:block break-after="page"/>
|
|
15672
|
-
<xsl:call-template name="setNamedDestination"/>
|
|
15673
|
-
|
|
15674
|
-
<fo:block id="{@id}">
|
|
15675
|
-
|
|
15676
|
-
<xsl:call-template name="setBlockSpanAll"/>
|
|
15677
|
-
|
|
15678
|
-
<xsl:call-template name="refine_annex_style"/>
|
|
15679
|
-
|
|
15680
|
-
</fo:block>
|
|
15681
|
-
|
|
15682
|
-
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
|
15683
|
-
|
|
15684
|
-
<fo:block>
|
|
15685
|
-
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
|
15686
|
-
</fo:block>
|
|
15687
|
-
</xsl:otherwise>
|
|
15688
|
-
</xsl:choose>
|
|
15689
|
-
</xsl:template>
|
|
15690
|
-
|
|
15691
|
-
<xsl:template name="refine_annex_style">
|
|
15692
|
-
</xsl:template>
|
|
15693
|
-
|
|
15694
15771
|
<xsl:template match="mn:name/text() | mn:fmt-name/text()">
|
|
15695
15772
|
<!-- 0xA0 to space replacement -->
|
|
15696
15773
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
|
@@ -15806,6 +15883,13 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
15806
15883
|
<xsl:template name="addTagElementT">
|
|
15807
15884
|
<xsl:variable name="title_">
|
|
15808
15885
|
<xsl:apply-templates select="mn:fmt-title"/>
|
|
15886
|
+
<xsl:if test="not(mn:fmt-title) and self::mn:term">
|
|
15887
|
+
<name>
|
|
15888
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
|
15889
|
+
<xsl:text> </xsl:text>
|
|
15890
|
+
<xsl:apply-templates select="mn:fmt-preferred/node()[1]"/>
|
|
15891
|
+
</name>
|
|
15892
|
+
</xsl:if>
|
|
15809
15893
|
</xsl:variable>
|
|
15810
15894
|
<xsl:variable name="title__">
|
|
15811
15895
|
<xsl:for-each select="xalan:nodeset($title_)/*/node()">
|
|
@@ -15815,7 +15899,7 @@ les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pa
|
|
|
15815
15899
|
</xsl:choose>
|
|
15816
15900
|
</xsl:for-each>
|
|
15817
15901
|
</xsl:variable>
|
|
15818
|
-
<xsl:variable name="title" select="normalize-space($title__)"/>
|
|
15902
|
+
<xsl:variable name="title" select="normalize-space(translate($title__, concat($em_space,' 
'), ' '))"/>
|
|
15819
15903
|
<xsl:if test="$title != ''">
|
|
15820
15904
|
<xsl:attribute name="fox:title">
|
|
15821
15905
|
<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
|