metanorma-ogc 1.4.2 → 1.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/ogc/basicdoc.rng +21 -4
- data/lib/asciidoctor/ogc/cleanup.rb +41 -13
- data/lib/asciidoctor/ogc/converter.rb +10 -0
- data/lib/asciidoctor/ogc/isodoc.rng +388 -76
- data/lib/asciidoctor/ogc/reqt.rng +23 -2
- data/lib/isodoc/ogc/biblio.rb +1 -1
- data/lib/isodoc/ogc/html/wordstyle.css +12 -1
- data/lib/isodoc/ogc/html/wordstyle.scss +12 -1
- data/lib/isodoc/ogc/html/wordstyle_wp.css +12 -1
- data/lib/isodoc/ogc/html/wordstyle_wp.scss +12 -1
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +308 -60
- data/lib/isodoc/ogc/ogc.best-practice.xsl +308 -60
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +308 -60
- data/lib/isodoc/ogc/ogc.community-practice.xsl +308 -60
- data/lib/isodoc/ogc/ogc.community-standard.xsl +308 -60
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +308 -60
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +308 -60
- data/lib/isodoc/ogc/ogc.other.xsl +308 -60
- data/lib/isodoc/ogc/ogc.policy.xsl +308 -60
- data/lib/isodoc/ogc/ogc.reference-model.xsl +308 -60
- data/lib/isodoc/ogc/ogc.release-notes.xsl +308 -60
- data/lib/isodoc/ogc/ogc.standard.xsl +308 -60
- data/lib/isodoc/ogc/ogc.test-suite.xsl +308 -60
- data/lib/isodoc/ogc/ogc.user-guide.xsl +308 -60
- data/lib/isodoc/ogc/ogc.white-paper.xsl +207 -21
- data/lib/isodoc/ogc/reqt.rb +2 -1
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +3 -3
@@ -243,7 +243,10 @@
|
|
243
243
|
<fo:block font-size="11pt" margin-top="8pt"> </fo:block>
|
244
244
|
<fo:block font-size="11pt" margin-top="8pt"> </fo:block>
|
245
245
|
<fo:block xsl:use-attribute-sets="title-toc-style">
|
246
|
-
<xsl:text>Table of Figures</xsl:text>
|
246
|
+
<!-- <xsl:text>Table of Figures</xsl:text> -->
|
247
|
+
<xsl:call-template name="getTitle">
|
248
|
+
<xsl:with-param name="name" select="'title-table-figures'"/>
|
249
|
+
</xsl:call-template>
|
247
250
|
</fo:block>
|
248
251
|
<xsl:for-each select="//ogc:figure[@id and ogc:name] | //ogc:table[@id and ogc:name]">
|
249
252
|
<fo:block margin-top="8pt" margin-bottom="5pt" text-align-last="justify" role="TOCI">
|
@@ -1014,6 +1017,8 @@
|
|
1014
1017
|
|
1015
1018
|
<title-list-figures lang="en">List of Figures</title-list-figures>
|
1016
1019
|
|
1020
|
+
<title-table-figures lang="en">Table of Figures</title-table-figures>
|
1021
|
+
|
1017
1022
|
<title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
|
1018
1023
|
|
1019
1024
|
<title-acknowledgements lang="en">Acknowledgements</title-acknowledgements>
|
@@ -1357,6 +1362,11 @@
|
|
1357
1362
|
|
1358
1363
|
|
1359
1364
|
|
1365
|
+
</xsl:attribute-set><xsl:attribute-set name="table-note-name-style">
|
1366
|
+
|
1367
|
+
|
1368
|
+
|
1369
|
+
|
1360
1370
|
</xsl:attribute-set><xsl:attribute-set name="note-p-style">
|
1361
1371
|
|
1362
1372
|
|
@@ -1537,13 +1547,20 @@
|
|
1537
1547
|
|
1538
1548
|
</xsl:attribute-set><xsl:attribute-set name="list-style">
|
1539
1549
|
|
1540
|
-
</xsl:attribute-set><xsl:
|
1550
|
+
</xsl:attribute-set><xsl:attribute-set name="toc-style">
|
1551
|
+
<xsl:attribute name="line-height">135%</xsl:attribute>
|
1552
|
+
</xsl:attribute-set><xsl:variable name="border-block-added">2.5pt solid rgb(0, 176, 80)</xsl:variable><xsl:variable name="border-block-deleted">2.5pt solid rgb(255, 0, 0)</xsl:variable><xsl:template name="OLD_processPrefaceSectionsDefault_Contents">
|
1541
1553
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
1542
1554
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
1543
1555
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']" mode="contents"/>
|
1544
1556
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']" mode="contents"/>
|
1545
1557
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']" mode="contents"/>
|
1546
|
-
</xsl:template><xsl:template name="
|
1558
|
+
</xsl:template><xsl:template name="processPrefaceSectionsDefault_Contents">
|
1559
|
+
<xsl:for-each select="/*/*[local-name()='preface']/*">
|
1560
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
1561
|
+
<xsl:apply-templates select="." mode="contents"/>
|
1562
|
+
</xsl:for-each>
|
1563
|
+
</xsl:template><xsl:template name="OLD_processMainSectionsDefault_Contents">
|
1547
1564
|
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']" mode="contents"/>
|
1548
1565
|
|
1549
1566
|
<!-- Normative references -->
|
@@ -1556,13 +1573,33 @@
|
|
1556
1573
|
<!-- Bibliography -->
|
1557
1574
|
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]" mode="contents"/>
|
1558
1575
|
|
1559
|
-
</xsl:template><xsl:template name="
|
1576
|
+
</xsl:template><xsl:template name="processMainSectionsDefault_Contents">
|
1577
|
+
<xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
|
1578
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
1579
|
+
<xsl:apply-templates select="." mode="contents"/>
|
1580
|
+
</xsl:for-each>
|
1581
|
+
|
1582
|
+
<xsl:for-each select="/*/*[local-name()='annex']">
|
1583
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
1584
|
+
<xsl:apply-templates select="." mode="contents"/>
|
1585
|
+
</xsl:for-each>
|
1586
|
+
|
1587
|
+
<xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]">
|
1588
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
1589
|
+
<xsl:apply-templates select="." mode="contents"/>
|
1590
|
+
</xsl:for-each>
|
1591
|
+
</xsl:template><xsl:template name="OLD_processPrefaceSectionsDefault">
|
1560
1592
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']"/>
|
1561
1593
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']"/>
|
1562
1594
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']"/>
|
1563
1595
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']"/>
|
1564
1596
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']"/>
|
1565
|
-
</xsl:template><xsl:template name="
|
1597
|
+
</xsl:template><xsl:template name="processPrefaceSectionsDefault">
|
1598
|
+
<xsl:for-each select="/*/*[local-name()='preface']/*">
|
1599
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
1600
|
+
<xsl:apply-templates select="."/>
|
1601
|
+
</xsl:for-each>
|
1602
|
+
</xsl:template><xsl:template name="OLD_processMainSectionsDefault">
|
1566
1603
|
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']"/>
|
1567
1604
|
|
1568
1605
|
<!-- Normative references -->
|
@@ -1574,6 +1611,22 @@
|
|
1574
1611
|
<xsl:apply-templates select="/*/*[local-name()='annex']"/>
|
1575
1612
|
<!-- Bibliography -->
|
1576
1613
|
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')]"/>
|
1614
|
+
</xsl:template><xsl:template name="processMainSectionsDefault">
|
1615
|
+
<xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
|
1616
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
1617
|
+
<xsl:apply-templates select="."/>
|
1618
|
+
|
1619
|
+
</xsl:for-each>
|
1620
|
+
|
1621
|
+
<xsl:for-each select="/*/*[local-name()='annex']">
|
1622
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
1623
|
+
<xsl:apply-templates select="."/>
|
1624
|
+
</xsl:for-each>
|
1625
|
+
|
1626
|
+
<xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]">
|
1627
|
+
<xsl:sort select="@displayorder" data-type="number"/>
|
1628
|
+
<xsl:apply-templates select="."/>
|
1629
|
+
</xsl:for-each>
|
1577
1630
|
</xsl:template><xsl:template match="text()">
|
1578
1631
|
<xsl:value-of select="."/>
|
1579
1632
|
</xsl:template><xsl:template match="*[local-name()='br']">
|
@@ -2429,9 +2482,8 @@
|
|
2429
2482
|
|
2430
2483
|
<!-- Table's note name (NOTE, for example) -->
|
2431
2484
|
|
2432
|
-
<fo:inline padding-right="2mm">
|
2485
|
+
<fo:inline padding-right="2mm" xsl:use-attribute-sets="table-note-name-style">
|
2433
2486
|
|
2434
|
-
|
2435
2487
|
|
2436
2488
|
|
2437
2489
|
|
@@ -3060,6 +3112,8 @@
|
|
3060
3112
|
<xsl:if test="$font-size != ''">
|
3061
3113
|
<xsl:attribute name="font-size">
|
3062
3114
|
<xsl:choose>
|
3115
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
3116
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
3063
3117
|
<xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
3064
3118
|
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
3065
3119
|
</xsl:choose>
|
@@ -3865,6 +3919,7 @@
|
|
3865
3919
|
<xsl:otherwise>
|
3866
3920
|
<fo:block xsl:use-attribute-sets="image-style">
|
3867
3921
|
|
3922
|
+
|
3868
3923
|
<xsl:variable name="src">
|
3869
3924
|
<xsl:call-template name="image_src"/>
|
3870
3925
|
</xsl:variable>
|
@@ -4112,6 +4167,13 @@
|
|
4112
4167
|
</xsl:attribute>
|
4113
4168
|
<xsl:apply-templates mode="svg_update"/>
|
4114
4169
|
</xsl:copy>
|
4170
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'image'][*[local-name() = 'svg']]" priority="3">
|
4171
|
+
<xsl:variable name="name" select="ancestor::*[local-name() = 'figure']/*[local-name() = 'name']"/>
|
4172
|
+
<xsl:for-each select="*[local-name() = 'svg']">
|
4173
|
+
<xsl:call-template name="image_svg">
|
4174
|
+
<xsl:with-param name="name" select="$name"/>
|
4175
|
+
</xsl:call-template>
|
4176
|
+
</xsl:for-each>
|
4115
4177
|
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'image'][@mimetype = 'image/svg+xml' and @src[not(starts-with(., 'data:image/'))]]" priority="2">
|
4116
4178
|
<xsl:variable name="svg_content" select="document(@src)"/>
|
4117
4179
|
<xsl:variable name="name" select="ancestor::*[local-name() = 'figure']/*[local-name() = 'name']"/>
|
@@ -4216,7 +4278,7 @@
|
|
4216
4278
|
</fo:basic-link>
|
4217
4279
|
</fo:block>
|
4218
4280
|
</fo:block-container>
|
4219
|
-
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="contents">
|
4281
|
+
</xsl:template><xsl:template match="*[local-name() = 'emf']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="contents">
|
4220
4282
|
<xsl:apply-templates mode="contents"/>
|
4221
4283
|
<xsl:text> </xsl:text>
|
4222
4284
|
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="bookmarks">
|
@@ -4224,7 +4286,7 @@
|
|
4224
4286
|
<xsl:text> </xsl:text>
|
4225
4287
|
</xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']/text()" mode="contents" priority="2">
|
4226
4288
|
<xsl:value-of select="."/>
|
4227
|
-
</xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']
|
4289
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']//text()" mode="bookmarks" priority="2">
|
4228
4290
|
<xsl:value-of select="."/>
|
4229
4291
|
</xsl:template><xsl:template match="node()" mode="contents">
|
4230
4292
|
<xsl:apply-templates mode="contents"/>
|
@@ -4317,22 +4379,46 @@
|
|
4317
4379
|
|
4318
4380
|
|
4319
4381
|
|
4320
|
-
|
4321
|
-
|
4322
|
-
|
4323
|
-
|
4382
|
+
|
4383
|
+
|
4384
|
+
|
4385
|
+
|
4386
|
+
|
4387
|
+
|
4388
|
+
<xsl:variable name="list_of_tables_figures_">
|
4389
|
+
<xsl:for-each select="//*[local-name() = 'table'][@id and *[local-name() = 'name']] | //*[local-name() = 'figure'][@id and *[local-name() = 'name']]">
|
4390
|
+
<table_figure id="{@id}"><xsl:apply-templates select="*[local-name() = 'name']" mode="bookmarks"/></table_figure>
|
4391
|
+
</xsl:for-each>
|
4392
|
+
</xsl:variable>
|
4393
|
+
<xsl:variable name="list_of_tables_figures" select="xalan:nodeset($list_of_tables_figures_)"/>
|
4394
|
+
|
4395
|
+
|
4396
|
+
<xsl:if test="$list_of_tables_figures/table_figure">
|
4397
|
+
<fo:bookmark internal-destination="empty_bookmark">
|
4398
|
+
<fo:bookmark-title>—————</fo:bookmark-title>
|
4399
|
+
</fo:bookmark>
|
4400
|
+
</xsl:if>
|
4401
|
+
|
4402
|
+
<xsl:if test="$list_of_tables_figures//table_figure">
|
4403
|
+
<fo:bookmark internal-destination="empty_bookmark" starting-state="hide"> <!-- {$list_of_figures//figure[1]/@id} -->
|
4404
|
+
<fo:bookmark-title>
|
4405
|
+
|
4406
|
+
|
4407
|
+
<xsl:call-template name="getTitle">
|
4408
|
+
<xsl:with-param name="name" select="'title-table-figures'"/>
|
4409
|
+
</xsl:call-template>
|
4410
|
+
|
4411
|
+
</fo:bookmark-title>
|
4412
|
+
<xsl:for-each select="$list_of_tables_figures//table_figure">
|
4324
4413
|
<fo:bookmark internal-destination="{@id}">
|
4325
|
-
<fo:bookmark-title><xsl:
|
4414
|
+
<fo:bookmark-title><xsl:value-of select="."/></fo:bookmark-title>
|
4326
4415
|
</fo:bookmark>
|
4327
4416
|
</xsl:for-each>
|
4328
|
-
</fo:bookmark>
|
4417
|
+
</fo:bookmark>
|
4329
4418
|
</xsl:if>
|
4330
4419
|
|
4331
4420
|
|
4332
4421
|
|
4333
|
-
|
4334
|
-
|
4335
|
-
|
4336
4422
|
</fo:bookmark-tree>
|
4337
4423
|
</xsl:if>
|
4338
4424
|
</xsl:template><xsl:template name="insertFigureBookmarks">
|
@@ -4526,12 +4612,16 @@
|
|
4526
4612
|
<xsl:if test="$font-size != ''">
|
4527
4613
|
<xsl:attribute name="font-size">
|
4528
4614
|
<xsl:choose>
|
4615
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
4616
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
4529
4617
|
<xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
4530
4618
|
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
4531
4619
|
</xsl:choose>
|
4532
4620
|
</xsl:attribute>
|
4533
4621
|
</xsl:if>
|
4534
4622
|
|
4623
|
+
|
4624
|
+
|
4535
4625
|
<xsl:apply-templates/>
|
4536
4626
|
</fo:block>
|
4537
4627
|
|
@@ -4915,14 +5005,15 @@
|
|
4915
5005
|
</xsl:if>
|
4916
5006
|
</xsl:template><xsl:variable name="localized.source">
|
4917
5007
|
<xsl:call-template name="getLocalizedString">
|
4918
|
-
|
4919
|
-
|
5008
|
+
<xsl:with-param name="key">source</xsl:with-param>
|
5009
|
+
</xsl:call-template>
|
4920
5010
|
</xsl:variable><xsl:template match="*[local-name() = 'origin']">
|
4921
5011
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
4922
5012
|
<xsl:if test="normalize-space(@citeas) = ''">
|
4923
5013
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
4924
5014
|
</xsl:if>
|
4925
5015
|
|
5016
|
+
|
4926
5017
|
<fo:inline>
|
4927
5018
|
|
4928
5019
|
|
@@ -4930,6 +5021,7 @@
|
|
4930
5021
|
|
4931
5022
|
|
4932
5023
|
|
5024
|
+
|
4933
5025
|
<xsl:call-template name="getTitle">
|
4934
5026
|
<xsl:with-param name="name" select="'title-source'"/>
|
4935
5027
|
</xsl:call-template>
|
@@ -4941,6 +5033,7 @@
|
|
4941
5033
|
<fo:inline xsl:use-attribute-sets="origin-style">
|
4942
5034
|
<xsl:apply-templates/>
|
4943
5035
|
</fo:inline>
|
5036
|
+
|
4944
5037
|
</fo:basic-link>
|
4945
5038
|
</xsl:template><xsl:template match="*[local-name() = 'modification']/*[local-name() = 'p']">
|
4946
5039
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
@@ -5007,6 +5100,9 @@
|
|
5007
5100
|
|
5008
5101
|
</xsl:if>
|
5009
5102
|
|
5103
|
+
<xsl:variable name="citeas" select="java:replaceAll(java:java.lang.String.new(@citeas),'^\[?(.+?)\]?$','$1')"/> <!-- remove leading and trailing brackets -->
|
5104
|
+
<xsl:variable name="text" select="normalize-space()"/>
|
5105
|
+
|
5010
5106
|
|
5011
5107
|
|
5012
5108
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
@@ -5022,7 +5118,9 @@
|
|
5022
5118
|
|
5023
5119
|
|
5024
5120
|
</xsl:if>
|
5025
|
-
|
5121
|
+
|
5122
|
+
|
5123
|
+
|
5026
5124
|
<xsl:apply-templates/>
|
5027
5125
|
</fo:basic-link>
|
5028
5126
|
|
@@ -5673,9 +5771,97 @@
|
|
5673
5771
|
<fo:block-container border="1pt solid black" width="50%">
|
5674
5772
|
<fo:block> </fo:block>
|
5675
5773
|
</fo:block-container>
|
5774
|
+
</xsl:template><xsl:template match="*[local-name() = 'toc']">
|
5775
|
+
<xsl:param name="colwidths"/>
|
5776
|
+
<xsl:variable name="colwidths_">
|
5777
|
+
<xsl:choose>
|
5778
|
+
<xsl:when test="not($colwidths)">
|
5779
|
+
<xsl:variable name="toc_table_simple">
|
5780
|
+
<tbody>
|
5781
|
+
<xsl:apply-templates mode="toc_table_width"/>
|
5782
|
+
</tbody>
|
5783
|
+
</xsl:variable>
|
5784
|
+
<xsl:variable name="cols-count" select="count(xalan:nodeset($toc_table_simple)/*/tr[1]/td)"/>
|
5785
|
+
<xsl:call-template name="calculate-column-widths">
|
5786
|
+
<xsl:with-param name="cols-count" select="$cols-count"/>
|
5787
|
+
<xsl:with-param name="table" select="$toc_table_simple"/>
|
5788
|
+
</xsl:call-template>
|
5789
|
+
</xsl:when>
|
5790
|
+
<xsl:otherwise>
|
5791
|
+
<xsl:copy-of select="$colwidths"/>
|
5792
|
+
</xsl:otherwise>
|
5793
|
+
</xsl:choose>
|
5794
|
+
</xsl:variable>
|
5795
|
+
<fo:block role="TOCI" space-after="16pt">
|
5796
|
+
<fo:table width="100%" table-layout="fixed">
|
5797
|
+
<xsl:for-each select="xalan:nodeset($colwidths_)/column">
|
5798
|
+
<fo:table-column column-width="proportional-column-width({.})"/>
|
5799
|
+
</xsl:for-each>
|
5800
|
+
<fo:table-body>
|
5801
|
+
<xsl:apply-templates/>
|
5802
|
+
</fo:table-body>
|
5803
|
+
</fo:table>
|
5804
|
+
</fo:block>
|
5805
|
+
</xsl:template><xsl:template match="*[local-name() = 'toc']//*[local-name() = 'li']">
|
5806
|
+
<fo:table-row min-height="5mm">
|
5807
|
+
<xsl:apply-templates/>
|
5808
|
+
</fo:table-row>
|
5809
|
+
</xsl:template><xsl:template match="*[local-name() = 'toc']//*[local-name() = 'li']/*[local-name() = 'p']">
|
5810
|
+
<xsl:apply-templates/>
|
5811
|
+
</xsl:template><xsl:template match="*[local-name() = 'toc']//*[local-name() = 'xref']" priority="3">
|
5812
|
+
<!-- <xref target="cgpm9th1948r6">1.6.3<tab/>“9th CGPM, 1948:<tab/>decision to establish the SI”</xref> -->
|
5813
|
+
<xsl:variable name="target" select="@target"/>
|
5814
|
+
<xsl:for-each select="*[local-name() = 'tab']">
|
5815
|
+
<xsl:variable name="current_id" select="generate-id()"/>
|
5816
|
+
<fo:table-cell>
|
5817
|
+
<fo:block>
|
5818
|
+
<fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
|
5819
|
+
<xsl:for-each select="following-sibling::node()[not(self::*[local-name() = 'tab']) and preceding-sibling::*[local-name() = 'tab'][1][generate-id() = $current_id]]">
|
5820
|
+
<xsl:choose>
|
5821
|
+
<xsl:when test="self::text()"><xsl:value-of select="."/></xsl:when>
|
5822
|
+
<xsl:otherwise><xsl:apply-templates select="."/></xsl:otherwise>
|
5823
|
+
</xsl:choose>
|
5824
|
+
</xsl:for-each>
|
5825
|
+
</fo:basic-link>
|
5826
|
+
</fo:block>
|
5827
|
+
</fo:table-cell>
|
5828
|
+
</xsl:for-each>
|
5829
|
+
<!-- last column - for page numbers -->
|
5830
|
+
<fo:table-cell text-align="right" font-size="10pt" font-weight="bold" font-family="Arial">
|
5831
|
+
<fo:block>
|
5832
|
+
<fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
|
5833
|
+
<fo:page-number-citation ref-id="{$target}"/>
|
5834
|
+
</fo:basic-link>
|
5835
|
+
</fo:block>
|
5836
|
+
</fo:table-cell>
|
5837
|
+
</xsl:template><xsl:template match="*" mode="toc_table_width">
|
5838
|
+
<xsl:apply-templates mode="toc_table_width"/>
|
5839
|
+
</xsl:template><xsl:template match="*[local-name() = 'clause'][@type = 'toc']/*[local-name() = 'title']" mode="toc_table_width"/><xsl:template match="*[local-name() = 'clause'][not(@type = 'toc')]/*[local-name() = 'title']" mode="toc_table_width"/><xsl:template match="*[local-name() = 'li']" mode="toc_table_width">
|
5840
|
+
<tr>
|
5841
|
+
<xsl:apply-templates mode="toc_table_width"/>
|
5842
|
+
</tr>
|
5843
|
+
</xsl:template><xsl:template match="*[local-name() = 'xref']" mode="toc_table_width">
|
5844
|
+
<!-- <xref target="cgpm9th1948r6">1.6.3<tab/>“9th CGPM, 1948:<tab/>decision to establish the SI”</xref> -->
|
5845
|
+
<xsl:for-each select="*[local-name() = 'tab']">
|
5846
|
+
<xsl:variable name="current_id" select="generate-id()"/>
|
5847
|
+
<td>
|
5848
|
+
<xsl:for-each select="following-sibling::node()[not(self::*[local-name() = 'tab']) and preceding-sibling::*[local-name() = 'tab'][1][generate-id() = $current_id]]">
|
5849
|
+
<xsl:copy-of select="."/>
|
5850
|
+
</xsl:for-each>
|
5851
|
+
</td>
|
5852
|
+
</xsl:for-each>
|
5853
|
+
<td>333</td> <!-- page number, just for fill -->
|
5676
5854
|
</xsl:template><xsl:template match="*[local-name() = 'variant-title'][@type = 'sub']"/><xsl:template match="*[local-name() = 'variant-title'][@type = 'sub']" mode="subtitle">
|
5677
5855
|
<fo:inline padding-right="5mm"> </fo:inline>
|
5678
5856
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
5857
|
+
</xsl:template><xsl:template match="*[local-name() = 'blacksquare']" name="blacksquare">
|
5858
|
+
<fo:inline padding-right="2.5mm" baseline-shift="5%">
|
5859
|
+
<fo:instream-foreign-object content-height="2mm" content-width="2mm" fox:alt-text="Quad">
|
5860
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" viewBox="0 0 2 2">
|
5861
|
+
<rect x="0" y="0" width="2" height="2" fill="black"/>
|
5862
|
+
</svg>
|
5863
|
+
</fo:instream-foreign-object>
|
5864
|
+
</fo:inline>
|
5679
5865
|
</xsl:template><xsl:template name="convertDate">
|
5680
5866
|
<xsl:param name="date"/>
|
5681
5867
|
<xsl:param name="format" select="'short'"/>
|
data/lib/isodoc/ogc/reqt.rb
CHANGED
@@ -49,7 +49,7 @@ module IsoDoc
|
|
49
49
|
label.xpath(ns(".//concept")).each { |f| concept1(f) }
|
50
50
|
b = out.add_child("<tr><td colspan='2'><p></p></td></tr>")
|
51
51
|
p = b.at(ns(".//p"))
|
52
|
-
p << label.
|
52
|
+
p << label.children.to_xml
|
53
53
|
end
|
54
54
|
|
55
55
|
def recommendation_attributes1(node)
|
@@ -80,6 +80,7 @@ module IsoDoc
|
|
80
80
|
f = f.replace("<li>#{f.children.to_xml}</li>").first
|
81
81
|
d << f
|
82
82
|
end
|
83
|
+
node
|
83
84
|
end
|
84
85
|
|
85
86
|
def recommendation_attributes1_component(node, out)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-ogc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iso-639
|
@@ -300,7 +300,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
300
300
|
- !ruby/object:Gem::Version
|
301
301
|
version: '0'
|
302
302
|
requirements: []
|
303
|
-
rubygems_version: 3.
|
303
|
+
rubygems_version: 3.2.22
|
304
304
|
signing_key:
|
305
305
|
specification_version: 4
|
306
306
|
summary: Metanorma for the Open Geospatial Consortium.
|