metanorma-ogc 2.3.12 → 2.3.14
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 +9 -5
- data/lib/isodoc/ogc/html/htmlstyle.scss +2 -2
- data/lib/isodoc/ogc/i18n-en.yaml +11 -0
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +250 -102
- data/lib/isodoc/ogc/ogc.best-practice.xsl +250 -102
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +250 -102
- data/lib/isodoc/ogc/ogc.community-practice.xsl +250 -102
- data/lib/isodoc/ogc/ogc.community-standard.xsl +250 -102
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +250 -102
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +250 -102
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +250 -102
- data/lib/isodoc/ogc/ogc.other.xsl +250 -102
- data/lib/isodoc/ogc/ogc.policy.xsl +250 -102
- data/lib/isodoc/ogc/ogc.reference-model.xsl +250 -102
- data/lib/isodoc/ogc/ogc.release-notes.xsl +250 -102
- data/lib/isodoc/ogc/ogc.standard.xsl +250 -102
- data/lib/isodoc/ogc/ogc.test-suite.xsl +250 -102
- data/lib/isodoc/ogc/ogc.user-guide.xsl +250 -102
- data/lib/isodoc/ogc/ogc.white-paper.xsl +214 -99
- data/lib/isodoc/ogc/presentation_xml_convert.rb +23 -18
- data/lib/isodoc/ogc/xref.rb +17 -6
- data/lib/metanorma/ogc/converter.rb +6 -2
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +2 -2
|
@@ -306,7 +306,12 @@
|
|
|
306
306
|
<fo:block line-height="140%">
|
|
307
307
|
<xsl:apply-templates select="/ogc:ogc-standard/ogc:bibdata/ogc:edition[normalize-space(@language) = '']"/>
|
|
308
308
|
<fo:block>
|
|
309
|
-
<fo:inline font-weight="bold">
|
|
309
|
+
<fo:inline font-weight="bold">
|
|
310
|
+
<!-- Submission Date: -->
|
|
311
|
+
<xsl:call-template name="getLocalizedString">
|
|
312
|
+
<xsl:with-param name="key">submission_date</xsl:with-param>
|
|
313
|
+
</xsl:call-template><xsl:text>: </xsl:text>
|
|
314
|
+
</fo:inline>
|
|
310
315
|
<xsl:choose>
|
|
311
316
|
<xsl:when test="/ogc:ogc-standard/ogc:bibdata/ogc:date[@type = 'received']/ogc:on">
|
|
312
317
|
<xsl:value-of select="/ogc:ogc-standard/ogc:bibdata/ogc:date[@type = 'received']/ogc:on"/>
|
|
@@ -315,7 +320,12 @@
|
|
|
315
320
|
</xsl:choose>
|
|
316
321
|
</fo:block>
|
|
317
322
|
<fo:block>
|
|
318
|
-
<fo:inline font-weight="bold">
|
|
323
|
+
<fo:inline font-weight="bold">
|
|
324
|
+
<!-- Approval Date: -->
|
|
325
|
+
<xsl:call-template name="getLocalizedString">
|
|
326
|
+
<xsl:with-param name="key">approval_date</xsl:with-param>
|
|
327
|
+
</xsl:call-template><xsl:text>: </xsl:text>
|
|
328
|
+
</fo:inline>
|
|
319
329
|
<xsl:choose>
|
|
320
330
|
<xsl:when test="/ogc:ogc-standard/ogc:bibdata/ogc:date[@type = 'issued']/ogc:on">
|
|
321
331
|
<xsl:value-of select="/ogc:ogc-standard/ogc:bibdata/ogc:date[@type = 'issued']/ogc:on"/>
|
|
@@ -324,14 +334,24 @@
|
|
|
324
334
|
</xsl:choose>
|
|
325
335
|
</fo:block>
|
|
326
336
|
<fo:block>
|
|
327
|
-
<fo:inline font-weight="bold">
|
|
337
|
+
<fo:inline font-weight="bold">
|
|
338
|
+
<!-- Publication Date: -->
|
|
339
|
+
<xsl:call-template name="getLocalizedString">
|
|
340
|
+
<xsl:with-param name="key">publication_date</xsl:with-param>
|
|
341
|
+
</xsl:call-template><xsl:text>: </xsl:text>
|
|
342
|
+
</fo:inline>
|
|
328
343
|
<xsl:value-of select="/ogc:ogc-standard/ogc:bibdata/ogc:date[@type = 'published']/ogc:on"/>
|
|
329
344
|
</fo:block>
|
|
330
345
|
|
|
331
346
|
<fo:block margin-bottom="12pt">
|
|
332
347
|
<xsl:if test="/ogc:ogc-standard/ogc:bibdata/ogc:contributor[ogc:role/@type='author']/ogc:person/ogc:name/ogc:completename">
|
|
333
348
|
<fo:block>
|
|
334
|
-
<fo:inline font-weight="bold">
|
|
349
|
+
<fo:inline font-weight="bold">
|
|
350
|
+
<!-- Author: -->
|
|
351
|
+
<xsl:call-template name="getLocalizedString">
|
|
352
|
+
<xsl:with-param name="key">author</xsl:with-param>
|
|
353
|
+
</xsl:call-template><xsl:text>: </xsl:text>
|
|
354
|
+
</fo:inline>
|
|
335
355
|
<xsl:for-each select="/ogc:ogc-standard/ogc:bibdata/ogc:contributor[ogc:role/@type='author']/ogc:person/ogc:name/ogc:completename">
|
|
336
356
|
<xsl:value-of select="."/>
|
|
337
357
|
<xsl:if test="position() != last()">, </xsl:if>
|
|
@@ -340,7 +360,12 @@
|
|
|
340
360
|
</xsl:if>
|
|
341
361
|
<xsl:if test="/ogc:ogc-standard/ogc:bibdata/ogc:contributor[ogc:role/@type='editor']/ogc:person/ogc:name/ogc:completename">
|
|
342
362
|
<fo:block>
|
|
343
|
-
<fo:inline font-weight="bold">
|
|
363
|
+
<fo:inline font-weight="bold">
|
|
364
|
+
<!-- Editor: -->
|
|
365
|
+
<xsl:call-template name="getLocalizedString">
|
|
366
|
+
<xsl:with-param name="key">editor</xsl:with-param>
|
|
367
|
+
</xsl:call-template><xsl:text>: </xsl:text>
|
|
368
|
+
</fo:inline>
|
|
344
369
|
<xsl:for-each select="/ogc:ogc-standard/ogc:bibdata/ogc:contributor[ogc:role/@type='editor']/ogc:person/ogc:name/ogc:completename">
|
|
345
370
|
<xsl:value-of select="."/>
|
|
346
371
|
<xsl:if test="position() != last()">, </xsl:if>
|
|
@@ -349,7 +374,12 @@
|
|
|
349
374
|
</xsl:if>
|
|
350
375
|
<xsl:if test="/ogc:ogc-standard/ogc:bibdata/ogc:contributor[ogc:role/@type='contributor']/ogc:person/ogc:name/ogc:completename">
|
|
351
376
|
<fo:block>
|
|
352
|
-
<fo:inline font-weight="bold">
|
|
377
|
+
<fo:inline font-weight="bold">
|
|
378
|
+
<!-- Contributor: -->
|
|
379
|
+
<xsl:call-template name="getLocalizedString">
|
|
380
|
+
<xsl:with-param name="key">contributor</xsl:with-param>
|
|
381
|
+
</xsl:call-template><xsl:text>: </xsl:text>
|
|
382
|
+
</fo:inline>
|
|
353
383
|
<xsl:for-each select="/ogc:ogc-standard/ogc:bibdata/ogc:contributor[ogc:role/@type='contributor']/ogc:person/ogc:name/ogc:completename">
|
|
354
384
|
<xsl:value-of select="."/>
|
|
355
385
|
<xsl:if test="position() != last()">, </xsl:if>
|
|
@@ -689,7 +719,10 @@
|
|
|
689
719
|
<!-- add zero-width space (#x200B) before character '(' if preceding and following are word chars -->
|
|
690
720
|
<xsl:variable name="content3" select="java:replaceAll(java:java.lang.String.new($content2), '(\w)(\()(\w)', '$1$2$3')"/>
|
|
691
721
|
|
|
692
|
-
|
|
722
|
+
<!-- replace sequence #x200B to one ​ -->
|
|
723
|
+
<xsl:variable name="content4" select="java:replaceAll(java:java.lang.String.new($content3), '\u200b{2,}', '')"/>
|
|
724
|
+
|
|
725
|
+
<xsl:value-of select="translate($content4, $thin_space, ' ')"/>
|
|
693
726
|
</xsl:template>
|
|
694
727
|
|
|
695
728
|
<xsl:template match="node()" mode="sections">
|
|
@@ -1613,21 +1646,32 @@
|
|
|
1613
1646
|
<xsl:variable name="titles_">
|
|
1614
1647
|
|
|
1615
1648
|
<!-- These titles of Table of contents renders different than determined in localized-strings -->
|
|
1616
|
-
<title-toc lang="en">
|
|
1617
|
-
|
|
1649
|
+
<!-- <title-toc lang="en">
|
|
1650
|
+
<xsl:if test="$namespace = 'csd' or $namespace = 'ieee' or $namespace = 'iho' or $namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'unece-rec'">
|
|
1618
1651
|
<xsl:text>Contents</xsl:text>
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1652
|
+
</xsl:if>
|
|
1653
|
+
<xsl:if test="$namespace = 'csa' or $namespace = 'm3d' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper'">
|
|
1654
|
+
<xsl:text>Table of Contents</xsl:text>
|
|
1655
|
+
</xsl:if>
|
|
1656
|
+
<xsl:if test="$namespace = 'gb'">
|
|
1657
|
+
<xsl:text>Table of contents</xsl:text>
|
|
1658
|
+
</xsl:if>
|
|
1659
|
+
</title-toc> -->
|
|
1660
|
+
<title-toc lang="en">Table of contents</title-toc>
|
|
1661
|
+
<!-- <title-toc lang="fr">
|
|
1622
1662
|
<xsl:text>Sommaire</xsl:text>
|
|
1623
|
-
</title-toc>
|
|
1624
|
-
<title-toc lang="zh">
|
|
1625
|
-
|
|
1663
|
+
</title-toc> -->
|
|
1664
|
+
<!-- <title-toc lang="zh">
|
|
1665
|
+
<xsl:choose>
|
|
1666
|
+
<xsl:when test="$namespace = 'gb'">
|
|
1667
|
+
<xsl:text>目次</xsl:text>
|
|
1668
|
+
</xsl:when>
|
|
1669
|
+
<xsl:otherwise>
|
|
1626
1670
|
<xsl:text>Contents</xsl:text>
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
<title-
|
|
1671
|
+
</xsl:otherwise>
|
|
1672
|
+
</xsl:choose>
|
|
1673
|
+
</title-toc> -->
|
|
1674
|
+
<title-toc lang="zh">目次</title-toc>
|
|
1631
1675
|
|
|
1632
1676
|
<title-part lang="en">
|
|
1633
1677
|
|
|
@@ -1643,20 +1687,6 @@
|
|
|
1643
1687
|
<title-subpart lang="en">Sub-part #</title-subpart>
|
|
1644
1688
|
<title-subpart lang="fr">Partie de sub #</title-subpart>
|
|
1645
1689
|
|
|
1646
|
-
<title-list-tables lang="en">List of Tables</title-list-tables>
|
|
1647
|
-
|
|
1648
|
-
<title-list-figures lang="en">List of Figures</title-list-figures>
|
|
1649
|
-
|
|
1650
|
-
<title-table-figures lang="en">Table of Figures</title-table-figures>
|
|
1651
|
-
|
|
1652
|
-
<title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
|
|
1653
|
-
|
|
1654
|
-
<title-summary lang="en">Summary</title-summary>
|
|
1655
|
-
|
|
1656
|
-
<title-continued lang="ru">(продолжение)</title-continued>
|
|
1657
|
-
<title-continued lang="en">(continued)</title-continued>
|
|
1658
|
-
<title-continued lang="fr">(continué)</title-continued>
|
|
1659
|
-
|
|
1660
1690
|
</xsl:variable>
|
|
1661
1691
|
<xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
|
|
1662
1692
|
|
|
@@ -1664,8 +1694,8 @@
|
|
|
1664
1694
|
<xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
|
|
1665
1695
|
<xsl:value-of select="$toc_table_title"/>
|
|
1666
1696
|
<xsl:if test="normalize-space($toc_table_title) = ''">
|
|
1667
|
-
<xsl:call-template name="
|
|
1668
|
-
<xsl:with-param name="
|
|
1697
|
+
<xsl:call-template name="getLocalizedString">
|
|
1698
|
+
<xsl:with-param name="key">toc_tables</xsl:with-param>
|
|
1669
1699
|
</xsl:call-template>
|
|
1670
1700
|
</xsl:if>
|
|
1671
1701
|
</xsl:variable>
|
|
@@ -1674,8 +1704,8 @@
|
|
|
1674
1704
|
<xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
|
|
1675
1705
|
<xsl:value-of select="$toc_figure_title"/>
|
|
1676
1706
|
<xsl:if test="normalize-space($toc_figure_title) = ''">
|
|
1677
|
-
<xsl:call-template name="
|
|
1678
|
-
<xsl:with-param name="
|
|
1707
|
+
<xsl:call-template name="getLocalizedString">
|
|
1708
|
+
<xsl:with-param name="key">toc_figures</xsl:with-param>
|
|
1679
1709
|
</xsl:call-template>
|
|
1680
1710
|
</xsl:if>
|
|
1681
1711
|
</xsl:variable>
|
|
@@ -1684,8 +1714,8 @@
|
|
|
1684
1714
|
<xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
|
|
1685
1715
|
<xsl:value-of select="$toc_requirement_title"/>
|
|
1686
1716
|
<xsl:if test="normalize-space($toc_requirement_title) = ''">
|
|
1687
|
-
<xsl:call-template name="
|
|
1688
|
-
<xsl:with-param name="
|
|
1717
|
+
<xsl:call-template name="getLocalizedString">
|
|
1718
|
+
<xsl:with-param name="key">toc_recommendations</xsl:with-param>
|
|
1689
1719
|
</xsl:call-template>
|
|
1690
1720
|
</xsl:if>
|
|
1691
1721
|
</xsl:variable>
|
|
@@ -2538,6 +2568,7 @@
|
|
|
2538
2568
|
</xsl:attribute-set>
|
|
2539
2569
|
|
|
2540
2570
|
<xsl:attribute-set name="figure-block-style">
|
|
2571
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
2541
2572
|
|
|
2542
2573
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
2543
2574
|
|
|
@@ -2548,6 +2579,7 @@
|
|
|
2548
2579
|
</xsl:attribute-set>
|
|
2549
2580
|
|
|
2550
2581
|
<xsl:attribute-set name="figure-name-style">
|
|
2582
|
+
<xsl:attribute name="role">Caption</xsl:attribute>
|
|
2551
2583
|
|
|
2552
2584
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
|
2553
2585
|
<!-- <xsl:attribute name="margin-top">12pt</xsl:attribute> -->
|
|
@@ -2596,6 +2628,7 @@
|
|
|
2596
2628
|
</xsl:template>
|
|
2597
2629
|
|
|
2598
2630
|
<xsl:attribute-set name="image-style">
|
|
2631
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
2599
2632
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
|
2600
2633
|
|
|
2601
2634
|
<xsl:attribute name="space-before">12pt</xsl:attribute>
|
|
@@ -2890,6 +2923,11 @@
|
|
|
2890
2923
|
|
|
2891
2924
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-style -->
|
|
2892
2925
|
|
|
2926
|
+
<xsl:attribute-set name="bibitem-non-normative-list-item-style">
|
|
2927
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
2928
|
+
|
|
2929
|
+
</xsl:attribute-set>
|
|
2930
|
+
|
|
2893
2931
|
<!-- bibitem in bibliography section (references/@normative="false"), list body -->
|
|
2894
2932
|
<xsl:attribute-set name="bibitem-normative-list-body-style">
|
|
2895
2933
|
|
|
@@ -3283,14 +3321,14 @@
|
|
|
3283
3321
|
<xsl:value-of select="$sep"/><xsl:value-of select="$zero_width_space"/>
|
|
3284
3322
|
</xsl:when>
|
|
3285
3323
|
<xsl:otherwise>
|
|
3286
|
-
<fo:inline keep-together.within-line="always"><xsl:apply-templates/></fo:inline>
|
|
3324
|
+
<fo:inline keep-together.within-line="always" role="SKIP"><xsl:apply-templates/></fo:inline>
|
|
3287
3325
|
</xsl:otherwise>
|
|
3288
3326
|
</xsl:choose>
|
|
3289
3327
|
</xsl:for-each>
|
|
3290
3328
|
</xsl:when>
|
|
3291
3329
|
|
|
3292
3330
|
<xsl:otherwise>
|
|
3293
|
-
<fo:inline keep-together.within-line="always"><xsl:apply-templates/></fo:inline>
|
|
3331
|
+
<fo:inline keep-together.within-line="always" role="SKIP"><xsl:apply-templates/></fo:inline>
|
|
3294
3332
|
</xsl:otherwise>
|
|
3295
3333
|
|
|
3296
3334
|
</xsl:choose>
|
|
@@ -3300,7 +3338,7 @@
|
|
|
3300
3338
|
<!-- Preface boilerplate sections processing -->
|
|
3301
3339
|
<!-- ================================= -->
|
|
3302
3340
|
<xsl:template match="*[local-name()='copyright-statement']">
|
|
3303
|
-
<fo:block xsl:use-attribute-sets="copyright-statement-style">
|
|
3341
|
+
<fo:block xsl:use-attribute-sets="copyright-statement-style" role="SKIP">
|
|
3304
3342
|
<xsl:apply-templates/>
|
|
3305
3343
|
</fo:block>
|
|
3306
3344
|
</xsl:template> <!-- copyright-statement -->
|
|
@@ -3483,7 +3521,7 @@
|
|
|
3483
3521
|
</xsl:choose>
|
|
3484
3522
|
</xsl:variable>
|
|
3485
3523
|
|
|
3486
|
-
<fo:block-container xsl:use-attribute-sets="table-container-style">
|
|
3524
|
+
<fo:block-container xsl:use-attribute-sets="table-container-style" role="SKIP">
|
|
3487
3525
|
|
|
3488
3526
|
<xsl:call-template name="refine_table-container-style">
|
|
3489
3527
|
<xsl:with-param name="margin-side" select="$margin-side"/>
|
|
@@ -4519,7 +4557,7 @@
|
|
|
4519
4557
|
</xsl:choose>
|
|
4520
4558
|
</xsl:variable>
|
|
4521
4559
|
<xsl:variable name="footnote_inline">
|
|
4522
|
-
<fo:inline>
|
|
4560
|
+
<fo:inline role="Reference">
|
|
4523
4561
|
|
|
4524
4562
|
<xsl:variable name="fn_styles">
|
|
4525
4563
|
<xsl:choose>
|
|
@@ -4542,7 +4580,7 @@
|
|
|
4542
4580
|
|
|
4543
4581
|
<xsl:call-template name="insert_basic_link">
|
|
4544
4582
|
<xsl:with-param name="element">
|
|
4545
|
-
<fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
|
|
4583
|
+
<fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}" role="Lbl">
|
|
4546
4584
|
<xsl:copy-of select="$current_fn_number_text"/>
|
|
4547
4585
|
</fo:basic-link>
|
|
4548
4586
|
</xsl:with-param>
|
|
@@ -4555,17 +4593,17 @@
|
|
|
4555
4593
|
<xsl:copy-of select="$footnote_inline"/>
|
|
4556
4594
|
</xsl:when>
|
|
4557
4595
|
<xsl:when test="$p_fn//fn[@gen_id = $gen_id] or normalize-space(@skip_footnote_body) = 'false'">
|
|
4558
|
-
<fo:footnote xsl:use-attribute-sets="fn-style">
|
|
4596
|
+
<fo:footnote xsl:use-attribute-sets="fn-style" role="SKIP">
|
|
4559
4597
|
<xsl:copy-of select="$footnote_inline"/>
|
|
4560
|
-
<fo:footnote-body>
|
|
4598
|
+
<fo:footnote-body role="Note">
|
|
4561
4599
|
|
|
4562
|
-
<fo:block-container xsl:use-attribute-sets="fn-container-body-style">
|
|
4600
|
+
<fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
|
|
4563
4601
|
|
|
4564
|
-
<fo:block xsl:use-attribute-sets="fn-body-style">
|
|
4602
|
+
<fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
|
|
4565
4603
|
|
|
4566
4604
|
<xsl:call-template name="refine_fn-body-style"/>
|
|
4567
4605
|
|
|
4568
|
-
<fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style">
|
|
4606
|
+
<fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style" role="Lbl">
|
|
4569
4607
|
|
|
4570
4608
|
<xsl:call-template name="refine_fn-body-num-style"/>
|
|
4571
4609
|
|
|
@@ -4838,11 +4876,11 @@
|
|
|
4838
4876
|
</xsl:template>
|
|
4839
4877
|
|
|
4840
4878
|
<xsl:template match="*[local-name()='fn']/text()[normalize-space() != '']">
|
|
4841
|
-
<fo:inline><xsl:value-of select="."/></fo:inline>
|
|
4879
|
+
<fo:inline role="SKIP"><xsl:value-of select="."/></fo:inline>
|
|
4842
4880
|
</xsl:template>
|
|
4843
4881
|
|
|
4844
4882
|
<xsl:template match="*[local-name()='fn']//*[local-name()='p']">
|
|
4845
|
-
<fo:inline>
|
|
4883
|
+
<fo:inline role="P">
|
|
4846
4884
|
<xsl:apply-templates/>
|
|
4847
4885
|
</fo:inline>
|
|
4848
4886
|
</xsl:template>
|
|
@@ -4857,7 +4895,7 @@
|
|
|
4857
4895
|
<xsl:variable name="isAdded" select="@added"/>
|
|
4858
4896
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
|
4859
4897
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
|
4860
|
-
<fo:block-container xsl:use-attribute-sets="dl-block-style">
|
|
4898
|
+
<fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
|
|
4861
4899
|
|
|
4862
4900
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
4863
4901
|
|
|
@@ -4892,7 +4930,7 @@
|
|
|
4892
4930
|
<xsl:with-param name="isDeleted" select="$isDeleted"/>
|
|
4893
4931
|
</xsl:call-template>
|
|
4894
4932
|
|
|
4895
|
-
<fo:block-container margin-left="0mm">
|
|
4933
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
|
4896
4934
|
|
|
4897
4935
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
|
4898
4936
|
|
|
@@ -4957,7 +4995,7 @@
|
|
|
4957
4995
|
|
|
4958
4996
|
<!-- a few components -->
|
|
4959
4997
|
<xsl:if test="$onlyOneComponent = 'false'">
|
|
4960
|
-
<fo:block>
|
|
4998
|
+
<fo:block role="SKIP">
|
|
4961
4999
|
|
|
4962
5000
|
<xsl:call-template name="refine_multicomponent_style"/>
|
|
4963
5001
|
|
|
@@ -4965,7 +5003,7 @@
|
|
|
4965
5003
|
<xsl:attribute name="margin-top">0</xsl:attribute>
|
|
4966
5004
|
</xsl:if>
|
|
4967
5005
|
|
|
4968
|
-
<fo:block>
|
|
5006
|
+
<fo:block role="SKIP">
|
|
4969
5007
|
|
|
4970
5008
|
<xsl:call-template name="refine_multicomponent_block_style"/>
|
|
4971
5009
|
|
|
@@ -5567,6 +5605,9 @@
|
|
|
5567
5605
|
|
|
5568
5606
|
<xsl:template name="refine_strong_style">
|
|
5569
5607
|
|
|
5608
|
+
<xsl:if test="ancestor::*['preferred']">
|
|
5609
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
5610
|
+
</xsl:if>
|
|
5570
5611
|
</xsl:template>
|
|
5571
5612
|
|
|
5572
5613
|
<xsl:template match="*[local-name()='padding']">
|
|
@@ -5616,7 +5657,7 @@
|
|
|
5616
5657
|
<xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
|
|
5617
5658
|
<xsl:template match="*[local-name()='tt']/text()" priority="2">
|
|
5618
5659
|
<xsl:choose>
|
|
5619
|
-
<xsl:when test="java:replaceAll(java:java.lang.String.new(.),
|
|
5660
|
+
<xsl:when test="java:replaceAll(java:java.lang.String.new(.), $regex_url_start, '$2') != ''">
|
|
5620
5661
|
<!-- url -->
|
|
5621
5662
|
<xsl:call-template name="add-zero-spaces-link-java"/>
|
|
5622
5663
|
</xsl:when>
|
|
@@ -6078,10 +6119,13 @@
|
|
|
6078
6119
|
</xsl:choose>
|
|
6079
6120
|
</xsl:variable>
|
|
6080
6121
|
|
|
6122
|
+
<!-- replace sequence #x200B to one ​ -->
|
|
6123
|
+
<xsl:variable name="text10" select="java:replaceAll(java:java.lang.String.new($text9), '\u200b{2,}', '')"/>
|
|
6124
|
+
|
|
6081
6125
|
<!-- replace sequence #x200B and space TO space -->
|
|
6082
|
-
<xsl:variable name="
|
|
6126
|
+
<xsl:variable name="text11" select="java:replaceAll(java:java.lang.String.new($text10), '\u200b ', ' ')"/>
|
|
6083
6127
|
|
|
6084
|
-
<xsl:value-of select="$
|
|
6128
|
+
<xsl:value-of select="$text11"/>
|
|
6085
6129
|
</xsl:template>
|
|
6086
6130
|
|
|
6087
6131
|
<xsl:template name="add-zero-spaces-link-java">
|
|
@@ -6091,8 +6135,12 @@
|
|
|
6091
6135
|
<xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
|
|
6092
6136
|
<!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space, comma, slash, @ -->
|
|
6093
6137
|
<xsl:variable name="url" select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/|@)','$1')"/>
|
|
6138
|
+
|
|
6139
|
+
<!-- replace sequence #x200B to one ​ -->
|
|
6140
|
+
<xsl:variable name="url2" select="java:replaceAll(java:java.lang.String.new($url), '\u200b{2,}', '')"/>
|
|
6141
|
+
|
|
6094
6142
|
<!-- remove zero-width space at the end -->
|
|
6095
|
-
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($
|
|
6143
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($url2), '$', '')"/>
|
|
6096
6144
|
</xsl:template>
|
|
6097
6145
|
|
|
6098
6146
|
<!-- add zero space after dash character (for table's entries) -->
|
|
@@ -6503,6 +6551,18 @@
|
|
|
6503
6551
|
</xsl:copy>
|
|
6504
6552
|
</xsl:template>
|
|
6505
6553
|
|
|
6554
|
+
<xsl:variable name="font_main_root_style">
|
|
6555
|
+
<root-style xsl:use-attribute-sets="root-style">
|
|
6556
|
+
</root-style>
|
|
6557
|
+
</xsl:variable>
|
|
6558
|
+
<xsl:variable name="font_main_root_style_font_family" select="xalan:nodeset($font_main_root_style)/root-style/@font-family"/>
|
|
6559
|
+
<xsl:variable name="font_main">
|
|
6560
|
+
<xsl:choose>
|
|
6561
|
+
<xsl:when test="contains($font_main_root_style_font_family, ',')"><xsl:value-of select="substring-before($font_main_root_style_font_family, ',')"/></xsl:when>
|
|
6562
|
+
<xsl:otherwise><xsl:value-of select="$font_main_root_style_font_family"/></xsl:otherwise>
|
|
6563
|
+
</xsl:choose>
|
|
6564
|
+
</xsl:variable>
|
|
6565
|
+
|
|
6506
6566
|
<xsl:template match="*[local-name()='th' or local-name()='td']" mode="simple-table-id">
|
|
6507
6567
|
<xsl:param name="id"/>
|
|
6508
6568
|
<xsl:copy>
|
|
@@ -6541,6 +6601,33 @@
|
|
|
6541
6601
|
|
|
6542
6602
|
<!-- td_text='<xsl:copy-of select="$td_text"/>' -->
|
|
6543
6603
|
|
|
6604
|
+
<xsl:variable name="words_with_width">
|
|
6605
|
+
<!-- calculate width for 'word' which contain text only (without formatting tags inside) -->
|
|
6606
|
+
<xsl:for-each select="xalan:nodeset($td_text)//*[local-name() = 'word'][normalize-space() != ''][not(*)]">
|
|
6607
|
+
<xsl:copy>
|
|
6608
|
+
<xsl:copy-of select="@*"/>
|
|
6609
|
+
<xsl:attribute name="width">
|
|
6610
|
+
<xsl:value-of select="java:org.metanorma.fop.Util.getStringWidth(., $font_main)"/> <!-- Example: 'Times New Roman' -->
|
|
6611
|
+
</xsl:attribute>
|
|
6612
|
+
<xsl:copy-of select="node()"/>
|
|
6613
|
+
</xsl:copy>
|
|
6614
|
+
</xsl:for-each>
|
|
6615
|
+
</xsl:variable>
|
|
6616
|
+
|
|
6617
|
+
<xsl:variable name="words_with_width_sorted">
|
|
6618
|
+
<xsl:for-each select="xalan:nodeset($words_with_width)//*[local-name() = 'word']">
|
|
6619
|
+
<xsl:sort select="@width" data-type="number" order="descending"/>
|
|
6620
|
+
<!-- select word maximal width only -->
|
|
6621
|
+
<xsl:if test="position() = 1">
|
|
6622
|
+
<xsl:copy-of select="."/>
|
|
6623
|
+
</xsl:if>
|
|
6624
|
+
</xsl:for-each>
|
|
6625
|
+
<!-- add 'word' with formatting tags inside -->
|
|
6626
|
+
<xsl:for-each select="xalan:nodeset($td_text)//*[local-name() = 'word'][normalize-space() != ''][*]">
|
|
6627
|
+
<xsl:copy-of select="."/>
|
|
6628
|
+
</xsl:for-each>
|
|
6629
|
+
</xsl:variable>
|
|
6630
|
+
|
|
6544
6631
|
<xsl:variable name="words">
|
|
6545
6632
|
<xsl:for-each select=".//*[local-name() = 'image' or local-name() = 'stem']">
|
|
6546
6633
|
<word>
|
|
@@ -6548,9 +6635,12 @@
|
|
|
6548
6635
|
</word>
|
|
6549
6636
|
</xsl:for-each>
|
|
6550
6637
|
|
|
6551
|
-
<xsl:for-each select="xalan:nodeset($
|
|
6638
|
+
<xsl:for-each select="xalan:nodeset($words_with_width_sorted)//*[local-name() = 'word'][normalize-space() != '']">
|
|
6552
6639
|
<xsl:copy-of select="."/>
|
|
6553
6640
|
</xsl:for-each>
|
|
6641
|
+
<!-- <xsl:for-each select="xalan:nodeset($td_text)//*[local-name() = 'word'][normalize-space() != '']">
|
|
6642
|
+
<xsl:copy-of select="."/>
|
|
6643
|
+
</xsl:for-each> -->
|
|
6554
6644
|
|
|
6555
6645
|
</xsl:variable>
|
|
6556
6646
|
|
|
@@ -7011,10 +7101,10 @@
|
|
|
7011
7101
|
<xsl:copy>
|
|
7012
7102
|
<xsl:apply-templates select="@*" mode="mathml"/>
|
|
7013
7103
|
<xsl:if test="not(@lspace)">
|
|
7014
|
-
<xsl:attribute name="lspace">0.
|
|
7104
|
+
<xsl:attribute name="lspace">0.2em</xsl:attribute>
|
|
7015
7105
|
</xsl:if>
|
|
7016
|
-
<xsl:if test="not(@rspace)">
|
|
7017
|
-
<xsl:attribute name="rspace">0.
|
|
7106
|
+
<xsl:if test="not(@rspace) and not(following-sibling::*[1][self::mathml:mo and normalize-space(text()) = '|'])">
|
|
7107
|
+
<xsl:attribute name="rspace">0.2em</xsl:attribute>
|
|
7018
7108
|
</xsl:if>
|
|
7019
7109
|
<xsl:apply-templates mode="mathml"/>
|
|
7020
7110
|
</xsl:copy>
|
|
@@ -7031,6 +7121,27 @@
|
|
|
7031
7121
|
</xsl:copy>
|
|
7032
7122
|
</xsl:template>
|
|
7033
7123
|
|
|
7124
|
+
<!-- increase space before '(' -->
|
|
7125
|
+
<xsl:template match="mathml:mo[normalize-space(text()) = '(']" mode="mathml">
|
|
7126
|
+
<xsl:copy>
|
|
7127
|
+
<xsl:apply-templates select="@*" mode="mathml"/>
|
|
7128
|
+
<xsl:if test="(preceding-sibling::* and not(preceding-sibling::*[1][self::mathml:mo])) or (../preceding-sibling::* and not(../preceding-sibling::*[1][self::mathml:mo]))">
|
|
7129
|
+
<xsl:if test="not(@lspace)">
|
|
7130
|
+
<xsl:attribute name="lspace">0.4em</xsl:attribute>
|
|
7131
|
+
<xsl:choose>
|
|
7132
|
+
<xsl:when test="preceding-sibling::*[1][self::mathml:mi or self::mathml:mstyle]">
|
|
7133
|
+
<xsl:attribute name="lspace">0.2em</xsl:attribute>
|
|
7134
|
+
</xsl:when>
|
|
7135
|
+
<xsl:when test="../preceding-sibling::*[1][self::mathml:mi or self::mathml:mstyle]">
|
|
7136
|
+
<xsl:attribute name="lspace">0.2em</xsl:attribute>
|
|
7137
|
+
</xsl:when>
|
|
7138
|
+
</xsl:choose>
|
|
7139
|
+
</xsl:if>
|
|
7140
|
+
</xsl:if>
|
|
7141
|
+
<xsl:apply-templates mode="mathml"/>
|
|
7142
|
+
</xsl:copy>
|
|
7143
|
+
</xsl:template>
|
|
7144
|
+
|
|
7034
7145
|
<!-- Examples:
|
|
7035
7146
|
<stem type="AsciiMath">x = 1</stem>
|
|
7036
7147
|
<stem type="AsciiMath"><asciimath>x = 1</asciimath></stem>
|
|
@@ -7194,7 +7305,7 @@
|
|
|
7194
7305
|
<!-- formula -->
|
|
7195
7306
|
<!-- ====== -->
|
|
7196
7307
|
<xsl:template match="*[local-name() = 'formula']" name="formula">
|
|
7197
|
-
<fo:block-container margin-left="0mm">
|
|
7308
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
|
7198
7309
|
<xsl:if test="parent::*[local-name() = 'note']">
|
|
7199
7310
|
<xsl:attribute name="margin-left">
|
|
7200
7311
|
<xsl:choose>
|
|
@@ -7204,7 +7315,7 @@
|
|
|
7204
7315
|
</xsl:attribute>
|
|
7205
7316
|
|
|
7206
7317
|
</xsl:if>
|
|
7207
|
-
<fo:block-container margin-left="0mm">
|
|
7318
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
|
7208
7319
|
<fo:block id="{@id}">
|
|
7209
7320
|
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/> <!-- formula's number will be process in 'stem' template -->
|
|
7210
7321
|
</fo:block>
|
|
@@ -7284,19 +7395,19 @@
|
|
|
7284
7395
|
|
|
7285
7396
|
<xsl:template match="*[local-name() = 'note']" name="note">
|
|
7286
7397
|
|
|
7287
|
-
<fo:block-container id="{@id}" xsl:use-attribute-sets="note-style">
|
|
7398
|
+
<fo:block-container id="{@id}" xsl:use-attribute-sets="note-style" role="SKIP">
|
|
7288
7399
|
|
|
7289
7400
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
7290
7401
|
|
|
7291
7402
|
<xsl:call-template name="refine_note-style"/>
|
|
7292
7403
|
|
|
7293
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
|
7404
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
7294
7405
|
|
|
7295
7406
|
<fo:block>
|
|
7296
7407
|
|
|
7297
7408
|
<xsl:call-template name="refine_note_block_style"/>
|
|
7298
7409
|
|
|
7299
|
-
<fo:inline xsl:use-attribute-sets="note-name-style">
|
|
7410
|
+
<fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
|
|
7300
7411
|
|
|
7301
7412
|
<xsl:call-template name="refine_note-name-style"/>
|
|
7302
7413
|
|
|
@@ -7333,12 +7444,12 @@
|
|
|
7333
7444
|
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
|
7334
7445
|
<xsl:choose>
|
|
7335
7446
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
|
7336
|
-
<fo:inline xsl:use-attribute-sets="note-p-style">
|
|
7447
|
+
<fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
|
|
7337
7448
|
<xsl:apply-templates/>
|
|
7338
7449
|
</fo:inline>
|
|
7339
7450
|
</xsl:when>
|
|
7340
7451
|
<xsl:otherwise>
|
|
7341
|
-
<fo:block xsl:use-attribute-sets="note-p-style">
|
|
7452
|
+
<fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
|
|
7342
7453
|
<xsl:apply-templates/>
|
|
7343
7454
|
</fo:block>
|
|
7344
7455
|
</xsl:otherwise>
|
|
@@ -7456,12 +7567,13 @@
|
|
|
7456
7567
|
|
|
7457
7568
|
<xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']">
|
|
7458
7569
|
<xsl:if test="normalize-space() != ''">
|
|
7459
|
-
<xsl:variable name="level">
|
|
7570
|
+
<!-- <xsl:variable name="level">
|
|
7460
7571
|
<xsl:call-template name="getLevelTermName"/>
|
|
7461
7572
|
</xsl:variable>
|
|
7462
7573
|
<fo:inline role="H{$level}">
|
|
7463
|
-
<xsl:apply-templates/>
|
|
7464
|
-
</fo:inline>
|
|
7574
|
+
<xsl:apply-templates />
|
|
7575
|
+
</fo:inline> -->
|
|
7576
|
+
<xsl:apply-templates/>
|
|
7465
7577
|
</xsl:if>
|
|
7466
7578
|
</xsl:template>
|
|
7467
7579
|
<!-- ====== -->
|
|
@@ -7485,7 +7597,7 @@
|
|
|
7485
7597
|
<!-- Example: Dimensions in millimeters -->
|
|
7486
7598
|
<xsl:apply-templates select="*[local-name() = 'note'][@type = 'units']"/>
|
|
7487
7599
|
|
|
7488
|
-
<fo:block xsl:use-attribute-sets="figure-style">
|
|
7600
|
+
<fo:block xsl:use-attribute-sets="figure-style" role="SKIP">
|
|
7489
7601
|
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note' and @type = 'units')]"/>
|
|
7490
7602
|
</fo:block>
|
|
7491
7603
|
<xsl:for-each select="*[local-name() = 'note'][not(@type = 'units')]">
|
|
@@ -8641,7 +8753,7 @@
|
|
|
8641
8753
|
</xsl:when>
|
|
8642
8754
|
|
|
8643
8755
|
<xsl:otherwise>
|
|
8644
|
-
<fo:block-container xsl:use-attribute-sets="sourcecode-container-style">
|
|
8756
|
+
<fo:block-container xsl:use-attribute-sets="sourcecode-container-style" role="SKIP">
|
|
8645
8757
|
|
|
8646
8758
|
<xsl:if test="not(ancestor::*[local-name() = 'li']) or ancestor::*[local-name() = 'example']">
|
|
8647
8759
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
|
@@ -8662,7 +8774,7 @@
|
|
|
8662
8774
|
</xsl:attribute>
|
|
8663
8775
|
|
|
8664
8776
|
</xsl:if>
|
|
8665
|
-
<fo:block-container margin-left="0mm">
|
|
8777
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
|
8666
8778
|
|
|
8667
8779
|
<xsl:if test="parent::*[local-name() = 'example']">
|
|
8668
8780
|
<fo:block font-size="1pt" line-height="10%" space-after="4pt"> </fo:block>
|
|
@@ -9224,11 +9336,11 @@
|
|
|
9224
9336
|
<!-- requirement, recommendation, permission table -->
|
|
9225
9337
|
<!-- ========== -->
|
|
9226
9338
|
<xsl:template match="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
|
9227
|
-
<fo:block-container margin-left="0mm" margin-right="0mm" margin-bottom="12pt">
|
|
9339
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" margin-bottom="12pt" role="SKIP">
|
|
9228
9340
|
<xsl:if test="ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
|
9229
9341
|
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
|
9230
9342
|
</xsl:if>
|
|
9231
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
|
9343
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
9232
9344
|
<fo:table id="{@id}" table-layout="fixed" width="100%"> <!-- border="1pt solid black" -->
|
|
9233
9345
|
<xsl:if test="ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
|
9234
9346
|
<!-- <xsl:attribute name="border">0.5pt solid black</xsl:attribute> -->
|
|
@@ -9404,7 +9516,7 @@
|
|
|
9404
9516
|
-->
|
|
9405
9517
|
<xsl:template match="*[local-name() = 'example']">
|
|
9406
9518
|
|
|
9407
|
-
<fo:block-container id="{@id}" xsl:use-attribute-sets="example-style">
|
|
9519
|
+
<fo:block-container id="{@id}" xsl:use-attribute-sets="example-style" role="SKIP">
|
|
9408
9520
|
|
|
9409
9521
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
9410
9522
|
|
|
@@ -9415,7 +9527,7 @@
|
|
|
9415
9527
|
inline
|
|
9416
9528
|
</xsl:variable>
|
|
9417
9529
|
|
|
9418
|
-
<fo:block-container margin-left="0mm">
|
|
9530
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
|
9419
9531
|
|
|
9420
9532
|
<xsl:choose>
|
|
9421
9533
|
|
|
@@ -9428,8 +9540,8 @@
|
|
|
9428
9540
|
</xsl:apply-templates>
|
|
9429
9541
|
</fo:block>
|
|
9430
9542
|
|
|
9431
|
-
<fo:block-container xsl:use-attribute-sets="example-body-style">
|
|
9432
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
|
9543
|
+
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
|
9544
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
9433
9545
|
<xsl:apply-templates select="node()[not(local-name() = 'name')]">
|
|
9434
9546
|
<xsl:with-param name="fo_element" select="$fo_element"/>
|
|
9435
9547
|
</xsl:apply-templates>
|
|
@@ -9482,8 +9594,8 @@
|
|
|
9482
9594
|
|
|
9483
9595
|
<xsl:if test="*[not(local-name() = 'name')][position() > 1]">
|
|
9484
9596
|
<!-- display further elements in blocks -->
|
|
9485
|
-
<fo:block-container xsl:use-attribute-sets="example-body-style">
|
|
9486
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
|
9597
|
+
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
|
9598
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
9487
9599
|
<xsl:apply-templates select="*[not(local-name() = 'name')][position() > 1]">
|
|
9488
9600
|
<xsl:with-param name="fo_element" select="'block'"/>
|
|
9489
9601
|
</xsl:apply-templates>
|
|
@@ -9536,7 +9648,7 @@
|
|
|
9536
9648
|
</xsl:variable>
|
|
9537
9649
|
<xsl:choose>
|
|
9538
9650
|
<xsl:when test="starts-with(normalize-space($element), 'block')">
|
|
9539
|
-
<fo:block-container>
|
|
9651
|
+
<fo:block-container role="SKIP">
|
|
9540
9652
|
<xsl:if test="ancestor::*[local-name() = 'li'] and contains(normalize-space($fo_element), 'block')">
|
|
9541
9653
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
|
9542
9654
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
|
@@ -9677,7 +9789,7 @@
|
|
|
9677
9789
|
<!-- author -->
|
|
9678
9790
|
<!-- ====== -->
|
|
9679
9791
|
<xsl:template match="*[local-name() = 'quote']">
|
|
9680
|
-
<fo:block-container margin-left="0mm">
|
|
9792
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
|
9681
9793
|
|
|
9682
9794
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
9683
9795
|
|
|
@@ -9687,12 +9799,12 @@
|
|
|
9687
9799
|
</xsl:if>
|
|
9688
9800
|
</xsl:if>
|
|
9689
9801
|
|
|
9690
|
-
<fo:block-container margin-left="0mm">
|
|
9691
|
-
<fo:block-container xsl:use-attribute-sets="quote-style">
|
|
9802
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
|
9803
|
+
<fo:block-container xsl:use-attribute-sets="quote-style" role="SKIP">
|
|
9692
9804
|
|
|
9693
9805
|
<xsl:call-template name="refine_quote-style"/>
|
|
9694
9806
|
|
|
9695
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
|
9807
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
9696
9808
|
<fo:block role="BlockQuote">
|
|
9697
9809
|
<xsl:apply-templates select="./node()[not(local-name() = 'author') and not(local-name() = 'source')]"/> <!-- process all nested nodes, except author and source -->
|
|
9698
9810
|
</fo:block>
|
|
@@ -9849,10 +9961,10 @@
|
|
|
9849
9961
|
|
|
9850
9962
|
<xsl:choose>
|
|
9851
9963
|
<xsl:when test="$lang = 'zh'">
|
|
9852
|
-
<fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
|
|
9964
|
+
<fo:inline role="SKIP"><xsl:value-of select="$tab_zh"/></fo:inline>
|
|
9853
9965
|
</xsl:when>
|
|
9854
9966
|
<xsl:when test="../../@inline-header = 'true'">
|
|
9855
|
-
<fo:inline font-size="90%">
|
|
9967
|
+
<fo:inline font-size="90%" role="SKIP">
|
|
9856
9968
|
<xsl:call-template name="insertNonBreakSpaces">
|
|
9857
9969
|
<xsl:with-param name="count" select="$padding-right"/>
|
|
9858
9970
|
</xsl:call-template>
|
|
@@ -9860,7 +9972,7 @@
|
|
|
9860
9972
|
</xsl:when>
|
|
9861
9973
|
<xsl:otherwise>
|
|
9862
9974
|
<xsl:variable name="direction"><xsl:if test="$lang = 'ar'"><xsl:value-of select="$RLM"/></xsl:if></xsl:variable>
|
|
9863
|
-
<fo:inline padding-right="{$padding-right}mm"><xsl:value-of select="$direction"/></fo:inline>
|
|
9975
|
+
<fo:inline padding-right="{$padding-right}mm" role="SKIP"><xsl:value-of select="$direction"/></fo:inline>
|
|
9864
9976
|
</xsl:otherwise>
|
|
9865
9977
|
</xsl:choose>
|
|
9866
9978
|
|
|
@@ -9890,12 +10002,12 @@
|
|
|
9890
10002
|
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
|
9891
10003
|
|
|
9892
10004
|
<xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'preferred'])"> <!-- if first preffered in term, then display term's name -->
|
|
9893
|
-
<fo:block xsl:use-attribute-sets="term-name-style">
|
|
10005
|
+
<fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
|
|
9894
10006
|
<xsl:apply-templates select="ancestor::*[local-name() = 'term'][1]/*[local-name() = 'name']"/>
|
|
9895
10007
|
</fo:block>
|
|
9896
10008
|
</xsl:if>
|
|
9897
10009
|
|
|
9898
|
-
<fo:block xsl:use-attribute-sets="preferred-term-style">
|
|
10010
|
+
<fo:block xsl:use-attribute-sets="preferred-term-style" role="SKIP">
|
|
9899
10011
|
<xsl:call-template name="setStyle_preferred"/>
|
|
9900
10012
|
<xsl:apply-templates/>
|
|
9901
10013
|
</fo:block>
|
|
@@ -9936,7 +10048,7 @@
|
|
|
9936
10048
|
<!-- definition -->
|
|
9937
10049
|
<!-- ========== -->
|
|
9938
10050
|
<xsl:template match="*[local-name() = 'definition']">
|
|
9939
|
-
<fo:block xsl:use-attribute-sets="definition-style">
|
|
10051
|
+
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
|
9940
10052
|
<xsl:apply-templates/>
|
|
9941
10053
|
</fo:block>
|
|
9942
10054
|
</xsl:template>
|
|
@@ -9984,6 +10096,10 @@
|
|
|
9984
10096
|
|
|
9985
10097
|
<xsl:template match="*[local-name() = 'clause']">
|
|
9986
10098
|
<fo:block>
|
|
10099
|
+
<xsl:if test="parent::*[local-name() = 'copyright-statement']">
|
|
10100
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
10101
|
+
</xsl:if>
|
|
10102
|
+
|
|
9987
10103
|
<xsl:call-template name="setId"/>
|
|
9988
10104
|
|
|
9989
10105
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
@@ -10220,7 +10336,7 @@
|
|
|
10220
10336
|
<xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
|
|
10221
10337
|
<xsl:choose>
|
|
10222
10338
|
<xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
|
|
10223
|
-
<fo:block-container>
|
|
10339
|
+
<fo:block-container role="SKIP">
|
|
10224
10340
|
<xsl:attribute name="margin-left">
|
|
10225
10341
|
<xsl:choose>
|
|
10226
10342
|
<xsl:when test="not(ancestor::*[local-name() = 'table'])"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
|
@@ -10230,7 +10346,7 @@
|
|
|
10230
10346
|
|
|
10231
10347
|
<xsl:call-template name="refine_list_container_style"/>
|
|
10232
10348
|
|
|
10233
|
-
<fo:block-container margin-left="0mm">
|
|
10349
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
|
10234
10350
|
<fo:block>
|
|
10235
10351
|
<xsl:apply-templates select="." mode="list"/>
|
|
10236
10352
|
</fo:block>
|
|
@@ -10239,7 +10355,7 @@
|
|
|
10239
10355
|
</xsl:when>
|
|
10240
10356
|
<xsl:otherwise>
|
|
10241
10357
|
|
|
10242
|
-
<fo:block>
|
|
10358
|
+
<fo:block role="SKIP">
|
|
10243
10359
|
<xsl:apply-templates select="." mode="list"/>
|
|
10244
10360
|
</fo:block>
|
|
10245
10361
|
|
|
@@ -10657,7 +10773,10 @@
|
|
|
10657
10773
|
<!-- Reference sections (Normative References and Bibliography) -->
|
|
10658
10774
|
<!-- ========================================================== -->
|
|
10659
10775
|
<xsl:template match="*[local-name() = 'references'][@hidden='true']" priority="3"/>
|
|
10660
|
-
<xsl:template match="*[local-name() = 'bibitem'][@hidden='true']" priority="3"
|
|
10776
|
+
<xsl:template match="*[local-name() = 'bibitem'][@hidden='true']" priority="3">
|
|
10777
|
+
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/>
|
|
10778
|
+
|
|
10779
|
+
</xsl:template>
|
|
10661
10780
|
<!-- don't display bibitem with @id starts with '_hidden', that was introduced for references integrity -->
|
|
10662
10781
|
<xsl:template match="*[local-name() = 'bibitem'][starts-with(@id, 'hidden_bibitem_')]" priority="3"/>
|
|
10663
10782
|
|
|
@@ -10706,7 +10825,7 @@
|
|
|
10706
10825
|
|
|
10707
10826
|
<!-- Bibliography (non-normative references) -->
|
|
10708
10827
|
<xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" name="bibitem_non_normative" priority="2">
|
|
10709
|
-
|
|
10828
|
+
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
|
10710
10829
|
<!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
|
10711
10830
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
|
10712
10831
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
|
@@ -10734,6 +10853,35 @@
|
|
|
10734
10853
|
|
|
10735
10854
|
</xsl:template> <!-- references[not(@normative='true')]/bibitem -->
|
|
10736
10855
|
|
|
10856
|
+
<xsl:template name="insertListItem_Bibitem">
|
|
10857
|
+
<xsl:choose>
|
|
10858
|
+
<xsl:when test="@hidden = 'true'"><!-- skip --></xsl:when>
|
|
10859
|
+
<xsl:otherwise>
|
|
10860
|
+
<fo:list-item id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-item-style">
|
|
10861
|
+
<fo:list-item-label end-indent="label-end()">
|
|
10862
|
+
<fo:block role="SKIP">
|
|
10863
|
+
<fo:inline role="SKIP">
|
|
10864
|
+
<xsl:apply-templates select="*[local-name() = 'biblio-tag']">
|
|
10865
|
+
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
|
10866
|
+
</xsl:apply-templates>
|
|
10867
|
+
</fo:inline>
|
|
10868
|
+
</fo:block>
|
|
10869
|
+
</fo:list-item-label>
|
|
10870
|
+
<fo:list-item-body start-indent="body-start()">
|
|
10871
|
+
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP">
|
|
10872
|
+
<xsl:call-template name="processBibitem">
|
|
10873
|
+
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
|
10874
|
+
</xsl:call-template>
|
|
10875
|
+
</fo:block>
|
|
10876
|
+
</fo:list-item-body>
|
|
10877
|
+
</fo:list-item>
|
|
10878
|
+
</xsl:otherwise>
|
|
10879
|
+
</xsl:choose>
|
|
10880
|
+
<xsl:apply-templates select="following-sibling::*[1][local-name() = 'bibitem']">
|
|
10881
|
+
<xsl:with-param name="skip">false</xsl:with-param>
|
|
10882
|
+
</xsl:apply-templates>
|
|
10883
|
+
</xsl:template>
|
|
10884
|
+
|
|
10737
10885
|
<xsl:template name="processBibitem">
|
|
10738
10886
|
<xsl:param name="biblio_tag_part">both</xsl:param>
|
|
10739
10887
|
|
|
@@ -11067,7 +11215,7 @@
|
|
|
11067
11215
|
|
|
11068
11216
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
11069
11217
|
|
|
11070
|
-
<fo:block-container xsl:use-attribute-sets="admonition-container-style">
|
|
11218
|
+
<fo:block-container xsl:use-attribute-sets="admonition-container-style" role="SKIP">
|
|
11071
11219
|
|
|
11072
11220
|
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
|
11073
11221
|
<xsl:call-template name="displayAdmonitionName"/>
|