metanorma-itu 2.5.0 → 2.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/itu/html/_coverpage.css +40 -0
- data/lib/isodoc/itu/html/htmlstyle.css +80 -0
- data/lib/isodoc/itu/itu.implementers-guide.xsl +32 -7
- data/lib/isodoc/itu/itu.in-force.xsl +32 -7
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +32 -7
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +32 -7
- data/lib/isodoc/itu/itu.recommendation.xsl +32 -7
- data/lib/isodoc/itu/itu.resolution.xsl +32 -7
- data/lib/isodoc/itu/itu.service-publication.xsl +32 -7
- data/lib/isodoc/itu/itu.technical-paper.xsl +32 -7
- data/lib/isodoc/itu/itu.technical-report.xsl +32 -7
- data/lib/metanorma/itu/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: 615acf8f435dd85af887288f9b0f206438f0c5b8353379f121edb7d0e34c2732
|
4
|
+
data.tar.gz: 584fb910f40575bed765d9b86682bbb7b8263e1cae7a6a85ba0c8c9a126dcbb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe779b6c75b234e2c0e8edecf2f35aa70912e52f8590a0605231e759c68245282d29f4c27376b9d8bfcf8f8d5aec611d785634ce51cf0118420dbc0bff234641
|
7
|
+
data.tar.gz: 58b1ab38aabd1606725e49f2fc88f11b031b8f364c21112be3d0472610bee8cec37453ae6204d93989b6823de316503ea18e50c488f792e64315fa70b18eb4ea
|
@@ -222,6 +222,46 @@ h6:hover > a.anchor,
|
|
222
222
|
.inline-header:hover > a.anchor {
|
223
223
|
visibility: visible; }
|
224
224
|
|
225
|
+
/* collapsible snippets: collapsible before hidable */
|
226
|
+
.hidable {
|
227
|
+
max-height: 0;
|
228
|
+
overflow: hidden;
|
229
|
+
transition: max-height 0.2s ease-out; }
|
230
|
+
|
231
|
+
.collapsible {
|
232
|
+
background-color: #777;
|
233
|
+
color: white;
|
234
|
+
cursor: pointer;
|
235
|
+
padding: 12px 0;
|
236
|
+
margin: 0;
|
237
|
+
width: 100%;
|
238
|
+
border: none;
|
239
|
+
text-align: left;
|
240
|
+
outline: none;
|
241
|
+
font-size: 15px; }
|
242
|
+
|
243
|
+
.active, .collapsible:hover {
|
244
|
+
background-color: #555; }
|
245
|
+
|
246
|
+
.collapsible:after {
|
247
|
+
content: '\25bc';
|
248
|
+
color: white;
|
249
|
+
font-weight: bold;
|
250
|
+
float: right;
|
251
|
+
margin-left: 12px;
|
252
|
+
margin-right: 12px; }
|
253
|
+
|
254
|
+
.active:after {
|
255
|
+
content: "\25b2"; }
|
256
|
+
|
257
|
+
/* collapsible: */
|
258
|
+
.collapsible + .hidable {
|
259
|
+
margin-top: 0; }
|
260
|
+
|
261
|
+
.collapsible:not(.active) + .hidable {
|
262
|
+
overflow: hidden;
|
263
|
+
padding: 0; }
|
264
|
+
|
225
265
|
#standard-band {
|
226
266
|
background-color: #0AC442; }
|
227
267
|
|
@@ -222,6 +222,46 @@ h6:hover > a.anchor,
|
|
222
222
|
.inline-header:hover > a.anchor {
|
223
223
|
visibility: visible; }
|
224
224
|
|
225
|
+
/* collapsible snippets: collapsible before hidable */
|
226
|
+
.hidable {
|
227
|
+
max-height: 0;
|
228
|
+
overflow: hidden;
|
229
|
+
transition: max-height 0.2s ease-out; }
|
230
|
+
|
231
|
+
.collapsible {
|
232
|
+
background-color: #777;
|
233
|
+
color: white;
|
234
|
+
cursor: pointer;
|
235
|
+
padding: 12px 0;
|
236
|
+
margin: 0;
|
237
|
+
width: 100%;
|
238
|
+
border: none;
|
239
|
+
text-align: left;
|
240
|
+
outline: none;
|
241
|
+
font-size: 15px; }
|
242
|
+
|
243
|
+
.active, .collapsible:hover {
|
244
|
+
background-color: #555; }
|
245
|
+
|
246
|
+
.collapsible:after {
|
247
|
+
content: '\25bc';
|
248
|
+
color: white;
|
249
|
+
font-weight: bold;
|
250
|
+
float: right;
|
251
|
+
margin-left: 12px;
|
252
|
+
margin-right: 12px; }
|
253
|
+
|
254
|
+
.active:after {
|
255
|
+
content: "\25b2"; }
|
256
|
+
|
257
|
+
/* collapsible: */
|
258
|
+
.collapsible + .hidable {
|
259
|
+
margin-top: 0; }
|
260
|
+
|
261
|
+
.collapsible:not(.active) + .hidable {
|
262
|
+
overflow: hidden;
|
263
|
+
padding: 0; }
|
264
|
+
|
225
265
|
#recommendation-band {
|
226
266
|
background-color: #a3d88f; }
|
227
267
|
|
@@ -565,6 +605,46 @@ h6:hover > a.anchor,
|
|
565
605
|
.inline-header:hover > a.anchor {
|
566
606
|
visibility: visible; }
|
567
607
|
|
608
|
+
/* collapsible snippets: collapsible before hidable */
|
609
|
+
.hidable {
|
610
|
+
max-height: 0;
|
611
|
+
overflow: hidden;
|
612
|
+
transition: max-height 0.2s ease-out; }
|
613
|
+
|
614
|
+
.collapsible {
|
615
|
+
background-color: #777;
|
616
|
+
color: white;
|
617
|
+
cursor: pointer;
|
618
|
+
padding: 12px 0;
|
619
|
+
margin: 0;
|
620
|
+
width: 100%;
|
621
|
+
border: none;
|
622
|
+
text-align: left;
|
623
|
+
outline: none;
|
624
|
+
font-size: 15px; }
|
625
|
+
|
626
|
+
.active, .collapsible:hover {
|
627
|
+
background-color: #555; }
|
628
|
+
|
629
|
+
.collapsible:after {
|
630
|
+
content: '\25bc';
|
631
|
+
color: white;
|
632
|
+
font-weight: bold;
|
633
|
+
float: right;
|
634
|
+
margin-left: 12px;
|
635
|
+
margin-right: 12px; }
|
636
|
+
|
637
|
+
.active:after {
|
638
|
+
content: "\25b2"; }
|
639
|
+
|
640
|
+
/* collapsible: */
|
641
|
+
.collapsible + .hidable {
|
642
|
+
margin-top: 0; }
|
643
|
+
|
644
|
+
.collapsible:not(.active) + .hidable {
|
645
|
+
overflow: hidden;
|
646
|
+
padding: 0; }
|
647
|
+
|
568
648
|
#recommendation-band {
|
569
649
|
background-color: #a3d88f; }
|
570
650
|
|
@@ -4588,13 +4588,35 @@
|
|
4588
4588
|
</xsl:for-each>
|
4589
4589
|
</xsl:element>
|
4590
4590
|
|
4591
|
-
<xsl:call-template name="
|
4591
|
+
<xsl:call-template name="insertAnnexAndBibliographyInSeparatePageSequences"/>
|
4592
4592
|
|
4593
|
-
<xsl:call-template name="insertBibliographyInSeparatePageSequences"/>
|
4593
|
+
<!-- <xsl:call-template name="insertBibliographyInSeparatePageSequences"/> -->
|
4594
4594
|
|
4595
4595
|
<!-- <xsl:call-template name="insertIndexInSeparatePageSequences"/> -->
|
4596
4596
|
</xsl:template> <!-- END: insertMainSectionsInSeparatePageSequences -->
|
4597
4597
|
|
4598
|
+
<xsl:template name="insertAnnexAndBibliographyInSeparatePageSequences">
|
4599
|
+
<xsl:for-each select="/*/*[local-name()='annex'] | /*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]] | /*/*[local-name()='indexsect']">
|
4600
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
4601
|
+
<xsl:choose>
|
4602
|
+
<xsl:when test="local-name() = 'annex' or local-name() = 'indexsect'">
|
4603
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4604
|
+
<xsl:attribute name="main_page_sequence"/>
|
4605
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4606
|
+
</xsl:element>
|
4607
|
+
</xsl:when>
|
4608
|
+
<xsl:otherwise> <!-- bibliography -->
|
4609
|
+
<xsl:element name="bibliography" namespace="{$namespace_full}"> <!-- save context element -->
|
4610
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4611
|
+
<xsl:attribute name="main_page_sequence"/>
|
4612
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4613
|
+
</xsl:element>
|
4614
|
+
</xsl:element>
|
4615
|
+
</xsl:otherwise>
|
4616
|
+
</xsl:choose>
|
4617
|
+
</xsl:for-each>
|
4618
|
+
</xsl:template>
|
4619
|
+
|
4598
4620
|
<xsl:template name="insertAnnexInSeparatePageSequences">
|
4599
4621
|
<xsl:for-each select="/*/*[local-name()='annex']">
|
4600
4622
|
<xsl:sort select="@displayorder" data-type="number"/>
|
@@ -13517,10 +13539,12 @@
|
|
13517
13539
|
<xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
|
13518
13540
|
<xsl:copy>
|
13519
13541
|
<xsl:copy-of select="@*"/>
|
13520
|
-
<xsl:
|
13521
|
-
|
13522
|
-
|
13523
|
-
<xsl:
|
13542
|
+
<xsl:if test="1 = 2"> <!-- remove attachment/text(), because attachments added in the template 'addPDFUAmeta' before applying 'update_xml_step1' -->
|
13543
|
+
<xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
|
13544
|
+
<xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
|
13545
|
+
<xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
|
13546
|
+
<xsl:value-of select="normalize-space(.)"/>
|
13547
|
+
</xsl:if>
|
13524
13548
|
</xsl:if>
|
13525
13549
|
</xsl:copy>
|
13526
13550
|
</xsl:template>
|
@@ -14395,7 +14419,8 @@
|
|
14395
14419
|
<xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
|
14396
14420
|
<xsl:choose>
|
14397
14421
|
<xsl:when test="normalize-space() != ''">
|
14398
|
-
<
|
14422
|
+
<xsl:variable name="src_attachment" select="java:replaceAll(java:java.lang.String.new(.),'( | | )', '')"/> <!-- remove line breaks -->
|
14423
|
+
<pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$src_attachment}" filename="{@name}"/>
|
14399
14424
|
</xsl:when>
|
14400
14425
|
<xsl:otherwise>
|
14401
14426
|
<!-- _{filename}_attachments -->
|
@@ -4588,13 +4588,35 @@
|
|
4588
4588
|
</xsl:for-each>
|
4589
4589
|
</xsl:element>
|
4590
4590
|
|
4591
|
-
<xsl:call-template name="
|
4591
|
+
<xsl:call-template name="insertAnnexAndBibliographyInSeparatePageSequences"/>
|
4592
4592
|
|
4593
|
-
<xsl:call-template name="insertBibliographyInSeparatePageSequences"/>
|
4593
|
+
<!-- <xsl:call-template name="insertBibliographyInSeparatePageSequences"/> -->
|
4594
4594
|
|
4595
4595
|
<!-- <xsl:call-template name="insertIndexInSeparatePageSequences"/> -->
|
4596
4596
|
</xsl:template> <!-- END: insertMainSectionsInSeparatePageSequences -->
|
4597
4597
|
|
4598
|
+
<xsl:template name="insertAnnexAndBibliographyInSeparatePageSequences">
|
4599
|
+
<xsl:for-each select="/*/*[local-name()='annex'] | /*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]] | /*/*[local-name()='indexsect']">
|
4600
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
4601
|
+
<xsl:choose>
|
4602
|
+
<xsl:when test="local-name() = 'annex' or local-name() = 'indexsect'">
|
4603
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4604
|
+
<xsl:attribute name="main_page_sequence"/>
|
4605
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4606
|
+
</xsl:element>
|
4607
|
+
</xsl:when>
|
4608
|
+
<xsl:otherwise> <!-- bibliography -->
|
4609
|
+
<xsl:element name="bibliography" namespace="{$namespace_full}"> <!-- save context element -->
|
4610
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4611
|
+
<xsl:attribute name="main_page_sequence"/>
|
4612
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4613
|
+
</xsl:element>
|
4614
|
+
</xsl:element>
|
4615
|
+
</xsl:otherwise>
|
4616
|
+
</xsl:choose>
|
4617
|
+
</xsl:for-each>
|
4618
|
+
</xsl:template>
|
4619
|
+
|
4598
4620
|
<xsl:template name="insertAnnexInSeparatePageSequences">
|
4599
4621
|
<xsl:for-each select="/*/*[local-name()='annex']">
|
4600
4622
|
<xsl:sort select="@displayorder" data-type="number"/>
|
@@ -13517,10 +13539,12 @@
|
|
13517
13539
|
<xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
|
13518
13540
|
<xsl:copy>
|
13519
13541
|
<xsl:copy-of select="@*"/>
|
13520
|
-
<xsl:
|
13521
|
-
|
13522
|
-
|
13523
|
-
<xsl:
|
13542
|
+
<xsl:if test="1 = 2"> <!-- remove attachment/text(), because attachments added in the template 'addPDFUAmeta' before applying 'update_xml_step1' -->
|
13543
|
+
<xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
|
13544
|
+
<xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
|
13545
|
+
<xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
|
13546
|
+
<xsl:value-of select="normalize-space(.)"/>
|
13547
|
+
</xsl:if>
|
13524
13548
|
</xsl:if>
|
13525
13549
|
</xsl:copy>
|
13526
13550
|
</xsl:template>
|
@@ -14395,7 +14419,8 @@
|
|
14395
14419
|
<xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
|
14396
14420
|
<xsl:choose>
|
14397
14421
|
<xsl:when test="normalize-space() != ''">
|
14398
|
-
<
|
14422
|
+
<xsl:variable name="src_attachment" select="java:replaceAll(java:java.lang.String.new(.),'( | | )', '')"/> <!-- remove line breaks -->
|
14423
|
+
<pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$src_attachment}" filename="{@name}"/>
|
14399
14424
|
</xsl:when>
|
14400
14425
|
<xsl:otherwise>
|
14401
14426
|
<!-- _{filename}_attachments -->
|
@@ -4588,13 +4588,35 @@
|
|
4588
4588
|
</xsl:for-each>
|
4589
4589
|
</xsl:element>
|
4590
4590
|
|
4591
|
-
<xsl:call-template name="
|
4591
|
+
<xsl:call-template name="insertAnnexAndBibliographyInSeparatePageSequences"/>
|
4592
4592
|
|
4593
|
-
<xsl:call-template name="insertBibliographyInSeparatePageSequences"/>
|
4593
|
+
<!-- <xsl:call-template name="insertBibliographyInSeparatePageSequences"/> -->
|
4594
4594
|
|
4595
4595
|
<!-- <xsl:call-template name="insertIndexInSeparatePageSequences"/> -->
|
4596
4596
|
</xsl:template> <!-- END: insertMainSectionsInSeparatePageSequences -->
|
4597
4597
|
|
4598
|
+
<xsl:template name="insertAnnexAndBibliographyInSeparatePageSequences">
|
4599
|
+
<xsl:for-each select="/*/*[local-name()='annex'] | /*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]] | /*/*[local-name()='indexsect']">
|
4600
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
4601
|
+
<xsl:choose>
|
4602
|
+
<xsl:when test="local-name() = 'annex' or local-name() = 'indexsect'">
|
4603
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4604
|
+
<xsl:attribute name="main_page_sequence"/>
|
4605
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4606
|
+
</xsl:element>
|
4607
|
+
</xsl:when>
|
4608
|
+
<xsl:otherwise> <!-- bibliography -->
|
4609
|
+
<xsl:element name="bibliography" namespace="{$namespace_full}"> <!-- save context element -->
|
4610
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4611
|
+
<xsl:attribute name="main_page_sequence"/>
|
4612
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4613
|
+
</xsl:element>
|
4614
|
+
</xsl:element>
|
4615
|
+
</xsl:otherwise>
|
4616
|
+
</xsl:choose>
|
4617
|
+
</xsl:for-each>
|
4618
|
+
</xsl:template>
|
4619
|
+
|
4598
4620
|
<xsl:template name="insertAnnexInSeparatePageSequences">
|
4599
4621
|
<xsl:for-each select="/*/*[local-name()='annex']">
|
4600
4622
|
<xsl:sort select="@displayorder" data-type="number"/>
|
@@ -13517,10 +13539,12 @@
|
|
13517
13539
|
<xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
|
13518
13540
|
<xsl:copy>
|
13519
13541
|
<xsl:copy-of select="@*"/>
|
13520
|
-
<xsl:
|
13521
|
-
|
13522
|
-
|
13523
|
-
<xsl:
|
13542
|
+
<xsl:if test="1 = 2"> <!-- remove attachment/text(), because attachments added in the template 'addPDFUAmeta' before applying 'update_xml_step1' -->
|
13543
|
+
<xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
|
13544
|
+
<xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
|
13545
|
+
<xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
|
13546
|
+
<xsl:value-of select="normalize-space(.)"/>
|
13547
|
+
</xsl:if>
|
13524
13548
|
</xsl:if>
|
13525
13549
|
</xsl:copy>
|
13526
13550
|
</xsl:template>
|
@@ -14395,7 +14419,8 @@
|
|
14395
14419
|
<xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
|
14396
14420
|
<xsl:choose>
|
14397
14421
|
<xsl:when test="normalize-space() != ''">
|
14398
|
-
<
|
14422
|
+
<xsl:variable name="src_attachment" select="java:replaceAll(java:java.lang.String.new(.),'( | | )', '')"/> <!-- remove line breaks -->
|
14423
|
+
<pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$src_attachment}" filename="{@name}"/>
|
14399
14424
|
</xsl:when>
|
14400
14425
|
<xsl:otherwise>
|
14401
14426
|
<!-- _{filename}_attachments -->
|
@@ -4588,13 +4588,35 @@
|
|
4588
4588
|
</xsl:for-each>
|
4589
4589
|
</xsl:element>
|
4590
4590
|
|
4591
|
-
<xsl:call-template name="
|
4591
|
+
<xsl:call-template name="insertAnnexAndBibliographyInSeparatePageSequences"/>
|
4592
4592
|
|
4593
|
-
<xsl:call-template name="insertBibliographyInSeparatePageSequences"/>
|
4593
|
+
<!-- <xsl:call-template name="insertBibliographyInSeparatePageSequences"/> -->
|
4594
4594
|
|
4595
4595
|
<!-- <xsl:call-template name="insertIndexInSeparatePageSequences"/> -->
|
4596
4596
|
</xsl:template> <!-- END: insertMainSectionsInSeparatePageSequences -->
|
4597
4597
|
|
4598
|
+
<xsl:template name="insertAnnexAndBibliographyInSeparatePageSequences">
|
4599
|
+
<xsl:for-each select="/*/*[local-name()='annex'] | /*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]] | /*/*[local-name()='indexsect']">
|
4600
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
4601
|
+
<xsl:choose>
|
4602
|
+
<xsl:when test="local-name() = 'annex' or local-name() = 'indexsect'">
|
4603
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4604
|
+
<xsl:attribute name="main_page_sequence"/>
|
4605
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4606
|
+
</xsl:element>
|
4607
|
+
</xsl:when>
|
4608
|
+
<xsl:otherwise> <!-- bibliography -->
|
4609
|
+
<xsl:element name="bibliography" namespace="{$namespace_full}"> <!-- save context element -->
|
4610
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4611
|
+
<xsl:attribute name="main_page_sequence"/>
|
4612
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4613
|
+
</xsl:element>
|
4614
|
+
</xsl:element>
|
4615
|
+
</xsl:otherwise>
|
4616
|
+
</xsl:choose>
|
4617
|
+
</xsl:for-each>
|
4618
|
+
</xsl:template>
|
4619
|
+
|
4598
4620
|
<xsl:template name="insertAnnexInSeparatePageSequences">
|
4599
4621
|
<xsl:for-each select="/*/*[local-name()='annex']">
|
4600
4622
|
<xsl:sort select="@displayorder" data-type="number"/>
|
@@ -13517,10 +13539,12 @@
|
|
13517
13539
|
<xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
|
13518
13540
|
<xsl:copy>
|
13519
13541
|
<xsl:copy-of select="@*"/>
|
13520
|
-
<xsl:
|
13521
|
-
|
13522
|
-
|
13523
|
-
<xsl:
|
13542
|
+
<xsl:if test="1 = 2"> <!-- remove attachment/text(), because attachments added in the template 'addPDFUAmeta' before applying 'update_xml_step1' -->
|
13543
|
+
<xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
|
13544
|
+
<xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
|
13545
|
+
<xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
|
13546
|
+
<xsl:value-of select="normalize-space(.)"/>
|
13547
|
+
</xsl:if>
|
13524
13548
|
</xsl:if>
|
13525
13549
|
</xsl:copy>
|
13526
13550
|
</xsl:template>
|
@@ -14395,7 +14419,8 @@
|
|
14395
14419
|
<xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
|
14396
14420
|
<xsl:choose>
|
14397
14421
|
<xsl:when test="normalize-space() != ''">
|
14398
|
-
<
|
14422
|
+
<xsl:variable name="src_attachment" select="java:replaceAll(java:java.lang.String.new(.),'( | | )', '')"/> <!-- remove line breaks -->
|
14423
|
+
<pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$src_attachment}" filename="{@name}"/>
|
14399
14424
|
</xsl:when>
|
14400
14425
|
<xsl:otherwise>
|
14401
14426
|
<!-- _{filename}_attachments -->
|
@@ -4588,13 +4588,35 @@
|
|
4588
4588
|
</xsl:for-each>
|
4589
4589
|
</xsl:element>
|
4590
4590
|
|
4591
|
-
<xsl:call-template name="
|
4591
|
+
<xsl:call-template name="insertAnnexAndBibliographyInSeparatePageSequences"/>
|
4592
4592
|
|
4593
|
-
<xsl:call-template name="insertBibliographyInSeparatePageSequences"/>
|
4593
|
+
<!-- <xsl:call-template name="insertBibliographyInSeparatePageSequences"/> -->
|
4594
4594
|
|
4595
4595
|
<!-- <xsl:call-template name="insertIndexInSeparatePageSequences"/> -->
|
4596
4596
|
</xsl:template> <!-- END: insertMainSectionsInSeparatePageSequences -->
|
4597
4597
|
|
4598
|
+
<xsl:template name="insertAnnexAndBibliographyInSeparatePageSequences">
|
4599
|
+
<xsl:for-each select="/*/*[local-name()='annex'] | /*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]] | /*/*[local-name()='indexsect']">
|
4600
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
4601
|
+
<xsl:choose>
|
4602
|
+
<xsl:when test="local-name() = 'annex' or local-name() = 'indexsect'">
|
4603
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4604
|
+
<xsl:attribute name="main_page_sequence"/>
|
4605
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4606
|
+
</xsl:element>
|
4607
|
+
</xsl:when>
|
4608
|
+
<xsl:otherwise> <!-- bibliography -->
|
4609
|
+
<xsl:element name="bibliography" namespace="{$namespace_full}"> <!-- save context element -->
|
4610
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4611
|
+
<xsl:attribute name="main_page_sequence"/>
|
4612
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4613
|
+
</xsl:element>
|
4614
|
+
</xsl:element>
|
4615
|
+
</xsl:otherwise>
|
4616
|
+
</xsl:choose>
|
4617
|
+
</xsl:for-each>
|
4618
|
+
</xsl:template>
|
4619
|
+
|
4598
4620
|
<xsl:template name="insertAnnexInSeparatePageSequences">
|
4599
4621
|
<xsl:for-each select="/*/*[local-name()='annex']">
|
4600
4622
|
<xsl:sort select="@displayorder" data-type="number"/>
|
@@ -13517,10 +13539,12 @@
|
|
13517
13539
|
<xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
|
13518
13540
|
<xsl:copy>
|
13519
13541
|
<xsl:copy-of select="@*"/>
|
13520
|
-
<xsl:
|
13521
|
-
|
13522
|
-
|
13523
|
-
<xsl:
|
13542
|
+
<xsl:if test="1 = 2"> <!-- remove attachment/text(), because attachments added in the template 'addPDFUAmeta' before applying 'update_xml_step1' -->
|
13543
|
+
<xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
|
13544
|
+
<xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
|
13545
|
+
<xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
|
13546
|
+
<xsl:value-of select="normalize-space(.)"/>
|
13547
|
+
</xsl:if>
|
13524
13548
|
</xsl:if>
|
13525
13549
|
</xsl:copy>
|
13526
13550
|
</xsl:template>
|
@@ -14395,7 +14419,8 @@
|
|
14395
14419
|
<xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
|
14396
14420
|
<xsl:choose>
|
14397
14421
|
<xsl:when test="normalize-space() != ''">
|
14398
|
-
<
|
14422
|
+
<xsl:variable name="src_attachment" select="java:replaceAll(java:java.lang.String.new(.),'( | | )', '')"/> <!-- remove line breaks -->
|
14423
|
+
<pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$src_attachment}" filename="{@name}"/>
|
14399
14424
|
</xsl:when>
|
14400
14425
|
<xsl:otherwise>
|
14401
14426
|
<!-- _{filename}_attachments -->
|
@@ -4588,13 +4588,35 @@
|
|
4588
4588
|
</xsl:for-each>
|
4589
4589
|
</xsl:element>
|
4590
4590
|
|
4591
|
-
<xsl:call-template name="
|
4591
|
+
<xsl:call-template name="insertAnnexAndBibliographyInSeparatePageSequences"/>
|
4592
4592
|
|
4593
|
-
<xsl:call-template name="insertBibliographyInSeparatePageSequences"/>
|
4593
|
+
<!-- <xsl:call-template name="insertBibliographyInSeparatePageSequences"/> -->
|
4594
4594
|
|
4595
4595
|
<!-- <xsl:call-template name="insertIndexInSeparatePageSequences"/> -->
|
4596
4596
|
</xsl:template> <!-- END: insertMainSectionsInSeparatePageSequences -->
|
4597
4597
|
|
4598
|
+
<xsl:template name="insertAnnexAndBibliographyInSeparatePageSequences">
|
4599
|
+
<xsl:for-each select="/*/*[local-name()='annex'] | /*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]] | /*/*[local-name()='indexsect']">
|
4600
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
4601
|
+
<xsl:choose>
|
4602
|
+
<xsl:when test="local-name() = 'annex' or local-name() = 'indexsect'">
|
4603
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4604
|
+
<xsl:attribute name="main_page_sequence"/>
|
4605
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4606
|
+
</xsl:element>
|
4607
|
+
</xsl:when>
|
4608
|
+
<xsl:otherwise> <!-- bibliography -->
|
4609
|
+
<xsl:element name="bibliography" namespace="{$namespace_full}"> <!-- save context element -->
|
4610
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4611
|
+
<xsl:attribute name="main_page_sequence"/>
|
4612
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4613
|
+
</xsl:element>
|
4614
|
+
</xsl:element>
|
4615
|
+
</xsl:otherwise>
|
4616
|
+
</xsl:choose>
|
4617
|
+
</xsl:for-each>
|
4618
|
+
</xsl:template>
|
4619
|
+
|
4598
4620
|
<xsl:template name="insertAnnexInSeparatePageSequences">
|
4599
4621
|
<xsl:for-each select="/*/*[local-name()='annex']">
|
4600
4622
|
<xsl:sort select="@displayorder" data-type="number"/>
|
@@ -13517,10 +13539,12 @@
|
|
13517
13539
|
<xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
|
13518
13540
|
<xsl:copy>
|
13519
13541
|
<xsl:copy-of select="@*"/>
|
13520
|
-
<xsl:
|
13521
|
-
|
13522
|
-
|
13523
|
-
<xsl:
|
13542
|
+
<xsl:if test="1 = 2"> <!-- remove attachment/text(), because attachments added in the template 'addPDFUAmeta' before applying 'update_xml_step1' -->
|
13543
|
+
<xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
|
13544
|
+
<xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
|
13545
|
+
<xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
|
13546
|
+
<xsl:value-of select="normalize-space(.)"/>
|
13547
|
+
</xsl:if>
|
13524
13548
|
</xsl:if>
|
13525
13549
|
</xsl:copy>
|
13526
13550
|
</xsl:template>
|
@@ -14395,7 +14419,8 @@
|
|
14395
14419
|
<xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
|
14396
14420
|
<xsl:choose>
|
14397
14421
|
<xsl:when test="normalize-space() != ''">
|
14398
|
-
<
|
14422
|
+
<xsl:variable name="src_attachment" select="java:replaceAll(java:java.lang.String.new(.),'( | | )', '')"/> <!-- remove line breaks -->
|
14423
|
+
<pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$src_attachment}" filename="{@name}"/>
|
14399
14424
|
</xsl:when>
|
14400
14425
|
<xsl:otherwise>
|
14401
14426
|
<!-- _{filename}_attachments -->
|
@@ -4588,13 +4588,35 @@
|
|
4588
4588
|
</xsl:for-each>
|
4589
4589
|
</xsl:element>
|
4590
4590
|
|
4591
|
-
<xsl:call-template name="
|
4591
|
+
<xsl:call-template name="insertAnnexAndBibliographyInSeparatePageSequences"/>
|
4592
4592
|
|
4593
|
-
<xsl:call-template name="insertBibliographyInSeparatePageSequences"/>
|
4593
|
+
<!-- <xsl:call-template name="insertBibliographyInSeparatePageSequences"/> -->
|
4594
4594
|
|
4595
4595
|
<!-- <xsl:call-template name="insertIndexInSeparatePageSequences"/> -->
|
4596
4596
|
</xsl:template> <!-- END: insertMainSectionsInSeparatePageSequences -->
|
4597
4597
|
|
4598
|
+
<xsl:template name="insertAnnexAndBibliographyInSeparatePageSequences">
|
4599
|
+
<xsl:for-each select="/*/*[local-name()='annex'] | /*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]] | /*/*[local-name()='indexsect']">
|
4600
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
4601
|
+
<xsl:choose>
|
4602
|
+
<xsl:when test="local-name() = 'annex' or local-name() = 'indexsect'">
|
4603
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4604
|
+
<xsl:attribute name="main_page_sequence"/>
|
4605
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4606
|
+
</xsl:element>
|
4607
|
+
</xsl:when>
|
4608
|
+
<xsl:otherwise> <!-- bibliography -->
|
4609
|
+
<xsl:element name="bibliography" namespace="{$namespace_full}"> <!-- save context element -->
|
4610
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4611
|
+
<xsl:attribute name="main_page_sequence"/>
|
4612
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4613
|
+
</xsl:element>
|
4614
|
+
</xsl:element>
|
4615
|
+
</xsl:otherwise>
|
4616
|
+
</xsl:choose>
|
4617
|
+
</xsl:for-each>
|
4618
|
+
</xsl:template>
|
4619
|
+
|
4598
4620
|
<xsl:template name="insertAnnexInSeparatePageSequences">
|
4599
4621
|
<xsl:for-each select="/*/*[local-name()='annex']">
|
4600
4622
|
<xsl:sort select="@displayorder" data-type="number"/>
|
@@ -13517,10 +13539,12 @@
|
|
13517
13539
|
<xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
|
13518
13540
|
<xsl:copy>
|
13519
13541
|
<xsl:copy-of select="@*"/>
|
13520
|
-
<xsl:
|
13521
|
-
|
13522
|
-
|
13523
|
-
<xsl:
|
13542
|
+
<xsl:if test="1 = 2"> <!-- remove attachment/text(), because attachments added in the template 'addPDFUAmeta' before applying 'update_xml_step1' -->
|
13543
|
+
<xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
|
13544
|
+
<xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
|
13545
|
+
<xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
|
13546
|
+
<xsl:value-of select="normalize-space(.)"/>
|
13547
|
+
</xsl:if>
|
13524
13548
|
</xsl:if>
|
13525
13549
|
</xsl:copy>
|
13526
13550
|
</xsl:template>
|
@@ -14395,7 +14419,8 @@
|
|
14395
14419
|
<xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
|
14396
14420
|
<xsl:choose>
|
14397
14421
|
<xsl:when test="normalize-space() != ''">
|
14398
|
-
<
|
14422
|
+
<xsl:variable name="src_attachment" select="java:replaceAll(java:java.lang.String.new(.),'( | | )', '')"/> <!-- remove line breaks -->
|
14423
|
+
<pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$src_attachment}" filename="{@name}"/>
|
14399
14424
|
</xsl:when>
|
14400
14425
|
<xsl:otherwise>
|
14401
14426
|
<!-- _{filename}_attachments -->
|
@@ -4588,13 +4588,35 @@
|
|
4588
4588
|
</xsl:for-each>
|
4589
4589
|
</xsl:element>
|
4590
4590
|
|
4591
|
-
<xsl:call-template name="
|
4591
|
+
<xsl:call-template name="insertAnnexAndBibliographyInSeparatePageSequences"/>
|
4592
4592
|
|
4593
|
-
<xsl:call-template name="insertBibliographyInSeparatePageSequences"/>
|
4593
|
+
<!-- <xsl:call-template name="insertBibliographyInSeparatePageSequences"/> -->
|
4594
4594
|
|
4595
4595
|
<!-- <xsl:call-template name="insertIndexInSeparatePageSequences"/> -->
|
4596
4596
|
</xsl:template> <!-- END: insertMainSectionsInSeparatePageSequences -->
|
4597
4597
|
|
4598
|
+
<xsl:template name="insertAnnexAndBibliographyInSeparatePageSequences">
|
4599
|
+
<xsl:for-each select="/*/*[local-name()='annex'] | /*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]] | /*/*[local-name()='indexsect']">
|
4600
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
4601
|
+
<xsl:choose>
|
4602
|
+
<xsl:when test="local-name() = 'annex' or local-name() = 'indexsect'">
|
4603
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4604
|
+
<xsl:attribute name="main_page_sequence"/>
|
4605
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4606
|
+
</xsl:element>
|
4607
|
+
</xsl:when>
|
4608
|
+
<xsl:otherwise> <!-- bibliography -->
|
4609
|
+
<xsl:element name="bibliography" namespace="{$namespace_full}"> <!-- save context element -->
|
4610
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4611
|
+
<xsl:attribute name="main_page_sequence"/>
|
4612
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4613
|
+
</xsl:element>
|
4614
|
+
</xsl:element>
|
4615
|
+
</xsl:otherwise>
|
4616
|
+
</xsl:choose>
|
4617
|
+
</xsl:for-each>
|
4618
|
+
</xsl:template>
|
4619
|
+
|
4598
4620
|
<xsl:template name="insertAnnexInSeparatePageSequences">
|
4599
4621
|
<xsl:for-each select="/*/*[local-name()='annex']">
|
4600
4622
|
<xsl:sort select="@displayorder" data-type="number"/>
|
@@ -13517,10 +13539,12 @@
|
|
13517
13539
|
<xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
|
13518
13540
|
<xsl:copy>
|
13519
13541
|
<xsl:copy-of select="@*"/>
|
13520
|
-
<xsl:
|
13521
|
-
|
13522
|
-
|
13523
|
-
<xsl:
|
13542
|
+
<xsl:if test="1 = 2"> <!-- remove attachment/text(), because attachments added in the template 'addPDFUAmeta' before applying 'update_xml_step1' -->
|
13543
|
+
<xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
|
13544
|
+
<xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
|
13545
|
+
<xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
|
13546
|
+
<xsl:value-of select="normalize-space(.)"/>
|
13547
|
+
</xsl:if>
|
13524
13548
|
</xsl:if>
|
13525
13549
|
</xsl:copy>
|
13526
13550
|
</xsl:template>
|
@@ -14395,7 +14419,8 @@
|
|
14395
14419
|
<xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
|
14396
14420
|
<xsl:choose>
|
14397
14421
|
<xsl:when test="normalize-space() != ''">
|
14398
|
-
<
|
14422
|
+
<xsl:variable name="src_attachment" select="java:replaceAll(java:java.lang.String.new(.),'( | | )', '')"/> <!-- remove line breaks -->
|
14423
|
+
<pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$src_attachment}" filename="{@name}"/>
|
14399
14424
|
</xsl:when>
|
14400
14425
|
<xsl:otherwise>
|
14401
14426
|
<!-- _{filename}_attachments -->
|
@@ -4588,13 +4588,35 @@
|
|
4588
4588
|
</xsl:for-each>
|
4589
4589
|
</xsl:element>
|
4590
4590
|
|
4591
|
-
<xsl:call-template name="
|
4591
|
+
<xsl:call-template name="insertAnnexAndBibliographyInSeparatePageSequences"/>
|
4592
4592
|
|
4593
|
-
<xsl:call-template name="insertBibliographyInSeparatePageSequences"/>
|
4593
|
+
<!-- <xsl:call-template name="insertBibliographyInSeparatePageSequences"/> -->
|
4594
4594
|
|
4595
4595
|
<!-- <xsl:call-template name="insertIndexInSeparatePageSequences"/> -->
|
4596
4596
|
</xsl:template> <!-- END: insertMainSectionsInSeparatePageSequences -->
|
4597
4597
|
|
4598
|
+
<xsl:template name="insertAnnexAndBibliographyInSeparatePageSequences">
|
4599
|
+
<xsl:for-each select="/*/*[local-name()='annex'] | /*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]] | /*/*[local-name()='indexsect']">
|
4600
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
4601
|
+
<xsl:choose>
|
4602
|
+
<xsl:when test="local-name() = 'annex' or local-name() = 'indexsect'">
|
4603
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4604
|
+
<xsl:attribute name="main_page_sequence"/>
|
4605
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4606
|
+
</xsl:element>
|
4607
|
+
</xsl:when>
|
4608
|
+
<xsl:otherwise> <!-- bibliography -->
|
4609
|
+
<xsl:element name="bibliography" namespace="{$namespace_full}"> <!-- save context element -->
|
4610
|
+
<xsl:element name="page_sequence" namespace="{$namespace_full}">
|
4611
|
+
<xsl:attribute name="main_page_sequence"/>
|
4612
|
+
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
|
4613
|
+
</xsl:element>
|
4614
|
+
</xsl:element>
|
4615
|
+
</xsl:otherwise>
|
4616
|
+
</xsl:choose>
|
4617
|
+
</xsl:for-each>
|
4618
|
+
</xsl:template>
|
4619
|
+
|
4598
4620
|
<xsl:template name="insertAnnexInSeparatePageSequences">
|
4599
4621
|
<xsl:for-each select="/*/*[local-name()='annex']">
|
4600
4622
|
<xsl:sort select="@displayorder" data-type="number"/>
|
@@ -13517,10 +13539,12 @@
|
|
13517
13539
|
<xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
|
13518
13540
|
<xsl:copy>
|
13519
13541
|
<xsl:copy-of select="@*"/>
|
13520
|
-
<xsl:
|
13521
|
-
|
13522
|
-
|
13523
|
-
<xsl:
|
13542
|
+
<xsl:if test="1 = 2"> <!-- remove attachment/text(), because attachments added in the template 'addPDFUAmeta' before applying 'update_xml_step1' -->
|
13543
|
+
<xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
|
13544
|
+
<xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
|
13545
|
+
<xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
|
13546
|
+
<xsl:value-of select="normalize-space(.)"/>
|
13547
|
+
</xsl:if>
|
13524
13548
|
</xsl:if>
|
13525
13549
|
</xsl:copy>
|
13526
13550
|
</xsl:template>
|
@@ -14395,7 +14419,8 @@
|
|
14395
14419
|
<xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
|
14396
14420
|
<xsl:choose>
|
14397
14421
|
<xsl:when test="normalize-space() != ''">
|
14398
|
-
<
|
14422
|
+
<xsl:variable name="src_attachment" select="java:replaceAll(java:java.lang.String.new(.),'( | | )', '')"/> <!-- remove line breaks -->
|
14423
|
+
<pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$src_attachment}" filename="{@name}"/>
|
14399
14424
|
</xsl:when>
|
14400
14425
|
<xsl:otherwise>
|
14401
14426
|
<!-- _{filename}_attachments -->
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-itu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|