metanorma-ogc 2.3.10 → 2.3.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +162 -50
- data/lib/isodoc/ogc/ogc.best-practice.xsl +162 -50
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +162 -50
- data/lib/isodoc/ogc/ogc.community-practice.xsl +162 -50
- data/lib/isodoc/ogc/ogc.community-standard.xsl +162 -50
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +162 -50
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +162 -50
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +162 -50
- data/lib/isodoc/ogc/ogc.other.xsl +162 -50
- data/lib/isodoc/ogc/ogc.policy.xsl +162 -50
- data/lib/isodoc/ogc/ogc.reference-model.xsl +162 -50
- data/lib/isodoc/ogc/ogc.release-notes.xsl +162 -50
- data/lib/isodoc/ogc/ogc.standard.xsl +162 -50
- data/lib/isodoc/ogc/ogc.test-suite.xsl +162 -50
- data/lib/isodoc/ogc/ogc.user-guide.xsl +162 -50
- data/lib/isodoc/ogc/ogc.white-paper.xsl +156 -48
- data/lib/metanorma/ogc/boilerplate.adoc +73 -0
- data/lib/metanorma/ogc/cleanup.rb +4 -0
- data/lib/metanorma/ogc/converter.rb +4 -0
- data/lib/metanorma/ogc/isodoc.rng +18 -0
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +3 -3
- data/lib/metanorma/ogc/boilerplate.xml +0 -92
@@ -1719,6 +1719,10 @@
|
|
1719
1719
|
</xsl:attribute-set> <!-- formula-stem-number-style -->
|
1720
1720
|
<!-- End Formula's styles -->
|
1721
1721
|
|
1722
|
+
<xsl:template name="refine_formula-stem-number-style">
|
1723
|
+
|
1724
|
+
</xsl:template>
|
1725
|
+
|
1722
1726
|
<xsl:attribute-set name="image-style">
|
1723
1727
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
1724
1728
|
|
@@ -2223,13 +2227,13 @@
|
|
2223
2227
|
|
2224
2228
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
2225
2229
|
<xsl:variable name="nodes_preface_">
|
2226
|
-
<xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
|
2230
|
+
<xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition' or @type = 'toc')]">
|
2227
2231
|
<node id="{@id}"/>
|
2228
2232
|
</xsl:for-each>
|
2229
2233
|
</xsl:variable>
|
2230
2234
|
<xsl:variable name="nodes_preface" select="xalan:nodeset($nodes_preface_)"/>
|
2231
2235
|
|
2232
|
-
<xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
|
2236
|
+
<xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition' or @type = 'toc')]">
|
2233
2237
|
<xsl:sort select="@displayorder" data-type="number"/>
|
2234
2238
|
|
2235
2239
|
<!-- process Section's title -->
|
@@ -2263,12 +2267,12 @@
|
|
2263
2267
|
<xsl:apply-templates select="." mode="contents"/>
|
2264
2268
|
</xsl:for-each>
|
2265
2269
|
|
2266
|
-
<xsl:for-each select="/*/*[local-name()='annex']">
|
2270
|
+
<!-- <xsl:for-each select="/*/*[local-name()='annex']">
|
2267
2271
|
<xsl:sort select="@displayorder" data-type="number"/>
|
2268
2272
|
<xsl:apply-templates select="." mode="contents"/>
|
2269
|
-
</xsl:for-each>
|
2273
|
+
</xsl:for-each> -->
|
2270
2274
|
|
2271
|
-
<xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true') and not(*[local-name()='references'][@normative='true'])][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) > 0] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) > 0]">
|
2275
|
+
<xsl:for-each select="/*/*[local-name()='annex'] | /*/*[local-name()='bibliography']/*[not(@normative='true') and not(*[local-name()='references'][@normative='true'])][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) > 0] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) > 0]">
|
2272
2276
|
<xsl:sort select="@displayorder" data-type="number"/>
|
2273
2277
|
<xsl:apply-templates select="." mode="contents"/>
|
2274
2278
|
</xsl:for-each>
|
@@ -2672,7 +2676,7 @@
|
|
2672
2676
|
</xsl:attribute>
|
2673
2677
|
</xsl:for-each>
|
2674
2678
|
|
2675
|
-
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
2679
|
+
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
2676
2680
|
<xsl:if test="$isNoteOrFnExist = 'true'">
|
2677
2681
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
2678
2682
|
</xsl:if>
|
@@ -2716,7 +2720,7 @@
|
|
2716
2720
|
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
2717
2721
|
</xsl:when>
|
2718
2722
|
<xsl:otherwise>
|
2719
|
-
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
2723
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'example') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
2720
2724
|
</xsl:otherwise>
|
2721
2725
|
</xsl:choose>
|
2722
2726
|
|
@@ -2803,7 +2807,7 @@
|
|
2803
2807
|
<xsl:param name="continued"/>
|
2804
2808
|
<xsl:if test="normalize-space() != ''">
|
2805
2809
|
|
2806
|
-
<fo:block xsl:use-attribute-sets="table-name-style">
|
2810
|
+
<fo:block xsl:use-attribute-sets="table-name-style" role="SKIP">
|
2807
2811
|
|
2808
2812
|
<xsl:call-template name="refine_table-name-style">
|
2809
2813
|
<xsl:with-param name="continued" select="$continued"/>
|
@@ -3188,8 +3192,8 @@
|
|
3188
3192
|
<xsl:template name="table-header-title">
|
3189
3193
|
<xsl:param name="cols-count"/>
|
3190
3194
|
<!-- row for title -->
|
3191
|
-
<fo:table-row>
|
3192
|
-
<fo:table-cell number-columns-spanned="{$cols-count}" border-left="1.5pt solid white" border-right="1.5pt solid white" border-top="1.5pt solid white" border-bottom="1.5pt solid black">
|
3195
|
+
<fo:table-row role="SKIP">
|
3196
|
+
<fo:table-cell number-columns-spanned="{$cols-count}" border-left="1.5pt solid white" border-right="1.5pt solid white" border-top="1.5pt solid white" border-bottom="1.5pt solid black" role="SKIP">
|
3193
3197
|
|
3194
3198
|
<xsl:call-template name="refine_table-header-title-style"/>
|
3195
3199
|
|
@@ -3198,7 +3202,7 @@
|
|
3198
3202
|
</xsl:apply-templates>
|
3199
3203
|
|
3200
3204
|
<xsl:if test="not(ancestor::*[local-name()='table']/*[local-name()='name'])"> <!-- to prevent empty fo:table-cell in case of missing table's name -->
|
3201
|
-
<fo:block/>
|
3205
|
+
<fo:block role="SKIP"/>
|
3202
3206
|
</xsl:if>
|
3203
3207
|
|
3204
3208
|
</fo:table-cell>
|
@@ -3233,7 +3237,7 @@
|
|
3233
3237
|
<xsl:param name="colwidths"/>
|
3234
3238
|
<xsl:param name="colgroup"/>
|
3235
3239
|
|
3236
|
-
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
3240
|
+
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='example'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
3237
3241
|
|
3238
3242
|
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
3239
3243
|
|
@@ -3306,6 +3310,7 @@
|
|
3306
3310
|
<xsl:apply-templates select="../*[local-name()='p']"/>
|
3307
3311
|
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
3308
3312
|
<xsl:apply-templates select="../*[local-name()='note']"/>
|
3313
|
+
<xsl:apply-templates select="../*[local-name()='example']"/>
|
3309
3314
|
<xsl:apply-templates select="../*[local-name()='source']"/>
|
3310
3315
|
|
3311
3316
|
<xsl:variable name="isDisplayRowSeparator">
|
@@ -3314,7 +3319,7 @@
|
|
3314
3319
|
|
3315
3320
|
<!-- horizontal row separator -->
|
3316
3321
|
<xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
|
3317
|
-
<xsl:if test="../*[local-name()='note'] and normalize-space($table_fn_block) != ''">
|
3322
|
+
<xsl:if test="(../*[local-name()='note'] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
|
3318
3323
|
<fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
|
3319
3324
|
|
3320
3325
|
<xsl:call-template name="setBordersTableArray"/>
|
@@ -3508,7 +3513,7 @@
|
|
3508
3513
|
|
3509
3514
|
<xsl:call-template name="refine_table-header-cell-style"/>
|
3510
3515
|
|
3511
|
-
<fo:block>
|
3516
|
+
<fo:block role="SKIP">
|
3512
3517
|
<xsl:apply-templates/>
|
3513
3518
|
</fo:block>
|
3514
3519
|
</fo:table-cell>
|
@@ -3561,7 +3566,7 @@
|
|
3561
3566
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
3562
3567
|
</xsl:if>
|
3563
3568
|
|
3564
|
-
<fo:block>
|
3569
|
+
<fo:block role="SKIP">
|
3565
3570
|
|
3566
3571
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
3567
3572
|
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
@@ -3575,13 +3580,13 @@
|
|
3575
3580
|
</fo:table-cell>
|
3576
3581
|
</xsl:template> <!-- td -->
|
3577
3582
|
|
3578
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2">
|
3583
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
3579
3584
|
|
3580
3585
|
<fo:block xsl:use-attribute-sets="table-note-style">
|
3581
3586
|
|
3582
3587
|
<xsl:call-template name="refine_table-note-style"/>
|
3583
3588
|
|
3584
|
-
<!-- Table's note name (NOTE, for example) -->
|
3589
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
3585
3590
|
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
3586
3591
|
|
3587
3592
|
<xsl:call-template name="refine_table-note-name-style"/>
|
@@ -3595,7 +3600,7 @@
|
|
3595
3600
|
|
3596
3601
|
</xsl:template> <!-- table/note -->
|
3597
3602
|
|
3598
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" priority="2">
|
3603
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
|
3599
3604
|
<xsl:apply-templates/>
|
3600
3605
|
</xsl:template>
|
3601
3606
|
|
@@ -4435,7 +4440,7 @@
|
|
4435
4440
|
-->
|
4436
4441
|
<fo:table-row>
|
4437
4442
|
<fo:table-cell number-columns-spanned="2">
|
4438
|
-
<fo:block>
|
4443
|
+
<fo:block role="SKIP">
|
4439
4444
|
<xsl:call-template name="note"/>
|
4440
4445
|
</fo:block>
|
4441
4446
|
</fo:table-cell>
|
@@ -4500,7 +4505,7 @@
|
|
4500
4505
|
|
4501
4506
|
<xsl:call-template name="refine_dt-cell-style"/>
|
4502
4507
|
|
4503
|
-
<fo:block xsl:use-attribute-sets="dt-block-style">
|
4508
|
+
<fo:block xsl:use-attribute-sets="dt-block-style" role="SKIP">
|
4504
4509
|
<xsl:copy-of select="@id"/>
|
4505
4510
|
|
4506
4511
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
@@ -4530,7 +4535,7 @@
|
|
4530
4535
|
|
4531
4536
|
<xsl:call-template name="refine_dd-cell-style"/>
|
4532
4537
|
|
4533
|
-
<fo:block>
|
4538
|
+
<fo:block role="SKIP">
|
4534
4539
|
|
4535
4540
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
4536
4541
|
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
@@ -4672,10 +4677,15 @@
|
|
4672
4677
|
<!-- ========================= -->
|
4673
4678
|
<xsl:template match="*[local-name()='em']">
|
4674
4679
|
<fo:inline font-style="italic">
|
4680
|
+
<xsl:call-template name="refine_italic_style"/>
|
4675
4681
|
<xsl:apply-templates/>
|
4676
4682
|
</fo:inline>
|
4677
4683
|
</xsl:template>
|
4678
4684
|
|
4685
|
+
<xsl:template name="refine_italic_style">
|
4686
|
+
|
4687
|
+
</xsl:template>
|
4688
|
+
|
4679
4689
|
<xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
4680
4690
|
<xsl:param name="split_keep-within-line"/>
|
4681
4691
|
<fo:inline font-weight="bold">
|
@@ -4903,11 +4913,41 @@
|
|
4903
4913
|
|
4904
4914
|
<xsl:template match="text()[ancestor::*[local-name()='smallcap']]">
|
4905
4915
|
<xsl:variable name="text" select="normalize-space(.)"/>
|
4906
|
-
<fo:inline font-size="75%">
|
4916
|
+
<fo:inline font-size="75%" role="SKIP">
|
4907
4917
|
<xsl:if test="string-length($text) > 0">
|
4908
|
-
<xsl:
|
4909
|
-
<xsl:
|
4910
|
-
|
4918
|
+
<xsl:variable name="smallCapsText">
|
4919
|
+
<xsl:call-template name="recursiveSmallCaps">
|
4920
|
+
<xsl:with-param name="text" select="$text"/>
|
4921
|
+
</xsl:call-template>
|
4922
|
+
</xsl:variable>
|
4923
|
+
<!-- merge neighboring fo:inline -->
|
4924
|
+
<xsl:for-each select="xalan:nodeset($smallCapsText)/node()">
|
4925
|
+
<xsl:choose>
|
4926
|
+
<xsl:when test="self::fo:inline and preceding-sibling::node()[1][self::fo:inline]"><!-- <xsl:copy-of select="."/> --></xsl:when>
|
4927
|
+
<xsl:when test="self::fo:inline and @font-size">
|
4928
|
+
<xsl:variable name="curr_pos" select="count(preceding-sibling::node()) + 1"/>
|
4929
|
+
<!-- <curr_pos><xsl:value-of select="$curr_pos"/></curr_pos> -->
|
4930
|
+
<xsl:variable name="next_text_" select="count(following-sibling::node()[not(local-name() = 'inline')][1]/preceding-sibling::node())"/>
|
4931
|
+
<xsl:variable name="next_text">
|
4932
|
+
<xsl:choose>
|
4933
|
+
<xsl:when test="$next_text_ = 0">99999999</xsl:when>
|
4934
|
+
<xsl:otherwise><xsl:value-of select="$next_text_ + 1"/></xsl:otherwise>
|
4935
|
+
</xsl:choose>
|
4936
|
+
</xsl:variable>
|
4937
|
+
<!-- <next_text><xsl:value-of select="$next_text"/></next_text> -->
|
4938
|
+
<fo:inline>
|
4939
|
+
<xsl:copy-of select="@*"/>
|
4940
|
+
<xsl:copy-of select="./node()"/>
|
4941
|
+
<xsl:for-each select="following-sibling::node()[position() < $next_text - $curr_pos]"> <!-- [self::fo:inline] -->
|
4942
|
+
<xsl:copy-of select="./node()"/>
|
4943
|
+
</xsl:for-each>
|
4944
|
+
</fo:inline>
|
4945
|
+
</xsl:when>
|
4946
|
+
<xsl:otherwise>
|
4947
|
+
<xsl:copy-of select="."/>
|
4948
|
+
</xsl:otherwise>
|
4949
|
+
</xsl:choose>
|
4950
|
+
</xsl:for-each>
|
4911
4951
|
</xsl:if>
|
4912
4952
|
</fo:inline>
|
4913
4953
|
</xsl:template>
|
@@ -4919,7 +4959,7 @@
|
|
4919
4959
|
<xsl:variable name="upperCase" select="java:toUpperCase(java:java.lang.String.new($char))"/>
|
4920
4960
|
<xsl:choose>
|
4921
4961
|
<xsl:when test="$char=$upperCase">
|
4922
|
-
<fo:inline font-size="{100 div 0.75}%">
|
4962
|
+
<fo:inline font-size="{100 div 0.75}%" role="SKIP">
|
4923
4963
|
<xsl:value-of select="$upperCase"/>
|
4924
4964
|
</fo:inline>
|
4925
4965
|
</xsl:when>
|
@@ -5081,6 +5121,10 @@
|
|
5081
5121
|
|
5082
5122
|
<xsl:when test="not(contains($text, $separator))">
|
5083
5123
|
<word>
|
5124
|
+
<xsl:if test="ancestor::*[local-name() = 'p'][@from_dl = 'true']">
|
5125
|
+
<xsl:text>
|
5126
|
+
</xsl:text> <!-- to add distance between dt and dd -->
|
5127
|
+
</xsl:if>
|
5084
5128
|
<xsl:call-template name="enclose_text_in_tags">
|
5085
5129
|
<xsl:with-param name="text" select="normalize-space($text)"/>
|
5086
5130
|
<xsl:with-param name="tags" select="$tags"/>
|
@@ -5089,6 +5133,10 @@
|
|
5089
5133
|
</xsl:when>
|
5090
5134
|
<xsl:otherwise>
|
5091
5135
|
<word>
|
5136
|
+
<xsl:if test="ancestor::*[local-name() = 'p'][@from_dl = 'true']">
|
5137
|
+
<xsl:text>
|
5138
|
+
</xsl:text> <!-- to add distance between dt and dd -->
|
5139
|
+
</xsl:if>
|
5092
5140
|
<xsl:call-template name="enclose_text_in_tags">
|
5093
5141
|
<xsl:with-param name="text" select="normalize-space(substring-before($text, $separator))"/>
|
5094
5142
|
<xsl:with-param name="tags" select="$tags"/>
|
@@ -5163,7 +5211,10 @@
|
|
5163
5211
|
</xsl:choose>
|
5164
5212
|
</xsl:variable>
|
5165
5213
|
|
5166
|
-
|
5214
|
+
<!-- replace sequence #x200B and space TO space -->
|
5215
|
+
<xsl:variable name="text10" select="java:replaceAll(java:java.lang.String.new($text9), '\u200b ', ' ')"/>
|
5216
|
+
|
5217
|
+
<xsl:value-of select="$text10"/>
|
5167
5218
|
</xsl:template>
|
5168
5219
|
|
5169
5220
|
<xsl:template name="add-zero-spaces-link-java">
|
@@ -5269,6 +5320,10 @@
|
|
5269
5320
|
<xsl:template name="getSimpleTable">
|
5270
5321
|
<xsl:param name="id"/>
|
5271
5322
|
|
5323
|
+
<!-- <test0>
|
5324
|
+
<xsl:copy-of select="."/>
|
5325
|
+
</test0> -->
|
5326
|
+
|
5272
5327
|
<xsl:variable name="simple-table">
|
5273
5328
|
|
5274
5329
|
<!-- Step 0. replace <br/> to <p>...</p> -->
|
@@ -6252,7 +6307,7 @@
|
|
6252
6307
|
<xsl:call-template name="insert_basic_link">
|
6253
6308
|
<xsl:with-param name="element">
|
6254
6309
|
<fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
|
6255
|
-
<xsl:if test="string-length(normalize-space()) < 30 and not(contains(normalize-space(), 'http://')) and not(contains(normalize-space(), 'https://'))">
|
6310
|
+
<xsl:if test="string-length(normalize-space()) < 30 and not(contains(normalize-space(), 'http://')) and not(contains(normalize-space(), 'https://')) and not(ancestor::*[local-name() = 'table' or local-name() = 'dl'])">
|
6256
6311
|
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
6257
6312
|
</xsl:if>
|
6258
6313
|
<xsl:if test="parent::*[local-name() = 'add']">
|
@@ -6314,7 +6369,7 @@
|
|
6314
6369
|
<fo:table-body>
|
6315
6370
|
<fo:table-row>
|
6316
6371
|
<fo:table-cell display-align="center">
|
6317
|
-
<fo:block xsl:use-attribute-sets="formula-stem-block-style">
|
6372
|
+
<fo:block xsl:use-attribute-sets="formula-stem-block-style" role="SKIP">
|
6318
6373
|
|
6319
6374
|
<xsl:call-template name="refine_formula-stem-block-style"/>
|
6320
6375
|
|
@@ -6322,7 +6377,10 @@
|
|
6322
6377
|
</fo:block>
|
6323
6378
|
</fo:table-cell>
|
6324
6379
|
<fo:table-cell display-align="center">
|
6325
|
-
<fo:block xsl:use-attribute-sets="formula-stem-number-style">
|
6380
|
+
<fo:block xsl:use-attribute-sets="formula-stem-number-style" role="SKIP">
|
6381
|
+
|
6382
|
+
<xsl:call-template name="refine_formula-stem-number-style"/>
|
6383
|
+
|
6326
6384
|
<xsl:apply-templates select="../*[local-name() = 'name']"/>
|
6327
6385
|
</fo:block>
|
6328
6386
|
</fo:table-cell>
|
@@ -7832,7 +7890,7 @@
|
|
7832
7890
|
<!-- second td with sourcecode -->
|
7833
7891
|
<xsl:template match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']//*[local-name()='tr']/*[local-name()='td'][preceding-sibling::*]" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode'] -->
|
7834
7892
|
<fo:table-cell>
|
7835
|
-
<fo:block>
|
7893
|
+
<fo:block role="SKIP">
|
7836
7894
|
<xsl:apply-templates/>
|
7837
7895
|
</fo:block>
|
7838
7896
|
</fo:table-cell>
|
@@ -8338,7 +8396,7 @@
|
|
8338
8396
|
|
8339
8397
|
<xsl:call-template name="setTableCellAttributes"/>
|
8340
8398
|
|
8341
|
-
<fo:block>
|
8399
|
+
<fo:block role="SKIP">
|
8342
8400
|
<xsl:apply-templates/>
|
8343
8401
|
</fo:block>
|
8344
8402
|
</fo:table-cell>
|
@@ -8360,7 +8418,7 @@
|
|
8360
8418
|
|
8361
8419
|
<xsl:call-template name="setTableCellAttributes"/>
|
8362
8420
|
|
8363
|
-
<fo:block>
|
8421
|
+
<fo:block role="SKIP">
|
8364
8422
|
<xsl:apply-templates/>
|
8365
8423
|
</fo:block>
|
8366
8424
|
</fo:table-cell>
|
@@ -8558,6 +8616,12 @@
|
|
8558
8616
|
|
8559
8617
|
</xsl:template>
|
8560
8618
|
|
8619
|
+
<xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
|
8620
|
+
<fo:inline xsl:use-attribute-sets="example-name-style">
|
8621
|
+
<xsl:apply-templates/>
|
8622
|
+
</fo:inline>
|
8623
|
+
</xsl:template>
|
8624
|
+
|
8561
8625
|
<xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
8562
8626
|
<xsl:param name="fo_element">block</xsl:param>
|
8563
8627
|
|
@@ -9140,6 +9204,50 @@
|
|
9140
9204
|
<xsl:otherwise><xsl:call-template name="setULLabel"/></xsl:otherwise>
|
9141
9205
|
</xsl:choose>
|
9142
9206
|
</xsl:when>
|
9207
|
+
<xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
|
9208
|
+
|
9209
|
+
<xsl:variable name="label">
|
9210
|
+
|
9211
|
+
<xsl:variable name="type" select="../@type"/>
|
9212
|
+
|
9213
|
+
<xsl:variable name="style_prefix_">
|
9214
|
+
<xsl:if test="$type = 'roman'">
|
9215
|
+
<!-- Example: (i) -->
|
9216
|
+
</xsl:if>
|
9217
|
+
</xsl:variable>
|
9218
|
+
<xsl:variable name="style_prefix" select="normalize-space($style_prefix_)"/>
|
9219
|
+
|
9220
|
+
<xsl:variable name="style_suffix_">
|
9221
|
+
<xsl:choose>
|
9222
|
+
<xsl:when test="$type = 'arabic'">
|
9223
|
+
)
|
9224
|
+
</xsl:when>
|
9225
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
9226
|
+
)
|
9227
|
+
</xsl:when>
|
9228
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
9229
|
+
)
|
9230
|
+
</xsl:when>
|
9231
|
+
<xsl:when test="$type = 'roman'">
|
9232
|
+
)
|
9233
|
+
</xsl:when>
|
9234
|
+
<xsl:when test="$type = 'roman_upper'">.</xsl:when> <!-- Example: I. -->
|
9235
|
+
</xsl:choose>
|
9236
|
+
</xsl:variable>
|
9237
|
+
<xsl:variable name="style_suffix" select="normalize-space($style_suffix_)"/>
|
9238
|
+
|
9239
|
+
<xsl:if test="$style_prefix != '' and not(starts-with(@label, $style_prefix))">
|
9240
|
+
<xsl:value-of select="$style_prefix"/>
|
9241
|
+
</xsl:if>
|
9242
|
+
<xsl:value-of select="@label"/>
|
9243
|
+
<xsl:if test="not(java:endsWith(java:java.lang.String.new(@label),$style_suffix))">
|
9244
|
+
<xsl:value-of select="$style_suffix"/>
|
9245
|
+
</xsl:if>
|
9246
|
+
</xsl:variable>
|
9247
|
+
|
9248
|
+
<xsl:value-of select="normalize-space($label)"/>
|
9249
|
+
|
9250
|
+
</xsl:when>
|
9143
9251
|
<xsl:otherwise> <!-- for ordered lists 'ol' -->
|
9144
9252
|
|
9145
9253
|
<!-- Example: for BSI <?list-start 2?> -->
|
@@ -9197,10 +9305,10 @@
|
|
9197
9305
|
<xsl:when test="$type = 'arabic'">
|
9198
9306
|
1)
|
9199
9307
|
</xsl:when>
|
9200
|
-
<xsl:when test="$type = 'alphabet'">
|
9308
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
9201
9309
|
a)
|
9202
9310
|
</xsl:when>
|
9203
|
-
<xsl:when test="$type = 'alphabet_upper'">
|
9311
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
9204
9312
|
A)
|
9205
9313
|
</xsl:when>
|
9206
9314
|
<xsl:when test="$type = 'roman'">
|
@@ -9331,7 +9439,7 @@
|
|
9331
9439
|
<xsl:call-template name="refine_list-item-style"/>
|
9332
9440
|
|
9333
9441
|
<fo:list-item-label end-indent="label-end()">
|
9334
|
-
<fo:block xsl:use-attribute-sets="list-item-label-style">
|
9442
|
+
<fo:block xsl:use-attribute-sets="list-item-label-style" role="SKIP">
|
9335
9443
|
|
9336
9444
|
<xsl:call-template name="refine_list-item-label-style"/>
|
9337
9445
|
|
@@ -9340,12 +9448,12 @@
|
|
9340
9448
|
<xsl:call-template name="append_add-style"/>
|
9341
9449
|
</xsl:if>
|
9342
9450
|
|
9343
|
-
|
9451
|
+
<xsl:call-template name="getListItemFormat"/>
|
9344
9452
|
|
9345
9453
|
</fo:block>
|
9346
9454
|
</fo:list-item-label>
|
9347
9455
|
<fo:list-item-body start-indent="body-start()" xsl:use-attribute-sets="list-item-body-style">
|
9348
|
-
<fo:block>
|
9456
|
+
<fo:block role="SKIP">
|
9349
9457
|
|
9350
9458
|
<xsl:call-template name="refine_list-item-body-style"/>
|
9351
9459
|
|
@@ -9624,10 +9732,10 @@
|
|
9624
9732
|
<fo:table-body>
|
9625
9733
|
<fo:table-row text-align="center" font-weight="bold" background-color="black" color="white">
|
9626
9734
|
|
9627
|
-
<fo:table-cell border="1pt solid black"><fo:block>Date</fo:block></fo:table-cell>
|
9628
|
-
<fo:table-cell border="1pt solid black"><fo:block>Type</fo:block></fo:table-cell>
|
9629
|
-
<fo:table-cell border="1pt solid black"><fo:block>Change</fo:block></fo:table-cell>
|
9630
|
-
<fo:table-cell border="1pt solid black"><fo:block>Pages</fo:block></fo:table-cell>
|
9735
|
+
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Date</fo:block></fo:table-cell>
|
9736
|
+
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Type</fo:block></fo:table-cell>
|
9737
|
+
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Change</fo:block></fo:table-cell>
|
9738
|
+
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Pages</fo:block></fo:table-cell>
|
9631
9739
|
</fo:table-row>
|
9632
9740
|
<xsl:apply-templates/>
|
9633
9741
|
</fo:table-body>
|
@@ -9642,7 +9750,7 @@
|
|
9642
9750
|
|
9643
9751
|
<xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']/*">
|
9644
9752
|
<fo:table-cell border="1pt solid black" padding-left="1mm" padding-top="0.5mm">
|
9645
|
-
<fo:block><xsl:apply-templates/></fo:block>
|
9753
|
+
<fo:block role="SKIP"><xsl:apply-templates/></fo:block>
|
9646
9754
|
</fo:table-cell>
|
9647
9755
|
</xsl:template>
|
9648
9756
|
<!-- ============ -->
|
@@ -9713,8 +9821,8 @@
|
|
9713
9821
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
9714
9822
|
<fo:list-item>
|
9715
9823
|
<fo:list-item-label end-indent="label-end()">
|
9716
|
-
<fo:block>
|
9717
|
-
<fo:inline>
|
9824
|
+
<fo:block role="SKIP">
|
9825
|
+
<fo:inline role="SKIP">
|
9718
9826
|
|
9719
9827
|
<xsl:apply-templates select="*[local-name() = 'biblio-tag']">
|
9720
9828
|
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
@@ -9723,7 +9831,7 @@
|
|
9723
9831
|
</fo:block>
|
9724
9832
|
</fo:list-item-label>
|
9725
9833
|
<fo:list-item-body start-indent="body-start()">
|
9726
|
-
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style">
|
9834
|
+
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP">
|
9727
9835
|
<xsl:call-template name="processBibitem">
|
9728
9836
|
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
9729
9837
|
</xsl:call-template>
|
@@ -9945,7 +10053,7 @@
|
|
9945
10053
|
<xsl:for-each select="*[local-name() = 'tab']">
|
9946
10054
|
<xsl:variable name="current_id" select="generate-id()"/>
|
9947
10055
|
<fo:table-cell>
|
9948
|
-
<fo:block line-height-shift-adjustment="disregard-shifts">
|
10056
|
+
<fo:block line-height-shift-adjustment="disregard-shifts" role="SKIP">
|
9949
10057
|
<xsl:call-template name="insert_basic_link">
|
9950
10058
|
<xsl:with-param name="element">
|
9951
10059
|
<fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
|
@@ -9963,7 +10071,7 @@
|
|
9963
10071
|
</xsl:for-each>
|
9964
10072
|
<!-- last column - for page numbers -->
|
9965
10073
|
<fo:table-cell text-align="right" font-size="10pt" font-weight="bold" font-family="Arial">
|
9966
|
-
<fo:block>
|
10074
|
+
<fo:block role="SKIP">
|
9967
10075
|
<xsl:call-template name="insert_basic_link">
|
9968
10076
|
<xsl:with-param name="element">
|
9969
10077
|
<fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
|
@@ -0,0 +1,73 @@
|
|
1
|
+
== copyright-statement
|
2
|
+
=== Copyright notice
|
3
|
+
|
4
|
+
[align="center"]
|
5
|
+
Copyright © {{ docyear }} {{ copyright_holder }} +
|
6
|
+
To obtain additional rights of use, visit
|
7
|
+
https://www.ogc.org/legal[]
|
8
|
+
|
9
|
+
=== Note
|
10
|
+
[align="left"]
|
11
|
+
Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. The Open Geospatial Consortium shall not be held responsible for identifying any or all such patent rights.
|
12
|
+
|
13
|
+
[align="left"]
|
14
|
+
Recipients of this document are requested to submit, with their comments, notification of any relevant patent claims or other intellectual property rights of which they may be aware that might be infringed by any implementation of the standard set forth in this document, and to provide supporting documentation.
|
15
|
+
|
16
|
+
== license-statement
|
17
|
+
=== License Agreement
|
18
|
+
|
19
|
+
>Use of this document is subject to the license agreement at https://www.ogc.org/license[]
|
20
|
+
|
21
|
+
== legal-statement
|
22
|
+
{% if doctype == "Standard" or doctype == "Community Standard" or doctype == "Abstract Specification" %}
|
23
|
+
{% if stage == "Approved" or stage == "Withdrawn" %}
|
24
|
+
|
25
|
+
=== Notice
|
26
|
+
This document is an OGC Member approved international standard. This document is available on a royalty free, non-discriminatory basis. Recipients of this document are invited to submit, with their comments, notification of any relevant patent rights of which they are aware and to provide supporting documentation.
|
27
|
+
|
28
|
+
{% else %}
|
29
|
+
=== Notice for Drafts
|
30
|
+
This document is not an OGC Standard. This document is distributed for review and comment. This document is subject to change without notice and may not be referred to as an OGC Standard.
|
31
|
+
|
32
|
+
Recipients of this document are invited to submit, with their comments, notification of any relevant patent rights of which they are aware and to provide supporting documentation.
|
33
|
+
{% endif %}
|
34
|
+
|
35
|
+
|
36
|
+
{% elsif doctype == "Engineering Report" %}
|
37
|
+
=== Notice
|
38
|
+
This document is not an OGC Standard. This document is an OGC Public Engineering Report created as a deliverable in an OGC Interoperability Initiative and is <em>not an official position</em> of the OGC membership. It is distributed for review and comment. It is subject to change without notice and may not be referred to as an OGC Standard.
|
39
|
+
|
40
|
+
Further, any OGC Engineering Report should not be referenced as required or mandatory technology in procurements. However, the discussions in this document could very well lead to the definition of an OGC Standard.
|
41
|
+
|
42
|
+
|
43
|
+
{% elsif doctype == "Best Practice" %}
|
44
|
+
=== Notice
|
45
|
+
This document defines an OGC Best Practice on a particular technology or approach related to an OGC standard. This document is _not_ an OGC Standard and may not be referred to as an OGC Standard. It is subject to change without notice. However, this document is an _official_ position of the OGC membership on this particular technology topic.
|
46
|
+
|
47
|
+
Recipients of this document are invited to submit, with their comments, notification of any relevant patent rights of which they are aware and to provide supporting documentation.
|
48
|
+
|
49
|
+
{% elsif doctype == "Release Notes" %}
|
50
|
+
=== Notice
|
51
|
+
This document is not an OGC standard. This document provides release notes for an OGC standard. This document is subject to change without notice and may not be referred to as an OGC Standard.
|
52
|
+
|
53
|
+
Recipients of this document are invited to submit, with their comments, notification of any relevant patent rights of which they are aware and to provide supporting documentation.
|
54
|
+
|
55
|
+
|
56
|
+
{% else %}
|
57
|
+
=== Notice
|
58
|
+
This document is not an OGC Standard. This document is an OGC {{ doctype }} and is therefore not an official position of the OGC membership. It is distributed for review and comment. It is subject to change without notice and may not be referred to as an OGC Standard.
|
59
|
+
|
60
|
+
Further, an OGC {{ doctype }} should not be referenced as required or mandatory technology in procurements.
|
61
|
+
|
62
|
+
{% endif %}
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
== feedback-statement
|
69
|
+
{% if doctype == "Standard" %}
|
70
|
+
[[boilerplate-standard-feedback]]
|
71
|
+
=== {blank}
|
72
|
+
Suggested additions, changes and comments on this document are welcome and encouraged. Such suggestions may be submitted using the online change request form on OGC web site: http://ogc.standardstracker.org/[]
|
73
|
+
{% endif %}
|
@@ -1012,6 +1012,7 @@
|
|
1012
1012
|
<ref name="del"/>
|
1013
1013
|
<ref name="span"/>
|
1014
1014
|
<ref name="erefstack"/>
|
1015
|
+
<ref name="date_inline"/>
|
1015
1016
|
</choice>
|
1016
1017
|
</define>
|
1017
1018
|
<define name="add">
|
@@ -1053,6 +1054,23 @@
|
|
1053
1054
|
</oneOrMore>
|
1054
1055
|
</element>
|
1055
1056
|
</define>
|
1057
|
+
<define name="date_inline">
|
1058
|
+
<element name="date">
|
1059
|
+
<attribute name="value"/>
|
1060
|
+
<optional>
|
1061
|
+
<attribute name="format"/>
|
1062
|
+
</optional>
|
1063
|
+
<optional>
|
1064
|
+
<attribute name="language"/>
|
1065
|
+
</optional>
|
1066
|
+
<optional>
|
1067
|
+
<attribute name="script"/>
|
1068
|
+
</optional>
|
1069
|
+
<optional>
|
1070
|
+
<attribute name="locale"/>
|
1071
|
+
</optional>
|
1072
|
+
</element>
|
1073
|
+
</define>
|
1056
1074
|
<define name="concept">
|
1057
1075
|
<element name="concept">
|
1058
1076
|
<optional>
|