metanorma-ogc 2.8.1 → 2.8.2
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/metadata.rb +2 -1
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +110 -29
- data/lib/isodoc/ogc/ogc.best-practice.xsl +110 -29
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +110 -29
- data/lib/isodoc/ogc/ogc.community-practice.xsl +110 -29
- data/lib/isodoc/ogc/ogc.community-standard.xsl +110 -29
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +110 -29
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +110 -29
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +110 -29
- data/lib/isodoc/ogc/ogc.other.xsl +110 -29
- data/lib/isodoc/ogc/ogc.policy.xsl +110 -29
- data/lib/isodoc/ogc/ogc.reference-model.xsl +110 -29
- data/lib/isodoc/ogc/ogc.release-notes.xsl +110 -29
- data/lib/isodoc/ogc/ogc.standard.xsl +110 -29
- data/lib/isodoc/ogc/ogc.test-suite.xsl +110 -29
- data/lib/isodoc/ogc/ogc.user-guide.xsl +110 -29
- data/lib/isodoc/ogc/ogc.white-paper.xsl +115 -34
- data/lib/metanorma/ogc/biblio-standoc.rng +0 -49
- data/lib/metanorma/ogc/biblio.rng +11 -1
- data/lib/metanorma/ogc/cleanup.rb +4 -0
- data/lib/metanorma/ogc/front.rb +8 -15
- data/lib/metanorma/ogc/isodoc.rng +6 -1
- data/lib/metanorma/ogc/relaton-ogc.rng +0 -30
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +2 -2
@@ -3510,17 +3510,27 @@
|
|
3510
3510
|
<xsl:attribute name="line-height">125%</xsl:attribute>
|
3511
3511
|
</xsl:attribute-set> <!-- copyright-statement-style -->
|
3512
3512
|
|
3513
|
+
<xsl:template name="refine_copyright-statement-style">
|
3514
|
+
</xsl:template>
|
3515
|
+
|
3513
3516
|
<xsl:attribute-set name="copyright-statement-title-style">
|
3514
3517
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
3515
3518
|
<xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
|
3516
3519
|
<xsl:attribute name="margin-top">24pt</xsl:attribute>
|
3517
3520
|
</xsl:attribute-set> <!-- copyright-statement-title-style -->
|
3518
3521
|
|
3522
|
+
<xsl:template name="refine_copyright-statement-title-style">
|
3523
|
+
</xsl:template>
|
3524
|
+
|
3519
3525
|
<xsl:attribute-set name="copyright-statement-p-style">
|
3520
3526
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
3521
3527
|
</xsl:attribute-set> <!-- copyright-statement-p-style -->
|
3522
3528
|
|
3523
|
-
|
3529
|
+
<xsl:template name="refine_copyright-statement-p-style">
|
3530
|
+
|
3531
|
+
</xsl:template>
|
3532
|
+
|
3533
|
+
<xsl:attribute-set name="license-statement-style">
|
3524
3534
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
3525
3535
|
<xsl:attribute name="line-height">125%</xsl:attribute>
|
3526
3536
|
</xsl:attribute-set> <!-- license-statement-style -->
|
@@ -3535,6 +3545,10 @@
|
|
3535
3545
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
3536
3546
|
</xsl:attribute-set> <!-- license-statement-p-style -->
|
3537
3547
|
|
3548
|
+
<xsl:template name="refine_license-statement-p-style">
|
3549
|
+
|
3550
|
+
</xsl:template>
|
3551
|
+
|
3538
3552
|
<xsl:attribute-set name="legal-statement-style">
|
3539
3553
|
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
3540
3554
|
</xsl:attribute-set> <!-- legal-statement-style -->
|
@@ -3566,6 +3580,8 @@
|
|
3566
3580
|
<!-- ================================= -->
|
3567
3581
|
<xsl:template match="mn:copyright-statement">
|
3568
3582
|
<fo:block xsl:use-attribute-sets="copyright-statement-style" role="SKIP">
|
3583
|
+
<xsl:call-template name="refine_copyright-statement-style"/>
|
3584
|
+
|
3569
3585
|
<xsl:apply-templates/>
|
3570
3586
|
</fo:block>
|
3571
3587
|
</xsl:template> <!-- copyright-statement -->
|
@@ -3582,6 +3598,7 @@
|
|
3582
3598
|
|
3583
3599
|
<xsl:template match="mn:copyright-statement//mn:p">
|
3584
3600
|
<fo:block xsl:use-attribute-sets="copyright-statement-p-style">
|
3601
|
+
<xsl:call-template name="refine_copyright-statement-p-style"/>
|
3585
3602
|
|
3586
3603
|
<xsl:apply-templates/>
|
3587
3604
|
</fo:block>
|
@@ -4701,7 +4718,7 @@
|
|
4701
4718
|
</xsl:otherwise>
|
4702
4719
|
</xsl:choose>
|
4703
4720
|
</xsl:variable>
|
4704
|
-
<xsl:if test="$key = 'font-family' or
|
4721
|
+
<xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color' or $key = 'baseline-shift' or $key = 'line-height' ">
|
4705
4722
|
<style name="{$key}"><xsl:value-of select="$value"/></style>
|
4706
4723
|
</xsl:if>
|
4707
4724
|
<xsl:if test="$key = 'text-indent'">
|
@@ -12325,13 +12342,31 @@
|
|
12325
12342
|
<!-- skip here, see the template 'fmt-review-start' -->
|
12326
12343
|
</xsl:when>
|
12327
12344
|
<xsl:otherwise>
|
12328
|
-
|
12329
|
-
|
12330
|
-
|
12331
|
-
|
12345
|
+
<xsl:choose>
|
12346
|
+
<xsl:when test="parent::mn:example or parent::mn:termexample or parent::mn:note or parent::mn:termnote">
|
12347
|
+
<fo:block font-size="1pt" line-height="0.1">
|
12348
|
+
<xsl:call-template name="fo_inline_bookmark">
|
12349
|
+
<xsl:with-param name="bookmark_id" select="$bookmark_id"/>
|
12350
|
+
</xsl:call-template>
|
12351
|
+
</fo:block>
|
12352
|
+
</xsl:when>
|
12353
|
+
<xsl:otherwise>
|
12354
|
+
<xsl:call-template name="fo_inline_bookmark">
|
12355
|
+
<xsl:with-param name="bookmark_id" select="$bookmark_id"/>
|
12356
|
+
</xsl:call-template>
|
12357
|
+
</xsl:otherwise>
|
12358
|
+
</xsl:choose>
|
12332
12359
|
</xsl:otherwise>
|
12333
12360
|
</xsl:choose>
|
12334
12361
|
</xsl:template>
|
12362
|
+
|
12363
|
+
<xsl:template name="fo_inline_bookmark">
|
12364
|
+
<xsl:param name="bookmark_id"/>
|
12365
|
+
<!-- <fo:inline id="{@id}" font-size="1pt"/> -->
|
12366
|
+
<fo:inline id="{@id}" font-size="1pt"><xsl:if test="preceding-sibling::node()[self::mn:fmt-annotation-start][@source = $bookmark_id] and following-sibling::node()[self::mn:fmt-annotation-end][@source = $bookmark_id]"><xsl:attribute name="line-height">0.1</xsl:attribute></xsl:if><xsl:value-of select="$hair_space"/></fo:inline>
|
12367
|
+
<!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
|
12368
|
+
<xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
|
12369
|
+
</xsl:template>
|
12335
12370
|
<!-- =================== -->
|
12336
12371
|
<!-- End of Index processing -->
|
12337
12372
|
<!-- =================== -->
|
@@ -14189,11 +14224,35 @@
|
|
14189
14224
|
|
14190
14225
|
<xsl:template match="mn:svgmap"/>
|
14191
14226
|
|
14227
|
+
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
|
14228
|
+
|
14192
14229
|
<!-- for correct rendering combining chars, added in mode="update_xml_step2" -->
|
14193
14230
|
<xsl:template match="*[local-name() = 'lang_none']">
|
14194
14231
|
<fo:inline xml:lang="none"><xsl:value-of select="."/></fo:inline>
|
14195
14232
|
</xsl:template>
|
14196
14233
|
|
14234
|
+
<xsl:template name="addTagElementT">
|
14235
|
+
<xsl:variable name="title_">
|
14236
|
+
<xsl:apply-templates select="mn:fmt-title"/>
|
14237
|
+
</xsl:variable>
|
14238
|
+
<xsl:variable name="title__">
|
14239
|
+
<xsl:for-each select="xalan:nodeset($title_)/*/node()">
|
14240
|
+
<xsl:choose>
|
14241
|
+
<xsl:when test="self::text()"><xsl:text> </xsl:text><xsl:value-of select="."/><xsl:text> </xsl:text></xsl:when>
|
14242
|
+
<xsl:otherwise><xsl:text> </xsl:text><xsl:copy-of select="."/><xsl:text> </xsl:text></xsl:otherwise>
|
14243
|
+
</xsl:choose>
|
14244
|
+
</xsl:for-each>
|
14245
|
+
</xsl:variable>
|
14246
|
+
<xsl:variable name="title" select="normalize-space($title__)"/>
|
14247
|
+
<xsl:if test="$title != ''">
|
14248
|
+
<xsl:attribute name="fox:title">
|
14249
|
+
<xsl:if test="ancestor::mn:sections">
|
14250
|
+
<xsl:text>Section </xsl:text>
|
14251
|
+
</xsl:if>
|
14252
|
+
<xsl:value-of select="$title"/></xsl:attribute>
|
14253
|
+
</xsl:if>
|
14254
|
+
</xsl:template>
|
14255
|
+
|
14197
14256
|
<xsl:template name="replaceChar">
|
14198
14257
|
<xsl:param name="text"/>
|
14199
14258
|
<xsl:param name="replace"/>
|
@@ -14960,6 +15019,13 @@
|
|
14960
15019
|
<xsl:with-param name="default" select="$text_align_default"/>
|
14961
15020
|
</xsl:call-template>
|
14962
15021
|
<xsl:call-template name="setKeepAttributes"/>
|
15022
|
+
<xsl:if test="node()[1][self::mn:span][contains(@style, 'line-height')]">
|
15023
|
+
<xsl:variable name="styles">
|
15024
|
+
<xsl:apply-templates select="*[1]"/>
|
15025
|
+
</xsl:variable>
|
15026
|
+
<!-- move attribute line-height from inline to block -->
|
15027
|
+
<xsl:attribute name="line-height"><xsl:value-of select="xalan:nodeset($styles)//*/@line-height"/></xsl:attribute>
|
15028
|
+
</xsl:if>
|
14963
15029
|
</xsl:template>
|
14964
15030
|
|
14965
15031
|
<xsl:template name="setKeepAttributes">
|
@@ -14985,34 +15051,41 @@
|
|
14985
15051
|
<fo:block-container absolute-position="fixed" left="0mm" top="0mm" font-size="0" id="__internal_layout__coverpage{$suffix}_{$name}_{$number}_{generate-id()}">
|
14986
15052
|
<fo:block>
|
14987
15053
|
<xsl:for-each select="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = $name][1]/mn:value/mn:image[$num]">
|
14988
|
-
|
14989
|
-
|
14990
|
-
|
14991
|
-
<xsl:attribute name="content-height"><xsl:value-of select="$pageHeight"/>mm</xsl:attribute>
|
14992
|
-
<xsl:call-template name="getSVG"/>
|
14993
|
-
</fo:instream-foreign-object>
|
14994
|
-
</xsl:when>
|
14995
|
-
<xsl:when test="starts-with(@src, 'data:application/pdf;base64')">
|
14996
|
-
<fo:external-graphic src="{@src}" fox:alt-text="Image Front"/>
|
14997
|
-
</xsl:when>
|
14998
|
-
<xsl:otherwise> <!-- bitmap image -->
|
14999
|
-
<xsl:variable name="coverimage_src" select="normalize-space(@src)"/>
|
15000
|
-
<xsl:if test="$coverimage_src != ''">
|
15001
|
-
<xsl:variable name="coverpage">
|
15002
|
-
<xsl:call-template name="getImageURL">
|
15003
|
-
<xsl:with-param name="src" select="$coverimage_src"/>
|
15004
|
-
</xsl:call-template>
|
15005
|
-
</xsl:variable>
|
15006
|
-
<!-- <xsl:variable name="coverpage" select="concat('url(file:',$basepath, 'coverpage1.png', ')')"/> --> <!-- for DEBUG -->
|
15007
|
-
<fo:external-graphic src="{$coverpage}" width="{$pageWidth}mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
|
15008
|
-
</xsl:if>
|
15009
|
-
</xsl:otherwise>
|
15010
|
-
</xsl:choose>
|
15054
|
+
|
15055
|
+
<xsl:call-template name="insertPageImage"/>
|
15056
|
+
|
15011
15057
|
</xsl:for-each>
|
15012
15058
|
</fo:block>
|
15013
15059
|
</fo:block-container>
|
15014
15060
|
</xsl:template>
|
15015
15061
|
|
15062
|
+
<xsl:template name="insertPageImage">
|
15063
|
+
<xsl:param name="svg_content_height" select="$pageHeight"/>
|
15064
|
+
<xsl:param name="bitmap_width" select="$pageWidth"/>
|
15065
|
+
<xsl:choose>
|
15066
|
+
<xsl:when test="*[local-name() = 'svg'] or java:endsWith(java:java.lang.String.new(@src), '.svg')">
|
15067
|
+
<fo:instream-foreign-object fox:alt-text="Image Front">
|
15068
|
+
<xsl:attribute name="content-height"><xsl:value-of select="$svg_content_height"/>mm</xsl:attribute>
|
15069
|
+
<xsl:call-template name="getSVG"/>
|
15070
|
+
</fo:instream-foreign-object>
|
15071
|
+
</xsl:when>
|
15072
|
+
<xsl:when test="starts-with(@src, 'data:application/pdf;base64')">
|
15073
|
+
<fo:external-graphic src="{@src}" fox:alt-text="Image Front"/>
|
15074
|
+
</xsl:when>
|
15075
|
+
<xsl:otherwise> <!-- bitmap image -->
|
15076
|
+
<xsl:variable name="coverimage_src" select="normalize-space(@src)"/>
|
15077
|
+
<xsl:if test="$coverimage_src != ''">
|
15078
|
+
<xsl:variable name="coverpage">
|
15079
|
+
<xsl:call-template name="getImageURL">
|
15080
|
+
<xsl:with-param name="src" select="$coverimage_src"/>
|
15081
|
+
</xsl:call-template>
|
15082
|
+
</xsl:variable>
|
15083
|
+
<fo:external-graphic src="{$coverpage}" width="{$bitmap_width}mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
|
15084
|
+
</xsl:if>
|
15085
|
+
</xsl:otherwise>
|
15086
|
+
</xsl:choose>
|
15087
|
+
</xsl:template>
|
15088
|
+
|
15016
15089
|
<xsl:template name="getImageURL">
|
15017
15090
|
<xsl:param name="src"/>
|
15018
15091
|
<xsl:choose>
|
@@ -15440,6 +15513,14 @@
|
|
15440
15513
|
</xsl:attribute>
|
15441
15514
|
</xsl:template>
|
15442
15515
|
|
15516
|
+
<xsl:template name="getCharByCodePoint">
|
15517
|
+
<xsl:param name="codepoint"/>
|
15518
|
+
<xsl:param name="radix">16</xsl:param>
|
15519
|
+
<xsl:variable name="codepointInt" select="java:java.lang.Integer.parseInt($codepoint,$radix)"/>
|
15520
|
+
<xsl:variable name="chars" select="java:java.lang.Character.toChars($codepointInt)"/>
|
15521
|
+
<xsl:value-of select="java:java.lang.String.new($chars)"/>
|
15522
|
+
</xsl:template>
|
15523
|
+
|
15443
15524
|
<xsl:template name="substring-after-last">
|
15444
15525
|
<xsl:param name="value"/>
|
15445
15526
|
<xsl:param name="delimiter"/>
|
@@ -2316,17 +2316,32 @@
|
|
2316
2316
|
<xsl:attribute-set name="copyright-statement-style">
|
2317
2317
|
</xsl:attribute-set> <!-- copyright-statement-style -->
|
2318
2318
|
|
2319
|
+
<xsl:template name="refine_copyright-statement-style">
|
2320
|
+
</xsl:template>
|
2321
|
+
|
2319
2322
|
<xsl:attribute-set name="copyright-statement-title-style">
|
2320
2323
|
<xsl:attribute name="font-family">Lato</xsl:attribute>
|
2321
2324
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
2322
2325
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
2323
2326
|
</xsl:attribute-set> <!-- copyright-statement-title-style -->
|
2324
2327
|
|
2328
|
+
<xsl:template name="refine_copyright-statement-title-style">
|
2329
|
+
</xsl:template>
|
2330
|
+
|
2325
2331
|
<xsl:attribute-set name="copyright-statement-p-style">
|
2326
2332
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
2327
2333
|
</xsl:attribute-set> <!-- copyright-statement-p-style -->
|
2328
2334
|
|
2329
|
-
|
2335
|
+
<xsl:template name="refine_copyright-statement-p-style">
|
2336
|
+
<xsl:if test="@align">
|
2337
|
+
<xsl:attribute name="text-align">
|
2338
|
+
<xsl:value-of select="@align"/>
|
2339
|
+
</xsl:attribute>
|
2340
|
+
</xsl:if>
|
2341
|
+
|
2342
|
+
</xsl:template>
|
2343
|
+
|
2344
|
+
<xsl:attribute-set name="license-statement-style">
|
2330
2345
|
</xsl:attribute-set> <!-- license-statement-style -->
|
2331
2346
|
|
2332
2347
|
<xsl:attribute-set name="license-statement-title-style">
|
@@ -2343,6 +2358,10 @@
|
|
2343
2358
|
<xsl:attribute name="line-height">135%</xsl:attribute>
|
2344
2359
|
</xsl:attribute-set> <!-- license-statement-p-style -->
|
2345
2360
|
|
2361
|
+
<xsl:template name="refine_license-statement-p-style">
|
2362
|
+
|
2363
|
+
</xsl:template>
|
2364
|
+
|
2346
2365
|
<xsl:attribute-set name="legal-statement-style">
|
2347
2366
|
</xsl:attribute-set> <!-- legal-statement-style -->
|
2348
2367
|
|
@@ -2374,6 +2393,8 @@
|
|
2374
2393
|
<!-- ================================= -->
|
2375
2394
|
<xsl:template match="mn:copyright-statement">
|
2376
2395
|
<fo:block xsl:use-attribute-sets="copyright-statement-style" role="SKIP">
|
2396
|
+
<xsl:call-template name="refine_copyright-statement-style"/>
|
2397
|
+
|
2377
2398
|
<xsl:apply-templates/>
|
2378
2399
|
</fo:block>
|
2379
2400
|
</xsl:template> <!-- copyright-statement -->
|
@@ -2390,11 +2411,7 @@
|
|
2390
2411
|
|
2391
2412
|
<xsl:template match="mn:copyright-statement//mn:p">
|
2392
2413
|
<fo:block xsl:use-attribute-sets="copyright-statement-p-style">
|
2393
|
-
|
2394
|
-
<xsl:attribute name="text-align">
|
2395
|
-
<xsl:value-of select="@align"/>
|
2396
|
-
</xsl:attribute>
|
2397
|
-
</xsl:if>
|
2414
|
+
<xsl:call-template name="refine_copyright-statement-p-style"/>
|
2398
2415
|
|
2399
2416
|
<xsl:apply-templates/>
|
2400
2417
|
</fo:block>
|
@@ -3516,7 +3533,7 @@
|
|
3516
3533
|
</xsl:otherwise>
|
3517
3534
|
</xsl:choose>
|
3518
3535
|
</xsl:variable>
|
3519
|
-
<xsl:if test="$key = 'font-family' or
|
3536
|
+
<xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color' or $key = 'baseline-shift' or $key = 'line-height' ">
|
3520
3537
|
<style name="{$key}"><xsl:value-of select="$value"/></style>
|
3521
3538
|
</xsl:if>
|
3522
3539
|
<xsl:if test="$key = 'text-indent'">
|
@@ -11111,13 +11128,31 @@
|
|
11111
11128
|
<!-- skip here, see the template 'fmt-review-start' -->
|
11112
11129
|
</xsl:when>
|
11113
11130
|
<xsl:otherwise>
|
11114
|
-
|
11115
|
-
|
11116
|
-
|
11117
|
-
|
11131
|
+
<xsl:choose>
|
11132
|
+
<xsl:when test="parent::mn:example or parent::mn:termexample or parent::mn:note or parent::mn:termnote">
|
11133
|
+
<fo:block font-size="1pt" line-height="0.1">
|
11134
|
+
<xsl:call-template name="fo_inline_bookmark">
|
11135
|
+
<xsl:with-param name="bookmark_id" select="$bookmark_id"/>
|
11136
|
+
</xsl:call-template>
|
11137
|
+
</fo:block>
|
11138
|
+
</xsl:when>
|
11139
|
+
<xsl:otherwise>
|
11140
|
+
<xsl:call-template name="fo_inline_bookmark">
|
11141
|
+
<xsl:with-param name="bookmark_id" select="$bookmark_id"/>
|
11142
|
+
</xsl:call-template>
|
11143
|
+
</xsl:otherwise>
|
11144
|
+
</xsl:choose>
|
11118
11145
|
</xsl:otherwise>
|
11119
11146
|
</xsl:choose>
|
11120
11147
|
</xsl:template>
|
11148
|
+
|
11149
|
+
<xsl:template name="fo_inline_bookmark">
|
11150
|
+
<xsl:param name="bookmark_id"/>
|
11151
|
+
<!-- <fo:inline id="{@id}" font-size="1pt"/> -->
|
11152
|
+
<fo:inline id="{@id}" font-size="1pt"><xsl:if test="preceding-sibling::node()[self::mn:fmt-annotation-start][@source = $bookmark_id] and following-sibling::node()[self::mn:fmt-annotation-end][@source = $bookmark_id]"><xsl:attribute name="line-height">0.1</xsl:attribute></xsl:if><xsl:value-of select="$hair_space"/></fo:inline>
|
11153
|
+
<!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
|
11154
|
+
<xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
|
11155
|
+
</xsl:template>
|
11121
11156
|
<!-- =================== -->
|
11122
11157
|
<!-- End of Index processing -->
|
11123
11158
|
<!-- =================== -->
|
@@ -12971,11 +13006,35 @@
|
|
12971
13006
|
|
12972
13007
|
<xsl:template match="mn:svgmap"/>
|
12973
13008
|
|
13009
|
+
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
|
13010
|
+
|
12974
13011
|
<!-- for correct rendering combining chars, added in mode="update_xml_step2" -->
|
12975
13012
|
<xsl:template match="*[local-name() = 'lang_none']">
|
12976
13013
|
<fo:inline xml:lang="none"><xsl:value-of select="."/></fo:inline>
|
12977
13014
|
</xsl:template>
|
12978
13015
|
|
13016
|
+
<xsl:template name="addTagElementT">
|
13017
|
+
<xsl:variable name="title_">
|
13018
|
+
<xsl:apply-templates select="mn:fmt-title"/>
|
13019
|
+
</xsl:variable>
|
13020
|
+
<xsl:variable name="title__">
|
13021
|
+
<xsl:for-each select="xalan:nodeset($title_)/*/node()">
|
13022
|
+
<xsl:choose>
|
13023
|
+
<xsl:when test="self::text()"><xsl:text> </xsl:text><xsl:value-of select="."/><xsl:text> </xsl:text></xsl:when>
|
13024
|
+
<xsl:otherwise><xsl:text> </xsl:text><xsl:copy-of select="."/><xsl:text> </xsl:text></xsl:otherwise>
|
13025
|
+
</xsl:choose>
|
13026
|
+
</xsl:for-each>
|
13027
|
+
</xsl:variable>
|
13028
|
+
<xsl:variable name="title" select="normalize-space($title__)"/>
|
13029
|
+
<xsl:if test="$title != ''">
|
13030
|
+
<xsl:attribute name="fox:title">
|
13031
|
+
<xsl:if test="ancestor::mn:sections">
|
13032
|
+
<xsl:text>Section </xsl:text>
|
13033
|
+
</xsl:if>
|
13034
|
+
<xsl:value-of select="$title"/></xsl:attribute>
|
13035
|
+
</xsl:if>
|
13036
|
+
</xsl:template>
|
13037
|
+
|
12979
13038
|
<xsl:template name="replaceChar">
|
12980
13039
|
<xsl:param name="text"/>
|
12981
13040
|
<xsl:param name="replace"/>
|
@@ -13742,6 +13801,13 @@
|
|
13742
13801
|
<xsl:with-param name="default" select="$text_align_default"/>
|
13743
13802
|
</xsl:call-template>
|
13744
13803
|
<xsl:call-template name="setKeepAttributes"/>
|
13804
|
+
<xsl:if test="node()[1][self::mn:span][contains(@style, 'line-height')]">
|
13805
|
+
<xsl:variable name="styles">
|
13806
|
+
<xsl:apply-templates select="*[1]"/>
|
13807
|
+
</xsl:variable>
|
13808
|
+
<!-- move attribute line-height from inline to block -->
|
13809
|
+
<xsl:attribute name="line-height"><xsl:value-of select="xalan:nodeset($styles)//*/@line-height"/></xsl:attribute>
|
13810
|
+
</xsl:if>
|
13745
13811
|
</xsl:template>
|
13746
13812
|
|
13747
13813
|
<xsl:template name="setKeepAttributes">
|
@@ -13767,34 +13833,41 @@
|
|
13767
13833
|
<fo:block-container absolute-position="fixed" left="0mm" top="0mm" font-size="0" id="__internal_layout__coverpage{$suffix}_{$name}_{$number}_{generate-id()}">
|
13768
13834
|
<fo:block>
|
13769
13835
|
<xsl:for-each select="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = $name][1]/mn:value/mn:image[$num]">
|
13770
|
-
|
13771
|
-
|
13772
|
-
|
13773
|
-
<xsl:attribute name="content-height"><xsl:value-of select="$pageHeight"/>mm</xsl:attribute>
|
13774
|
-
<xsl:call-template name="getSVG"/>
|
13775
|
-
</fo:instream-foreign-object>
|
13776
|
-
</xsl:when>
|
13777
|
-
<xsl:when test="starts-with(@src, 'data:application/pdf;base64')">
|
13778
|
-
<fo:external-graphic src="{@src}" fox:alt-text="Image Front"/>
|
13779
|
-
</xsl:when>
|
13780
|
-
<xsl:otherwise> <!-- bitmap image -->
|
13781
|
-
<xsl:variable name="coverimage_src" select="normalize-space(@src)"/>
|
13782
|
-
<xsl:if test="$coverimage_src != ''">
|
13783
|
-
<xsl:variable name="coverpage">
|
13784
|
-
<xsl:call-template name="getImageURL">
|
13785
|
-
<xsl:with-param name="src" select="$coverimage_src"/>
|
13786
|
-
</xsl:call-template>
|
13787
|
-
</xsl:variable>
|
13788
|
-
<!-- <xsl:variable name="coverpage" select="concat('url(file:',$basepath, 'coverpage1.png', ')')"/> --> <!-- for DEBUG -->
|
13789
|
-
<fo:external-graphic src="{$coverpage}" width="{$pageWidth}mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
|
13790
|
-
</xsl:if>
|
13791
|
-
</xsl:otherwise>
|
13792
|
-
</xsl:choose>
|
13836
|
+
|
13837
|
+
<xsl:call-template name="insertPageImage"/>
|
13838
|
+
|
13793
13839
|
</xsl:for-each>
|
13794
13840
|
</fo:block>
|
13795
13841
|
</fo:block-container>
|
13796
13842
|
</xsl:template>
|
13797
13843
|
|
13844
|
+
<xsl:template name="insertPageImage">
|
13845
|
+
<xsl:param name="svg_content_height" select="$pageHeight"/>
|
13846
|
+
<xsl:param name="bitmap_width" select="$pageWidth"/>
|
13847
|
+
<xsl:choose>
|
13848
|
+
<xsl:when test="*[local-name() = 'svg'] or java:endsWith(java:java.lang.String.new(@src), '.svg')">
|
13849
|
+
<fo:instream-foreign-object fox:alt-text="Image Front">
|
13850
|
+
<xsl:attribute name="content-height"><xsl:value-of select="$svg_content_height"/>mm</xsl:attribute>
|
13851
|
+
<xsl:call-template name="getSVG"/>
|
13852
|
+
</fo:instream-foreign-object>
|
13853
|
+
</xsl:when>
|
13854
|
+
<xsl:when test="starts-with(@src, 'data:application/pdf;base64')">
|
13855
|
+
<fo:external-graphic src="{@src}" fox:alt-text="Image Front"/>
|
13856
|
+
</xsl:when>
|
13857
|
+
<xsl:otherwise> <!-- bitmap image -->
|
13858
|
+
<xsl:variable name="coverimage_src" select="normalize-space(@src)"/>
|
13859
|
+
<xsl:if test="$coverimage_src != ''">
|
13860
|
+
<xsl:variable name="coverpage">
|
13861
|
+
<xsl:call-template name="getImageURL">
|
13862
|
+
<xsl:with-param name="src" select="$coverimage_src"/>
|
13863
|
+
</xsl:call-template>
|
13864
|
+
</xsl:variable>
|
13865
|
+
<fo:external-graphic src="{$coverpage}" width="{$bitmap_width}mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
|
13866
|
+
</xsl:if>
|
13867
|
+
</xsl:otherwise>
|
13868
|
+
</xsl:choose>
|
13869
|
+
</xsl:template>
|
13870
|
+
|
13798
13871
|
<xsl:template name="getImageURL">
|
13799
13872
|
<xsl:param name="src"/>
|
13800
13873
|
<xsl:choose>
|
@@ -14222,6 +14295,14 @@
|
|
14222
14295
|
</xsl:attribute>
|
14223
14296
|
</xsl:template>
|
14224
14297
|
|
14298
|
+
<xsl:template name="getCharByCodePoint">
|
14299
|
+
<xsl:param name="codepoint"/>
|
14300
|
+
<xsl:param name="radix">16</xsl:param>
|
14301
|
+
<xsl:variable name="codepointInt" select="java:java.lang.Integer.parseInt($codepoint,$radix)"/>
|
14302
|
+
<xsl:variable name="chars" select="java:java.lang.Character.toChars($codepointInt)"/>
|
14303
|
+
<xsl:value-of select="java:java.lang.String.new($chars)"/>
|
14304
|
+
</xsl:template>
|
14305
|
+
|
14225
14306
|
<xsl:template name="substring-after-last">
|
14226
14307
|
<xsl:param name="value"/>
|
14227
14308
|
<xsl:param name="delimiter"/>
|
@@ -76,12 +76,6 @@ from other documents in the same doctype</a:documentation>
|
|
76
76
|
<ref name="flavor">
|
77
77
|
<a:documentation>Flavour of Metanorma used to process this document</a:documentation>
|
78
78
|
</ref>
|
79
|
-
<optional>
|
80
|
-
<ref name="editorialgroup">
|
81
|
-
<a:documentation>Groups associated with the production of the standards document, typically within
|
82
|
-
a standards definition organization</a:documentation>
|
83
|
-
</ref>
|
84
|
-
</optional>
|
85
79
|
<zeroOrMore>
|
86
80
|
<ref name="ics">
|
87
81
|
<a:documentation>Classification of the document contents taken from the International Classification of Standards</a:documentation>
|
@@ -130,49 +124,6 @@ a standards definition organization</a:documentation>
|
|
130
124
|
However we prefer not to hardcode it, given ongoing extension.</a:documentation>
|
131
125
|
<text/>
|
132
126
|
</define>
|
133
|
-
<define name="editorialgroup">
|
134
|
-
<a:documentation>A group associated with the production of the standards document, typically within
|
135
|
-
a standards definition organization</a:documentation>
|
136
|
-
<element name="editorialgroup">
|
137
|
-
<oneOrMore>
|
138
|
-
<ref name="technical-committee">
|
139
|
-
<a:documentation>A technical committee associated with the production of the standards document</a:documentation>
|
140
|
-
</ref>
|
141
|
-
</oneOrMore>
|
142
|
-
</element>
|
143
|
-
</define>
|
144
|
-
<define name="technical-committee">
|
145
|
-
<a:documentation>Technical committee associated with the production of a standards document</a:documentation>
|
146
|
-
<element name="technical-committee">
|
147
|
-
<ref name="IsoWorkgroup"/>
|
148
|
-
</element>
|
149
|
-
</define>
|
150
|
-
<define name="IsoWorkgroup">
|
151
|
-
<optional>
|
152
|
-
<attribute name="number">
|
153
|
-
<a:documentation>Numeric identifier of the technical committee</a:documentation>
|
154
|
-
</attribute>
|
155
|
-
</optional>
|
156
|
-
<optional>
|
157
|
-
<attribute name="type">
|
158
|
-
<a:documentation>Type of the technical committee, used in identifying the technical committee</a:documentation>
|
159
|
-
</attribute>
|
160
|
-
</optional>
|
161
|
-
<optional>
|
162
|
-
<attribute name="identifier">
|
163
|
-
<a:documentation>Non-numeric, complete identifier of the technical committee</a:documentation>
|
164
|
-
</attribute>
|
165
|
-
</optional>
|
166
|
-
<optional>
|
167
|
-
<attribute name="prefix">
|
168
|
-
<a:documentation>Disambiguating prefix added to number to form the identifier of the technical committee,
|
169
|
-
typically indicating its type</a:documentation>
|
170
|
-
</attribute>
|
171
|
-
</optional>
|
172
|
-
<text>
|
173
|
-
<a:documentation>Name of the technical committee</a:documentation>
|
174
|
-
</text>
|
175
|
-
</define>
|
176
127
|
<define name="ics">
|
177
128
|
<a:documentation>Classification taken from the International Classification of Standards.
|
178
129
|
ICS is defined by ISO here -- https://www.iso.org/publication/PUB100033.html</a:documentation>
|
@@ -242,6 +242,8 @@ Detailed in https://www.relaton.org/model/creator/</a:documentation>
|
|
242
242
|
</choice>
|
243
243
|
</define>
|
244
244
|
<define name="roledescription">
|
245
|
+
<a:documentation>A more detailed description of the role of the contributor
|
246
|
+
Some descriptions are reserved words; in particular, the editorial committee of a standard has the role description "committee"</a:documentation>
|
245
247
|
<element name="description">
|
246
248
|
<ref name="LocalizedMarkedUpString"/>
|
247
249
|
</element>
|
@@ -443,7 +445,10 @@ real names (if the person is named with a pseudonym or user name); previous lega
|
|
443
445
|
</oneOrMore>
|
444
446
|
<zeroOrMore>
|
445
447
|
<ref name="subdivision">
|
446
|
-
<a:documentation>The subdivision of the organization directly involved with the production of the bibliographic item
|
448
|
+
<a:documentation>The subdivision of the organization directly involved with the production of the bibliographic item.
|
449
|
+
Multiple subdivisions can be specified for an organization, with no implication of hierarchical
|
450
|
+
relation between them
|
451
|
+
Editorial and advisory groups are represented as consecutive subdivisions of the SDO</a:documentation>
|
447
452
|
</ref>
|
448
453
|
</zeroOrMore>
|
449
454
|
<optional>
|
@@ -485,6 +490,11 @@ real names (if the person is named with a pseudonym or user name); previous lega
|
|
485
490
|
<a:documentation>The type of subdivision</a:documentation>
|
486
491
|
</attribute>
|
487
492
|
</optional>
|
493
|
+
<optional>
|
494
|
+
<attribute name="subtype">
|
495
|
+
<a:documentation>The subtype of subdivision; e.g. different types of technical committee</a:documentation>
|
496
|
+
</attribute>
|
497
|
+
</optional>
|
488
498
|
<ref name="OrganizationType">
|
489
499
|
<a:documentation>The subdivision, modelled recursively as an organization</a:documentation>
|
490
500
|
</ref>
|
data/lib/metanorma/ogc/front.rb
CHANGED
@@ -8,6 +8,7 @@ module Metanorma
|
|
8
8
|
def metadata_author(node, xml)
|
9
9
|
corporate_author(node, xml)
|
10
10
|
personal_author(node, xml)
|
11
|
+
committee_contributors(node, xml, default_publisher, {})
|
11
12
|
end
|
12
13
|
|
13
14
|
def safe_xml_string(node, key, value)
|
@@ -91,23 +92,15 @@ module Metanorma
|
|
91
92
|
{ "Open Geospatial Consortium" => "OGC" }
|
92
93
|
end
|
93
94
|
|
94
|
-
def
|
95
|
-
|
96
|
-
xml.editorialgroup do |a|
|
97
|
-
metadata_committee1(node, a)
|
98
|
-
end
|
95
|
+
def metadata_committee_types(node)
|
96
|
+
%w(committee subcommittee workgroup)
|
99
97
|
end
|
100
98
|
|
101
|
-
def
|
102
|
-
|
103
|
-
node.attr("
|
104
|
-
|
105
|
-
|
106
|
-
number: node.attr("subcommittee-number")))
|
107
|
-
(node.attr("workgroup") || node.attr("workinggroup")) and
|
108
|
-
xml.workgroup(node.attr("workgroup") || node.attr("workinggroup"),
|
109
|
-
**attr_code(type: node.attr("workgroup-type"),
|
110
|
-
number: node.attr("workgroup-number")))
|
99
|
+
def metadata_committee_prep(node)
|
100
|
+
node.attr("committee") or node.set_attribute("committee", "technical")
|
101
|
+
a = node.attr("workinggroup") and
|
102
|
+
node.set_attribute("workgroup", a)
|
103
|
+
true
|
111
104
|
end
|
112
105
|
|
113
106
|
def externalid(node)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
3
|
-
<!-- VERSION v2.1.
|
3
|
+
<!-- VERSION v2.1.1 -->
|
4
4
|
|
5
5
|
<!--
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|
@@ -2233,6 +2233,11 @@ used in document amendments</a:documentation>
|
|
2233
2233
|
<ref name="RequiredId"/>
|
2234
2234
|
<ref name="NumberingAttributes"/>
|
2235
2235
|
<ref name="BlockAttributes"/>
|
2236
|
+
<optional>
|
2237
|
+
<attribute name="type">
|
2238
|
+
<a:documentation>Semantic classification of note</a:documentation>
|
2239
|
+
</attribute>
|
2240
|
+
</optional>
|
2236
2241
|
<oneOrMore>
|
2237
2242
|
<choice>
|
2238
2243
|
<a:documentation>Content of the term note</a:documentation>
|