metanorma-ogc 2.9.10 → 2.9.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/ogc/html/htmlstyle.css +4 -0
- data/lib/isodoc/ogc/ogc.standard.xsl +161 -77
- data/lib/isodoc/ogc/ogc.white-paper.xsl +161 -77
- data/lib/metanorma/ogc/basicdoc.rng +22 -13
- data/lib/metanorma/ogc/isodoc.rng +1 -1
- data/lib/metanorma/ogc/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: 33728dc4126d8356b1bf0c002821f3a55bb9898d9285c67666895a524c9e8409
|
|
4
|
+
data.tar.gz: 700e119692d754bebed198ce44cfa168369cefbf31ae2f31c419609cb9ed26e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c5799dd3358c104db6602d5a35669edd242504074eec37c92767f12a5f852898fbd0160f2b98c0337890430ca28eeadd83875677cab4143a753097036771d271
|
|
7
|
+
data.tar.gz: '038704ee24505a7832eaa2d6707dc0c0d3018324ee438a8aebdab3282962522fa2c3e4d6e94eb2f37f55c393fc63ab23b1534be77d65a7e297eda37c578371af'
|
|
@@ -2375,6 +2375,7 @@
|
|
|
2375
2375
|
|
|
2376
2376
|
<!-- Characters -->
|
|
2377
2377
|
<xsl:variable name="linebreak">
</xsl:variable>
|
|
2378
|
+
<xsl:variable name="em_space"> </xsl:variable>
|
|
2378
2379
|
<xsl:variable name="tab_zh"> </xsl:variable>
|
|
2379
2380
|
<xsl:variable name="non_breaking_hyphen">‑</xsl:variable>
|
|
2380
2381
|
<xsl:variable name="thin_space"> </xsl:variable>
|
|
@@ -5853,7 +5854,15 @@
|
|
|
5853
5854
|
<!-- END requirement, recommendation, permission table -->
|
|
5854
5855
|
<!-- ========== -->
|
|
5855
5856
|
|
|
5857
|
+
<xsl:attribute-set name="terms-style">
|
|
5858
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
5859
|
+
</xsl:attribute-set>
|
|
5860
|
+
|
|
5861
|
+
<xsl:template name="refine_terms-style">
|
|
5862
|
+
</xsl:template>
|
|
5863
|
+
|
|
5856
5864
|
<xsl:attribute-set name="term-style">
|
|
5865
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
5857
5866
|
</xsl:attribute-set> <!-- term-style -->
|
|
5858
5867
|
|
|
5859
5868
|
<xsl:template name="refine_term-style">
|
|
@@ -5960,7 +5969,10 @@
|
|
|
5960
5969
|
<xsl:template match="mn:terms">
|
|
5961
5970
|
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
|
5962
5971
|
<xsl:call-template name="setNamedDestination"/>
|
|
5963
|
-
<fo:block id="{@id}">
|
|
5972
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="terms-style">
|
|
5973
|
+
<xsl:call-template name="refine_terms-style"/>
|
|
5974
|
+
<xsl:call-template name="addTagElementT"/>
|
|
5975
|
+
|
|
5964
5976
|
<xsl:apply-templates/>
|
|
5965
5977
|
</fo:block>
|
|
5966
5978
|
</xsl:template>
|
|
@@ -5969,6 +5981,7 @@
|
|
|
5969
5981
|
<xsl:call-template name="setNamedDestination"/>
|
|
5970
5982
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
|
5971
5983
|
<xsl:call-template name="refine_term-style"/>
|
|
5984
|
+
<xsl:call-template name="addTagElementT"/>
|
|
5972
5985
|
<xsl:apply-templates select="mn:fmt-name"/>
|
|
5973
5986
|
|
|
5974
5987
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
|
@@ -6200,7 +6213,9 @@
|
|
|
6200
6213
|
|
|
6201
6214
|
<xsl:template match="mn:definitions">
|
|
6202
6215
|
<xsl:call-template name="setNamedDestination"/>
|
|
6203
|
-
<fo:block id="{@id}">
|
|
6216
|
+
<fo:block id="{@id}" role="Sect">
|
|
6217
|
+
<xsl:call-template name="addTagElementT"/>
|
|
6218
|
+
|
|
6204
6219
|
<xsl:apply-templates/>
|
|
6205
6220
|
</fo:block>
|
|
6206
6221
|
</xsl:template>
|
|
@@ -6275,6 +6290,7 @@
|
|
|
6275
6290
|
<xsl:template match="mn:termexample/mn:p">
|
|
6276
6291
|
<xsl:variable name="element">inline
|
|
6277
6292
|
|
|
6293
|
+
<xsl:value-of select="$example_display_in"/>
|
|
6278
6294
|
</xsl:variable>
|
|
6279
6295
|
<xsl:choose>
|
|
6280
6296
|
<xsl:when test="contains($element, 'block')">
|
|
@@ -6683,6 +6699,9 @@
|
|
|
6683
6699
|
</xsl:attribute-set><!-- table-note-style -->
|
|
6684
6700
|
|
|
6685
6701
|
<xsl:template name="refine_table-note-style">
|
|
6702
|
+
<xsl:if test="self::mn:note">
|
|
6703
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
6704
|
+
</xsl:if>
|
|
6686
6705
|
</xsl:template> <!-- refine_table-note-style -->
|
|
6687
6706
|
|
|
6688
6707
|
<xsl:attribute-set name="table-fn-style">
|
|
@@ -7988,7 +8007,7 @@
|
|
|
7988
8007
|
</xsl:template> <!-- table/note -->
|
|
7989
8008
|
|
|
7990
8009
|
<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">
|
|
7991
|
-
<xsl:apply-templates
|
|
8010
|
+
<fo:inline role="P"><xsl:apply-templates/></fo:inline>
|
|
7992
8011
|
</xsl:template>
|
|
7993
8012
|
|
|
7994
8013
|
<!-- ============================ -->
|
|
@@ -8917,6 +8936,7 @@
|
|
|
8917
8936
|
<!-- ========================== -->
|
|
8918
8937
|
|
|
8919
8938
|
<xsl:attribute-set name="dl-block-style">
|
|
8939
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
8920
8940
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
|
8921
8941
|
</xsl:attribute-set>
|
|
8922
8942
|
|
|
@@ -8927,6 +8947,7 @@
|
|
|
8927
8947
|
</xsl:template>
|
|
8928
8948
|
|
|
8929
8949
|
<xsl:attribute-set name="dt-row-style">
|
|
8950
|
+
<xsl:attribute name="role">LI</xsl:attribute>
|
|
8930
8951
|
<xsl:attribute name="min-height">8.5mm</xsl:attribute>
|
|
8931
8952
|
</xsl:attribute-set>
|
|
8932
8953
|
|
|
@@ -8937,6 +8958,7 @@
|
|
|
8937
8958
|
</xsl:template>
|
|
8938
8959
|
|
|
8939
8960
|
<xsl:attribute-set name="dt-cell-style">
|
|
8961
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
8940
8962
|
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
|
8941
8963
|
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
|
8942
8964
|
<xsl:attribute name="padding-left">1mm</xsl:attribute>
|
|
@@ -8953,6 +8975,7 @@
|
|
|
8953
8975
|
</xsl:template> <!-- refine_dt-cell-style -->
|
|
8954
8976
|
|
|
8955
8977
|
<xsl:attribute-set name="dt-block-style">
|
|
8978
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
8956
8979
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
|
8957
8980
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
8958
8981
|
</xsl:attribute-set>
|
|
@@ -8980,6 +9003,7 @@
|
|
|
8980
9003
|
</xsl:template>
|
|
8981
9004
|
|
|
8982
9005
|
<xsl:attribute-set name="dd-cell-style">
|
|
9006
|
+
<xsl:attribute name="role">LBody</xsl:attribute>
|
|
8983
9007
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
|
8984
9008
|
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
|
8985
9009
|
</xsl:attribute-set>
|
|
@@ -9022,7 +9046,7 @@
|
|
|
9022
9046
|
<xsl:variable name="isAdded" select="@added"/>
|
|
9023
9047
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
|
9024
9048
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
|
9025
|
-
<fo:block-container xsl:use-attribute-sets="dl-block-style"
|
|
9049
|
+
<fo:block-container xsl:use-attribute-sets="dl-block-style">
|
|
9026
9050
|
|
|
9027
9051
|
<xsl:call-template name="refine_dl-block-style"/>
|
|
9028
9052
|
|
|
@@ -9142,7 +9166,7 @@
|
|
|
9142
9166
|
<fo:block id="{concat('table_if_start_',@id)}" keep-with-next="always" font-size="1pt">Start table '<xsl:value-of select="@id"/>'.</fo:block>
|
|
9143
9167
|
</xsl:if>
|
|
9144
9168
|
|
|
9145
|
-
<fo:table width="95%" table-layout="fixed">
|
|
9169
|
+
<fo:table width="95%" table-layout="fixed" role="L">
|
|
9146
9170
|
|
|
9147
9171
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
|
9148
9172
|
<xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
|
|
@@ -9210,7 +9234,7 @@
|
|
|
9210
9234
|
<xsl:with-param name="table_or_dl">dl</xsl:with-param>
|
|
9211
9235
|
</xsl:apply-templates>
|
|
9212
9236
|
|
|
9213
|
-
</xsl:when>
|
|
9237
|
+
</xsl:when> <!-- $isGenerateTableIF = 'true' -->
|
|
9214
9238
|
<xsl:otherwise>
|
|
9215
9239
|
|
|
9216
9240
|
<xsl:variable name="simple-table">
|
|
@@ -9265,7 +9289,7 @@
|
|
|
9265
9289
|
<xsl:with-param name="isContainsKeepTogetherTag" select="$isContainsKeepTogetherTag"/>
|
|
9266
9290
|
</xsl:call-template>
|
|
9267
9291
|
|
|
9268
|
-
<fo:table-body>
|
|
9292
|
+
<fo:table-body role="SKIP">
|
|
9269
9293
|
|
|
9270
9294
|
<!-- DEBUG -->
|
|
9271
9295
|
<xsl:if test="$table_if_debug = 'true'">
|
|
@@ -9474,8 +9498,8 @@
|
|
|
9474
9498
|
<td number-columns-spanned="2">NOTE <xsl:apply-templates /> </td>
|
|
9475
9499
|
</tr>
|
|
9476
9500
|
-->
|
|
9477
|
-
<fo:table-row>
|
|
9478
|
-
<fo:table-cell number-columns-spanned="2">
|
|
9501
|
+
<fo:table-row role="SKIP">
|
|
9502
|
+
<fo:table-cell number-columns-spanned="2" role="SKIP">
|
|
9479
9503
|
<fo:block role="SKIP">
|
|
9480
9504
|
<xsl:call-template name="note"/>
|
|
9481
9505
|
</fo:block>
|
|
@@ -9541,7 +9565,7 @@
|
|
|
9541
9565
|
<xsl:call-template name="refine_dt-cell-style"/>
|
|
9542
9566
|
|
|
9543
9567
|
<xsl:call-template name="setNamedDestination"/>
|
|
9544
|
-
<fo:block xsl:use-attribute-sets="dt-block-style"
|
|
9568
|
+
<fo:block xsl:use-attribute-sets="dt-block-style">
|
|
9545
9569
|
|
|
9546
9570
|
<xsl:choose>
|
|
9547
9571
|
<xsl:when test="$isGenerateTableIF = 'true'">
|
|
@@ -9630,7 +9654,7 @@
|
|
|
9630
9654
|
</xsl:variable>
|
|
9631
9655
|
<xsl:choose>
|
|
9632
9656
|
<xsl:when test="$is_inline_element_after_where = 'true'">
|
|
9633
|
-
<fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
|
|
9657
|
+
<fo:inline role="SKIP"><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
|
|
9634
9658
|
</xsl:when>
|
|
9635
9659
|
<xsl:otherwise>
|
|
9636
9660
|
<xsl:apply-templates select="."/>
|
|
@@ -9898,6 +9922,7 @@
|
|
|
9898
9922
|
<!-- ====== -->
|
|
9899
9923
|
|
|
9900
9924
|
<xsl:attribute-set name="note-style">
|
|
9925
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
9901
9926
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
|
9902
9927
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
9903
9928
|
</xsl:attribute-set> <!-- note-style -->
|
|
@@ -9912,6 +9937,7 @@
|
|
|
9912
9937
|
<xsl:variable name="note-body-indent-table">5mm</xsl:variable>
|
|
9913
9938
|
|
|
9914
9939
|
<xsl:attribute-set name="note-name-style">
|
|
9940
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
9915
9941
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
9916
9942
|
<!-- <xsl:attribute name="padding-right">1mm</xsl:attribute> -->
|
|
9917
9943
|
</xsl:attribute-set> <!-- note-name-style -->
|
|
@@ -9924,9 +9950,13 @@
|
|
|
9924
9950
|
</xsl:attribute-set>
|
|
9925
9951
|
|
|
9926
9952
|
<xsl:template name="refine_table-note-name-style">
|
|
9953
|
+
<xsl:if test="self::mn:note">
|
|
9954
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
9955
|
+
</xsl:if>
|
|
9927
9956
|
</xsl:template> <!-- refine_table-note-name-style -->
|
|
9928
9957
|
|
|
9929
9958
|
<xsl:attribute-set name="note-p-style">
|
|
9959
|
+
<xsl:attribute name="role">P</xsl:attribute>
|
|
9930
9960
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
|
9931
9961
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
9932
9962
|
</xsl:attribute-set> <!-- note-p-style -->
|
|
@@ -9935,6 +9965,7 @@
|
|
|
9935
9965
|
</xsl:template>
|
|
9936
9966
|
|
|
9937
9967
|
<xsl:attribute-set name="termnote-style">
|
|
9968
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
9938
9969
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
|
9939
9970
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
9940
9971
|
</xsl:attribute-set> <!-- termnote-style -->
|
|
@@ -9943,6 +9974,7 @@
|
|
|
9943
9974
|
</xsl:template> <!-- refine_termnote-style -->
|
|
9944
9975
|
|
|
9945
9976
|
<xsl:attribute-set name="termnote-name-style">
|
|
9977
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
9946
9978
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
9947
9979
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
|
9948
9980
|
</xsl:attribute-set> <!-- termnote-name-style -->
|
|
@@ -9951,6 +9983,7 @@
|
|
|
9951
9983
|
</xsl:template>
|
|
9952
9984
|
|
|
9953
9985
|
<xsl:attribute-set name="termnote-p-style">
|
|
9986
|
+
<xsl:attribute name="role">P</xsl:attribute>
|
|
9954
9987
|
<xsl:attribute name="space-before">4pt</xsl:attribute>
|
|
9955
9988
|
</xsl:attribute-set>
|
|
9956
9989
|
|
|
@@ -9966,7 +9999,7 @@
|
|
|
9966
9999
|
|
|
9967
10000
|
<xsl:call-template name="setNamedDestination"/>
|
|
9968
10001
|
|
|
9969
|
-
<fo:block-container xsl:use-attribute-sets="note-style"
|
|
10002
|
+
<fo:block-container xsl:use-attribute-sets="note-style">
|
|
9970
10003
|
<xsl:if test="not(parent::mn:references)">
|
|
9971
10004
|
<xsl:copy-of select="@id"/>
|
|
9972
10005
|
</xsl:if>
|
|
@@ -9976,11 +10009,11 @@
|
|
|
9976
10009
|
<xsl:call-template name="refine_note-style"/>
|
|
9977
10010
|
|
|
9978
10011
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
9979
|
-
<fo:block>
|
|
10012
|
+
<fo:block role="SKIP">
|
|
9980
10013
|
|
|
9981
10014
|
<xsl:call-template name="refine_note_block_style"/>
|
|
9982
10015
|
|
|
9983
|
-
<fo:inline xsl:use-attribute-sets="note-name-style"
|
|
10016
|
+
<fo:inline xsl:use-attribute-sets="note-name-style">
|
|
9984
10017
|
|
|
9985
10018
|
<xsl:apply-templates select="mn:fmt-name/mn:tab" mode="tab"/>
|
|
9986
10019
|
|
|
@@ -10003,7 +10036,15 @@
|
|
|
10003
10036
|
|
|
10004
10037
|
</fo:inline>
|
|
10005
10038
|
|
|
10006
|
-
<xsl:
|
|
10039
|
+
<xsl:choose>
|
|
10040
|
+
<xsl:when test="parent::mn:formattedref and ancestor::mn:bibitem">
|
|
10041
|
+
<fo:inline role="P"><xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/></fo:inline>
|
|
10042
|
+
</xsl:when>
|
|
10043
|
+
<xsl:otherwise>
|
|
10044
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
|
10045
|
+
</xsl:otherwise>
|
|
10046
|
+
</xsl:choose>
|
|
10047
|
+
|
|
10007
10048
|
</fo:block>
|
|
10008
10049
|
</fo:block-container>
|
|
10009
10050
|
</fo:block-container>
|
|
@@ -10016,13 +10057,13 @@
|
|
|
10016
10057
|
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
|
10017
10058
|
<xsl:choose>
|
|
10018
10059
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
|
10019
|
-
<fo:inline xsl:use-attribute-sets="note-p-style"
|
|
10060
|
+
<fo:inline xsl:use-attribute-sets="note-p-style">
|
|
10020
10061
|
<xsl:call-template name="refine_note-p-style"/>
|
|
10021
10062
|
<xsl:apply-templates/>
|
|
10022
10063
|
</fo:inline>
|
|
10023
10064
|
</xsl:when>
|
|
10024
10065
|
<xsl:otherwise>
|
|
10025
|
-
<fo:block xsl:use-attribute-sets="note-p-style"
|
|
10066
|
+
<fo:block xsl:use-attribute-sets="note-p-style">
|
|
10026
10067
|
<xsl:call-template name="refine_note-p-style"/>
|
|
10027
10068
|
<xsl:apply-templates/>
|
|
10028
10069
|
</fo:block>
|
|
@@ -10677,7 +10718,8 @@
|
|
|
10677
10718
|
|
|
10678
10719
|
<!-- debug scale='<xsl:value-of select="$scale"/>', indent='<xsl:value-of select="$indent"/>' -->
|
|
10679
10720
|
|
|
10680
|
-
<fo:external-graphic src="{$src}"
|
|
10721
|
+
<fo:external-graphic src="{$src}" vertical-align="middle">
|
|
10722
|
+
<xsl:call-template name="addAltText"/>
|
|
10681
10723
|
|
|
10682
10724
|
<xsl:if test="parent::mn:logo"> <!-- publisher's logo -->
|
|
10683
10725
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
|
@@ -10741,11 +10783,12 @@
|
|
|
10741
10783
|
<xsl:choose>
|
|
10742
10784
|
<xsl:when test="$isDeleted = 'true'">
|
|
10743
10785
|
<!-- enclose in svg -->
|
|
10744
|
-
<fo:instream-foreign-object
|
|
10786
|
+
<fo:instream-foreign-object>
|
|
10745
10787
|
<xsl:attribute name="width">100%</xsl:attribute>
|
|
10746
10788
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
|
10747
10789
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
|
10748
10790
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
|
10791
|
+
<xsl:call-template name="addAltText"/>
|
|
10749
10792
|
|
|
10750
10793
|
<xsl:apply-templates select="." mode="cross_image"/>
|
|
10751
10794
|
|
|
@@ -10761,7 +10804,8 @@
|
|
|
10761
10804
|
<xsl:value-of select="concat('scale=', $scale,', indent=', $indent)"/>
|
|
10762
10805
|
</fo:block> -->
|
|
10763
10806
|
|
|
10764
|
-
<fo:external-graphic src="{$src}"
|
|
10807
|
+
<fo:external-graphic src="{$src}">
|
|
10808
|
+
<xsl:call-template name="addAltText"/>
|
|
10765
10809
|
|
|
10766
10810
|
<xsl:choose>
|
|
10767
10811
|
<!-- default -->
|
|
@@ -10821,6 +10865,25 @@
|
|
|
10821
10865
|
</xsl:choose>
|
|
10822
10866
|
</xsl:template>
|
|
10823
10867
|
|
|
10868
|
+
<xsl:template name="addAltText">
|
|
10869
|
+
<xsl:param name="name">Image</xsl:param>
|
|
10870
|
+
<xsl:variable name="alt-text">
|
|
10871
|
+
<xsl:choose>
|
|
10872
|
+
<xsl:when test="self::mn:image and normalize-space(@alt) != ''">
|
|
10873
|
+
<xsl:value-of select="@alt"/>
|
|
10874
|
+
</xsl:when>
|
|
10875
|
+
<xsl:when test="normalize-space(../@alt) != ''">
|
|
10876
|
+
<xsl:value-of select="../@alt"/>
|
|
10877
|
+
</xsl:when>
|
|
10878
|
+
<xsl:when test="normalize-space(../mn:fmt-name) != ''">
|
|
10879
|
+
<xsl:value-of select="../mn:fmt-name"/>
|
|
10880
|
+
</xsl:when>
|
|
10881
|
+
<xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise>
|
|
10882
|
+
</xsl:choose>
|
|
10883
|
+
</xsl:variable>
|
|
10884
|
+
<xsl:attribute name="fox:alt-text"><xsl:value-of select="$alt-text"/></xsl:attribute>
|
|
10885
|
+
</xsl:template>
|
|
10886
|
+
|
|
10824
10887
|
<xsl:template name="setImageWidth">
|
|
10825
10888
|
<xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
|
|
10826
10889
|
<xsl:value-of select="@width"/>
|
|
@@ -11009,6 +11072,9 @@
|
|
|
11009
11072
|
|
|
11010
11073
|
<xsl:variable name="alt-text">
|
|
11011
11074
|
<xsl:choose>
|
|
11075
|
+
<xsl:when test="normalize-space(../@alt) != ''">
|
|
11076
|
+
<xsl:value-of select="../@alt"/>
|
|
11077
|
+
</xsl:when>
|
|
11012
11078
|
<xsl:when test="normalize-space(../mn:fmt-name) != ''">
|
|
11013
11079
|
<xsl:value-of select="../mn:fmt-name"/>
|
|
11014
11080
|
</xsl:when>
|
|
@@ -12637,6 +12703,7 @@
|
|
|
12637
12703
|
|
|
12638
12704
|
<!-- admonition -->
|
|
12639
12705
|
<xsl:attribute-set name="admonition-style">
|
|
12706
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
12640
12707
|
<xsl:attribute name="border">0.5pt solid rgb(79, 129, 189)</xsl:attribute>
|
|
12641
12708
|
<xsl:attribute name="color">rgb(79, 129, 189)</xsl:attribute>
|
|
12642
12709
|
<xsl:attribute name="margin-left">16mm</xsl:attribute>
|
|
@@ -12648,6 +12715,7 @@
|
|
|
12648
12715
|
</xsl:template>
|
|
12649
12716
|
|
|
12650
12717
|
<xsl:attribute-set name="admonition-container-style">
|
|
12718
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
12651
12719
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
|
12652
12720
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
|
12653
12721
|
<xsl:attribute name="padding">2mm</xsl:attribute>
|
|
@@ -12658,6 +12726,7 @@
|
|
|
12658
12726
|
</xsl:template>
|
|
12659
12727
|
|
|
12660
12728
|
<xsl:attribute-set name="admonition-name-style">
|
|
12729
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
12661
12730
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
12662
12731
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
12663
12732
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
@@ -12693,7 +12762,7 @@
|
|
|
12693
12762
|
<xsl:attribute name="border">0.5pt solid <xsl:value-of select="$admonition_color"/></xsl:attribute>
|
|
12694
12763
|
<xsl:attribute name="color"><xsl:value-of select="$admonition_color"/></xsl:attribute>
|
|
12695
12764
|
</xsl:if>
|
|
12696
|
-
<fo:block-container xsl:use-attribute-sets="admonition-container-style"
|
|
12765
|
+
<fo:block-container xsl:use-attribute-sets="admonition-container-style">
|
|
12697
12766
|
|
|
12698
12767
|
<xsl:call-template name="refine_admonition-container-style"/>
|
|
12699
12768
|
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
|
@@ -13513,9 +13582,9 @@
|
|
|
13513
13582
|
<xsl:template name="fo_inline_bookmark">
|
|
13514
13583
|
<xsl:param name="bookmark_id"/>
|
|
13515
13584
|
<!-- <fo:inline id="{@id}" font-size="1pt"/> -->
|
|
13516
|
-
<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>
|
|
13585
|
+
<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>
|
|
13517
13586
|
<!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
|
|
13518
|
-
<xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
|
|
13587
|
+
<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>
|
|
13519
13588
|
</xsl:template>
|
|
13520
13589
|
<!-- =================== -->
|
|
13521
13590
|
<!-- End of Index processing -->
|
|
@@ -13683,6 +13752,13 @@
|
|
|
13683
13752
|
<!-- End Form's elements processing -->
|
|
13684
13753
|
<!-- =================== -->
|
|
13685
13754
|
|
|
13755
|
+
<xsl:attribute-set name="toc-container-style">
|
|
13756
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
13757
|
+
</xsl:attribute-set>
|
|
13758
|
+
|
|
13759
|
+
<xsl:template name="refine_toc-container-style">
|
|
13760
|
+
</xsl:template>
|
|
13761
|
+
|
|
13686
13762
|
<xsl:attribute-set name="toc-style">
|
|
13687
13763
|
<xsl:attribute name="line-height">130%</xsl:attribute>
|
|
13688
13764
|
</xsl:attribute-set>
|
|
@@ -15036,6 +15112,13 @@
|
|
|
15036
15112
|
<!-- ===================================== -->
|
|
15037
15113
|
<!-- ===================================== -->
|
|
15038
15114
|
|
|
15115
|
+
<xsl:attribute-set name="annex-style">
|
|
15116
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
15117
|
+
</xsl:attribute-set>
|
|
15118
|
+
|
|
15119
|
+
<xsl:template name="refine_annex-style">
|
|
15120
|
+
</xsl:template>
|
|
15121
|
+
|
|
15039
15122
|
<xsl:attribute-set name="annex-title-style">
|
|
15040
15123
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
15041
15124
|
</xsl:attribute-set> <!-- annex-title-style -->
|
|
@@ -15043,6 +15126,40 @@
|
|
|
15043
15126
|
<xsl:template name="refine_annex-title-style">
|
|
15044
15127
|
</xsl:template>
|
|
15045
15128
|
|
|
15129
|
+
<xsl:template match="mn:annex[normalize-space() != '']">
|
|
15130
|
+
<xsl:choose>
|
|
15131
|
+
<xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
|
|
15132
|
+
<fo:block role="SKIP">
|
|
15133
|
+
<xsl:apply-templates/>
|
|
15134
|
+
</fo:block>
|
|
15135
|
+
</xsl:when>
|
|
15136
|
+
<xsl:otherwise>
|
|
15137
|
+
|
|
15138
|
+
<fo:block break-after="page"/>
|
|
15139
|
+
<xsl:call-template name="setNamedDestination"/>
|
|
15140
|
+
|
|
15141
|
+
<fo:block xsl:use-attribute-sets="annex-style">
|
|
15142
|
+
|
|
15143
|
+
<xsl:call-template name="setId"/>
|
|
15144
|
+
|
|
15145
|
+
<!-- <xsl:if test="$namespace = 'iso'"> -->
|
|
15146
|
+
<xsl:call-template name="addTagElementT"/>
|
|
15147
|
+
<!-- </xsl:if> -->
|
|
15148
|
+
|
|
15149
|
+
<xsl:call-template name="setBlockSpanAll"/>
|
|
15150
|
+
|
|
15151
|
+
<xsl:call-template name="refine_annex-style"/>
|
|
15152
|
+
|
|
15153
|
+
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
|
15154
|
+
|
|
15155
|
+
<fo:block role="SKIP">
|
|
15156
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
|
15157
|
+
</fo:block>
|
|
15158
|
+
</fo:block>
|
|
15159
|
+
</xsl:otherwise>
|
|
15160
|
+
</xsl:choose>
|
|
15161
|
+
</xsl:template>
|
|
15162
|
+
|
|
15046
15163
|
<xsl:attribute-set name="p-zzSTDTitle1-style">
|
|
15047
15164
|
</xsl:attribute-set>
|
|
15048
15165
|
|
|
@@ -15536,22 +15653,14 @@
|
|
|
15536
15653
|
</xsl:attribute-set>
|
|
15537
15654
|
|
|
15538
15655
|
<xsl:attribute-set name="clause-style">
|
|
15539
|
-
|
|
15656
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
15540
15657
|
</xsl:attribute-set>
|
|
15541
15658
|
|
|
15542
15659
|
<xsl:template name="refine_clause-style">
|
|
15543
|
-
|
|
15544
|
-
|
|
15545
|
-
|
|
15546
|
-
|
|
15547
|
-
<xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
|
|
15548
|
-
</xsl:call-template>
|
|
15549
|
-
</xsl:variable>
|
|
15550
|
-
<xsl:if test="$level >= 4">
|
|
15551
|
-
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
|
15552
|
-
</xsl:if>
|
|
15553
|
-
</xsl:if> -->
|
|
15554
|
-
</xsl:template>
|
|
15660
|
+
<xsl:if test="parent::mn:copyright-statement">
|
|
15661
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
15662
|
+
</xsl:if>
|
|
15663
|
+
</xsl:template> <!-- refine_clause-style -->
|
|
15555
15664
|
|
|
15556
15665
|
<!-- main sections -->
|
|
15557
15666
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
|
@@ -15561,6 +15670,10 @@
|
|
|
15561
15670
|
|
|
15562
15671
|
<xsl:call-template name="sections_element_style"/>
|
|
15563
15672
|
|
|
15673
|
+
<!-- <xsl:if test="$namespace = 'rsd'"> -->
|
|
15674
|
+
<xsl:call-template name="addTagElementT"/>
|
|
15675
|
+
<!-- </xsl:if> -->
|
|
15676
|
+
|
|
15564
15677
|
<xsl:call-template name="addReviewHelper"/>
|
|
15565
15678
|
|
|
15566
15679
|
<xsl:apply-templates/>
|
|
@@ -15627,16 +15740,15 @@
|
|
|
15627
15740
|
|
|
15628
15741
|
<xsl:template match="mn:clause[normalize-space() != '' or mn:figure or @id]" name="template_clause"> <!-- if clause isn't empty -->
|
|
15629
15742
|
<xsl:call-template name="setNamedDestination"/>
|
|
15630
|
-
<fo:block>
|
|
15631
|
-
<xsl:if test="parent::mn:copyright-statement">
|
|
15632
|
-
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
15633
|
-
</xsl:if>
|
|
15743
|
+
<fo:block role="Sect">
|
|
15634
15744
|
|
|
15635
15745
|
<xsl:call-template name="setId"/>
|
|
15636
15746
|
|
|
15747
|
+
<xsl:call-template name="addTagElementT"/>
|
|
15748
|
+
|
|
15637
15749
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
15638
15750
|
|
|
15639
|
-
<xsl:call-template name="
|
|
15751
|
+
<xsl:call-template name="refine_clause-style"/>
|
|
15640
15752
|
|
|
15641
15753
|
<xsl:call-template name="addReviewHelper"/>
|
|
15642
15754
|
|
|
@@ -15644,41 +15756,6 @@
|
|
|
15644
15756
|
</fo:block>
|
|
15645
15757
|
</xsl:template>
|
|
15646
15758
|
|
|
15647
|
-
<xsl:template name="refine_clause_style">
|
|
15648
|
-
</xsl:template> <!-- refine_clause_style -->
|
|
15649
|
-
|
|
15650
|
-
<xsl:template match="mn:annex[normalize-space() != '']">
|
|
15651
|
-
<xsl:choose>
|
|
15652
|
-
<xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
|
|
15653
|
-
<fo:block>
|
|
15654
|
-
<xsl:apply-templates/>
|
|
15655
|
-
</fo:block>
|
|
15656
|
-
</xsl:when>
|
|
15657
|
-
<xsl:otherwise>
|
|
15658
|
-
|
|
15659
|
-
<fo:block break-after="page"/>
|
|
15660
|
-
<xsl:call-template name="setNamedDestination"/>
|
|
15661
|
-
|
|
15662
|
-
<fo:block id="{@id}">
|
|
15663
|
-
|
|
15664
|
-
<xsl:call-template name="setBlockSpanAll"/>
|
|
15665
|
-
|
|
15666
|
-
<xsl:call-template name="refine_annex_style"/>
|
|
15667
|
-
|
|
15668
|
-
</fo:block>
|
|
15669
|
-
|
|
15670
|
-
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
|
15671
|
-
|
|
15672
|
-
<fo:block>
|
|
15673
|
-
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
|
15674
|
-
</fo:block>
|
|
15675
|
-
</xsl:otherwise>
|
|
15676
|
-
</xsl:choose>
|
|
15677
|
-
</xsl:template>
|
|
15678
|
-
|
|
15679
|
-
<xsl:template name="refine_annex_style">
|
|
15680
|
-
</xsl:template>
|
|
15681
|
-
|
|
15682
15759
|
<xsl:template match="mn:name/text() | mn:fmt-name/text()">
|
|
15683
15760
|
<!-- 0xA0 to space replacement -->
|
|
15684
15761
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
|
@@ -15794,6 +15871,13 @@
|
|
|
15794
15871
|
<xsl:template name="addTagElementT">
|
|
15795
15872
|
<xsl:variable name="title_">
|
|
15796
15873
|
<xsl:apply-templates select="mn:fmt-title"/>
|
|
15874
|
+
<xsl:if test="not(mn:fmt-title) and self::mn:term">
|
|
15875
|
+
<name>
|
|
15876
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
|
15877
|
+
<xsl:text> </xsl:text>
|
|
15878
|
+
<xsl:apply-templates select="mn:fmt-preferred/node()[1]"/>
|
|
15879
|
+
</name>
|
|
15880
|
+
</xsl:if>
|
|
15797
15881
|
</xsl:variable>
|
|
15798
15882
|
<xsl:variable name="title__">
|
|
15799
15883
|
<xsl:for-each select="xalan:nodeset($title_)/*/node()">
|
|
@@ -15803,7 +15887,7 @@
|
|
|
15803
15887
|
</xsl:choose>
|
|
15804
15888
|
</xsl:for-each>
|
|
15805
15889
|
</xsl:variable>
|
|
15806
|
-
<xsl:variable name="title" select="normalize-space($title__)"/>
|
|
15890
|
+
<xsl:variable name="title" select="normalize-space(translate($title__, concat($em_space,' 
'), ' '))"/>
|
|
15807
15891
|
<xsl:if test="$title != ''">
|
|
15808
15892
|
<xsl:attribute name="fox:title">
|
|
15809
15893
|
<xsl:if test="ancestor::mn:sections">
|
|
@@ -1031,6 +1031,7 @@
|
|
|
1031
1031
|
|
|
1032
1032
|
<!-- Characters -->
|
|
1033
1033
|
<xsl:variable name="linebreak">
</xsl:variable>
|
|
1034
|
+
<xsl:variable name="em_space"> </xsl:variable>
|
|
1034
1035
|
<xsl:variable name="tab_zh"> </xsl:variable>
|
|
1035
1036
|
<xsl:variable name="non_breaking_hyphen">‑</xsl:variable>
|
|
1036
1037
|
<xsl:variable name="thin_space"> </xsl:variable>
|
|
@@ -4499,7 +4500,15 @@
|
|
|
4499
4500
|
<!-- END requirement, recommendation, permission table -->
|
|
4500
4501
|
<!-- ========== -->
|
|
4501
4502
|
|
|
4503
|
+
<xsl:attribute-set name="terms-style">
|
|
4504
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
4505
|
+
</xsl:attribute-set>
|
|
4506
|
+
|
|
4507
|
+
<xsl:template name="refine_terms-style">
|
|
4508
|
+
</xsl:template>
|
|
4509
|
+
|
|
4502
4510
|
<xsl:attribute-set name="term-style">
|
|
4511
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
4503
4512
|
</xsl:attribute-set> <!-- term-style -->
|
|
4504
4513
|
|
|
4505
4514
|
<xsl:template name="refine_term-style">
|
|
@@ -4598,7 +4607,10 @@
|
|
|
4598
4607
|
<xsl:template match="mn:terms">
|
|
4599
4608
|
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
|
4600
4609
|
<xsl:call-template name="setNamedDestination"/>
|
|
4601
|
-
<fo:block id="{@id}">
|
|
4610
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="terms-style">
|
|
4611
|
+
<xsl:call-template name="refine_terms-style"/>
|
|
4612
|
+
<xsl:call-template name="addTagElementT"/>
|
|
4613
|
+
|
|
4602
4614
|
<xsl:apply-templates/>
|
|
4603
4615
|
</fo:block>
|
|
4604
4616
|
</xsl:template>
|
|
@@ -4607,6 +4619,7 @@
|
|
|
4607
4619
|
<xsl:call-template name="setNamedDestination"/>
|
|
4608
4620
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
|
4609
4621
|
<xsl:call-template name="refine_term-style"/>
|
|
4622
|
+
<xsl:call-template name="addTagElementT"/>
|
|
4610
4623
|
|
|
4611
4624
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
|
4612
4625
|
</fo:block>
|
|
@@ -4842,7 +4855,9 @@
|
|
|
4842
4855
|
|
|
4843
4856
|
<xsl:template match="mn:definitions">
|
|
4844
4857
|
<xsl:call-template name="setNamedDestination"/>
|
|
4845
|
-
<fo:block id="{@id}">
|
|
4858
|
+
<fo:block id="{@id}" role="Sect">
|
|
4859
|
+
<xsl:call-template name="addTagElementT"/>
|
|
4860
|
+
|
|
4846
4861
|
<xsl:apply-templates/>
|
|
4847
4862
|
</fo:block>
|
|
4848
4863
|
</xsl:template>
|
|
@@ -4922,6 +4937,7 @@
|
|
|
4922
4937
|
<xsl:template match="mn:termexample/mn:p">
|
|
4923
4938
|
<xsl:variable name="element">inline
|
|
4924
4939
|
|
|
4940
|
+
<xsl:value-of select="$example_display_in"/>
|
|
4925
4941
|
</xsl:variable>
|
|
4926
4942
|
<xsl:choose>
|
|
4927
4943
|
<xsl:when test="contains($element, 'block')">
|
|
@@ -5305,6 +5321,9 @@
|
|
|
5305
5321
|
</xsl:attribute-set><!-- table-note-style -->
|
|
5306
5322
|
|
|
5307
5323
|
<xsl:template name="refine_table-note-style">
|
|
5324
|
+
<xsl:if test="self::mn:note">
|
|
5325
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
5326
|
+
</xsl:if>
|
|
5308
5327
|
</xsl:template> <!-- refine_table-note-style -->
|
|
5309
5328
|
|
|
5310
5329
|
<xsl:attribute-set name="table-fn-style">
|
|
@@ -6604,7 +6623,7 @@
|
|
|
6604
6623
|
</xsl:template> <!-- table/note -->
|
|
6605
6624
|
|
|
6606
6625
|
<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">
|
|
6607
|
-
<xsl:apply-templates
|
|
6626
|
+
<fo:inline role="P"><xsl:apply-templates/></fo:inline>
|
|
6608
6627
|
</xsl:template>
|
|
6609
6628
|
|
|
6610
6629
|
<!-- ============================ -->
|
|
@@ -7533,6 +7552,7 @@
|
|
|
7533
7552
|
<!-- ========================== -->
|
|
7534
7553
|
|
|
7535
7554
|
<xsl:attribute-set name="dl-block-style">
|
|
7555
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
7536
7556
|
</xsl:attribute-set>
|
|
7537
7557
|
|
|
7538
7558
|
<xsl:template name="refine_dl-block-style">
|
|
@@ -7542,18 +7562,21 @@
|
|
|
7542
7562
|
</xsl:template>
|
|
7543
7563
|
|
|
7544
7564
|
<xsl:attribute-set name="dt-row-style">
|
|
7565
|
+
<xsl:attribute name="role">LI</xsl:attribute>
|
|
7545
7566
|
</xsl:attribute-set>
|
|
7546
7567
|
|
|
7547
7568
|
<xsl:template name="refine_dt-row-style">
|
|
7548
7569
|
</xsl:template>
|
|
7549
7570
|
|
|
7550
7571
|
<xsl:attribute-set name="dt-cell-style">
|
|
7572
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
7551
7573
|
</xsl:attribute-set>
|
|
7552
7574
|
|
|
7553
7575
|
<xsl:template name="refine_dt-cell-style">
|
|
7554
7576
|
</xsl:template> <!-- refine_dt-cell-style -->
|
|
7555
7577
|
|
|
7556
7578
|
<xsl:attribute-set name="dt-block-style">
|
|
7579
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
7557
7580
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
|
7558
7581
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
7559
7582
|
</xsl:attribute-set>
|
|
@@ -7572,6 +7595,7 @@
|
|
|
7572
7595
|
</xsl:template>
|
|
7573
7596
|
|
|
7574
7597
|
<xsl:attribute-set name="dd-cell-style">
|
|
7598
|
+
<xsl:attribute name="role">LBody</xsl:attribute>
|
|
7575
7599
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
|
7576
7600
|
</xsl:attribute-set>
|
|
7577
7601
|
|
|
@@ -7607,7 +7631,7 @@
|
|
|
7607
7631
|
<xsl:variable name="isAdded" select="@added"/>
|
|
7608
7632
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
|
7609
7633
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
|
7610
|
-
<fo:block-container xsl:use-attribute-sets="dl-block-style"
|
|
7634
|
+
<fo:block-container xsl:use-attribute-sets="dl-block-style">
|
|
7611
7635
|
|
|
7612
7636
|
<xsl:call-template name="refine_dl-block-style"/>
|
|
7613
7637
|
|
|
@@ -7727,7 +7751,7 @@
|
|
|
7727
7751
|
<fo:block id="{concat('table_if_start_',@id)}" keep-with-next="always" font-size="1pt">Start table '<xsl:value-of select="@id"/>'.</fo:block>
|
|
7728
7752
|
</xsl:if>
|
|
7729
7753
|
|
|
7730
|
-
<fo:table width="95%" table-layout="fixed">
|
|
7754
|
+
<fo:table width="95%" table-layout="fixed" role="L">
|
|
7731
7755
|
|
|
7732
7756
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
|
7733
7757
|
<xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
|
|
@@ -7795,7 +7819,7 @@
|
|
|
7795
7819
|
<xsl:with-param name="table_or_dl">dl</xsl:with-param>
|
|
7796
7820
|
</xsl:apply-templates>
|
|
7797
7821
|
|
|
7798
|
-
</xsl:when>
|
|
7822
|
+
</xsl:when> <!-- $isGenerateTableIF = 'true' -->
|
|
7799
7823
|
<xsl:otherwise>
|
|
7800
7824
|
|
|
7801
7825
|
<xsl:variable name="simple-table">
|
|
@@ -7850,7 +7874,7 @@
|
|
|
7850
7874
|
<xsl:with-param name="isContainsKeepTogetherTag" select="$isContainsKeepTogetherTag"/>
|
|
7851
7875
|
</xsl:call-template>
|
|
7852
7876
|
|
|
7853
|
-
<fo:table-body>
|
|
7877
|
+
<fo:table-body role="SKIP">
|
|
7854
7878
|
|
|
7855
7879
|
<!-- DEBUG -->
|
|
7856
7880
|
<xsl:if test="$table_if_debug = 'true'">
|
|
@@ -8059,8 +8083,8 @@
|
|
|
8059
8083
|
<td number-columns-spanned="2">NOTE <xsl:apply-templates /> </td>
|
|
8060
8084
|
</tr>
|
|
8061
8085
|
-->
|
|
8062
|
-
<fo:table-row>
|
|
8063
|
-
<fo:table-cell number-columns-spanned="2">
|
|
8086
|
+
<fo:table-row role="SKIP">
|
|
8087
|
+
<fo:table-cell number-columns-spanned="2" role="SKIP">
|
|
8064
8088
|
<fo:block role="SKIP">
|
|
8065
8089
|
<xsl:call-template name="note"/>
|
|
8066
8090
|
</fo:block>
|
|
@@ -8124,7 +8148,7 @@
|
|
|
8124
8148
|
<xsl:call-template name="refine_dt-cell-style"/>
|
|
8125
8149
|
|
|
8126
8150
|
<xsl:call-template name="setNamedDestination"/>
|
|
8127
|
-
<fo:block xsl:use-attribute-sets="dt-block-style"
|
|
8151
|
+
<fo:block xsl:use-attribute-sets="dt-block-style">
|
|
8128
8152
|
|
|
8129
8153
|
<xsl:choose>
|
|
8130
8154
|
<xsl:when test="$isGenerateTableIF = 'true'">
|
|
@@ -8213,7 +8237,7 @@
|
|
|
8213
8237
|
</xsl:variable>
|
|
8214
8238
|
<xsl:choose>
|
|
8215
8239
|
<xsl:when test="$is_inline_element_after_where = 'true'">
|
|
8216
|
-
<fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
|
|
8240
|
+
<fo:inline role="SKIP"><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
|
|
8217
8241
|
</xsl:when>
|
|
8218
8242
|
<xsl:otherwise>
|
|
8219
8243
|
<xsl:apply-templates select="."/>
|
|
@@ -8499,6 +8523,7 @@
|
|
|
8499
8523
|
<!-- ====== -->
|
|
8500
8524
|
|
|
8501
8525
|
<xsl:attribute-set name="note-style">
|
|
8526
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
8502
8527
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
|
8503
8528
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
|
8504
8529
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
@@ -8515,6 +8540,7 @@
|
|
|
8515
8540
|
<xsl:variable name="note-body-indent-table">5mm</xsl:variable>
|
|
8516
8541
|
|
|
8517
8542
|
<xsl:attribute-set name="note-name-style">
|
|
8543
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
8518
8544
|
<!-- <xsl:attribute name="padding-right">4mm</xsl:attribute> -->
|
|
8519
8545
|
</xsl:attribute-set> <!-- note-name-style -->
|
|
8520
8546
|
|
|
@@ -8526,9 +8552,13 @@
|
|
|
8526
8552
|
</xsl:attribute-set>
|
|
8527
8553
|
|
|
8528
8554
|
<xsl:template name="refine_table-note-name-style">
|
|
8555
|
+
<xsl:if test="self::mn:note">
|
|
8556
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
8557
|
+
</xsl:if>
|
|
8529
8558
|
</xsl:template> <!-- refine_table-note-name-style -->
|
|
8530
8559
|
|
|
8531
8560
|
<xsl:attribute-set name="note-p-style">
|
|
8561
|
+
<xsl:attribute name="role">P</xsl:attribute>
|
|
8532
8562
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
|
8533
8563
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
8534
8564
|
</xsl:attribute-set> <!-- note-p-style -->
|
|
@@ -8537,6 +8567,7 @@
|
|
|
8537
8567
|
</xsl:template>
|
|
8538
8568
|
|
|
8539
8569
|
<xsl:attribute-set name="termnote-style">
|
|
8570
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
8540
8571
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
|
8541
8572
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
8542
8573
|
</xsl:attribute-set> <!-- termnote-style -->
|
|
@@ -8545,12 +8576,14 @@
|
|
|
8545
8576
|
</xsl:template> <!-- refine_termnote-style -->
|
|
8546
8577
|
|
|
8547
8578
|
<xsl:attribute-set name="termnote-name-style">
|
|
8579
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
8548
8580
|
</xsl:attribute-set> <!-- termnote-name-style -->
|
|
8549
8581
|
|
|
8550
8582
|
<xsl:template name="refine_termnote-name-style">
|
|
8551
8583
|
</xsl:template>
|
|
8552
8584
|
|
|
8553
8585
|
<xsl:attribute-set name="termnote-p-style">
|
|
8586
|
+
<xsl:attribute name="role">P</xsl:attribute>
|
|
8554
8587
|
<xsl:attribute name="space-before">4pt</xsl:attribute>
|
|
8555
8588
|
</xsl:attribute-set>
|
|
8556
8589
|
|
|
@@ -8566,7 +8599,7 @@
|
|
|
8566
8599
|
|
|
8567
8600
|
<xsl:call-template name="setNamedDestination"/>
|
|
8568
8601
|
|
|
8569
|
-
<fo:block-container xsl:use-attribute-sets="note-style"
|
|
8602
|
+
<fo:block-container xsl:use-attribute-sets="note-style">
|
|
8570
8603
|
<xsl:if test="not(parent::mn:references)">
|
|
8571
8604
|
<xsl:copy-of select="@id"/>
|
|
8572
8605
|
</xsl:if>
|
|
@@ -8576,11 +8609,11 @@
|
|
|
8576
8609
|
<xsl:call-template name="refine_note-style"/>
|
|
8577
8610
|
|
|
8578
8611
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
8579
|
-
<fo:block>
|
|
8612
|
+
<fo:block role="SKIP">
|
|
8580
8613
|
|
|
8581
8614
|
<xsl:call-template name="refine_note_block_style"/>
|
|
8582
8615
|
|
|
8583
|
-
<fo:inline xsl:use-attribute-sets="note-name-style"
|
|
8616
|
+
<fo:inline xsl:use-attribute-sets="note-name-style">
|
|
8584
8617
|
|
|
8585
8618
|
<xsl:apply-templates select="mn:fmt-name/mn:tab" mode="tab"/>
|
|
8586
8619
|
|
|
@@ -8603,7 +8636,15 @@
|
|
|
8603
8636
|
|
|
8604
8637
|
</fo:inline>
|
|
8605
8638
|
|
|
8606
|
-
<xsl:
|
|
8639
|
+
<xsl:choose>
|
|
8640
|
+
<xsl:when test="parent::mn:formattedref and ancestor::mn:bibitem">
|
|
8641
|
+
<fo:inline role="P"><xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/></fo:inline>
|
|
8642
|
+
</xsl:when>
|
|
8643
|
+
<xsl:otherwise>
|
|
8644
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
|
8645
|
+
</xsl:otherwise>
|
|
8646
|
+
</xsl:choose>
|
|
8647
|
+
|
|
8607
8648
|
</fo:block>
|
|
8608
8649
|
</fo:block-container>
|
|
8609
8650
|
</fo:block-container>
|
|
@@ -8616,13 +8657,13 @@
|
|
|
8616
8657
|
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
|
8617
8658
|
<xsl:choose>
|
|
8618
8659
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
|
8619
|
-
<fo:inline xsl:use-attribute-sets="note-p-style"
|
|
8660
|
+
<fo:inline xsl:use-attribute-sets="note-p-style">
|
|
8620
8661
|
<xsl:call-template name="refine_note-p-style"/>
|
|
8621
8662
|
<xsl:apply-templates/>
|
|
8622
8663
|
</fo:inline>
|
|
8623
8664
|
</xsl:when>
|
|
8624
8665
|
<xsl:otherwise>
|
|
8625
|
-
<fo:block xsl:use-attribute-sets="note-p-style"
|
|
8666
|
+
<fo:block xsl:use-attribute-sets="note-p-style">
|
|
8626
8667
|
<xsl:call-template name="refine_note-p-style"/>
|
|
8627
8668
|
<xsl:apply-templates/>
|
|
8628
8669
|
</fo:block>
|
|
@@ -9275,7 +9316,8 @@
|
|
|
9275
9316
|
|
|
9276
9317
|
<!-- debug scale='<xsl:value-of select="$scale"/>', indent='<xsl:value-of select="$indent"/>' -->
|
|
9277
9318
|
|
|
9278
|
-
<fo:external-graphic src="{$src}"
|
|
9319
|
+
<fo:external-graphic src="{$src}" vertical-align="middle">
|
|
9320
|
+
<xsl:call-template name="addAltText"/>
|
|
9279
9321
|
|
|
9280
9322
|
<xsl:if test="parent::mn:logo"> <!-- publisher's logo -->
|
|
9281
9323
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
|
@@ -9339,11 +9381,12 @@
|
|
|
9339
9381
|
<xsl:choose>
|
|
9340
9382
|
<xsl:when test="$isDeleted = 'true'">
|
|
9341
9383
|
<!-- enclose in svg -->
|
|
9342
|
-
<fo:instream-foreign-object
|
|
9384
|
+
<fo:instream-foreign-object>
|
|
9343
9385
|
<xsl:attribute name="width">100%</xsl:attribute>
|
|
9344
9386
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
|
9345
9387
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
|
9346
9388
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
|
9389
|
+
<xsl:call-template name="addAltText"/>
|
|
9347
9390
|
|
|
9348
9391
|
<xsl:apply-templates select="." mode="cross_image"/>
|
|
9349
9392
|
|
|
@@ -9359,7 +9402,8 @@
|
|
|
9359
9402
|
<xsl:value-of select="concat('scale=', $scale,', indent=', $indent)"/>
|
|
9360
9403
|
</fo:block> -->
|
|
9361
9404
|
|
|
9362
|
-
<fo:external-graphic src="{$src}"
|
|
9405
|
+
<fo:external-graphic src="{$src}">
|
|
9406
|
+
<xsl:call-template name="addAltText"/>
|
|
9363
9407
|
|
|
9364
9408
|
<xsl:choose>
|
|
9365
9409
|
<!-- default -->
|
|
@@ -9419,6 +9463,25 @@
|
|
|
9419
9463
|
</xsl:choose>
|
|
9420
9464
|
</xsl:template>
|
|
9421
9465
|
|
|
9466
|
+
<xsl:template name="addAltText">
|
|
9467
|
+
<xsl:param name="name">Image</xsl:param>
|
|
9468
|
+
<xsl:variable name="alt-text">
|
|
9469
|
+
<xsl:choose>
|
|
9470
|
+
<xsl:when test="self::mn:image and normalize-space(@alt) != ''">
|
|
9471
|
+
<xsl:value-of select="@alt"/>
|
|
9472
|
+
</xsl:when>
|
|
9473
|
+
<xsl:when test="normalize-space(../@alt) != ''">
|
|
9474
|
+
<xsl:value-of select="../@alt"/>
|
|
9475
|
+
</xsl:when>
|
|
9476
|
+
<xsl:when test="normalize-space(../mn:fmt-name) != ''">
|
|
9477
|
+
<xsl:value-of select="../mn:fmt-name"/>
|
|
9478
|
+
</xsl:when>
|
|
9479
|
+
<xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise>
|
|
9480
|
+
</xsl:choose>
|
|
9481
|
+
</xsl:variable>
|
|
9482
|
+
<xsl:attribute name="fox:alt-text"><xsl:value-of select="$alt-text"/></xsl:attribute>
|
|
9483
|
+
</xsl:template>
|
|
9484
|
+
|
|
9422
9485
|
<xsl:template name="setImageWidth">
|
|
9423
9486
|
<xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
|
|
9424
9487
|
<xsl:value-of select="@width"/>
|
|
@@ -9607,6 +9670,9 @@
|
|
|
9607
9670
|
|
|
9608
9671
|
<xsl:variable name="alt-text">
|
|
9609
9672
|
<xsl:choose>
|
|
9673
|
+
<xsl:when test="normalize-space(../@alt) != ''">
|
|
9674
|
+
<xsl:value-of select="../@alt"/>
|
|
9675
|
+
</xsl:when>
|
|
9610
9676
|
<xsl:when test="normalize-space(../mn:fmt-name) != ''">
|
|
9611
9677
|
<xsl:value-of select="../mn:fmt-name"/>
|
|
9612
9678
|
</xsl:when>
|
|
@@ -11204,6 +11270,7 @@
|
|
|
11204
11270
|
|
|
11205
11271
|
<!-- admonition -->
|
|
11206
11272
|
<xsl:attribute-set name="admonition-style">
|
|
11273
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
11207
11274
|
<xsl:attribute name="border">0.5pt solid rgb(79, 129, 189)</xsl:attribute>
|
|
11208
11275
|
<xsl:attribute name="color">rgb(79, 129, 189)</xsl:attribute>
|
|
11209
11276
|
<xsl:attribute name="margin-left">16mm</xsl:attribute>
|
|
@@ -11215,6 +11282,7 @@
|
|
|
11215
11282
|
</xsl:template>
|
|
11216
11283
|
|
|
11217
11284
|
<xsl:attribute-set name="admonition-container-style">
|
|
11285
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
11218
11286
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
|
11219
11287
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
|
11220
11288
|
<xsl:attribute name="padding">2mm</xsl:attribute>
|
|
@@ -11225,6 +11293,7 @@
|
|
|
11225
11293
|
</xsl:template>
|
|
11226
11294
|
|
|
11227
11295
|
<xsl:attribute-set name="admonition-name-style">
|
|
11296
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
11228
11297
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
11229
11298
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
11230
11299
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
@@ -11260,7 +11329,7 @@
|
|
|
11260
11329
|
<xsl:attribute name="border">0.5pt solid <xsl:value-of select="$admonition_color"/></xsl:attribute>
|
|
11261
11330
|
<xsl:attribute name="color"><xsl:value-of select="$admonition_color"/></xsl:attribute>
|
|
11262
11331
|
</xsl:if>
|
|
11263
|
-
<fo:block-container xsl:use-attribute-sets="admonition-container-style"
|
|
11332
|
+
<fo:block-container xsl:use-attribute-sets="admonition-container-style">
|
|
11264
11333
|
|
|
11265
11334
|
<xsl:call-template name="refine_admonition-container-style"/>
|
|
11266
11335
|
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
|
@@ -12100,9 +12169,9 @@
|
|
|
12100
12169
|
<xsl:template name="fo_inline_bookmark">
|
|
12101
12170
|
<xsl:param name="bookmark_id"/>
|
|
12102
12171
|
<!-- <fo:inline id="{@id}" font-size="1pt"/> -->
|
|
12103
|
-
<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>
|
|
12172
|
+
<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>
|
|
12104
12173
|
<!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
|
|
12105
|
-
<xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
|
|
12174
|
+
<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>
|
|
12106
12175
|
</xsl:template>
|
|
12107
12176
|
<!-- =================== -->
|
|
12108
12177
|
<!-- End of Index processing -->
|
|
@@ -12270,6 +12339,13 @@
|
|
|
12270
12339
|
<!-- End Form's elements processing -->
|
|
12271
12340
|
<!-- =================== -->
|
|
12272
12341
|
|
|
12342
|
+
<xsl:attribute-set name="toc-container-style">
|
|
12343
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
12344
|
+
</xsl:attribute-set>
|
|
12345
|
+
|
|
12346
|
+
<xsl:template name="refine_toc-container-style">
|
|
12347
|
+
</xsl:template>
|
|
12348
|
+
|
|
12273
12349
|
<xsl:attribute-set name="toc-style">
|
|
12274
12350
|
<xsl:attribute name="line-height">1.08</xsl:attribute>
|
|
12275
12351
|
<xsl:attribute name="font-family">Lato</xsl:attribute>
|
|
@@ -13620,6 +13696,13 @@
|
|
|
13620
13696
|
<!-- ===================================== -->
|
|
13621
13697
|
<!-- ===================================== -->
|
|
13622
13698
|
|
|
13699
|
+
<xsl:attribute-set name="annex-style">
|
|
13700
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
13701
|
+
</xsl:attribute-set>
|
|
13702
|
+
|
|
13703
|
+
<xsl:template name="refine_annex-style">
|
|
13704
|
+
</xsl:template>
|
|
13705
|
+
|
|
13623
13706
|
<xsl:attribute-set name="annex-title-style">
|
|
13624
13707
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
13625
13708
|
</xsl:attribute-set> <!-- annex-title-style -->
|
|
@@ -13627,6 +13710,40 @@
|
|
|
13627
13710
|
<xsl:template name="refine_annex-title-style">
|
|
13628
13711
|
</xsl:template>
|
|
13629
13712
|
|
|
13713
|
+
<xsl:template match="mn:annex[normalize-space() != '']">
|
|
13714
|
+
<xsl:choose>
|
|
13715
|
+
<xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
|
|
13716
|
+
<fo:block role="SKIP">
|
|
13717
|
+
<xsl:apply-templates/>
|
|
13718
|
+
</fo:block>
|
|
13719
|
+
</xsl:when>
|
|
13720
|
+
<xsl:otherwise>
|
|
13721
|
+
|
|
13722
|
+
<fo:block break-after="page"/>
|
|
13723
|
+
<xsl:call-template name="setNamedDestination"/>
|
|
13724
|
+
|
|
13725
|
+
<fo:block xsl:use-attribute-sets="annex-style">
|
|
13726
|
+
|
|
13727
|
+
<xsl:call-template name="setId"/>
|
|
13728
|
+
|
|
13729
|
+
<!-- <xsl:if test="$namespace = 'iso'"> -->
|
|
13730
|
+
<xsl:call-template name="addTagElementT"/>
|
|
13731
|
+
<!-- </xsl:if> -->
|
|
13732
|
+
|
|
13733
|
+
<xsl:call-template name="setBlockSpanAll"/>
|
|
13734
|
+
|
|
13735
|
+
<xsl:call-template name="refine_annex-style"/>
|
|
13736
|
+
|
|
13737
|
+
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
|
13738
|
+
|
|
13739
|
+
<fo:block role="SKIP">
|
|
13740
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
|
13741
|
+
</fo:block>
|
|
13742
|
+
</fo:block>
|
|
13743
|
+
</xsl:otherwise>
|
|
13744
|
+
</xsl:choose>
|
|
13745
|
+
</xsl:template>
|
|
13746
|
+
|
|
13630
13747
|
<xsl:attribute-set name="p-zzSTDTitle1-style">
|
|
13631
13748
|
</xsl:attribute-set>
|
|
13632
13749
|
|
|
@@ -14099,22 +14216,14 @@
|
|
|
14099
14216
|
</xsl:attribute-set>
|
|
14100
14217
|
|
|
14101
14218
|
<xsl:attribute-set name="clause-style">
|
|
14102
|
-
|
|
14219
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
14103
14220
|
</xsl:attribute-set>
|
|
14104
14221
|
|
|
14105
14222
|
<xsl:template name="refine_clause-style">
|
|
14106
|
-
|
|
14107
|
-
|
|
14108
|
-
|
|
14109
|
-
|
|
14110
|
-
<xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
|
|
14111
|
-
</xsl:call-template>
|
|
14112
|
-
</xsl:variable>
|
|
14113
|
-
<xsl:if test="$level >= 4">
|
|
14114
|
-
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
|
14115
|
-
</xsl:if>
|
|
14116
|
-
</xsl:if> -->
|
|
14117
|
-
</xsl:template>
|
|
14223
|
+
<xsl:if test="parent::mn:copyright-statement">
|
|
14224
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
14225
|
+
</xsl:if>
|
|
14226
|
+
</xsl:template> <!-- refine_clause-style -->
|
|
14118
14227
|
|
|
14119
14228
|
<!-- main sections -->
|
|
14120
14229
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
|
@@ -14124,6 +14233,10 @@
|
|
|
14124
14233
|
|
|
14125
14234
|
<xsl:call-template name="sections_element_style"/>
|
|
14126
14235
|
|
|
14236
|
+
<!-- <xsl:if test="$namespace = 'rsd'"> -->
|
|
14237
|
+
<xsl:call-template name="addTagElementT"/>
|
|
14238
|
+
<!-- </xsl:if> -->
|
|
14239
|
+
|
|
14127
14240
|
<xsl:call-template name="addReviewHelper"/>
|
|
14128
14241
|
|
|
14129
14242
|
<xsl:apply-templates/>
|
|
@@ -14190,16 +14303,15 @@
|
|
|
14190
14303
|
|
|
14191
14304
|
<xsl:template match="mn:clause[normalize-space() != '' or mn:figure or @id]" name="template_clause"> <!-- if clause isn't empty -->
|
|
14192
14305
|
<xsl:call-template name="setNamedDestination"/>
|
|
14193
|
-
<fo:block>
|
|
14194
|
-
<xsl:if test="parent::mn:copyright-statement">
|
|
14195
|
-
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
14196
|
-
</xsl:if>
|
|
14306
|
+
<fo:block role="Sect">
|
|
14197
14307
|
|
|
14198
14308
|
<xsl:call-template name="setId"/>
|
|
14199
14309
|
|
|
14310
|
+
<xsl:call-template name="addTagElementT"/>
|
|
14311
|
+
|
|
14200
14312
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
14201
14313
|
|
|
14202
|
-
<xsl:call-template name="
|
|
14314
|
+
<xsl:call-template name="refine_clause-style"/>
|
|
14203
14315
|
|
|
14204
14316
|
<xsl:call-template name="addReviewHelper"/>
|
|
14205
14317
|
|
|
@@ -14207,41 +14319,6 @@
|
|
|
14207
14319
|
</fo:block>
|
|
14208
14320
|
</xsl:template>
|
|
14209
14321
|
|
|
14210
|
-
<xsl:template name="refine_clause_style">
|
|
14211
|
-
</xsl:template> <!-- refine_clause_style -->
|
|
14212
|
-
|
|
14213
|
-
<xsl:template match="mn:annex[normalize-space() != '']">
|
|
14214
|
-
<xsl:choose>
|
|
14215
|
-
<xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
|
|
14216
|
-
<fo:block>
|
|
14217
|
-
<xsl:apply-templates/>
|
|
14218
|
-
</fo:block>
|
|
14219
|
-
</xsl:when>
|
|
14220
|
-
<xsl:otherwise>
|
|
14221
|
-
|
|
14222
|
-
<fo:block break-after="page"/>
|
|
14223
|
-
<xsl:call-template name="setNamedDestination"/>
|
|
14224
|
-
|
|
14225
|
-
<fo:block id="{@id}">
|
|
14226
|
-
|
|
14227
|
-
<xsl:call-template name="setBlockSpanAll"/>
|
|
14228
|
-
|
|
14229
|
-
<xsl:call-template name="refine_annex_style"/>
|
|
14230
|
-
|
|
14231
|
-
</fo:block>
|
|
14232
|
-
|
|
14233
|
-
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
|
14234
|
-
|
|
14235
|
-
<fo:block>
|
|
14236
|
-
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
|
14237
|
-
</fo:block>
|
|
14238
|
-
</xsl:otherwise>
|
|
14239
|
-
</xsl:choose>
|
|
14240
|
-
</xsl:template>
|
|
14241
|
-
|
|
14242
|
-
<xsl:template name="refine_annex_style">
|
|
14243
|
-
</xsl:template>
|
|
14244
|
-
|
|
14245
14322
|
<xsl:template match="mn:name/text() | mn:fmt-name/text()">
|
|
14246
14323
|
<!-- 0xA0 to space replacement -->
|
|
14247
14324
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
|
@@ -14357,6 +14434,13 @@
|
|
|
14357
14434
|
<xsl:template name="addTagElementT">
|
|
14358
14435
|
<xsl:variable name="title_">
|
|
14359
14436
|
<xsl:apply-templates select="mn:fmt-title"/>
|
|
14437
|
+
<xsl:if test="not(mn:fmt-title) and self::mn:term">
|
|
14438
|
+
<name>
|
|
14439
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
|
14440
|
+
<xsl:text> </xsl:text>
|
|
14441
|
+
<xsl:apply-templates select="mn:fmt-preferred/node()[1]"/>
|
|
14442
|
+
</name>
|
|
14443
|
+
</xsl:if>
|
|
14360
14444
|
</xsl:variable>
|
|
14361
14445
|
<xsl:variable name="title__">
|
|
14362
14446
|
<xsl:for-each select="xalan:nodeset($title_)/*/node()">
|
|
@@ -14366,7 +14450,7 @@
|
|
|
14366
14450
|
</xsl:choose>
|
|
14367
14451
|
</xsl:for-each>
|
|
14368
14452
|
</xsl:variable>
|
|
14369
|
-
<xsl:variable name="title" select="normalize-space($title__)"/>
|
|
14453
|
+
<xsl:variable name="title" select="normalize-space(translate($title__, concat($em_space,' 
'), ' '))"/>
|
|
14370
14454
|
<xsl:if test="$title != ''">
|
|
14371
14455
|
<xsl:attribute name="fox:title">
|
|
14372
14456
|
<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
|