metanorma-plateau 1.1.4 → 1.1.6
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/plateau/init.rb +1 -1
- data/lib/isodoc/plateau/plateau.international-standard.xsl +85 -60
- data/lib/isodoc/plateau/presentation_xml_convert.rb +0 -2
- data/lib/metanorma/plateau/cleanup.rb +4 -2
- data/lib/metanorma/plateau/isodoc.rng +26 -19
- data/lib/metanorma/plateau/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 843c28dd5ffac493f6cae6c19881b2f916ecc248f525e399815c27071a7d48f3
|
4
|
+
data.tar.gz: 9770bc7dfac3671e9863296316e7fd0ccc8d12403b6f007f42136e3b8d5e4a4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94e9153d5c042e1190f2583a4e469d43d2fcbbaa5439d5b0d26a093281fc5da9009355694f122ccd4f8600e6c70355ad58b736876429cb7c7543cedaa8b49554
|
7
|
+
data.tar.gz: 5ae50d8ef9feb33aa7a6ca5741dce0aa8be30cb8104f2ff4e6ba39d93359f7feded5ef4cd5166053a52db2e3b87cdddbaa2fff5c96d600b19fe0cc2dd1712550
|
data/lib/isodoc/plateau/init.rb
CHANGED
@@ -252,6 +252,8 @@
|
|
252
252
|
<xsl:with-param name="num" select="$num"/>
|
253
253
|
</xsl:call-template>
|
254
254
|
|
255
|
+
<xsl:call-template name="inner-cover-page"/>
|
256
|
+
|
255
257
|
<!-- ========================== -->
|
256
258
|
<!-- Preface and contents pages -->
|
257
259
|
<!-- ========================== -->
|
@@ -723,6 +725,9 @@
|
|
723
725
|
</fo:page-sequence>
|
724
726
|
</xsl:template> <!-- cover-page -->
|
725
727
|
|
728
|
+
<xsl:template name="inner-cover-page">
|
729
|
+
</xsl:template>
|
730
|
+
|
726
731
|
<xsl:template match="mn:p[@class = 'JapaneseIndustrialStandard']" priority="4"/>
|
727
732
|
<xsl:template match="mn:p[@class = 'StandardNumber']" priority="4"/>
|
728
733
|
<xsl:template match="mn:p[@class = 'IDT']" priority="4"/>
|
@@ -1227,8 +1232,6 @@
|
|
1227
1232
|
<xsl:template match="mn:note[not(ancestor::mn:table)]" priority="2">
|
1228
1233
|
|
1229
1234
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="note-style" role="SKIP">
|
1230
|
-
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
1231
|
-
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1232
1235
|
|
1233
1236
|
<xsl:call-template name="setBlockSpanAll"/>
|
1234
1237
|
|
@@ -1290,10 +1293,6 @@
|
|
1290
1293
|
|
1291
1294
|
<xsl:call-template name="refine_list-item-label-style"/>
|
1292
1295
|
|
1293
|
-
<xsl:if test="$doctype = 'technical-report'">
|
1294
|
-
<xsl:attribute name="line-height">1.8</xsl:attribute>
|
1295
|
-
</xsl:if>
|
1296
|
-
|
1297
1296
|
<xsl:variable name="list_item_label">
|
1298
1297
|
<xsl:call-template name="getListItemFormat"/>
|
1299
1298
|
</xsl:variable>
|
@@ -1585,7 +1584,7 @@
|
|
1585
1584
|
</xsl:template>
|
1586
1585
|
|
1587
1586
|
<!-- <name>注記 1</name> to <name>注記<font_en> 1</font_en></name> -->
|
1588
|
-
<xsl:template match="mn:title/text() | mn:fmt-title/text() | mn:note/mn:name/text() | mn:note/mn:fmt-name/text() | mn:termnote/mn:name/text() | mn:termnote/mn:fmt-name/text() | mn:table/mn:name/text() | mn:table/mn:fmt-name/text() | mn:figure/mn:name/text() | mn:figure/mn:fmt-name/text() | mn:termexample/mn:name/text() | mn:termexample/mn:fmt-name/text() | mn:xref//text() | mn:fmt-xref//text() | mn:origin/text() | mn:fmt-origin/text()" mode="update_xml_step1">
|
1587
|
+
<xsl:template match="mn:title/text() | mn:fmt-title/text() | mn:note/mn:name/text() | mn:note/mn:fmt-name/text() | mn:termnote/mn:name/text() | mn:termnote/mn:fmt-name/text() | mn:table/mn:name/text() | mn:table/mn:fmt-name/text() | mn:figure/mn:name/text() | mn:figure/mn:fmt-name/text() | mn:termexample/mn:name/text() | mn:termexample/mn:fmt-name/text() | mn:xref//text() | mn:fmt-xref//text() | mn:origin/text() | mn:fmt-origin/text() | mn:fmt-link/text()" mode="update_xml_step1">
|
1589
1588
|
<xsl:variable name="text_en_" select="java:replaceAll(java:java.lang.String.new(.), $regex_en, concat($tag_font_en_bold_open,'$1',$tag_font_en_bold_close))"/>
|
1590
1589
|
<xsl:variable name="text_en">
|
1591
1590
|
<xsl:element name="text" namespace="{$namespace_full}">
|
@@ -2248,6 +2247,7 @@
|
|
2248
2247
|
<xsl:variable name="en_dash">–</xsl:variable>
|
2249
2248
|
<xsl:variable name="em_dash">—</xsl:variable>
|
2250
2249
|
<xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
|
2250
|
+
<xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
|
2251
2251
|
<xsl:variable name="cr"> </xsl:variable>
|
2252
2252
|
<xsl:variable name="lf">
|
2253
2253
|
</xsl:variable>
|
@@ -2811,6 +2811,7 @@
|
|
2811
2811
|
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
|
2812
2812
|
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
|
2813
2813
|
<xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
2814
|
+
<xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
2814
2815
|
<!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
|
2815
2816
|
<xsl:template match="mn:preferred" mode="update_xml_step1"/>
|
2816
2817
|
<!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
|
@@ -2825,10 +2826,10 @@
|
|
2825
2826
|
|
2826
2827
|
<xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
|
2827
2828
|
|
2828
|
-
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
|
2829
|
+
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]]" mode="update_xml_step1">
|
2829
2830
|
<xsl:copy>
|
2830
2831
|
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
2831
|
-
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
|
2832
|
+
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
|
2832
2833
|
<xsl:apply-templates select="node()" mode="update_xml_step1"/>
|
2833
2834
|
</xsl:copy>
|
2834
2835
|
</xsl:template>
|
@@ -3773,7 +3774,6 @@
|
|
3773
3774
|
</xsl:attribute-set> <!-- feedback-statement-title-style -->
|
3774
3775
|
|
3775
3776
|
<xsl:template name="refine_feedback-statement-title-style">
|
3776
|
-
|
3777
3777
|
</xsl:template>
|
3778
3778
|
|
3779
3779
|
<xsl:attribute-set name="feedback-statement-p-style">
|
@@ -4023,6 +4023,12 @@
|
|
4023
4023
|
<xsl:template name="refine_sourcecode-style">
|
4024
4024
|
</xsl:template> <!-- refine_sourcecode-style -->
|
4025
4025
|
|
4026
|
+
<xsl:attribute-set name="sourcecode-number-style">
|
4027
|
+
</xsl:attribute-set>
|
4028
|
+
|
4029
|
+
<xsl:template name="refine_sourcecode-number-style">
|
4030
|
+
</xsl:template>
|
4031
|
+
|
4026
4032
|
<xsl:attribute-set name="sourcecode-name-style">
|
4027
4033
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
4028
4034
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -5410,6 +5416,12 @@
|
|
5410
5416
|
<xsl:template name="refine_term-name-style">
|
5411
5417
|
</xsl:template>
|
5412
5418
|
|
5419
|
+
<xsl:attribute-set name="preferred-style">
|
5420
|
+
</xsl:attribute-set> <!-- preferred-style -->
|
5421
|
+
|
5422
|
+
<xsl:template name="refine_preferred-style">
|
5423
|
+
</xsl:template>
|
5424
|
+
|
5413
5425
|
<xsl:attribute-set name="preferred-block-style">
|
5414
5426
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
5415
5427
|
|
@@ -6045,6 +6057,12 @@
|
|
6045
6057
|
<xsl:call-template name="setBordersTableArray"/>
|
6046
6058
|
</xsl:template> <!-- refine_table-style -->
|
6047
6059
|
|
6060
|
+
<xsl:attribute-set name="table-number-style">
|
6061
|
+
</xsl:attribute-set>
|
6062
|
+
|
6063
|
+
<xsl:template name="refine_table-number-style">
|
6064
|
+
</xsl:template>
|
6065
|
+
|
6048
6066
|
<xsl:attribute-set name="table-name-style">
|
6049
6067
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
6050
6068
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
@@ -6510,7 +6528,7 @@
|
|
6510
6528
|
|
6511
6529
|
</fo:block>
|
6512
6530
|
|
6513
|
-
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
6531
|
+
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
6514
6532
|
<xsl:if test="$continued = 'true'">
|
6515
6533
|
|
6516
6534
|
<!-- to prevent the error 'THead element may contain only TR elements' -->
|
@@ -9340,6 +9358,10 @@
|
|
9340
9358
|
</xsl:attribute-set> <!-- note-style -->
|
9341
9359
|
|
9342
9360
|
<xsl:template name="refine_note-style">
|
9361
|
+
<xsl:if test="not(ancestor::mn:table or ancestor::mn:figure or ancestor::mn:dl)">
|
9362
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
9363
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
9364
|
+
</xsl:if>
|
9343
9365
|
</xsl:template> <!-- refine_note-style -->
|
9344
9366
|
|
9345
9367
|
<xsl:variable name="note-body-indent">10mm</xsl:variable>
|
@@ -9574,15 +9596,23 @@
|
|
9574
9596
|
</xsl:attribute-set> <!-- quote-style -->
|
9575
9597
|
|
9576
9598
|
<xsl:template name="refine_quote-style">
|
9577
|
-
</xsl:template>
|
9599
|
+
</xsl:template> <!-- refine_quote-style -->
|
9578
9600
|
|
9579
9601
|
<xsl:attribute-set name="quote-source-style">
|
9580
9602
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
9581
|
-
</xsl:attribute-set>
|
9603
|
+
</xsl:attribute-set> <!-- quote-source-style -->
|
9582
9604
|
|
9583
9605
|
<xsl:template name="refine_quote-source-style">
|
9584
9606
|
</xsl:template>
|
9585
9607
|
|
9608
|
+
<xsl:attribute-set name="source-style">
|
9609
|
+
<xsl:attribute name="space-after">8pt</xsl:attribute>
|
9610
|
+
</xsl:attribute-set> <!-- source-style -->
|
9611
|
+
|
9612
|
+
<xsl:template name="refine_source-style">
|
9613
|
+
|
9614
|
+
</xsl:template> <!-- refine_source-style -->
|
9615
|
+
|
9586
9616
|
<!-- ====== -->
|
9587
9617
|
<!-- quote -->
|
9588
9618
|
<!-- source -->
|
@@ -9630,7 +9660,9 @@
|
|
9630
9660
|
</xsl:if>
|
9631
9661
|
<xsl:choose>
|
9632
9662
|
<xsl:when test="not(parent::quote)">
|
9633
|
-
<fo:block>
|
9663
|
+
<fo:block xsl:use-attribute-sets="source-style">
|
9664
|
+
<xsl:call-template name="refine_source-style"/>
|
9665
|
+
|
9634
9666
|
<xsl:call-template name="insert_basic_link">
|
9635
9667
|
<xsl:with-param name="element">
|
9636
9668
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
@@ -9676,6 +9708,12 @@
|
|
9676
9708
|
<xsl:template name="refine_figure-style">
|
9677
9709
|
</xsl:template>
|
9678
9710
|
|
9711
|
+
<xsl:attribute-set name="figure-number-style">
|
9712
|
+
</xsl:attribute-set>
|
9713
|
+
|
9714
|
+
<xsl:template name="refine_figure-number-style">
|
9715
|
+
</xsl:template>
|
9716
|
+
|
9679
9717
|
<xsl:attribute-set name="figure-name-style">
|
9680
9718
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
9681
9719
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -11356,6 +11394,9 @@
|
|
11356
11394
|
</xsl:attribute-set>
|
11357
11395
|
|
11358
11396
|
<xsl:template name="refine_list-item-label-style">
|
11397
|
+
<xsl:if test="$doctype = 'technical-report'">
|
11398
|
+
<xsl:attribute name="line-height">1.8</xsl:attribute>
|
11399
|
+
</xsl:if>
|
11359
11400
|
</xsl:template> <!-- refine_list-item-label-style -->
|
11360
11401
|
|
11361
11402
|
<xsl:attribute-set name="list-item-body-style">
|
@@ -11735,7 +11776,7 @@
|
|
11735
11776
|
|
11736
11777
|
<xsl:template name="refine_fn-reference-style">
|
11737
11778
|
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
11738
|
-
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]"
|
11779
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if><!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas'"></xsl:if> -->
|
11739
11780
|
</xsl:template> <!-- refine_fn-reference-style -->
|
11740
11781
|
|
11741
11782
|
<xsl:attribute-set name="fn-style">
|
@@ -11746,7 +11787,9 @@
|
|
11746
11787
|
</xsl:template>
|
11747
11788
|
|
11748
11789
|
<xsl:attribute-set name="fn-num-style">
|
11790
|
+
<xsl:attribute name="role">Reference</xsl:attribute>
|
11749
11791
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
11792
|
+
<xsl:attribute name="font-size">65%</xsl:attribute>
|
11750
11793
|
<xsl:attribute name="font-size">6pt</xsl:attribute>
|
11751
11794
|
<xsl:attribute name="baseline-shift">25%</xsl:attribute>
|
11752
11795
|
</xsl:attribute-set> <!-- fn-num-style -->
|
@@ -11818,33 +11861,16 @@
|
|
11818
11861
|
<xsl:variable name="ref_id" select="@target"/>
|
11819
11862
|
|
11820
11863
|
<xsl:variable name="footnote_inline">
|
11821
|
-
<fo:inline
|
11822
|
-
|
11823
|
-
<xsl:variable name="fn_styles">
|
11824
|
-
<xsl:choose>
|
11825
|
-
<xsl:when test="ancestor::mn:bibitem">
|
11826
|
-
<fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
|
11827
|
-
<xsl:call-template name="refine_bibitem-note-fn-style"/>
|
11828
|
-
</fn_styles>
|
11829
|
-
</xsl:when>
|
11830
|
-
<xsl:otherwise>
|
11831
|
-
<fn_styles xsl:use-attribute-sets="fn-num-style">
|
11832
|
-
<xsl:call-template name="refine_fn-num-style"/>
|
11833
|
-
</fn_styles>
|
11834
|
-
</xsl:otherwise>
|
11835
|
-
</xsl:choose>
|
11836
|
-
</xsl:variable>
|
11864
|
+
<fo:inline xsl:use-attribute-sets="fn-num-style">
|
11837
11865
|
|
11838
|
-
<xsl:
|
11839
|
-
<xsl:copy-of select="."/>
|
11840
|
-
</xsl:for-each>
|
11866
|
+
<xsl:call-template name="refine_fn-num-style"/>
|
11841
11867
|
|
11842
11868
|
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
11843
11869
|
<!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
|
11844
11870
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
11845
11871
|
</xsl:if> -->
|
11846
11872
|
|
11847
|
-
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]"
|
11873
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if>
|
11848
11874
|
|
11849
11875
|
<xsl:call-template name="insert_basic_link">
|
11850
11876
|
<xsl:with-param name="element">
|
@@ -12137,29 +12163,6 @@
|
|
12137
12163
|
<xsl:template name="refine_bibitem-non-normative-list-body-style">
|
12138
12164
|
</xsl:template>
|
12139
12165
|
|
12140
|
-
<!-- footnote reference number for bibitem, in the text -->
|
12141
|
-
<xsl:attribute-set name="bibitem-note-fn-style">
|
12142
|
-
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
12143
|
-
<xsl:attribute name="font-size">65%</xsl:attribute>
|
12144
|
-
<xsl:attribute name="font-size">6pt</xsl:attribute>
|
12145
|
-
<xsl:attribute name="baseline-shift">25%</xsl:attribute>
|
12146
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-style -->
|
12147
|
-
|
12148
|
-
<xsl:template name="refine_bibitem-note-fn-style">
|
12149
|
-
</xsl:template>
|
12150
|
-
|
12151
|
-
<!-- footnote number on the page bottom -->
|
12152
|
-
<xsl:attribute-set name="bibitem-note-fn-number-style">
|
12153
|
-
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
12154
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-number-style -->
|
12155
|
-
|
12156
|
-
<!-- footnote body (text) on the page bottom -->
|
12157
|
-
<xsl:attribute-set name="bibitem-note-fn-body-style">
|
12158
|
-
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
12159
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
12160
|
-
<xsl:attribute name="start-indent">0pt</xsl:attribute>
|
12161
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-body-style -->
|
12162
|
-
|
12163
12166
|
<xsl:attribute-set name="references-non-normative-style">
|
12164
12167
|
</xsl:attribute-set> <!-- references-non-normative-style -->
|
12165
12168
|
|
@@ -12239,7 +12242,7 @@
|
|
12239
12242
|
|
12240
12243
|
<fo:list-item>
|
12241
12244
|
<fo:list-item-label end-indent="label-end()">
|
12242
|
-
<fo:block role="SKIP">
|
12245
|
+
<fo:block role="SKIP" id="__internal_layout__bibitem_{@id}_{generate-id()}">
|
12243
12246
|
<fo:inline role="SKIP">
|
12244
12247
|
<xsl:apply-templates select="mn:biblio-tag">
|
12245
12248
|
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
@@ -14503,10 +14506,28 @@
|
|
14503
14506
|
</xsl:choose>
|
14504
14507
|
</xsl:template>
|
14505
14508
|
|
14509
|
+
<xsl:attribute-set name="clause-style">
|
14510
|
+
|
14511
|
+
</xsl:attribute-set>
|
14512
|
+
|
14513
|
+
<xsl:template name="refine_clause-style">
|
14514
|
+
<!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
|
14515
|
+
<!-- <xsl:if test="$namespace = 'rsd'">
|
14516
|
+
<xsl:variable name="level">
|
14517
|
+
<xsl:call-template name="getLevel">
|
14518
|
+
<xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
|
14519
|
+
</xsl:call-template>
|
14520
|
+
</xsl:variable>
|
14521
|
+
<xsl:if test="$level >= 4">
|
14522
|
+
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
14523
|
+
</xsl:if>
|
14524
|
+
</xsl:if> -->
|
14525
|
+
</xsl:template>
|
14526
|
+
|
14506
14527
|
<!-- main sections -->
|
14507
14528
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
14508
14529
|
<xsl:call-template name="setNamedDestination"/>
|
14509
|
-
<fo:block>
|
14530
|
+
<fo:block role="Sect">
|
14510
14531
|
<xsl:call-template name="setId"/>
|
14511
14532
|
|
14512
14533
|
<xsl:call-template name="sections_element_style"/>
|
@@ -14630,6 +14651,10 @@
|
|
14630
14651
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
14631
14652
|
</xsl:template>
|
14632
14653
|
|
14654
|
+
<!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
|
14655
|
+
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
|
14656
|
+
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
|
14657
|
+
|
14633
14658
|
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
|
14634
14659
|
<xsl:template name="insert_basic_link">
|
14635
14660
|
<xsl:param name="element"/>
|
@@ -36,14 +36,12 @@ module IsoDoc
|
|
36
36
|
source1(elem, :para)
|
37
37
|
# if we haven't already removed it...
|
38
38
|
elem.parent or return
|
39
|
-
# elem.parent.next = "<p>#{to_xml(elem.remove)}</p>"
|
40
39
|
elem.parent.next = elem.remove
|
41
40
|
end
|
42
41
|
|
43
42
|
def listsource(elem, ancestor)
|
44
43
|
source1(elem, ancestor)
|
45
44
|
elem.parent or return
|
46
|
-
# elem.parent.next = "<p>#{to_xml(elem.remove)}</p>"
|
47
45
|
elem.parent.next = elem.remove
|
48
46
|
end
|
49
47
|
|
@@ -1,14 +1,16 @@
|
|
1
1
|
module Metanorma
|
2
2
|
module Plateau
|
3
|
+
# after term def processed, process source after paragraphs so that
|
4
|
+
# the moving of paragraphs there does not nclude termdef
|
3
5
|
class Converter < Jis::Converter
|
4
|
-
def
|
6
|
+
def termdef_cleanup(xmldoc)
|
7
|
+
super
|
5
8
|
xmldoc.xpath("//source").each do |s|
|
6
9
|
p = s.previous_element or next
|
7
10
|
%w[p ol ul dl].include? p.name or next
|
8
11
|
s.delete("type")
|
9
12
|
s.parent = p
|
10
13
|
end
|
11
|
-
super
|
12
14
|
end
|
13
15
|
|
14
16
|
# Abandoned in favour of JIS ordering
|
@@ -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.1.
|
3
|
+
<!-- VERSION v2.1.3 -->
|
4
4
|
|
5
5
|
<!--
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|
@@ -455,14 +455,7 @@ normative or informative references, some split references into sections organiz
|
|
455
455
|
</ref>
|
456
456
|
</zeroOrMore>
|
457
457
|
<zeroOrMore>
|
458
|
-
<ref name="
|
459
|
-
<a:documentation>Bibliographic item cited in the document</a:documentation>
|
460
|
-
</ref>
|
461
|
-
<zeroOrMore>
|
462
|
-
<ref name="note">
|
463
|
-
<a:documentation>Annotation of the bibliographic item</a:documentation>
|
464
|
-
</ref>
|
465
|
-
</zeroOrMore>
|
458
|
+
<ref name="ReferenceEntry"/>
|
466
459
|
</zeroOrMore>
|
467
460
|
<zeroOrMore>
|
468
461
|
<ref name="references">
|
@@ -604,18 +597,21 @@ gives an explicit page orientation</a:documentation>
|
|
604
597
|
</element>
|
605
598
|
</optional>
|
606
599
|
</define>
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
<attribute name="hiddenref">
|
613
|
-
<a:documentation>If true, number the footnote as normal, but suppress display of the footnote reference in the document body.
|
600
|
+
<define name="FnAttributes">
|
601
|
+
<ref name="RequiredId"/>
|
602
|
+
<optional>
|
603
|
+
<attribute name="hiddenref">
|
604
|
+
<a:documentation>If true, number the footnote as normal, but suppress display of the footnote reference in the document body.
|
614
605
|
This is done if the footnote reference is already presented in some other form, e.g. within a figure image.</a:documentation>
|
615
|
-
|
606
|
+
<data type="boolean"/>
|
607
|
+
</attribute>
|
608
|
+
</optional>
|
609
|
+
<attribute name="reference">
|
610
|
+
<a:documentation>The number of the footnote, used to identify it visually</a:documentation>
|
616
611
|
</attribute>
|
617
|
-
</
|
618
|
-
</
|
612
|
+
</define>
|
613
|
+
</include>
|
614
|
+
<!-- end overrides -->
|
619
615
|
<define name="TdAttributes" combine="interleave">
|
620
616
|
<ref name="RequiredId"/>
|
621
617
|
<optional>
|
@@ -853,6 +849,17 @@ titlecase, or lowercase</a:documentation>
|
|
853
849
|
<value>informative</value>
|
854
850
|
</choice>
|
855
851
|
</define>
|
852
|
+
<define name="ReferenceEntry">
|
853
|
+
<a:documentation>Entry in bibliography</a:documentation>
|
854
|
+
<ref name="doc_bibitem">
|
855
|
+
<a:documentation>Bibliographic item cited in the document</a:documentation>
|
856
|
+
</ref>
|
857
|
+
<zeroOrMore>
|
858
|
+
<ref name="note">
|
859
|
+
<a:documentation>Annotation of the bibliographic item</a:documentation>
|
860
|
+
</ref>
|
861
|
+
</zeroOrMore>
|
862
|
+
</define>
|
856
863
|
<define name="doc_bibitem">
|
857
864
|
<a:documentation>Standardisation document representation of bibliographic entry</a:documentation>
|
858
865
|
<element name="bibitem">
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-plateau
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-09-
|
11
|
+
date: 2025-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-jis
|