metanorma-ogc 1.1.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/macos.yml +0 -1
- data/.github/workflows/ubuntu.yml +10 -7
- data/.github/workflows/windows.yml +0 -1
- data/Rakefile +2 -0
- data/lib/asciidoctor/ogc/boilerplate.xml +3 -3
- data/lib/asciidoctor/ogc/converter.rb +11 -7
- data/lib/asciidoctor/ogc/front.rb +7 -19
- data/lib/asciidoctor/ogc/isodoc.rng +12 -6
- data/lib/asciidoctor/ogc/validate.rb +13 -25
- data/lib/isodoc/ogc/base_convert.rb +2 -26
- data/lib/isodoc/ogc/biblio.rb +33 -4
- data/lib/isodoc/ogc/html/_coverpage.css +195 -0
- data/lib/isodoc/ogc/html/header_wp.html +210 -0
- data/lib/isodoc/ogc/html/htmlstyle.css +1084 -0
- data/lib/isodoc/ogc/html/logo.png +0 -0
- data/lib/isodoc/ogc/html/ogc.css +838 -0
- data/lib/isodoc/ogc/html/ogc.scss +4 -2
- data/lib/isodoc/ogc/html/ogc_wp.css +758 -0
- data/lib/isodoc/ogc/html/ogc_wp.scss +724 -0
- data/lib/isodoc/ogc/html/word_ogc_intro_wp.html +14 -0
- data/lib/isodoc/ogc/html/word_ogc_titlepage_wp.html +175 -0
- data/lib/isodoc/ogc/html/wordstyle.css +1253 -0
- data/lib/isodoc/ogc/html/wordstyle.scss +8 -9
- data/lib/isodoc/ogc/html/wordstyle_wp.css +1181 -0
- data/lib/isodoc/ogc/html/wordstyle_wp.scss +1093 -0
- data/lib/isodoc/ogc/html_convert.rb +2 -0
- data/lib/isodoc/ogc/i18n-en.yaml +1 -0
- data/lib/isodoc/ogc/i18n.rb +10 -0
- data/lib/isodoc/ogc/init.rb +41 -0
- data/lib/isodoc/ogc/metadata.rb +31 -28
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +1690 -1543
- data/lib/isodoc/ogc/ogc.best-practice.xsl +1690 -1543
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +1690 -1543
- data/lib/isodoc/ogc/ogc.community-practice.xsl +1690 -1543
- data/lib/isodoc/ogc/ogc.community-standard.xsl +1690 -1543
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +1690 -1543
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +1690 -1543
- data/lib/isodoc/ogc/ogc.other.xsl +1690 -1543
- data/lib/isodoc/ogc/ogc.policy.xsl +1690 -1543
- data/lib/isodoc/ogc/ogc.reference-model.xsl +1690 -1543
- data/lib/isodoc/ogc/ogc.release-notes.xsl +1690 -1543
- data/lib/isodoc/ogc/ogc.standard.xsl +1690 -1543
- data/lib/isodoc/ogc/ogc.test-suite.xsl +1690 -1543
- data/lib/isodoc/ogc/ogc.user-guide.xsl +1690 -1543
- data/lib/isodoc/ogc/ogc.white-paper.xsl +1776 -1864
- data/lib/isodoc/ogc/presentation_xml_convert.rb +128 -1
- data/lib/isodoc/ogc/reqt.rb +4 -26
- data/lib/isodoc/ogc/sections.rb +18 -64
- data/lib/isodoc/ogc/word_convert.rb +26 -7
- data/lib/isodoc/ogc/xref.rb +28 -23
- data/lib/metanorma/ogc/processor.rb +0 -4
- data/lib/metanorma/ogc/version.rb +1 -1
- data/metanorma-ogc.gemspec +3 -4
- metadata +34 -34
data/lib/isodoc/ogc/i18n-en.yaml
CHANGED
@@ -0,0 +1,41 @@
|
|
1
|
+
require "isodoc"
|
2
|
+
require_relative "metadata"
|
3
|
+
require_relative "xref"
|
4
|
+
require_relative "i18n"
|
5
|
+
|
6
|
+
module IsoDoc
|
7
|
+
module Ogc
|
8
|
+
module Init
|
9
|
+
def metadata_init(lang, script, labels)
|
10
|
+
@meta = Metadata.new(lang, script, labels)
|
11
|
+
end
|
12
|
+
|
13
|
+
def xref_init(lang, script, klass, labels, options)
|
14
|
+
html = HtmlConvert.new(language: lang, script: script)
|
15
|
+
@xrefs = Xref.new(lang, script, html, labels, options)
|
16
|
+
end
|
17
|
+
|
18
|
+
def i18n_init(lang, script, i18nyaml = nil)
|
19
|
+
@i18n = I18n.new(lang, script, i18nyaml || @i18nyaml)
|
20
|
+
end
|
21
|
+
|
22
|
+
def fileloc(loc)
|
23
|
+
File.join(File.dirname(__FILE__), loc)
|
24
|
+
end
|
25
|
+
|
26
|
+
def submittingorgs_path
|
27
|
+
"//bibdata/contributor[role/@type = 'author']/organization/name"
|
28
|
+
end
|
29
|
+
|
30
|
+
def ogc_draft_ref?(ref)
|
31
|
+
return unless ref.at(
|
32
|
+
ns("./contributor[role/@type = 'publisher']/organization"\
|
33
|
+
"[name = 'Open Geospatial Consortium']"))
|
34
|
+
status = ref.at(ns("./status/stage"))&.text or return
|
35
|
+
return if %w(published deprecated retired).include? status
|
36
|
+
true
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
data/lib/isodoc/ogc/metadata.rb
CHANGED
@@ -4,38 +4,41 @@ require "iso-639"
|
|
4
4
|
module IsoDoc
|
5
5
|
module Ogc
|
6
6
|
DOCTYPE_ABBR = {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
7
|
+
"standard" => "IS",
|
8
|
+
"abstract-specification-topic" => "AST",
|
9
|
+
"best-practice" => "BP",
|
10
|
+
"change-request-supporting-document" => "CRSD",
|
11
|
+
"community-practice" => "CP",
|
12
|
+
"community-standard" => "CS",
|
13
|
+
"discussion-paper" => "DP",
|
14
|
+
"engineering-report" => "ER",
|
15
|
+
"policy" => "POL",
|
16
|
+
"reference-model" => "RM",
|
17
|
+
"release-notes" => "RN",
|
18
|
+
"test-suite" => "TS",
|
19
|
+
"user-guide" => "UG",
|
20
|
+
"white-paper" => "WP",
|
21
|
+
"other" => "other",
|
22
|
+
}
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
24
|
+
DOCSUBTYPE_ABBR = {
|
25
|
+
"implementation" => "IMP",
|
26
|
+
"conceptual-model" => "CM",
|
27
|
+
"conceptual-model-and-encoding" => "CME",
|
28
|
+
"conceptual-model-and-implementation" => "CMI",
|
29
|
+
"encoding" => "EN",
|
30
|
+
"extension" => "EXT",
|
31
|
+
"profile" => "PF",
|
32
|
+
"profile-with-extension" => "PFE",
|
33
|
+
"general" => "GE",
|
34
|
+
}
|
35
35
|
|
36
36
|
class Metadata < IsoDoc::Metadata
|
37
|
-
def initialize(lang, script,
|
37
|
+
def initialize(lang, script, i18n)
|
38
38
|
super
|
39
|
+
here = File.dirname(__FILE__)
|
40
|
+
set(:logo_word,
|
41
|
+
File.expand_path(File.join(here, "html", "logo.png")))
|
39
42
|
end
|
40
43
|
|
41
44
|
def title(isoxml, _out)
|
@@ -1,7 +1,10 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:ogc="https://www.metanorma.org/ns/ogc" xmlns:mathml="http://www.w3.org/1998/Math/MathML" xmlns:xalan="http://xml.apache.org/xalan" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" xmlns:java="http://xml.apache.org/xalan/java" exclude-result-prefixes="java" version="1.0">
|
2
2
|
|
3
3
|
<xsl:output version="1.0" method="xml" encoding="UTF-8" indent="no"/>
|
4
|
-
|
4
|
+
|
5
|
+
<xsl:param name="svg_images"/>
|
6
|
+
<xsl:variable name="images" select="document($svg_images)"/>
|
7
|
+
|
5
8
|
<xsl:variable name="pageWidth" select="'210mm'"/>
|
6
9
|
<xsl:variable name="pageHeight" select="'297mm'"/>
|
7
10
|
|
@@ -18,7 +21,7 @@
|
|
18
21
|
<xsl:text>© </xsl:text>
|
19
22
|
<xsl:value-of select="/ogc:ogc-standard/ogc:bibdata/ogc:copyright/ogc:from"/>
|
20
23
|
<xsl:text> </xsl:text>
|
21
|
-
<xsl:value-of select="/ogc:ogc-standard/ogc:bibdata/ogc:contributor/ogc:organization/ogc:name"/>
|
24
|
+
<xsl:value-of select="/ogc:ogc-standard/ogc:bibdata/ogc:contributor[ogc:role/@type = 'publisher']/ogc:organization/ogc:name"/>
|
22
25
|
</xsl:variable>
|
23
26
|
|
24
27
|
<xsl:variable name="doctitle" select="/ogc:ogc-standard/ogc:bibdata/ogc:title[@language = 'en']"/>
|
@@ -35,52 +38,38 @@
|
|
35
38
|
<xsl:text>:</xsl:text>
|
36
39
|
<xsl:value-of select="/ogc:ogc-standard/ogc:bibdata/ogc:copyright/ogc:from"/>
|
37
40
|
</xsl:variable>
|
41
|
+
|
42
|
+
<xsl:variable name="color" select="'rgb(14, 26, 133)'"/>
|
38
43
|
|
39
44
|
<xsl:variable name="contents">
|
40
45
|
<contents>
|
41
46
|
|
42
|
-
|
43
|
-
<!--
|
47
|
+
<!-- Abstract, Keywords, Preface, Submitting Organizations, Submitters -->
|
48
|
+
<!-- <xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/*" mode="contents"/> -->
|
44
49
|
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/ogc:abstract" mode="contents"/>
|
45
|
-
<xsl:apply-templates select="/ogc:ogc-standard/ogc:
|
46
|
-
|
47
|
-
</xsl:apply-templates>
|
48
|
-
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/ogc:foreword" mode="contents">
|
49
|
-
<xsl:with-param name="sectionNum" select="count(/ogc:ogc-standard/ogc:preface/ogc:abstract) + count (/ogc:ogc-standard/ogc:bibdata/ogc:keyword[1])+ 1"/>
|
50
|
-
</xsl:apply-templates>
|
50
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/ogc:clause[@type = 'keyword']" mode="contents"/>
|
51
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/ogc:foreword" mode="contents"/>
|
51
52
|
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/ogc:introduction" mode="contents"/>
|
52
|
-
<xsl:apply-templates select="/ogc:ogc-standard/ogc:
|
53
|
-
|
54
|
-
|
55
|
-
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/ogc:
|
56
|
-
<xsl:with-param name="sectionNum" select="count(/ogc:ogc-standard/ogc:preface/ogc:abstract) + count (/ogc:ogc-standard/ogc:bibdata/ogc:keyword[1])+ count(/ogc:ogc-standard/ogc:preface/ogc:foreword) + count(/ogc:ogc-standard/ogc:bibdata/ogc:contributor[ogc:role/@type='author'][1]/ogc:organization/ogc:name) + 1"/>
|
57
|
-
</xsl:apply-templates>
|
58
|
-
|
59
|
-
<xsl:apply-templates select="/ogc:ogc-standard/ogc:sections/ogc:clause[@id='_scope']" mode="contents">
|
60
|
-
<xsl:with-param name="sectionNum" select="'1'"/>
|
61
|
-
</xsl:apply-templates>
|
53
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/ogc:clause[@type = 'submitting_orgs']" mode="contents"/>
|
54
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/ogc:submitters" mode="contents"/>
|
55
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/ogc:clause[not(@type = 'submitting_orgs') and not(@type = 'keyword')]" mode="contents"/>
|
56
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/ogc:acknowledgements" mode="contents"/>
|
62
57
|
|
63
|
-
<xsl:apply-templates select="/ogc:ogc-standard/ogc:sections/ogc:clause[@id='conformance' or @id='_conformance']" mode="contents">
|
64
|
-
<xsl:with-param name="sectionNum" select="count(/ogc:ogc-standard/ogc:sections/ogc:clause[@id='_scope']) + 1"/>
|
65
|
-
</xsl:apply-templates>
|
66
58
|
|
59
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:sections/ogc:clause[@type='scope']" mode="contents"/>
|
60
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:sections/ogc:clause[@type='conformance']" mode="contents"/>
|
67
61
|
<!-- Normative references -->
|
68
|
-
<xsl:apply-templates select="/ogc:ogc-standard/ogc:bibliography/ogc:references[@
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
<xsl:apply-templates select="/ogc:ogc-standard/ogc:sections/ogc:terms" mode="contents"> <!-- Terms and definitions -->
|
73
|
-
<xsl:with-param name="sectionNum" select="count(/ogc:ogc-standard/ogc:sections/ogc:clause[@id='_scope']) + count(/ogc:ogc-standard/ogc:sections/ogc:clause[@id='conformance' or @id='_conformance']) + count(/ogc:ogc-standard/ogc:bibliography/ogc:references[@id = '_normative_references' or @id = '_references']) + 1"/>
|
74
|
-
</xsl:apply-templates>
|
75
|
-
|
62
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:bibliography/ogc:references[@normative='true']" mode="contents"/>
|
63
|
+
<!-- Terms and definitions -->
|
64
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:sections/ogc:terms" mode="contents"/>
|
65
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:sections/ogc:definitions" mode="contents"/>
|
76
66
|
|
77
|
-
<xsl:apply-templates select="/ogc:ogc-standard/ogc:sections
|
78
|
-
|
79
|
-
</xsl:apply-templates>
|
80
|
-
|
81
|
-
|
67
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:sections/ogc:clause[not(@type='scope') and not(@type='conformance')]" mode="contents"/>
|
68
|
+
|
82
69
|
<xsl:apply-templates select="/ogc:ogc-standard/ogc:annex" mode="contents"/>
|
83
|
-
|
70
|
+
|
71
|
+
<!-- Bibliography -->
|
72
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:bibliography/ogc:references[not(@normative='true')]" mode="contents"/>
|
84
73
|
|
85
74
|
|
86
75
|
</contents>
|
@@ -91,7 +80,7 @@
|
|
91
80
|
</xsl:variable>
|
92
81
|
|
93
82
|
<xsl:template match="/">
|
94
|
-
<xsl:
|
83
|
+
<xsl:call-template name="namespaceCheck"/>
|
95
84
|
<fo:root font-family="Times New Roman, STIX2Math, HanSans" font-size="10.5pt" xml:lang="{$lang}">
|
96
85
|
<fo:layout-master-set>
|
97
86
|
<!-- Cover page -->
|
@@ -237,7 +226,7 @@
|
|
237
226
|
</fo:block>
|
238
227
|
</fo:block>
|
239
228
|
<fo:block font-size="24pt" font-weight="bold" text-align="center" margin-top="15pt" line-height="115%">
|
240
|
-
<xsl:
|
229
|
+
<xsl:value-of select="$doctitle"/>
|
241
230
|
</fo:block>
|
242
231
|
<fo:block margin-bottom="12pt"> </fo:block>
|
243
232
|
<!-- Copyright notice -->
|
@@ -250,6 +239,16 @@
|
|
250
239
|
<fo:table-column column-width="35mm"/>
|
251
240
|
<fo:table-column column-width="70mm"/>
|
252
241
|
<fo:table-body>
|
242
|
+
<fo:table-row height="9mm">
|
243
|
+
<fo:table-cell>
|
244
|
+
<fo:block>Document number: </fo:block>
|
245
|
+
</fo:table-cell>
|
246
|
+
<fo:table-cell>
|
247
|
+
<fo:block>
|
248
|
+
<xsl:value-of select="/ogc:ogc-standard/ogc:bibdata/ogc:docnumber"/>
|
249
|
+
</fo:block>
|
250
|
+
</fo:table-cell>
|
251
|
+
</fo:table-row>
|
253
252
|
<fo:table-row height="9mm">
|
254
253
|
<fo:table-cell>
|
255
254
|
<fo:block>Document type: </fo:block>
|
@@ -258,6 +257,18 @@
|
|
258
257
|
<fo:block line-height-shift-adjustment="disregard-shifts">OGC<fo:inline font-size="65%" vertical-align="super">®</fo:inline><xsl:text> </xsl:text><xsl:value-of select="$doctype"/></fo:block>
|
259
258
|
</fo:table-cell>
|
260
259
|
</fo:table-row>
|
260
|
+
<fo:table-row height="9mm">
|
261
|
+
<fo:table-cell>
|
262
|
+
<fo:block>Document subtype: </fo:block>
|
263
|
+
</fo:table-cell>
|
264
|
+
<fo:table-cell>
|
265
|
+
<fo:block>
|
266
|
+
<xsl:call-template name="capitalizeWords">
|
267
|
+
<xsl:with-param name="str" select="/ogc:ogc-standard/ogc:bibdata/ogc:ext/ogc:docsubtype"/>
|
268
|
+
</xsl:call-template>
|
269
|
+
</fo:block>
|
270
|
+
</fo:table-cell>
|
271
|
+
</fo:table-row>
|
261
272
|
<fo:table-row height="9mm">
|
262
273
|
<fo:table-cell>
|
263
274
|
<fo:block>Document stage: </fo:block>
|
@@ -276,7 +287,11 @@
|
|
276
287
|
<fo:block>Document language: </fo:block>
|
277
288
|
</fo:table-cell>
|
278
289
|
<fo:table-cell>
|
279
|
-
<fo:block
|
290
|
+
<fo:block>
|
291
|
+
<xsl:call-template name="getLanguage">
|
292
|
+
<xsl:with-param name="lang" select="$lang"/>
|
293
|
+
</xsl:call-template>
|
294
|
+
</fo:block>
|
280
295
|
</fo:table-cell>
|
281
296
|
</fo:table-row>
|
282
297
|
</fo:table-body>
|
@@ -312,7 +327,7 @@
|
|
312
327
|
<fo:block> </fo:block>
|
313
328
|
<fo:block break-after="page"/>
|
314
329
|
|
315
|
-
<fo:block-container font-weight="bold" line-height="115%">
|
330
|
+
<fo:block-container font-weight="bold" line-height="115%" margin-bottom="36pt">
|
316
331
|
<xsl:variable name="title-toc">
|
317
332
|
<xsl:call-template name="getTitle">
|
318
333
|
<xsl:with-param name="name" select="'title-toc'"/>
|
@@ -320,7 +335,7 @@
|
|
320
335
|
</xsl:variable>
|
321
336
|
<fo:block font-size="14pt" margin-top="2pt" margin-bottom="15.5pt"><xsl:value-of select="$title-toc"/></fo:block>
|
322
337
|
|
323
|
-
<xsl:for-each select="xalan:nodeset($contents)//item
|
338
|
+
<xsl:for-each select="xalan:nodeset($contents)//item">
|
324
339
|
|
325
340
|
<fo:block>
|
326
341
|
<xsl:if test="@level = 1">
|
@@ -328,30 +343,23 @@
|
|
328
343
|
</xsl:if>
|
329
344
|
<fo:list-block>
|
330
345
|
<xsl:attribute name="provisional-distance-between-starts">
|
331
|
-
<xsl:choose>
|
332
|
-
|
333
|
-
<xsl:when test="@section != '' and not(@display-section = 'false')">8mm</xsl:when>
|
346
|
+
<xsl:choose>
|
347
|
+
<xsl:when test="@section != ''">8mm</xsl:when>
|
334
348
|
<xsl:otherwise>0mm</xsl:otherwise>
|
335
349
|
</xsl:choose>
|
336
350
|
</xsl:attribute>
|
337
351
|
<fo:list-item>
|
338
352
|
<fo:list-item-label end-indent="label-end()">
|
339
353
|
<fo:block>
|
340
|
-
<xsl:
|
341
|
-
<xsl:value-of select="@section"/><xsl:text>.</xsl:text>
|
342
|
-
</xsl:if>
|
354
|
+
<xsl:value-of select="@section"/>
|
343
355
|
</fo:block>
|
344
356
|
</fo:list-item-label>
|
345
357
|
<fo:list-item-body start-indent="body-start()">
|
346
358
|
<fo:block text-align-last="justify" margin-left="12mm" text-indent="-12mm">
|
347
359
|
<fo:basic-link internal-destination="{@id}" fox:alt-text="{text()}">
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
<xsl:if test="@addon != ''">
|
352
|
-
<xsl:text>(</xsl:text><xsl:value-of select="@addon"/><xsl:text>)</xsl:text>
|
353
|
-
</xsl:if>
|
354
|
-
<xsl:text> </xsl:text><xsl:value-of select="text()"/>
|
360
|
+
|
361
|
+
<xsl:apply-templates/>
|
362
|
+
|
355
363
|
<fo:inline keep-together.within-line="always">
|
356
364
|
<fo:leader leader-pattern="dots"/>
|
357
365
|
<fo:inline><fo:page-number-citation ref-id="{@id}"/></fo:inline>
|
@@ -364,7 +372,7 @@
|
|
364
372
|
</fo:block>
|
365
373
|
</xsl:for-each>
|
366
374
|
|
367
|
-
<xsl:if test="
|
375
|
+
<xsl:if test="//ogc:table[@id and ogc:name]">
|
368
376
|
<fo:block font-size="12pt"> </fo:block>
|
369
377
|
<fo:block font-size="12pt"> </fo:block>
|
370
378
|
<xsl:variable name="title-list-tables">
|
@@ -373,15 +381,10 @@
|
|
373
381
|
</xsl:call-template>
|
374
382
|
</xsl:variable>
|
375
383
|
<fo:block font-size="14pt" font-weight="bold" space-before="48pt" margin-bottom="15.5pt"><xsl:value-of select="$title-list-tables"/></fo:block>
|
376
|
-
<xsl:for-each select="
|
384
|
+
<xsl:for-each select="//ogc:table[@id and ogc:name]">
|
377
385
|
<fo:block text-align-last="justify" margin-top="6pt">
|
378
|
-
<fo:basic-link internal-destination="{@id}" fox:alt-text="{
|
379
|
-
<xsl:
|
380
|
-
<xsl:if test="text() != ''">
|
381
|
-
<xsl:text> — </xsl:text>
|
382
|
-
<xsl:value-of select="text()"/>
|
383
|
-
</xsl:if>
|
384
|
-
<xsl:text> </xsl:text>
|
386
|
+
<fo:basic-link internal-destination="{@id}" fox:alt-text="{ogc:name}">
|
387
|
+
<xsl:apply-templates select="ogc:name" mode="contents"/>
|
385
388
|
<fo:inline keep-together.within-line="always">
|
386
389
|
<fo:leader leader-pattern="dots"/>
|
387
390
|
<fo:page-number-citation ref-id="{@id}"/>
|
@@ -391,7 +394,7 @@
|
|
391
394
|
</xsl:for-each>
|
392
395
|
</xsl:if>
|
393
396
|
|
394
|
-
<xsl:if test="
|
397
|
+
<xsl:if test="//ogc:figure[@id and ogc:name]">
|
395
398
|
<fo:block font-size="12pt"> </fo:block>
|
396
399
|
<fo:block font-size="12pt"> </fo:block>
|
397
400
|
<xsl:variable name="title-list-figures">
|
@@ -400,15 +403,10 @@
|
|
400
403
|
</xsl:call-template>
|
401
404
|
</xsl:variable>
|
402
405
|
<fo:block font-size="14pt" font-weight="bold" space-before="48pt" margin-bottom="15.5pt"><xsl:value-of select="$title-list-figures"/></fo:block>
|
403
|
-
<xsl:for-each select="
|
406
|
+
<xsl:for-each select="//ogc:figure[@id and ogc:name]">
|
404
407
|
<fo:block text-align-last="justify" margin-top="6pt">
|
405
|
-
<fo:basic-link internal-destination="{@id}" fox:alt-text="{
|
406
|
-
<xsl:
|
407
|
-
<xsl:if test="text() != ''">
|
408
|
-
<xsl:text> — </xsl:text>
|
409
|
-
<xsl:value-of select="text()"/>
|
410
|
-
</xsl:if>
|
411
|
-
<xsl:text> </xsl:text>
|
408
|
+
<fo:basic-link internal-destination="{@id}" fox:alt-text="{ogc:name}">
|
409
|
+
<xsl:apply-templates select="ogc:name" mode="contents"/>
|
412
410
|
<fo:inline keep-together.within-line="always">
|
413
411
|
<fo:leader leader-pattern="dots"/>
|
414
412
|
<fo:page-number-citation ref-id="{@id}"/>
|
@@ -418,25 +416,54 @@
|
|
418
416
|
</xsl:for-each>
|
419
417
|
</xsl:if>
|
420
418
|
|
419
|
+
<!-- <xsl:if test="//ogc:permission[@id and ogc:name] or //ogc:recommendation[@id and ogc:name] or //ogc:requirement[@id and ogc:name]"> -->
|
420
|
+
<xsl:if test="//ogc:table[.//ogc:p[@class = 'RecommendationTitle']]">
|
421
|
+
<fo:block font-size="12pt"> </fo:block>
|
422
|
+
<fo:block font-size="12pt"> </fo:block>
|
423
|
+
<xsl:variable name="title-list-recommendations">
|
424
|
+
<xsl:call-template name="getTitle">
|
425
|
+
<xsl:with-param name="name" select="'title-list-recommendations'"/>
|
426
|
+
</xsl:call-template>
|
427
|
+
</xsl:variable>
|
428
|
+
<fo:block font-size="14pt" font-weight="bold" space-before="48pt" margin-bottom="15.5pt"><xsl:value-of select="$title-list-recommendations"/></fo:block>
|
429
|
+
<!-- <xsl:for-each select="//ogc:permission[@id and ogc:name] | //ogc:recommendation[@id and ogc:name] | //ogc:requirement[@id and ogc:name]"> -->
|
430
|
+
<xsl:for-each select="//ogc:table[.//ogc:p[@class = 'RecommendationTitle']]">
|
431
|
+
<xsl:variable name="table_id" select="@id"/>
|
432
|
+
<fo:block text-align-last="justify" margin-top="6pt">
|
433
|
+
<fo:basic-link internal-destination="{@id}" fox:alt-text="{.//ogc:p[@class = 'RecommendationTitle'][1]/text()}">
|
434
|
+
<xsl:apply-templates select=".//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/node()"/>
|
435
|
+
<fo:inline keep-together.within-line="always">
|
436
|
+
<fo:leader leader-pattern="dots"/>
|
437
|
+
<fo:page-number-citation ref-id="{@id}"/>
|
438
|
+
</fo:inline>
|
439
|
+
</fo:basic-link>
|
440
|
+
</fo:block>
|
441
|
+
</xsl:for-each>
|
442
|
+
</xsl:if>
|
443
|
+
|
444
|
+
|
421
445
|
</fo:block-container>
|
422
446
|
|
423
|
-
|
424
447
|
<!-- Abstract, Keywords, Preface, Submitting Organizations, Submitters -->
|
425
|
-
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface
|
426
|
-
<xsl:
|
427
|
-
<
|
428
|
-
</xsl:
|
429
|
-
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/ogc:
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
448
|
+
<!-- <xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/*" mode="preface"/> -->
|
449
|
+
<xsl:if test="/ogc:ogc-standard/ogc:preface/ogc:abstract">
|
450
|
+
<fo:block break-after="page"/>
|
451
|
+
</xsl:if>
|
452
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/ogc:abstract"/>
|
453
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/ogc:clause[@type = 'keyword']"/>
|
454
|
+
<xsl:if test="/ogc:ogc-standard/ogc:preface/ogc:foreword">
|
455
|
+
<fo:block break-after="page"/>
|
456
|
+
</xsl:if>
|
457
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/ogc:foreword"/>
|
458
|
+
<xsl:if test="/ogc:ogc-standard/ogc:preface/ogc:introduction">
|
459
|
+
<fo:block break-after="page"/>
|
460
|
+
</xsl:if>
|
461
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/ogc:introduction"/>
|
439
462
|
|
463
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/ogc:clause[@type = 'submitting_orgs']"/>
|
464
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/ogc:submitters"/>
|
465
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/ogc:clause[not(@type = 'submitting_orgs') and not(@type = 'keyword')]"/>
|
466
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:preface/ogc:acknowledgements"/>
|
440
467
|
|
441
468
|
</fo:flow>
|
442
469
|
</fo:page-sequence>
|
@@ -459,31 +486,23 @@
|
|
459
486
|
|
460
487
|
<fo:block line-height="125%">
|
461
488
|
|
462
|
-
<xsl:apply-templates select="/ogc:ogc-standard/ogc:sections/ogc:clause[@
|
463
|
-
<xsl:with-param name="sectionNum" select="'1'"/>
|
464
|
-
</xsl:apply-templates>
|
489
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:sections/ogc:clause[@type='scope']"/>
|
465
490
|
|
466
|
-
<xsl:apply-templates select="/ogc:ogc-standard/ogc:sections/ogc:clause[@
|
467
|
-
<xsl:with-param name="sectionNum" select="count(/ogc:ogc-standard/ogc:sections/ogc:clause[@id='_scope']) + 1"/>
|
468
|
-
</xsl:apply-templates>
|
491
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:sections/ogc:clause[@type='conformance']"/>
|
469
492
|
|
470
493
|
<!-- Normative references -->
|
471
|
-
<xsl:apply-templates select="/ogc:ogc-standard/ogc:bibliography/ogc:references[@
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
<xsl:apply-templates select="/ogc:ogc-standard/ogc:sections/ogc:
|
476
|
-
<xsl:with-param name="sectionNum" select="count(/ogc:ogc-standard/ogc:sections/ogc:clause[@id='_scope']) + count(/ogc:ogc-standard/ogc:sections/ogc:clause[@id='conformance' or @id='_conformance']) + count(/ogc:ogc-standard/ogc:bibliography/ogc:references[@id = '_normative_references' or @id = '_references']) + 1"/>
|
477
|
-
</xsl:apply-templates>
|
478
|
-
|
479
|
-
|
480
|
-
<xsl:apply-templates select="/ogc:ogc-standard/ogc:sections/*[local-name() != 'terms' and not(@id='_scope') and not(@id='conformance') and not(@id='_conformance')]">
|
481
|
-
<xsl:with-param name="sectionNumSkew" select="count(/ogc:ogc-standard/ogc:sections/ogc:clause[@id='_scope']) + count(/ogc:ogc-standard/ogc:sections/ogc:clause[@id='conformance' or @id='_conformance']) + count(/ogc:ogc-standard/ogc:bibliography/ogc:references[@id = '_normative_references' or @id = '_references']) + count(/ogc:ogc-standard/ogc:sections/ogc:terms)"/>
|
482
|
-
</xsl:apply-templates>
|
494
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:bibliography/ogc:references[@normative='true']"/>
|
495
|
+
|
496
|
+
<!-- Terms and definitions -->
|
497
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:sections/ogc:terms"/>
|
498
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:sections/ogc:definitions"/>
|
483
499
|
|
500
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:sections/ogc:clause[not(@type='scope') and not(@type='conformance')]"/>
|
484
501
|
|
485
502
|
<xsl:apply-templates select="/ogc:ogc-standard/ogc:annex"/>
|
486
|
-
|
503
|
+
|
504
|
+
<!-- Bibliography -->
|
505
|
+
<xsl:apply-templates select="/ogc:ogc-standard/ogc:bibliography/ogc:references[not(@normative='true')]"/>
|
487
506
|
|
488
507
|
</fo:block>
|
489
508
|
</fo:flow>
|
@@ -494,284 +513,57 @@
|
|
494
513
|
</fo:root>
|
495
514
|
</xsl:template>
|
496
515
|
|
497
|
-
|
498
|
-
|
499
|
-
<xsl:param name="sectionNum"/>
|
500
|
-
<xsl:param name="sectionNumSkew"/>
|
501
|
-
<xsl:apply-templates>
|
502
|
-
<xsl:with-param name="sectionNum" select="$sectionNum"/>
|
503
|
-
<xsl:with-param name="sectionNumSkew" select="$sectionNumSkew"/>
|
504
|
-
</xsl:apply-templates>
|
516
|
+
<xsl:template match="node()">
|
517
|
+
<xsl:apply-templates/>
|
505
518
|
</xsl:template>
|
506
519
|
|
507
520
|
<!-- ============================= -->
|
508
521
|
<!-- CONTENTS -->
|
509
522
|
<!-- ============================= -->
|
510
|
-
<xsl:template match="node()" mode="contents">
|
511
|
-
<xsl:
|
512
|
-
<xsl:param name="sectionNumSkew"/>
|
513
|
-
<xsl:apply-templates mode="contents">
|
514
|
-
<xsl:with-param name="sectionNum" select="$sectionNum"/>
|
515
|
-
<xsl:with-param name="sectionNumSkew" select="$sectionNumSkew"/>
|
516
|
-
</xsl:apply-templates>
|
523
|
+
<xsl:template match="node()" mode="contents">
|
524
|
+
<xsl:apply-templates mode="contents"/>
|
517
525
|
</xsl:template>
|
518
526
|
|
519
|
-
|
520
|
-
|
521
|
-
<!-- it's necessary, because there is itu:bibliography/itu:references from other section, but numbering should be sequental -->
|
522
|
-
<xsl:template match="ogc:ogc-standard/ogc:sections/*" mode="contents">
|
523
|
-
<xsl:param name="sectionNum"/>
|
524
|
-
<xsl:param name="sectionNumSkew" select="0"/>
|
525
|
-
<xsl:variable name="sectionNum_">
|
526
|
-
<xsl:choose>
|
527
|
-
<xsl:when test="$sectionNum"><xsl:value-of select="$sectionNum"/></xsl:when>
|
528
|
-
<xsl:when test="$sectionNumSkew != 0">
|
529
|
-
<xsl:variable name="number"><xsl:number count="ogc:sections/ogc:clause[not(@id='_scope') and not(@id='conformance') and not(@id='_conformance')]"/></xsl:variable> <!-- * ogc:sections/ogc:clause | ogc:sections/ogc:terms -->
|
530
|
-
<xsl:value-of select="$number + $sectionNumSkew"/>
|
531
|
-
</xsl:when>
|
532
|
-
<xsl:otherwise>
|
533
|
-
<xsl:number count="*"/>
|
534
|
-
</xsl:otherwise>
|
535
|
-
</xsl:choose>
|
536
|
-
</xsl:variable>
|
537
|
-
<xsl:apply-templates mode="contents">
|
538
|
-
<xsl:with-param name="sectionNum" select="$sectionNum_"/>
|
539
|
-
</xsl:apply-templates>
|
540
|
-
</xsl:template>
|
541
|
-
<xsl:template match="ogc:ogc-standard/ogc:sections/ogc:terms" mode="contents">
|
542
|
-
<xsl:param name="sectionNum"/>
|
543
|
-
<xsl:param name="sectionNumSkew" select="0"/>
|
544
|
-
<xsl:variable name="sectionNum_">
|
545
|
-
<xsl:choose>
|
546
|
-
<xsl:when test="$sectionNum"><xsl:value-of select="$sectionNum"/></xsl:when>
|
547
|
-
<xsl:when test="$sectionNumSkew != 0">
|
548
|
-
<xsl:variable name="number"><xsl:number count="*"/></xsl:variable> <!-- ogc:sections/ogc:clause | ogc:sections/ogc:terms -->
|
549
|
-
<xsl:value-of select="$number + $sectionNumSkew"/>
|
550
|
-
</xsl:when>
|
551
|
-
<xsl:otherwise>
|
552
|
-
<xsl:number count="*"/>
|
553
|
-
</xsl:otherwise>
|
554
|
-
</xsl:choose>
|
555
|
-
</xsl:variable>
|
556
|
-
<xsl:apply-templates mode="contents">
|
557
|
-
<xsl:with-param name="sectionNum" select="$sectionNum_"/>
|
558
|
-
</xsl:apply-templates>
|
559
|
-
</xsl:template>
|
560
|
-
|
561
|
-
|
562
|
-
<!-- Any node with title element - clause, definition, annex,... -->
|
563
|
-
<xsl:template match="ogc:title | ogc:preferred" mode="contents">
|
564
|
-
<xsl:param name="sectionNum"/>
|
565
|
-
<xsl:variable name="id">
|
566
|
-
<xsl:call-template name="getId"/>
|
567
|
-
</xsl:variable>
|
568
|
-
|
527
|
+
<!-- element with title -->
|
528
|
+
<xsl:template match="*[ogc:title]" mode="contents">
|
569
529
|
<xsl:variable name="level">
|
570
|
-
<xsl:call-template name="getLevel"
|
571
|
-
|
572
|
-
|
573
|
-
<xsl:variable name="section">
|
574
|
-
<xsl:call-template name="getSection">
|
575
|
-
<xsl:with-param name="sectionNum" select="$sectionNum"/>
|
530
|
+
<xsl:call-template name="getLevel">
|
531
|
+
<xsl:with-param name="depth" select="ogc:title/@depth"/>
|
576
532
|
</xsl:call-template>
|
577
533
|
</xsl:variable>
|
578
534
|
|
579
535
|
<xsl:variable name="display">
|
580
536
|
<xsl:choose>
|
581
|
-
<xsl:when test="ancestor::ogc:bibitem">false</xsl:when>
|
582
|
-
<xsl:when test="ancestor::ogc:term">false</xsl:when>
|
583
|
-
<xsl:when test="
|
584
|
-
<xsl:when test="$level <= 3">true</xsl:when>
|
585
|
-
<xsl:otherwise>false</xsl:otherwise>
|
586
|
-
</xsl:choose>
|
587
|
-
</xsl:variable>
|
588
|
-
|
589
|
-
<xsl:variable name="display-section">
|
590
|
-
<xsl:choose>
|
591
|
-
<xsl:when test="ancestor::ogc:annex and $level >= 2">true</xsl:when>
|
592
|
-
<xsl:when test="ancestor::ogc:annex">false</xsl:when>
|
593
|
-
<xsl:when test="$section = '0'">false</xsl:when>
|
537
|
+
<xsl:when test="ancestor-or-self::ogc:bibitem">false</xsl:when>
|
538
|
+
<xsl:when test="ancestor-or-self::ogc:term">false</xsl:when>
|
539
|
+
<xsl:when test="$level >= 3">false</xsl:when>
|
594
540
|
<xsl:otherwise>true</xsl:otherwise>
|
595
541
|
</xsl:choose>
|
596
542
|
</xsl:variable>
|
597
543
|
|
598
|
-
<xsl:variable name="type">
|
599
|
-
<xsl:value-of select="local-name(..)"/>
|
600
|
-
</xsl:variable>
|
601
|
-
|
602
|
-
<xsl:variable name="root">
|
603
|
-
<xsl:choose>
|
604
|
-
<xsl:when test="ancestor::ogc:annex">annex</xsl:when>
|
605
|
-
<xsl:when test="ancestor::ogc:clause">clause</xsl:when>
|
606
|
-
<xsl:when test="ancestor::ogc:terms">terms</xsl:when>
|
607
|
-
</xsl:choose>
|
608
|
-
</xsl:variable>
|
609
|
-
|
610
|
-
<item id="{$id}" level="{$level}" section="{$section}" display-section="{$display-section}" display="{$display}" type="{$type}" root="{$root}">
|
611
|
-
<xsl:attribute name="addon">
|
612
|
-
<xsl:if test="local-name(..) = 'annex'"><xsl:value-of select="../@obligation"/></xsl:if>
|
613
|
-
</xsl:attribute>
|
614
|
-
<xsl:apply-templates/>
|
615
|
-
</item>
|
616
544
|
|
617
|
-
<xsl:
|
618
|
-
<xsl:with-param name="sectionNum" select="$sectionNum"/>
|
619
|
-
</xsl:apply-templates>
|
545
|
+
<xsl:if test="$display = 'true'">
|
620
546
|
|
621
|
-
|
622
|
-
|
623
|
-
<xsl:template match="ogc:ogc-standard/ogc:preface/*" mode="contents">
|
624
|
-
<xsl:param name="sectionNum" select="'1'"/>
|
625
|
-
<xsl:variable name="section">
|
626
|
-
<xsl:number format="i" value="$sectionNum"/>
|
627
|
-
</xsl:variable>
|
628
|
-
<xsl:variable name="id">
|
629
|
-
<xsl:choose>
|
630
|
-
<xsl:when test="@id">
|
631
|
-
<xsl:value-of select="@id"/>
|
632
|
-
</xsl:when>
|
633
|
-
<xsl:otherwise>
|
634
|
-
<xsl:value-of select="local-name()"/>
|
635
|
-
</xsl:otherwise>
|
636
|
-
</xsl:choose>
|
637
|
-
</xsl:variable>
|
638
|
-
<xsl:if test="not(ogc:title)">
|
639
|
-
<item id="{$id}" level="1" section="{$section}" display-section="true" display="true" type="abstract" root="preface">
|
640
|
-
<xsl:if test="local-name() = 'foreword'">
|
641
|
-
<xsl:attribute name="display">false</xsl:attribute>
|
642
|
-
</xsl:if>
|
643
|
-
<xsl:choose>
|
644
|
-
<xsl:when test="not(ogc:title)">
|
645
|
-
<xsl:variable name="name" select="local-name()"/>
|
646
|
-
<xsl:call-template name="capitalize">
|
647
|
-
<xsl:with-param name="str" select="$name"/>
|
648
|
-
</xsl:call-template>
|
649
|
-
</xsl:when>
|
650
|
-
<xsl:otherwise>
|
651
|
-
<xsl:value-of select="ogc:title"/>
|
652
|
-
</xsl:otherwise>
|
653
|
-
</xsl:choose>
|
654
|
-
</item>
|
655
|
-
</xsl:if>
|
656
|
-
<xsl:apply-templates mode="contents">
|
657
|
-
<xsl:with-param name="sectionNum" select="$sectionNum"/>
|
658
|
-
</xsl:apply-templates>
|
659
|
-
</xsl:template>
|
660
|
-
|
661
|
-
<!-- Keywords -->
|
662
|
-
<xsl:template match="/ogc:ogc-standard/ogc:bibdata/ogc:keyword" mode="contents">
|
663
|
-
<xsl:param name="sectionNum" select="'1'"/>
|
664
|
-
<xsl:variable name="section">
|
665
|
-
<xsl:number format="i" value="$sectionNum"/>
|
666
|
-
</xsl:variable>
|
667
|
-
<item id="keywords" level="1" section="{$section}" display-section="true" display="true" type="abstract" root="preface">
|
668
|
-
<xsl:variable name="title-keywords">
|
669
|
-
<xsl:call-template name="getTitle">
|
670
|
-
<xsl:with-param name="name" select="'title-keywords'"/>
|
671
|
-
</xsl:call-template>
|
547
|
+
<xsl:variable name="section">
|
548
|
+
<xsl:call-template name="getSection"/>
|
672
549
|
</xsl:variable>
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
<!-- Submitting Organizations -->
|
677
|
-
<xsl:template match="/ogc:ogc-standard/ogc:bibdata/ogc:contributor[ogc:role/@type='author']/ogc:organization/ogc:name" mode="contents">
|
678
|
-
<xsl:param name="sectionNum" select="'1'"/>
|
679
|
-
<xsl:variable name="section">
|
680
|
-
<xsl:number format="i" value="$sectionNum"/>
|
681
|
-
</xsl:variable>
|
682
|
-
<item id="submitting_orgs" level="1" section="{$section}" display-section="true" display="true" type="abstract" root="preface">
|
683
|
-
<xsl:variable name="title-submitting-organizations">
|
684
|
-
<xsl:call-template name="getTitle">
|
685
|
-
<xsl:with-param name="name" select="'title-submitting-organizations'"/>
|
686
|
-
</xsl:call-template>
|
550
|
+
|
551
|
+
<xsl:variable name="title">
|
552
|
+
<xsl:call-template name="getName"/>
|
687
553
|
</xsl:variable>
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
</xsl:call-template>
|
700
|
-
</xsl:variable>
|
701
|
-
<xsl:value-of select="$title-figure"/>
|
702
|
-
<xsl:choose>
|
703
|
-
<xsl:when test="ancestor::ogc:annex">
|
704
|
-
<xsl:choose>
|
705
|
-
<xsl:when test="count(//ogc:annex) = 1">
|
706
|
-
<xsl:value-of select="/ogc:nist-standard/ogc:bibdata/ogc:ext/ogc:structuredidentifier/ogc:annexid"/><xsl:number format="-1" level="any" count="ogc:annex//ogc:figure"/>
|
707
|
-
</xsl:when>
|
708
|
-
<xsl:otherwise>
|
709
|
-
<xsl:number format="A.1-1" level="multiple" count="ogc:annex | ogc:figure"/>
|
710
|
-
</xsl:otherwise>
|
711
|
-
</xsl:choose>
|
712
|
-
</xsl:when>
|
713
|
-
<xsl:when test="ancestor::ogc:figure">
|
714
|
-
<xsl:for-each select="parent::*[1]">
|
715
|
-
<xsl:number format="1" level="any" count="ogc:figure[not(parent::ogc:figure)]"/>
|
716
|
-
</xsl:for-each>
|
717
|
-
<xsl:number format="-a" count="ogc:figure"/>
|
718
|
-
</xsl:when>
|
719
|
-
<xsl:otherwise>
|
720
|
-
<xsl:number format="1" level="any" count="ogc:figure[not(parent::ogc:figure)] | ogc:sourcecode[not(@unnumbered = 'true') and not(ancestor::ogc:example)]"/>
|
721
|
-
<!-- <xsl:number format="1.1-1" level="multiple" count="ogc:annex | ogc:figure"/> -->
|
722
|
-
</xsl:otherwise>
|
723
|
-
</xsl:choose>
|
724
|
-
</xsl:attribute>
|
725
|
-
<xsl:value-of select="ogc:name"/>
|
726
|
-
</item>
|
727
|
-
</xsl:template>
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
<xsl:template match="ogc:table[not(@unnumbered='true')]" mode="contents">
|
732
|
-
<xsl:param name="sectionNum"/>
|
733
|
-
<xsl:variable name="annex-id" select="ancestor::ogc:annex/@id"/>
|
734
|
-
<item level="" id="{@id}" display="false" type="table">
|
735
|
-
<xsl:attribute name="section">
|
736
|
-
<xsl:variable name="title-table">
|
737
|
-
<xsl:call-template name="getTitle">
|
738
|
-
<xsl:with-param name="name" select="'title-table'"/>
|
739
|
-
</xsl:call-template>
|
740
|
-
</xsl:variable>
|
741
|
-
<xsl:value-of select="$title-table"/>
|
742
|
-
<xsl:choose>
|
743
|
-
<xsl:when test="ancestor::*[local-name()='executivesummary']">
|
744
|
-
<xsl:text>ES-</xsl:text><xsl:number format="1" count="*[local-name()='executivesummary']//*[local-name()='table'][not(@unnumbered='true')]"/>
|
745
|
-
</xsl:when>
|
746
|
-
<xsl:when test="ancestor::*[local-name()='annex']">
|
747
|
-
<xsl:number format="A-" count="ogc:annex"/>
|
748
|
-
<xsl:number format="1" level="any" count="ogc:table[ancestor::ogc:annex[@id = $annex-id]][not(@unnumbered='true')]"/>
|
749
|
-
</xsl:when>
|
750
|
-
<xsl:otherwise>
|
751
|
-
<xsl:number format="1" level="any" count="*[local-name()='sections']//*[local-name()='table'][not(@unnumbered='true')] | *[local-name()='preface']//*[local-name()='table'][not(@unnumbered='true')]"/>
|
752
|
-
</xsl:otherwise>
|
753
|
-
</xsl:choose>
|
754
|
-
</xsl:attribute>
|
755
|
-
<xsl:value-of select="ogc:name/text()"/>
|
756
|
-
</item>
|
757
|
-
</xsl:template>
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
<xsl:template match="ogc:formula" mode="contents">
|
762
|
-
<item level="" id="{@id}" display="false">
|
763
|
-
<xsl:attribute name="section">
|
764
|
-
<xsl:variable name="title-formula">
|
765
|
-
<xsl:call-template name="getTitle">
|
766
|
-
<xsl:with-param name="name" select="'title-formula'"/>
|
767
|
-
</xsl:call-template>
|
768
|
-
</xsl:variable>
|
769
|
-
<xsl:value-of select="$title-formula"/><xsl:number format="(A.1)" level="multiple" count="ogc:annex | ogc:formula"/>
|
770
|
-
</xsl:attribute>
|
771
|
-
</item>
|
554
|
+
|
555
|
+
<xsl:variable name="type">
|
556
|
+
<xsl:value-of select="local-name()"/>
|
557
|
+
</xsl:variable>
|
558
|
+
|
559
|
+
<item id="{@id}" level="{$level}" section="{$section}" type="{$type}">
|
560
|
+
<xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item"/>
|
561
|
+
</item>
|
562
|
+
<xsl:apply-templates mode="contents"/>
|
563
|
+
</xsl:if>
|
564
|
+
|
772
565
|
</xsl:template>
|
773
566
|
|
774
|
-
<xsl:template match="ogc:fn" mode="contents"/>
|
775
567
|
<!-- ============================= -->
|
776
568
|
<!-- ============================= -->
|
777
569
|
|
@@ -828,7 +620,7 @@
|
|
828
620
|
<xsl:attribute name="text-align">
|
829
621
|
<xsl:choose>
|
830
622
|
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
831
|
-
<xsl:otherwise>
|
623
|
+
<xsl:otherwise>center</xsl:otherwise>
|
832
624
|
</xsl:choose>
|
833
625
|
</xsl:attribute>
|
834
626
|
<xsl:apply-templates/>
|
@@ -867,179 +659,30 @@
|
|
867
659
|
</fo:block>
|
868
660
|
</xsl:template>
|
869
661
|
|
870
|
-
|
871
|
-
<!-- Introduction -->
|
872
|
-
<xsl:template match="ogc:ogc-standard/ogc:preface/ogc:introduction" mode="introduction">
|
873
|
-
<fo:block break-after="page"/>
|
874
|
-
<xsl:apply-templates select="current()"/>
|
875
|
-
</xsl:template>
|
876
|
-
<!-- Abstract -->
|
877
|
-
<xsl:template match="ogc:ogc-standard/ogc:preface/ogc:abstract" mode="abstract">
|
878
|
-
<fo:block break-after="page"/>
|
879
|
-
<xsl:apply-templates select="current()"/>
|
880
|
-
</xsl:template>
|
881
|
-
<!-- Preface -->
|
882
|
-
<xsl:template match="ogc:ogc-standard/ogc:preface/ogc:foreword" mode="preface">
|
883
|
-
<xsl:param name="sectionNum"/>
|
884
|
-
<fo:block break-after="page"/>
|
885
|
-
<xsl:apply-templates select="current()">
|
886
|
-
<xsl:with-param name="sectionNum" select="$sectionNum"/>
|
887
|
-
</xsl:apply-templates>
|
888
|
-
</xsl:template>
|
889
|
-
<!-- Abstract, Preface -->
|
890
|
-
<xsl:template match="ogc:ogc-standard/ogc:preface/*">
|
891
|
-
<xsl:param name="sectionNum" select="'1'"/>
|
892
|
-
<xsl:if test="not(ogc:title)">
|
893
|
-
<xsl:variable name="id">
|
894
|
-
<xsl:choose>
|
895
|
-
<xsl:when test="@id">
|
896
|
-
<xsl:value-of select="@id"/>
|
897
|
-
</xsl:when>
|
898
|
-
<xsl:otherwise>
|
899
|
-
<xsl:value-of select="local-name()"/>
|
900
|
-
</xsl:otherwise>
|
901
|
-
</xsl:choose>
|
902
|
-
</xsl:variable>
|
903
|
-
<fo:block id="{$id}" font-size="13pt" font-weight="bold" margin-bottom="12pt" color="rgb(14, 26, 133)">
|
904
|
-
<xsl:number format="i." value="$sectionNum"/><fo:inline padding-right="3mm"> </fo:inline>
|
905
|
-
<xsl:variable name="name" select="local-name()"/>
|
906
|
-
<xsl:call-template name="capitalize">
|
907
|
-
<xsl:with-param name="str" select="$name"/>
|
908
|
-
</xsl:call-template>
|
909
|
-
</fo:block>
|
910
|
-
</xsl:if>
|
911
|
-
<xsl:apply-templates/>
|
912
|
-
</xsl:template>
|
913
|
-
<!-- Keywords -->
|
914
|
-
<xsl:template match="/ogc:ogc-standard/ogc:bibdata/ogc:keyword">
|
915
|
-
<xsl:param name="sectionNum" select="'1'"/>
|
916
|
-
<fo:block id="keywords" font-size="13pt" font-weight="bold" margin-top="13.5pt" margin-bottom="12pt" color="rgb(14, 26, 133)">
|
917
|
-
<xsl:number format="i." value="$sectionNum"/><fo:inline padding-right="2mm"> </fo:inline>
|
918
|
-
<xsl:variable name="title-keywords">
|
919
|
-
<xsl:call-template name="getTitle">
|
920
|
-
<xsl:with-param name="name" select="'title-keywords'"/>
|
921
|
-
</xsl:call-template>
|
922
|
-
</xsl:variable>
|
923
|
-
<xsl:value-of select="$title-keywords"/>
|
924
|
-
</fo:block>
|
925
|
-
<fo:block margin-bottom="12pt">The following are keywords to be used by search engines and document catalogues.</fo:block>
|
926
|
-
<fo:block margin-bottom="12pt">
|
927
|
-
<xsl:call-template name="insertKeywords">
|
928
|
-
<xsl:with-param name="sorting">no</xsl:with-param>
|
929
|
-
<xsl:with-param name="charAtEnd"/>
|
930
|
-
</xsl:call-template>
|
931
|
-
<!-- <xsl:for-each select="/ogc:ogc-standard/ogc:bibdata/ogc:keyword">
|
932
|
-
<xsl:value-of select="."/>
|
933
|
-
<xsl:if test="position() != last()">, </xsl:if>
|
934
|
-
</xsl:for-each> -->
|
935
|
-
</fo:block>
|
936
|
-
</xsl:template>
|
937
|
-
<!-- Submitting Organizations -->
|
938
|
-
<xsl:template match="/ogc:ogc-standard/ogc:bibdata/ogc:contributor[ogc:role/@type='author']/ogc:organization/ogc:name">
|
939
|
-
<xsl:param name="sectionNum" select="'1'"/>
|
940
|
-
<fo:block id="submitting_orgs" font-size="13pt" font-weight="bold" color="rgb(14, 26, 133)" margin-top="13.5pt" margin-bottom="12pt">
|
941
|
-
<xsl:number format="i." value="$sectionNum"/><fo:inline padding-right="3mm"> </fo:inline>
|
942
|
-
<xsl:variable name="title-submitting-organizations">
|
943
|
-
<xsl:call-template name="getTitle">
|
944
|
-
<xsl:with-param name="name" select="'title-submitting-organizations'"/>
|
945
|
-
</xsl:call-template>
|
946
|
-
</xsl:variable>
|
947
|
-
<xsl:value-of select="$title-submitting-organizations"/>
|
948
|
-
</fo:block>
|
949
|
-
<fo:block margin-bottom="12pt">The following organizations submitted this Document to the Open Geospatial Consortium (OGC):</fo:block>
|
950
|
-
<fo:list-block provisional-distance-between-starts="6.5mm" margin-bottom="12pt" line-height="115%">
|
951
|
-
<xsl:for-each select="/ogc:ogc-standard/ogc:bibdata/ogc:contributor[ogc:role/@type='author']/ogc:organization/ogc:name">
|
952
|
-
<fo:list-item>
|
953
|
-
<fo:list-item-label end-indent="label-end()">
|
954
|
-
<fo:block>—</fo:block>
|
955
|
-
</fo:list-item-label>
|
956
|
-
<fo:list-item-body start-indent="body-start()" line-height-shift-adjustment="disregard-shifts">
|
957
|
-
<fo:block>
|
958
|
-
<xsl:apply-templates/>
|
959
|
-
</fo:block>
|
960
|
-
</fo:list-item-body>
|
961
|
-
</fo:list-item>
|
962
|
-
</xsl:for-each>
|
963
|
-
</fo:list-block>
|
964
|
-
</xsl:template>
|
965
|
-
|
966
|
-
|
967
|
-
<!-- clause, terms, clause, ...-->
|
968
|
-
<xsl:template match="ogc:ogc-standard/ogc:sections/*">
|
969
|
-
<xsl:param name="sectionNum"/>
|
970
|
-
<xsl:param name="sectionNumSkew" select="0"/>
|
662
|
+
<xsl:template match="/*/*[local-name() = 'preface']/*" priority="3">
|
971
663
|
<fo:block>
|
972
|
-
<xsl:
|
973
|
-
<xsl:
|
974
|
-
<xsl:attribute name="space-before">18pt</xsl:attribute>
|
975
|
-
</xsl:if>
|
976
|
-
<xsl:variable name="sectionNum_">
|
977
|
-
<xsl:choose>
|
978
|
-
<xsl:when test="$sectionNum"><xsl:value-of select="$sectionNum"/></xsl:when>
|
979
|
-
<xsl:when test="$sectionNumSkew != 0">
|
980
|
-
<xsl:variable name="number"><xsl:number count="ogc:sections/ogc:clause[not(@id='_scope') and not(@id='conformance') and not(@id='_conformance')]"/></xsl:variable> <!-- | ogc:sections/ogc:terms -->
|
981
|
-
<xsl:value-of select="$number + $sectionNumSkew"/>
|
982
|
-
</xsl:when>
|
983
|
-
<xsl:otherwise>
|
984
|
-
<xsl:number count="*"/>
|
985
|
-
</xsl:otherwise>
|
986
|
-
</xsl:choose>
|
987
|
-
</xsl:variable>
|
988
|
-
<xsl:if test="not(ogc:title)">
|
989
|
-
<fo:block margin-top="3pt" margin-bottom="12pt">
|
990
|
-
<xsl:value-of select="$sectionNum_"/><xsl:number format=".1 " level="multiple" count="ogc:clause[not(@id='_scope') and not(@id='conformance') and not(@id='_conformance')]"/>
|
991
|
-
</fo:block>
|
992
|
-
</xsl:if>
|
993
|
-
<xsl:apply-templates>
|
994
|
-
<xsl:with-param name="sectionNum" select="$sectionNum_"/>
|
995
|
-
</xsl:apply-templates>
|
664
|
+
<xsl:call-template name="setId"/>
|
665
|
+
<xsl:apply-templates/>
|
996
666
|
</fo:block>
|
997
667
|
</xsl:template>
|
998
668
|
|
999
|
-
|
1000
669
|
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
<fo:block margin-top="3pt">
|
1010
|
-
<fo:inline font-weight="bold" padding-right="3mm">
|
1011
|
-
<xsl:value-of select="$section"/>
|
1012
|
-
</fo:inline>
|
1013
|
-
<xsl:apply-templates>
|
1014
|
-
<xsl:with-param name="sectionNum" select="$sectionNum"/>
|
1015
|
-
<xsl:with-param name="inline" select="'true'"/>
|
1016
|
-
</xsl:apply-templates>
|
670
|
+
<!-- ====== -->
|
671
|
+
<!-- title -->
|
672
|
+
<!-- ====== -->
|
673
|
+
|
674
|
+
<xsl:template match="ogc:annex/ogc:title">
|
675
|
+
<fo:block font-size="12pt" text-align="center" margin-bottom="12pt" keep-with-next="always" color="{$color}">
|
676
|
+
<xsl:apply-templates/>
|
1017
677
|
</fo:block>
|
1018
678
|
</xsl:template>
|
1019
679
|
|
1020
|
-
|
1021
680
|
<xsl:template match="ogc:title">
|
1022
|
-
<xsl:param name="sectionNum"/>
|
1023
|
-
|
1024
|
-
<xsl:variable name="parent-name" select="local-name(..)"/>
|
1025
|
-
<xsl:variable name="references_num_current">
|
1026
|
-
<xsl:number level="any" count="ogc:references"/>
|
1027
|
-
</xsl:variable>
|
1028
|
-
|
1029
|
-
<xsl:variable name="id">
|
1030
|
-
<xsl:call-template name="getId"/>
|
1031
|
-
</xsl:variable>
|
1032
681
|
|
1033
682
|
<xsl:variable name="level">
|
1034
683
|
<xsl:call-template name="getLevel"/>
|
1035
684
|
</xsl:variable>
|
1036
685
|
|
1037
|
-
<xsl:variable name="section">
|
1038
|
-
<xsl:call-template name="getSection">
|
1039
|
-
<xsl:with-param name="sectionNum" select="$sectionNum"/>
|
1040
|
-
</xsl:call-template>
|
1041
|
-
</xsl:variable>
|
1042
|
-
|
1043
686
|
<xsl:variable name="font-size">
|
1044
687
|
<xsl:choose>
|
1045
688
|
<xsl:when test="ancestor::ogc:preface and $level >= 2">12pt</xsl:when>
|
@@ -1059,59 +702,19 @@
|
|
1059
702
|
</xsl:choose>
|
1060
703
|
</xsl:variable>
|
1061
704
|
|
1062
|
-
<xsl:
|
1063
|
-
|
1064
|
-
|
1065
|
-
<xsl:
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
<xsl:value-of select="$linebreak"/>
|
1073
|
-
<xsl:apply-templates/>
|
1074
|
-
</fo:block>
|
1075
|
-
</xsl:when>
|
1076
|
-
<xsl:otherwise>
|
1077
|
-
<xsl:element name="{$element-name}">
|
1078
|
-
<xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute>
|
1079
|
-
<xsl:attribute name="font-size"><xsl:value-of select="$font-size"/></xsl:attribute>
|
1080
|
-
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1081
|
-
<xsl:attribute name="space-before">13.5pt</xsl:attribute>
|
1082
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1083
|
-
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1084
|
-
<xsl:attribute name="color"><xsl:value-of select="$color"/></xsl:attribute>
|
1085
|
-
<xsl:if test="$section != ''">
|
1086
|
-
<xsl:if test="$section != '0'">
|
1087
|
-
<xsl:value-of select="$section"/><xsl:text>.</xsl:text>
|
1088
|
-
<xsl:choose>
|
1089
|
-
<xsl:when test="$level >= 5"/>
|
1090
|
-
<xsl:when test="$level >= 4">
|
1091
|
-
<fo:inline padding-right="4mm"> </fo:inline>
|
1092
|
-
</xsl:when>
|
1093
|
-
<xsl:when test="$level >= 3 and ancestor::ogc:terms">
|
1094
|
-
<fo:inline padding-right="2mm"> </fo:inline>
|
1095
|
-
</xsl:when>
|
1096
|
-
<xsl:when test="$level >= 2">
|
1097
|
-
<fo:inline padding-right="3mm"> </fo:inline>
|
1098
|
-
</xsl:when>
|
1099
|
-
<xsl:when test="$level = 1">
|
1100
|
-
<fo:inline padding-right="3mm"> </fo:inline>
|
1101
|
-
</xsl:when>
|
1102
|
-
<xsl:otherwise>
|
1103
|
-
<fo:inline padding-right="1mm"> </fo:inline>
|
1104
|
-
</xsl:otherwise>
|
1105
|
-
</xsl:choose>
|
1106
|
-
</xsl:if>
|
1107
|
-
</xsl:if>
|
1108
|
-
<xsl:apply-templates/>
|
1109
|
-
</xsl:element>
|
1110
|
-
</xsl:otherwise>
|
1111
|
-
</xsl:choose>
|
1112
|
-
|
705
|
+
<xsl:element name="{$element-name}">
|
706
|
+
<xsl:attribute name="font-size"><xsl:value-of select="$font-size"/></xsl:attribute>
|
707
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
708
|
+
<xsl:attribute name="space-before">13.5pt</xsl:attribute>
|
709
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
710
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
711
|
+
<xsl:attribute name="color"><xsl:value-of select="$color"/></xsl:attribute>
|
712
|
+
<xsl:apply-templates/>
|
713
|
+
</xsl:element>
|
714
|
+
|
1113
715
|
</xsl:template>
|
1114
|
-
|
716
|
+
<!-- ====== -->
|
717
|
+
<!-- ====== -->
|
1115
718
|
|
1116
719
|
<xsl:template match="ogc:p">
|
1117
720
|
<xsl:param name="inline" select="'false'"/>
|
@@ -1165,7 +768,7 @@
|
|
1165
768
|
<p id="_8e5cf917-f75a-4a49-b0aa-1714cb6cf954">Formerly denoted as 15 % (m/m).</p>
|
1166
769
|
</fn>
|
1167
770
|
-->
|
1168
|
-
<xsl:template match="ogc:title
|
771
|
+
<xsl:template match="ogc:title//ogc:fn | ogc:name//ogc:fn | ogc:p/ogc:fn[not(ancestor::ogc:table)] | ogc:p/*/ogc:fn[not(ancestor::ogc:table)] | ogc:sourcecode/ogc:fn[not(ancestor::ogc:table)]" priority="2">
|
1169
772
|
<fo:footnote keep-with-previous.within-line="always">
|
1170
773
|
<xsl:variable name="number" select="@reference"/>
|
1171
774
|
|
@@ -1193,75 +796,7 @@
|
|
1193
796
|
</fo:block>
|
1194
797
|
</xsl:template>
|
1195
798
|
|
1196
|
-
<xsl:template match="ogc:review">
|
1197
|
-
<!-- comment 2019-11-29 -->
|
1198
|
-
<!-- <fo:block font-weight="bold">Review:</fo:block>
|
1199
|
-
<xsl:apply-templates /> -->
|
1200
|
-
</xsl:template>
|
1201
|
-
|
1202
|
-
<xsl:template match="text()">
|
1203
|
-
<xsl:value-of select="."/>
|
1204
|
-
</xsl:template>
|
1205
|
-
|
1206
|
-
|
1207
|
-
<xsl:template match="ogc:image"> <!-- only for without outer figure -->
|
1208
|
-
<fo:block margin-top="12pt" margin-bottom="6pt">
|
1209
|
-
<fo:external-graphic src="{@src}" width="100%" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image {@alt}"/> <!-- content-width="75%" -->
|
1210
|
-
</fo:block>
|
1211
|
-
</xsl:template>
|
1212
799
|
|
1213
|
-
<xsl:template match="ogc:figure">
|
1214
|
-
<fo:block-container id="{@id}">
|
1215
|
-
<fo:block>
|
1216
|
-
<xsl:apply-templates/>
|
1217
|
-
</fo:block>
|
1218
|
-
<xsl:call-template name="fn_display_figure"/>
|
1219
|
-
<xsl:for-each select="ogc:note//ogc:p">
|
1220
|
-
<xsl:call-template name="note"/>
|
1221
|
-
</xsl:for-each>
|
1222
|
-
<fo:block font-size="11pt" font-weight="bold" text-align="center" margin-top="12pt" margin-bottom="6pt" keep-with-previous="always">
|
1223
|
-
<xsl:variable name="title-figure">
|
1224
|
-
<xsl:call-template name="getTitle">
|
1225
|
-
<xsl:with-param name="name" select="'title-figure'"/>
|
1226
|
-
</xsl:call-template>
|
1227
|
-
</xsl:variable>
|
1228
|
-
<xsl:choose>
|
1229
|
-
<xsl:when test="ancestor::ogc:annex">
|
1230
|
-
<xsl:choose>
|
1231
|
-
<xsl:when test="local-name(..) = 'figure'">
|
1232
|
-
<xsl:number format="a) "/>
|
1233
|
-
</xsl:when>
|
1234
|
-
<xsl:otherwise>
|
1235
|
-
<xsl:value-of select="$title-figure"/><xsl:number format="A.1-1" level="multiple" count="ogc:annex | ogc:figure"/>
|
1236
|
-
</xsl:otherwise>
|
1237
|
-
</xsl:choose>
|
1238
|
-
|
1239
|
-
</xsl:when>
|
1240
|
-
<xsl:otherwise>
|
1241
|
-
<xsl:value-of select="$title-figure"/><xsl:number format="1" level="any" count="ogc:sourcecode[not(@unnumbered='true') and not(ancestor::ogc:example)] | ogc:figure"/>
|
1242
|
-
</xsl:otherwise>
|
1243
|
-
</xsl:choose>
|
1244
|
-
<xsl:if test="ogc:name">
|
1245
|
-
<xsl:if test="not(local-name(..) = 'figure')">
|
1246
|
-
<xsl:text> — </xsl:text>
|
1247
|
-
</xsl:if>
|
1248
|
-
<xsl:value-of select="ogc:name"/>
|
1249
|
-
</xsl:if>
|
1250
|
-
</fo:block>
|
1251
|
-
</fo:block-container>
|
1252
|
-
</xsl:template>
|
1253
|
-
|
1254
|
-
<xsl:template match="ogc:figure/ogc:name"/>
|
1255
|
-
<xsl:template match="ogc:figure/ogc:fn"/>
|
1256
|
-
<xsl:template match="ogc:figure/ogc:note"/>
|
1257
|
-
|
1258
|
-
|
1259
|
-
<xsl:template match="ogc:figure/ogc:image">
|
1260
|
-
<fo:block text-align="center">
|
1261
|
-
<fo:external-graphic src="{@src}" width="100%" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image {@alt}"/> <!-- content-width="75%" -->
|
1262
|
-
</fo:block>
|
1263
|
-
</xsl:template>
|
1264
|
-
|
1265
800
|
|
1266
801
|
<xsl:template match="ogc:bibitem">
|
1267
802
|
<fo:block id="{@id}" margin-bottom="12pt" start-indent="12mm" text-indent="-12mm" line-height="115%">
|
@@ -1308,7 +843,7 @@
|
|
1308
843
|
</xsl:template>
|
1309
844
|
|
1310
845
|
|
1311
|
-
<xsl:template match="ogc:bibitem/ogc:note">
|
846
|
+
<xsl:template match="ogc:bibitem/ogc:note" priority="2">
|
1312
847
|
<fo:footnote>
|
1313
848
|
<xsl:variable name="number">
|
1314
849
|
<xsl:choose>
|
@@ -1339,7 +874,7 @@
|
|
1339
874
|
|
1340
875
|
|
1341
876
|
<xsl:template match="ogc:ul | ogc:ol">
|
1342
|
-
<fo:list-block provisional-distance-between-starts="6.5mm"
|
877
|
+
<fo:list-block provisional-distance-between-starts="6.5mm" space-after="12pt" line-height="115%">
|
1343
878
|
<xsl:if test="ancestor::ogc:ul | ancestor::ogc:ol">
|
1344
879
|
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
1345
880
|
</xsl:if>
|
@@ -1351,7 +886,7 @@
|
|
1351
886
|
</xsl:template>
|
1352
887
|
|
1353
888
|
<xsl:template match="ogc:li">
|
1354
|
-
<fo:list-item>
|
889
|
+
<fo:list-item id="{@id}">
|
1355
890
|
<fo:list-item-label end-indent="label-end()">
|
1356
891
|
<fo:block>
|
1357
892
|
<xsl:choose>
|
@@ -1380,36 +915,28 @@
|
|
1380
915
|
</fo:block>
|
1381
916
|
</fo:list-item-label>
|
1382
917
|
<fo:list-item-body start-indent="body-start()" line-height-shift-adjustment="disregard-shifts">
|
1383
|
-
<
|
918
|
+
<fo:block>
|
919
|
+
<xsl:apply-templates/>
|
920
|
+
</fo:block>
|
1384
921
|
</fo:list-item-body>
|
1385
922
|
</fo:list-item>
|
1386
923
|
</xsl:template>
|
1387
924
|
|
1388
|
-
<xsl:template match="ogc:ul/ogc:note | ogc:ol/ogc:note">
|
925
|
+
<xsl:template match="ogc:ul/ogc:note | ogc:ol/ogc:note" priority="2">
|
1389
926
|
<fo:list-item font-size="10pt">
|
1390
927
|
<fo:list-item-label><fo:block/></fo:list-item-label>
|
1391
928
|
<fo:list-item-body>
|
1392
|
-
<
|
929
|
+
<fo:block>
|
930
|
+
<xsl:apply-templates select="ogc:name" mode="presentation"/>
|
931
|
+
<xsl:apply-templates/>
|
932
|
+
</fo:block>
|
1393
933
|
</fo:list-item-body>
|
1394
934
|
</fo:list-item>
|
1395
935
|
</xsl:template>
|
1396
936
|
|
1397
|
-
|
1398
|
-
<xsl:param name="sectionNum"/>
|
1399
|
-
<fo:block id="{@id}">
|
1400
|
-
<xsl:apply-templates>
|
1401
|
-
<xsl:with-param name="sectionNum" select="$sectionNum"/>
|
1402
|
-
</xsl:apply-templates>
|
1403
|
-
</fo:block>
|
1404
|
-
</xsl:template>
|
937
|
+
|
1405
938
|
|
1406
|
-
<xsl:template match="ogc:preferred">
|
1407
|
-
<xsl:param name="sectionNum"/>
|
1408
|
-
<xsl:variable name="section">
|
1409
|
-
<xsl:call-template name="getSection">
|
1410
|
-
<xsl:with-param name="sectionNum" select="$sectionNum"/>
|
1411
|
-
</xsl:call-template>
|
1412
|
-
</xsl:variable>
|
939
|
+
<xsl:template match="ogc:preferred">
|
1413
940
|
<xsl:variable name="level">
|
1414
941
|
<xsl:call-template name="getLevel"/>
|
1415
942
|
</xsl:variable>
|
@@ -1421,9 +948,7 @@
|
|
1421
948
|
</xsl:variable>
|
1422
949
|
<fo:block font-size="{$font-size}">
|
1423
950
|
<fo:block font-weight="bold" keep-with-next="always">
|
1424
|
-
<
|
1425
|
-
<xsl:value-of select="$section"/><xsl:text>.</xsl:text>
|
1426
|
-
</fo:inline>
|
951
|
+
<xsl:apply-templates select="ancestor::ogc:term/ogc:name" mode="presentation"/>
|
1427
952
|
</fo:block>
|
1428
953
|
<fo:block font-weight="bold" keep-with-next="always" line-height="1">
|
1429
954
|
<xsl:apply-templates/>
|
@@ -1431,126 +956,29 @@
|
|
1431
956
|
</fo:block>
|
1432
957
|
</xsl:template>
|
1433
958
|
|
1434
|
-
<xsl:template match="ogc:admitted">
|
1435
|
-
<fo:block font-size="11pt">
|
1436
|
-
<xsl:apply-templates/>
|
1437
|
-
</fo:block>
|
1438
|
-
</xsl:template>
|
1439
|
-
|
1440
|
-
<xsl:template match="ogc:deprecates">
|
1441
|
-
<xsl:variable name="title-deprecated">
|
1442
|
-
<xsl:call-template name="getTitle">
|
1443
|
-
<xsl:with-param name="name" select="'title-deprecated'"/>
|
1444
|
-
</xsl:call-template>
|
1445
|
-
</xsl:variable>
|
1446
|
-
<fo:block><xsl:value-of select="$title-deprecated"/>: <xsl:apply-templates/></fo:block>
|
1447
|
-
</xsl:template>
|
1448
|
-
|
1449
|
-
<xsl:template match="ogc:definition[preceding-sibling::ogc:domain]">
|
1450
|
-
<xsl:apply-templates/>
|
1451
|
-
</xsl:template>
|
1452
|
-
<xsl:template match="ogc:definition[preceding-sibling::ogc:domain]/ogc:p">
|
1453
|
-
<fo:inline> <xsl:apply-templates/></fo:inline>
|
1454
|
-
<fo:block> </fo:block>
|
1455
|
-
</xsl:template>
|
1456
|
-
|
1457
|
-
<xsl:template match="ogc:definition">
|
1458
|
-
<fo:block space-after="6pt">
|
1459
|
-
<xsl:apply-templates/>
|
1460
|
-
</fo:block>
|
1461
|
-
</xsl:template>
|
1462
|
-
|
1463
|
-
<xsl:template match="ogc:termsource">
|
1464
|
-
<fo:block margin-bottom="12pt" keep-with-previous="always">
|
1465
|
-
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
1466
|
-
<fo:basic-link internal-destination="{ogc:origin/@bibitemid}" fox:alt-text="{ogc:origin/@citeas}">
|
1467
|
-
<xsl:text>[</xsl:text>
|
1468
|
-
<xsl:variable name="title-source">
|
1469
|
-
<xsl:call-template name="getTitle">
|
1470
|
-
<xsl:with-param name="name" select="'title-source'"/>
|
1471
|
-
</xsl:call-template>
|
1472
|
-
</xsl:variable>
|
1473
|
-
<xsl:value-of select="$title-source"/>
|
1474
|
-
<xsl:text>: </xsl:text>
|
1475
|
-
<fo:inline color="blue" text-decoration="underline">
|
1476
|
-
<xsl:value-of select="ogc:origin/@citeas"/>
|
1477
|
-
|
1478
|
-
<xsl:apply-templates select="ogc:origin/ogc:localityStack"/>
|
1479
|
-
|
1480
|
-
</fo:inline>
|
1481
|
-
</fo:basic-link>
|
1482
|
-
<xsl:apply-templates select="ogc:modification"/>
|
1483
|
-
<xsl:text>]</xsl:text>
|
1484
|
-
</fo:block>
|
1485
|
-
</xsl:template>
|
1486
|
-
|
1487
|
-
|
1488
|
-
<xsl:template match="ogc:modification/ogc:p">
|
1489
|
-
<fo:inline><xsl:apply-templates/></fo:inline>
|
1490
|
-
</xsl:template>
|
1491
|
-
|
1492
|
-
<xsl:template match="ogc:termnote">
|
1493
|
-
<fo:block font-size="10pt" margin-bottom="12pt">
|
1494
|
-
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
1495
|
-
<xsl:variable name="title-note-to-entry">
|
1496
|
-
<xsl:call-template name="getTitle">
|
1497
|
-
<xsl:with-param name="name" select="'title-note-to-entry'"/>
|
1498
|
-
</xsl:call-template>
|
1499
|
-
</xsl:variable>
|
1500
|
-
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($title-note-to-entry),'#',$num)"/>
|
1501
|
-
<xsl:apply-templates/>
|
1502
|
-
</fo:block>
|
1503
|
-
</xsl:template>
|
1504
|
-
|
1505
|
-
<xsl:template match="ogc:termnote/ogc:p">
|
1506
|
-
<fo:inline><xsl:apply-templates/></fo:inline>
|
1507
|
-
</xsl:template>
|
1508
|
-
|
1509
|
-
<xsl:template match="ogc:domain">
|
1510
|
-
<fo:inline><<xsl:apply-templates/>></fo:inline>
|
1511
|
-
</xsl:template>
|
1512
|
-
|
1513
959
|
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
<xsl:with-param name="name" select="'title-example'"/>
|
1519
|
-
</xsl:call-template>
|
1520
|
-
</xsl:variable>
|
1521
|
-
<fo:inline padding-right="10mm"><xsl:value-of select="normalize-space($title-example)"/></fo:inline>
|
960
|
+
<!-- [position() > 1] -->
|
961
|
+
<xsl:template match="ogc:references[not(@normative='true')]">
|
962
|
+
<fo:block break-after="page"/>
|
963
|
+
<fo:block id="{@id}" line-height="120%">
|
1522
964
|
<xsl:apply-templates/>
|
1523
965
|
</fo:block>
|
1524
966
|
</xsl:template>
|
1525
|
-
|
1526
|
-
<xsl:template match="ogc:termexample/ogc:p">
|
1527
|
-
<fo:inline><xsl:apply-templates/></fo:inline>
|
1528
|
-
</xsl:template>
|
1529
|
-
|
1530
|
-
|
1531
|
-
<xsl:template match="ogc:annex">
|
1532
|
-
<fo:block break-after="page"/>
|
1533
|
-
<xsl:apply-templates/>
|
1534
|
-
</xsl:template>
|
1535
967
|
|
1536
|
-
|
1537
|
-
|
1538
|
-
<xsl:template match="ogc:references[@id != '_normative_references' and @id != '_references']">
|
1539
|
-
<fo:block break-after="page"/>
|
1540
|
-
<fo:block line-height="120%">
|
968
|
+
<xsl:template match="ogc:annex//ogc:references">
|
969
|
+
<fo:block id="{@id}">
|
1541
970
|
<xsl:apply-templates/>
|
1542
971
|
</fo:block>
|
1543
972
|
</xsl:template>
|
1544
973
|
|
1545
|
-
|
1546
974
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
1547
975
|
<!-- <xsl:template match="ogc:references[@id = '_bibliography']/ogc:bibitem"> [position() > 1] -->
|
1548
|
-
<xsl:template match="ogc:references[@
|
1549
|
-
<fo:list-block margin-bottom="12pt" provisional-distance-between-starts="12mm">
|
976
|
+
<xsl:template match="ogc:references[not(@normative='true')]/ogc:bibitem">
|
977
|
+
<fo:list-block id="{@id}" margin-bottom="12pt" provisional-distance-between-starts="12mm">
|
1550
978
|
<fo:list-item>
|
1551
979
|
<fo:list-item-label end-indent="label-end()">
|
1552
980
|
<fo:block>
|
1553
|
-
<fo:inline
|
981
|
+
<fo:inline>
|
1554
982
|
<xsl:number format="[1]"/>
|
1555
983
|
</fo:inline>
|
1556
984
|
</fo:block>
|
@@ -1618,234 +1046,18 @@
|
|
1618
1046
|
</xsl:template>
|
1619
1047
|
|
1620
1048
|
<!-- <xsl:template match="ogc:references[@id = '_bibliography']/ogc:bibitem" mode="contents"/> [position() > 1] -->
|
1621
|
-
<xsl:template match="ogc:references[@
|
1049
|
+
<xsl:template match="ogc:references[not(@normative='true')]/ogc:bibitem" mode="contents"/>
|
1622
1050
|
|
1623
1051
|
<!-- <xsl:template match="ogc:references[@id = '_bibliography']/ogc:bibitem/ogc:title"> [position() > 1]-->
|
1624
|
-
<xsl:template match="ogc:references[@
|
1052
|
+
<xsl:template match="ogc:references[not(@normative='true')]/ogc:bibitem/ogc:title">
|
1625
1053
|
<fo:inline font-style="italic">
|
1626
1054
|
<xsl:apply-templates/>
|
1627
1055
|
</fo:inline>
|
1628
1056
|
</xsl:template>
|
1629
1057
|
|
1630
|
-
<xsl:template match="ogc:quote">
|
1631
|
-
<fo:block margin-top="12pt" margin-left="13mm" margin-right="12mm">
|
1632
|
-
<xsl:apply-templates select=".//ogc:p"/>
|
1633
|
-
</fo:block>
|
1634
|
-
<xsl:if test="ogc:author or ogc:source">
|
1635
|
-
<fo:block text-align="right" margin-right="25mm">
|
1636
|
-
<!-- — ISO, ISO 7301:2011, Clause 1 -->
|
1637
|
-
<xsl:if test="ogc:author">
|
1638
|
-
<xsl:text>— </xsl:text><xsl:value-of select="ogc:author"/>
|
1639
|
-
</xsl:if>
|
1640
|
-
<xsl:if test="ogc:source">
|
1641
|
-
<xsl:text>, </xsl:text>
|
1642
|
-
<xsl:apply-templates select="ogc:source"/>
|
1643
|
-
</xsl:if>
|
1644
|
-
</fo:block>
|
1645
|
-
</xsl:if>
|
1646
|
-
</xsl:template>
|
1647
|
-
|
1648
|
-
<xsl:template match="ogc:source">
|
1649
|
-
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
1650
|
-
<xsl:value-of select="@citeas"/> <!-- disable-output-escaping="yes" -->
|
1651
|
-
<xsl:apply-templates select="ogc:localityStack"/>
|
1652
|
-
</fo:basic-link>
|
1653
|
-
</xsl:template>
|
1654
|
-
|
1655
|
-
|
1656
|
-
<xsl:template match="ogc:xref">
|
1657
|
-
<fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}">
|
1658
|
-
<xsl:variable name="section" select="xalan:nodeset($contents)//item[@id = current()/@target]/@section"/>
|
1659
|
-
<!-- <xsl:if test="not(starts-with($section, 'Figure') or starts-with($section, 'Table'))"> -->
|
1660
|
-
<xsl:attribute name="color">blue</xsl:attribute>
|
1661
|
-
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1662
|
-
<!-- </xsl:if> -->
|
1663
|
-
<xsl:variable name="type" select="xalan:nodeset($contents)//item[@id = current()/@target]/@type"/>
|
1664
|
-
<xsl:variable name="root" select="xalan:nodeset($contents)//item[@id = current()/@target]/@root"/>
|
1665
1058
|
|
1666
|
-
<xsl:variable name="title-clause">
|
1667
|
-
<xsl:call-template name="getTitle">
|
1668
|
-
<xsl:with-param name="name" select="'title-clause'"/>
|
1669
|
-
</xsl:call-template>
|
1670
|
-
</xsl:variable>
|
1671
|
-
<xsl:variable name="title-annex">
|
1672
|
-
<xsl:call-template name="getTitle">
|
1673
|
-
<xsl:with-param name="name" select="'title-annex'"/>
|
1674
|
-
</xsl:call-template>
|
1675
|
-
</xsl:variable>
|
1676
|
-
|
1677
|
-
<xsl:choose>
|
1678
|
-
<xsl:when test="normalize-space(.) != ''">
|
1679
|
-
<xsl:apply-templates/>
|
1680
|
-
</xsl:when>
|
1681
|
-
<xsl:otherwise>
|
1682
|
-
<xsl:choose>
|
1683
|
-
<xsl:when test="$type = 'clause' and $root != 'annex'"><xsl:value-of select="$title-clause"/></xsl:when><!-- and not (ancestor::annex) -->
|
1684
|
-
<xsl:when test="$type = 'term' and ($root = 'clause' or $root = 'terms')"><xsl:value-of select="$title-clause"/></xsl:when>
|
1685
|
-
<xsl:when test="$type = 'clause' and $root = 'annex'"><xsl:value-of select="$title-annex"/></xsl:when>
|
1686
|
-
<xsl:otherwise/> <!-- <xsl:value-of select="$type"/> -->
|
1687
|
-
</xsl:choose>
|
1688
|
-
<xsl:value-of select="$section"/>
|
1689
|
-
</xsl:otherwise>
|
1690
|
-
</xsl:choose>
|
1691
|
-
</fo:basic-link>
|
1692
|
-
</xsl:template>
|
1693
1059
|
|
1694
|
-
<xsl:template match="ogc:sourcecode" priority="2">
|
1695
|
-
<xsl:call-template name="sourcecode"/>
|
1696
|
-
<xsl:variable name="title-figure">
|
1697
|
-
<xsl:call-template name="getTitle">
|
1698
|
-
<xsl:with-param name="name" select="'title-figure'"/>
|
1699
|
-
</xsl:call-template>
|
1700
|
-
</xsl:variable>
|
1701
|
-
<xsl:choose>
|
1702
|
-
<xsl:when test="@unnumbered='true'"/>
|
1703
|
-
<xsl:when test="ancestor::ogc:example"/>
|
1704
|
-
<xsl:when test="ancestor::ogc:td"/>
|
1705
|
-
<xsl:when test="ancestor::ogc:annex">
|
1706
|
-
<xsl:variable name="id_annex" select="ancestor::ogc:annex/@id"/>
|
1707
|
-
<xsl:choose>
|
1708
|
-
<xsl:when test="count(//ogc:annex) = 1">
|
1709
|
-
<xsl:value-of select="/ogc:nist-standard/ogc:bibdata/ogc:ext/ogc:structuredidentifier/ogc:annexid"/><xsl:number format="-1" level="any" count="ogc:annex//ogc:sourcecode"/>
|
1710
|
-
</xsl:when>
|
1711
|
-
<xsl:otherwise>
|
1712
|
-
<fo:block font-size="11pt" font-weight="bold" text-align="center" margin-bottom="12pt">
|
1713
|
-
<xsl:value-of select="$title-figure"/>
|
1714
|
-
<xsl:number format="A." level="multiple" count="ogc:annex"/>
|
1715
|
-
<xsl:number format="1" level="any" count="ogc:sourcecode[ancestor::ogc:annex/@id = $id_annex and not(@unnumbered='true') and not(ancestor::ogc:example)]"/>
|
1716
|
-
<xsl:if test="ogc:name">
|
1717
|
-
<xsl:text> — </xsl:text>
|
1718
|
-
<xsl:apply-templates select="ogc:name/*"/>
|
1719
|
-
</xsl:if>
|
1720
|
-
</fo:block>
|
1721
|
-
</xsl:otherwise>
|
1722
|
-
</xsl:choose>
|
1723
|
-
</xsl:when>
|
1724
|
-
<xsl:otherwise>
|
1725
|
-
<fo:block font-size="11pt" font-weight="bold" text-align="center" margin-bottom="12pt">
|
1726
|
-
<xsl:value-of select="$title-figure"/>
|
1727
|
-
<xsl:number format="1" level="any" count="ogc:sourcecode[not(@unnumbered='true') and not(ancestor::ogc:example)] | ogc:figure"/>
|
1728
|
-
<xsl:if test="ogc:name">
|
1729
|
-
<xsl:text> — </xsl:text>
|
1730
|
-
<xsl:apply-templates select="ogc:name/*"/>
|
1731
|
-
</xsl:if>
|
1732
|
-
</fo:block>
|
1733
|
-
</xsl:otherwise>
|
1734
|
-
</xsl:choose>
|
1735
|
-
</xsl:template>
|
1736
|
-
|
1737
|
-
<xsl:template match="ogc:sourcecode/text()">
|
1738
|
-
<xsl:variable name="text">
|
1739
|
-
<xsl:call-template name="add-zero-spaces-equal"/>
|
1740
|
-
</xsl:variable>
|
1741
|
-
<xsl:call-template name="add-zero-spaces">
|
1742
|
-
<xsl:with-param name="text" select="$text"/>
|
1743
|
-
</xsl:call-template>
|
1744
|
-
</xsl:template>
|
1745
|
-
|
1746
|
-
|
1747
|
-
<xsl:template match="ogc:sourcecode/ogc:name"/>
|
1748
|
-
|
1749
|
-
<xsl:template match="ogc:example">
|
1750
|
-
<fo:block font-size="10pt" margin-top="12pt" margin-bottom="12pt" font-weight="bold" keep-with-next="always">
|
1751
|
-
<xsl:variable name="title-example">
|
1752
|
-
<xsl:call-template name="getTitle">
|
1753
|
-
<xsl:with-param name="name" select="'title-example'"/>
|
1754
|
-
</xsl:call-template>
|
1755
|
-
</xsl:variable>
|
1756
|
-
<xsl:value-of select="normalize-space($title-example)"/>
|
1757
|
-
<xsl:if test="following-sibling::ogc:example or preceding-sibling::ogc:example">
|
1758
|
-
<xsl:number format=" 1"/>
|
1759
|
-
</xsl:if>
|
1760
|
-
<xsl:if test="ogc:name">
|
1761
|
-
<xsl:text> — </xsl:text>
|
1762
|
-
<xsl:apply-templates select="ogc:name/node()"/>
|
1763
|
-
</xsl:if>
|
1764
|
-
</fo:block>
|
1765
|
-
<fo:block font-size="10pt" margin-left="12.5mm" margin-right="12.5mm">
|
1766
|
-
<xsl:apply-templates/>
|
1767
|
-
</fo:block>
|
1768
|
-
</xsl:template>
|
1769
|
-
|
1770
|
-
<xsl:template match="ogc:example/ogc:name"/>
|
1771
|
-
|
1772
|
-
<xsl:template match="ogc:example/ogc:p">
|
1773
|
-
<fo:block margin-bottom="14pt">
|
1774
|
-
<xsl:apply-templates/>
|
1775
|
-
</fo:block>
|
1776
|
-
</xsl:template>
|
1777
|
-
|
1778
|
-
|
1779
|
-
|
1780
|
-
<xsl:template match="ogc:note/ogc:p" name="note">
|
1781
|
-
<fo:block font-size="10pt" margin-top="12pt" margin-bottom="12pt" line-height="115%">
|
1782
|
-
<xsl:if test="ancestor::ogc:ul or ancestor::ogc:ol and not(ancestor::ogc:note[1]/following-sibling::*)">
|
1783
|
-
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
1784
|
-
</xsl:if>
|
1785
|
-
<xsl:variable name="clauseid" select="ancestor::ogc:clause[1]/@id"/>
|
1786
|
-
<fo:inline padding-right="4mm">
|
1787
|
-
<xsl:variable name="title-note">
|
1788
|
-
<xsl:call-template name="getTitle">
|
1789
|
-
<xsl:with-param name="name" select="'title-note'"/>
|
1790
|
-
</xsl:call-template>
|
1791
|
-
</xsl:variable>
|
1792
|
-
<xsl:value-of select="$title-note"/>
|
1793
|
-
<xsl:if test="count(//ogc:note[ancestor::ogc:clause[1][@id = $clauseid]]) > 1">
|
1794
|
-
<xsl:number count="ogc:note[ancestor::ogc:clause[1][@id = $clauseid]]" level="any"/>
|
1795
|
-
</xsl:if>
|
1796
|
-
</fo:inline>
|
1797
|
-
<xsl:apply-templates/>
|
1798
|
-
</fo:block>
|
1799
|
-
</xsl:template>
|
1800
1060
|
|
1801
|
-
<!-- <eref type="inline" bibitemid="ISO20483" citeas="ISO 20483:2013"><locality type="annex"><referenceFrom>C</referenceFrom></locality></eref> -->
|
1802
|
-
<xsl:template match="ogc:eref">
|
1803
|
-
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}" color="blue" text-decoration="underline"> <!-- font-size="9pt" color="blue" vertical-align="super" -->
|
1804
|
-
<xsl:if test="@type = 'footnote'">
|
1805
|
-
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
1806
|
-
<xsl:attribute name="font-size">80%</xsl:attribute>
|
1807
|
-
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
1808
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
1809
|
-
</xsl:if>
|
1810
|
-
<xsl:if test="@type = 'inline'">
|
1811
|
-
<xsl:attribute name="color">blue</xsl:attribute>
|
1812
|
-
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1813
|
-
</xsl:if>
|
1814
|
-
<!-- <xsl:if test="@type = 'inline'">
|
1815
|
-
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1816
|
-
</xsl:if> -->
|
1817
|
-
<xsl:choose>
|
1818
|
-
<xsl:when test="@citeas and normalize-space(text()) = ''">
|
1819
|
-
<xsl:value-of select="@citeas"/> <!-- disable-output-escaping="yes" -->
|
1820
|
-
</xsl:when>
|
1821
|
-
<xsl:when test="@bibitemid and normalize-space(text()) = ''">
|
1822
|
-
<xsl:value-of select="//ogc:bibitem[@id = current()/@bibitemid]/ogc:docidentifier"/>
|
1823
|
-
</xsl:when>
|
1824
|
-
<xsl:otherwise/>
|
1825
|
-
</xsl:choose>
|
1826
|
-
<xsl:apply-templates select="ogc:localityStack"/>
|
1827
|
-
<xsl:apply-templates select="text()"/>
|
1828
|
-
</fo:basic-link>
|
1829
|
-
</xsl:template>
|
1830
|
-
|
1831
|
-
<xsl:template match="ogc:locality">
|
1832
|
-
<xsl:variable name="title-clause">
|
1833
|
-
<xsl:call-template name="getTitle">
|
1834
|
-
<xsl:with-param name="name" select="'title-clause'"/>
|
1835
|
-
</xsl:call-template>
|
1836
|
-
</xsl:variable>
|
1837
|
-
<xsl:variable name="title-annex">
|
1838
|
-
<xsl:call-template name="getTitle">
|
1839
|
-
<xsl:with-param name="name" select="'title-annex'"/>
|
1840
|
-
</xsl:call-template>
|
1841
|
-
</xsl:variable>
|
1842
|
-
<xsl:choose>
|
1843
|
-
<xsl:when test="@type ='clause'"><xsl:value-of select="$title-clause"/></xsl:when>
|
1844
|
-
<xsl:when test="@type ='annex'"><xsl:value-of select="$title-annex"/></xsl:when>
|
1845
|
-
<xsl:otherwise><xsl:value-of select="@type"/></xsl:otherwise>
|
1846
|
-
</xsl:choose>
|
1847
|
-
<xsl:text> </xsl:text><xsl:value-of select="ogc:referenceFrom"/>
|
1848
|
-
</xsl:template>
|
1849
1061
|
|
1850
1062
|
<xsl:template match="ogc:admonition">
|
1851
1063
|
<fo:block-container border="0.5pt solid rgb(79, 129, 189)" color="rgb(79, 129, 189)" margin-left="16mm" margin-right="16mm" margin-bottom="12pt">
|
@@ -1861,19 +1073,8 @@
|
|
1861
1073
|
|
1862
1074
|
|
1863
1075
|
</xsl:template>
|
1864
|
-
|
1865
|
-
|
1866
|
-
<fo:block id="{@id}">
|
1867
|
-
<xsl:apply-templates/>
|
1868
|
-
</fo:block>
|
1869
|
-
</xsl:template>
|
1870
|
-
|
1871
|
-
<xsl:template match="ogc:formula/ogc:dt/ogc:stem">
|
1872
|
-
<fo:inline>
|
1873
|
-
<xsl:apply-templates/>
|
1874
|
-
</fo:inline>
|
1875
|
-
</xsl:template>
|
1876
|
-
|
1076
|
+
|
1077
|
+
|
1877
1078
|
<xsl:template match="ogc:formula/ogc:stem">
|
1878
1079
|
<fo:block margin-top="6pt" margin-bottom="12pt">
|
1879
1080
|
<fo:table table-layout="fixed" width="100%">
|
@@ -1888,29 +1089,16 @@
|
|
1888
1089
|
</fo:table-cell>
|
1889
1090
|
<fo:table-cell display-align="center">
|
1890
1091
|
<fo:block text-align="right">
|
1891
|
-
<xsl:
|
1892
|
-
<xsl:when test="ancestor::ogc:annex">
|
1893
|
-
<xsl:number format="(A.1)" level="multiple" count="ogc:annex | ogc:formula"/>
|
1894
|
-
</xsl:when>
|
1895
|
-
<xsl:otherwise> <!-- not(ancestor::ogc:annex) -->
|
1896
|
-
<!-- <xsl:text>(</xsl:text><xsl:number level="any" count="ogc:formula"/><xsl:text>)</xsl:text> -->
|
1897
|
-
</xsl:otherwise>
|
1898
|
-
</xsl:choose>
|
1092
|
+
<xsl:apply-templates select="../ogc:name" mode="presentation"/>
|
1899
1093
|
</fo:block>
|
1900
1094
|
</fo:table-cell>
|
1901
1095
|
</fo:table-row>
|
1902
1096
|
</fo:table-body>
|
1903
|
-
</fo:table>
|
1904
|
-
<fo:inline keep-together.within-line="always">
|
1905
|
-
</fo:inline>
|
1097
|
+
</fo:table>
|
1906
1098
|
</fo:block>
|
1907
1099
|
</xsl:template>
|
1908
1100
|
|
1909
1101
|
|
1910
|
-
<xsl:template match="ogc:br" priority="2">
|
1911
|
-
<!-- <fo:block> </fo:block> -->
|
1912
|
-
<xsl:value-of select="$linebreak"/>
|
1913
|
-
</xsl:template>
|
1914
1102
|
|
1915
1103
|
<xsl:template match="ogc:pagebreak">
|
1916
1104
|
<fo:block break-after="page"/>
|
@@ -1974,139 +1162,8 @@
|
|
1974
1162
|
</fo:block-container>
|
1975
1163
|
</fo:static-content>
|
1976
1164
|
</xsl:template>
|
1977
|
-
|
1978
|
-
|
1979
|
-
<xsl:template name="getSection">
|
1980
|
-
<xsl:param name="sectionNum"/>
|
1981
|
-
<xsl:variable name="level">
|
1982
|
-
<xsl:call-template name="getLevel"/>
|
1983
|
-
</xsl:variable>
|
1984
|
-
<xsl:variable name="section">
|
1985
|
-
<xsl:choose>
|
1986
|
-
<xsl:when test="ancestor::ogc:bibliography">
|
1987
|
-
<xsl:value-of select="$sectionNum"/>
|
1988
|
-
</xsl:when>
|
1989
|
-
<xsl:when test="ancestor::ogc:sections">
|
1990
|
-
<!-- 1, 2, 3, 4, ... from main section (not annex, bibliography, ...) -->
|
1991
|
-
<xsl:choose>
|
1992
|
-
<xsl:when test="$level = 1">
|
1993
|
-
<xsl:value-of select="$sectionNum"/>
|
1994
|
-
</xsl:when>
|
1995
|
-
<xsl:when test="$level >= 2">
|
1996
|
-
<xsl:variable name="num">
|
1997
|
-
<xsl:call-template name="getSubSection"/>
|
1998
|
-
</xsl:variable>
|
1999
|
-
<xsl:value-of select="concat($sectionNum, $num)"/>
|
2000
|
-
</xsl:when>
|
2001
|
-
<xsl:otherwise>
|
2002
|
-
<!-- z<xsl:value-of select="$sectionNum"/>z -->
|
2003
|
-
</xsl:otherwise>
|
2004
|
-
</xsl:choose>
|
2005
|
-
<!-- <xsl:text>.</xsl:text> -->
|
2006
|
-
</xsl:when>
|
2007
|
-
<!-- <xsl:when test="ancestor::ogc:annex[@obligation = 'informative']">
|
2008
|
-
<xsl:choose>
|
2009
|
-
<xsl:when test="$level = 1">
|
2010
|
-
<xsl:text>Annex </xsl:text>
|
2011
|
-
<xsl:number format="I" level="any" count="ogc:annex[@obligation = 'informative']"/>
|
2012
|
-
</xsl:when>
|
2013
|
-
<xsl:otherwise>
|
2014
|
-
<xsl:number format="I.1" level="multiple" count="ogc:annex[@obligation = 'informative'] | ogc:clause"/>
|
2015
|
-
</xsl:otherwise>
|
2016
|
-
</xsl:choose>
|
2017
|
-
</xsl:when> -->
|
2018
|
-
<xsl:when test="ancestor::ogc:annex">
|
2019
|
-
<xsl:choose>
|
2020
|
-
<xsl:when test="$level = 1">
|
2021
|
-
<xsl:variable name="title-annex">
|
2022
|
-
<xsl:call-template name="getTitle">
|
2023
|
-
<xsl:with-param name="name" select="'title-annex'"/>
|
2024
|
-
</xsl:call-template>
|
2025
|
-
</xsl:variable>
|
2026
|
-
<xsl:value-of select="$title-annex"/>
|
2027
|
-
<xsl:choose>
|
2028
|
-
<xsl:when test="count(//ogc:annex) = 1">
|
2029
|
-
<xsl:value-of select="/ogc:ogc-standard/ogc:bibdata/ogc:ext/ogc:structuredidentifier/ogc:annexid"/>
|
2030
|
-
</xsl:when>
|
2031
|
-
<xsl:otherwise>
|
2032
|
-
<xsl:number format="A" level="any" count="ogc:annex"/>
|
2033
|
-
</xsl:otherwise>
|
2034
|
-
</xsl:choose>
|
2035
|
-
</xsl:when>
|
2036
|
-
<xsl:otherwise>
|
2037
|
-
<xsl:choose>
|
2038
|
-
<xsl:when test="count(//ogc:annex) = 1">
|
2039
|
-
<xsl:value-of select="/ogc:ogc-standard/ogc:bibdata/ogc:ext/ogc:structuredidentifier/ogc:annexid"/><xsl:number format=".1" level="multiple" count="ogc:clause"/>
|
2040
|
-
</xsl:when>
|
2041
|
-
<xsl:otherwise>
|
2042
|
-
<xsl:number format="A.1" level="multiple" count="ogc:annex | ogc:clause"/>
|
2043
|
-
</xsl:otherwise>
|
2044
|
-
</xsl:choose>
|
2045
|
-
</xsl:otherwise>
|
2046
|
-
</xsl:choose>
|
2047
|
-
</xsl:when>
|
2048
|
-
<xsl:when test="ancestor::ogc:preface"> <!-- if preface and there is clause(s) -->
|
2049
|
-
<xsl:choose>
|
2050
|
-
<xsl:when test="$level = 1 and ..//ogc:clause">0</xsl:when>
|
2051
|
-
<xsl:when test="$level >= 2">
|
2052
|
-
<xsl:variable name="num">
|
2053
|
-
<xsl:number format=".1" level="multiple" count="ogc:clause"/>
|
2054
|
-
</xsl:variable>
|
2055
|
-
<xsl:value-of select="concat('0', $num)"/>
|
2056
|
-
</xsl:when>
|
2057
|
-
<xsl:otherwise>
|
2058
|
-
<!-- z<xsl:value-of select="$sectionNum"/>z -->
|
2059
|
-
</xsl:otherwise>
|
2060
|
-
</xsl:choose>
|
2061
|
-
</xsl:when>
|
2062
|
-
<xsl:otherwise>
|
2063
|
-
</xsl:otherwise>
|
2064
|
-
</xsl:choose>
|
2065
|
-
</xsl:variable>
|
2066
|
-
<xsl:value-of select="$section"/>
|
2067
|
-
</xsl:template>
|
2068
1165
|
|
2069
1166
|
<xsl:variable name="titles" select="xalan:nodeset($titles_)"/><xsl:variable name="titles_">
|
2070
|
-
|
2071
|
-
<title-table lang="en">Table </title-table>
|
2072
|
-
<title-table lang="fr">Tableau </title-table>
|
2073
|
-
|
2074
|
-
<title-table lang="zh">Table </title-table>
|
2075
|
-
|
2076
|
-
|
2077
|
-
|
2078
|
-
<title-note lang="en">NOTE </title-note>
|
2079
|
-
<title-note lang="fr">NOTE </title-note>
|
2080
|
-
|
2081
|
-
<title-note lang="zh">NOTE </title-note>
|
2082
|
-
|
2083
|
-
|
2084
|
-
|
2085
|
-
<title-figure lang="en">Figure </title-figure>
|
2086
|
-
<title-figure lang="fr">Figure </title-figure>
|
2087
|
-
|
2088
|
-
<title-figure lang="zh">Figure </title-figure>
|
2089
|
-
|
2090
|
-
|
2091
|
-
|
2092
|
-
<title-example lang="en">EXAMPLE </title-example>
|
2093
|
-
<title-example lang="fr">EXEMPLE </title-example>
|
2094
|
-
|
2095
|
-
<title-example lang="zh">EXAMPLE </title-example>
|
2096
|
-
|
2097
|
-
|
2098
|
-
|
2099
|
-
<title-example-xref lang="en">Example </title-example-xref>
|
2100
|
-
<title-example-xref lang="fr">Exemple </title-example-xref>
|
2101
|
-
|
2102
|
-
<title-section lang="en">Section </title-section>
|
2103
|
-
<title-section lang="fr">Section </title-section>
|
2104
|
-
|
2105
|
-
<title-inequality lang="en">Inequality </title-inequality>
|
2106
|
-
<title-inequality lang="fr">Inequality </title-inequality>
|
2107
|
-
|
2108
|
-
<title-equation lang="en">Equation </title-equation>
|
2109
|
-
<title-equation lang="fr">Equation </title-equation>
|
2110
1167
|
|
2111
1168
|
<title-annex lang="en">Annex </title-annex>
|
2112
1169
|
<title-annex lang="fr">Annexe </title-annex>
|
@@ -2114,17 +1171,7 @@
|
|
2114
1171
|
<title-annex lang="zh">Annex </title-annex>
|
2115
1172
|
|
2116
1173
|
|
2117
|
-
|
2118
|
-
<title-appendix lang="en">Appendix </title-appendix>
|
2119
|
-
<title-appendix lang="fr">Appendix </title-appendix>
|
2120
|
-
|
2121
|
-
<title-clause lang="en">Clause </title-clause>
|
2122
|
-
<title-clause lang="fr">Article </title-clause>
|
2123
|
-
|
2124
|
-
<title-clause lang="zh">Clause </title-clause>
|
2125
|
-
|
2126
|
-
|
2127
|
-
|
1174
|
+
|
2128
1175
|
<title-edition lang="en">
|
2129
1176
|
|
2130
1177
|
|
@@ -2132,9 +1179,7 @@
|
|
2132
1179
|
|
2133
1180
|
</title-edition>
|
2134
1181
|
|
2135
|
-
|
2136
|
-
<title-formula lang="fr">Formula </title-formula>
|
2137
|
-
|
1182
|
+
|
2138
1183
|
<title-toc lang="en">
|
2139
1184
|
|
2140
1185
|
<xsl:text>Contents</xsl:text>
|
@@ -2169,13 +1214,6 @@
|
|
2169
1214
|
</title-part>
|
2170
1215
|
<title-part lang="zh">第 # 部分:</title-part>
|
2171
1216
|
|
2172
|
-
<title-note-to-entry lang="en">Note # to entry: </title-note-to-entry>
|
2173
|
-
<title-note-to-entry lang="fr">Note # à l'article: </title-note-to-entry>
|
2174
|
-
|
2175
|
-
<title-note-to-entry lang="zh">Note # to entry: </title-note-to-entry>
|
2176
|
-
|
2177
|
-
|
2178
|
-
|
2179
1217
|
<title-modified lang="en">modified</title-modified>
|
2180
1218
|
<title-modified lang="fr">modifiée</title-modified>
|
2181
1219
|
|
@@ -2189,14 +1227,12 @@
|
|
2189
1227
|
|
2190
1228
|
<title-deprecated lang="en">DEPRECATED</title-deprecated>
|
2191
1229
|
<title-deprecated lang="fr">DEPRECATED</title-deprecated>
|
2192
|
-
|
2193
|
-
<title-submitting-organizations lang="en">Submitting Organizations</title-submitting-organizations>
|
2194
|
-
|
1230
|
+
|
2195
1231
|
<title-list-tables lang="en">List of Tables</title-list-tables>
|
2196
1232
|
|
2197
1233
|
<title-list-figures lang="en">List of Figures</title-list-figures>
|
2198
1234
|
|
2199
|
-
<title-
|
1235
|
+
<title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
|
2200
1236
|
|
2201
1237
|
<title-acknowledgements lang="en">Acknowledgements</title-acknowledgements>
|
2202
1238
|
|
@@ -2206,8 +1242,6 @@
|
|
2206
1242
|
|
2207
1243
|
<title-in lang="en">in </title-in>
|
2208
1244
|
|
2209
|
-
<title-box lang="en">Box </title-box>
|
2210
|
-
|
2211
1245
|
<title-partly-supercedes lang="en">Partly Supercedes </title-partly-supercedes>
|
2212
1246
|
<title-partly-supercedes lang="zh">部分代替 </title-partly-supercedes>
|
2213
1247
|
|
@@ -2230,7 +1264,7 @@
|
|
2230
1264
|
<title-warning lang="zh">警告</title-warning>
|
2231
1265
|
|
2232
1266
|
<title-amendment lang="en">AMENDMENT</title-amendment>
|
2233
|
-
</xsl:variable><xsl:template name="getTitle">
|
1267
|
+
</xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
|
2234
1268
|
<xsl:param name="name"/>
|
2235
1269
|
<xsl:variable name="lang">
|
2236
1270
|
<xsl:call-template name="getLang"/>
|
@@ -2251,6 +1285,8 @@
|
|
2251
1285
|
|
2252
1286
|
|
2253
1287
|
</xsl:attribute-set><xsl:attribute-set name="sourcecode-style">
|
1288
|
+
<xsl:attribute name="white-space">pre</xsl:attribute>
|
1289
|
+
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
2254
1290
|
|
2255
1291
|
|
2256
1292
|
|
@@ -2265,256 +1301,569 @@
|
|
2265
1301
|
<xsl:attribute name="line-height">113%</xsl:attribute>
|
2266
1302
|
|
2267
1303
|
|
2268
|
-
</xsl:attribute-set><xsl:attribute-set name="
|
2269
|
-
|
2270
|
-
<xsl:attribute name="
|
1304
|
+
</xsl:attribute-set><xsl:attribute-set name="permission-style">
|
1305
|
+
|
1306
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
1307
|
+
|
1308
|
+
</xsl:attribute-set><xsl:attribute-set name="permission-name-style">
|
1309
|
+
|
1310
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
2271
1311
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
2272
|
-
<xsl:attribute name="
|
1312
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1313
|
+
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
1314
|
+
<xsl:attribute name="padding-bottom">1mm</xsl:attribute>
|
1315
|
+
<xsl:attribute name="margin-bottom">1mm</xsl:attribute>
|
1316
|
+
<xsl:attribute name="background-color">rgb(165,165,165)</xsl:attribute>
|
1317
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1318
|
+
|
1319
|
+
</xsl:attribute-set><xsl:attribute-set name="permission-label-style">
|
1320
|
+
|
2273
1321
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
2274
1322
|
|
1323
|
+
</xsl:attribute-set><xsl:attribute-set name="requirement-style">
|
1324
|
+
|
1325
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
1326
|
+
|
1327
|
+
</xsl:attribute-set><xsl:attribute-set name="requirement-name-style">
|
1328
|
+
|
1329
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1330
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1331
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1332
|
+
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
1333
|
+
<xsl:attribute name="padding-bottom">1mm</xsl:attribute>
|
1334
|
+
<xsl:attribute name="margin-bottom">1mm</xsl:attribute>
|
1335
|
+
<xsl:attribute name="background-color">rgb(165,165,165)</xsl:attribute>
|
1336
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1337
|
+
|
1338
|
+
</xsl:attribute-set><xsl:attribute-set name="requirement-label-style">
|
1339
|
+
|
1340
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1341
|
+
|
1342
|
+
</xsl:attribute-set><xsl:attribute-set name="requirement-subject-style">
|
1343
|
+
</xsl:attribute-set><xsl:attribute-set name="requirement-inherit-style">
|
1344
|
+
</xsl:attribute-set><xsl:attribute-set name="recommendation-style">
|
1345
|
+
|
1346
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
1347
|
+
|
1348
|
+
|
1349
|
+
</xsl:attribute-set><xsl:attribute-set name="recommendation-name-style">
|
1350
|
+
|
1351
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1352
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1353
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1354
|
+
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
1355
|
+
<xsl:attribute name="padding-bottom">1mm</xsl:attribute>
|
1356
|
+
<xsl:attribute name="margin-bottom">1mm</xsl:attribute>
|
1357
|
+
<xsl:attribute name="background-color">rgb(165,165,165)</xsl:attribute>
|
1358
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1359
|
+
|
1360
|
+
|
1361
|
+
</xsl:attribute-set><xsl:attribute-set name="recommendation-label-style">
|
1362
|
+
|
1363
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1364
|
+
|
1365
|
+
</xsl:attribute-set><xsl:attribute-set name="termexample-style">
|
1366
|
+
|
1367
|
+
|
1368
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1369
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1370
|
+
|
1371
|
+
|
1372
|
+
|
1373
|
+
|
1374
|
+
|
1375
|
+
|
1376
|
+
</xsl:attribute-set><xsl:attribute-set name="example-style">
|
1377
|
+
|
1378
|
+
|
1379
|
+
|
1380
|
+
|
2275
1381
|
|
2276
1382
|
|
2277
|
-
</xsl:attribute-set><xsl:attribute-set name="appendix-example-style">
|
2278
1383
|
|
2279
1384
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
2280
|
-
<xsl:attribute name="margin-
|
2281
|
-
<xsl:attribute name="margin-
|
1385
|
+
<xsl:attribute name="margin-left">12.5mm</xsl:attribute>
|
1386
|
+
<xsl:attribute name="margin-right">12.5mm</xsl:attribute>
|
2282
1387
|
|
2283
1388
|
|
2284
1389
|
|
2285
|
-
</xsl:attribute-set><xsl:template match="text()">
|
2286
|
-
<xsl:value-of select="."/>
|
2287
|
-
</xsl:template><xsl:template match="*[local-name()='br']">
|
2288
|
-
<xsl:value-of select="$linebreak"/>
|
2289
|
-
</xsl:template><xsl:template match="*[local-name()='td']//text() | *[local-name()='th']//text() | *[local-name()='dt']//text() | *[local-name()='dd']//text()" priority="1">
|
2290
|
-
<!-- <xsl:call-template name="add-zero-spaces"/> -->
|
2291
|
-
<xsl:call-template name="add-zero-spaces-java"/>
|
2292
|
-
</xsl:template><xsl:template match="*[local-name()='table']">
|
2293
|
-
|
2294
|
-
<xsl:variable name="simple-table">
|
2295
|
-
<!-- <xsl:copy> -->
|
2296
|
-
<xsl:call-template name="getSimpleTable"/>
|
2297
|
-
<!-- </xsl:copy> -->
|
2298
|
-
</xsl:variable>
|
2299
|
-
|
2300
|
-
<!-- DEBUG -->
|
2301
|
-
<!-- SourceTable=<xsl:copy-of select="current()"/>EndSourceTable -->
|
2302
|
-
<!-- Simpletable=<xsl:copy-of select="$simple-table"/>EndSimpltable -->
|
2303
|
-
|
2304
|
-
<!-- <xsl:variable name="namespace" select="substring-before(name(/*), '-')"/> -->
|
2305
1390
|
|
2306
|
-
|
2307
|
-
<fo:block space-before="6pt"> </fo:block>
|
2308
|
-
</xsl:if> -->
|
1391
|
+
</xsl:attribute-set><xsl:attribute-set name="example-body-style">
|
2309
1392
|
|
2310
|
-
<xsl:choose>
|
2311
|
-
<xsl:when test="@unnumbered = 'true'"/>
|
2312
|
-
<xsl:otherwise>
|
2313
|
-
|
2314
|
-
|
2315
|
-
|
2316
|
-
<fo:block font-weight="bold" text-align="center" margin-bottom="6pt" keep-with-next="always">
|
2317
|
-
|
2318
|
-
|
2319
|
-
|
2320
|
-
|
2321
|
-
|
2322
|
-
|
2323
|
-
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
2324
|
-
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
2325
|
-
|
2326
|
-
|
2327
|
-
|
2328
|
-
<xsl:variable name="title-table">
|
2329
|
-
<xsl:call-template name="getTitle">
|
2330
|
-
<xsl:with-param name="name" select="'title-table'"/>
|
2331
|
-
</xsl:call-template>
|
2332
|
-
</xsl:variable>
|
2333
|
-
<xsl:value-of select="$title-table"/>
|
2334
|
-
|
2335
|
-
<xsl:call-template name="getTableNumber"/>
|
2336
|
-
|
2337
|
-
|
2338
|
-
<xsl:if test="*[local-name()='name']">
|
2339
|
-
|
2340
|
-
|
2341
|
-
|
2342
|
-
<xsl:text> — </xsl:text>
|
2343
|
-
|
2344
|
-
<xsl:apply-templates select="*[local-name()='name']" mode="process"/>
|
2345
|
-
</xsl:if>
|
2346
|
-
</fo:block>
|
2347
|
-
|
2348
|
-
|
2349
|
-
<xsl:call-template name="fn_name_display"/>
|
2350
|
-
|
2351
|
-
</xsl:otherwise>
|
2352
|
-
</xsl:choose>
|
2353
1393
|
|
2354
|
-
<xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
|
2355
1394
|
|
2356
|
-
|
2357
|
-
<xsl:choose>
|
2358
|
-
<xsl:when test="*[local-name()='thead']">
|
2359
|
-
<xsl:call-template name="calculate-columns-numbers">
|
2360
|
-
<xsl:with-param name="table-row" select="*[local-name()='thead']/*[local-name()='tr'][1]"/>
|
2361
|
-
</xsl:call-template>
|
2362
|
-
</xsl:when>
|
2363
|
-
<xsl:otherwise>
|
2364
|
-
<xsl:call-template name="calculate-columns-numbers">
|
2365
|
-
<xsl:with-param name="table-row" select="*[local-name()='tbody']/*[local-name()='tr'][1]"/>
|
2366
|
-
</xsl:call-template>
|
2367
|
-
</xsl:otherwise>
|
2368
|
-
</xsl:choose>
|
2369
|
-
</xsl:variable> -->
|
2370
|
-
<!-- cols-count=<xsl:copy-of select="$cols-count"/> -->
|
2371
|
-
<!-- cols-count2=<xsl:copy-of select="$cols-count2"/> -->
|
1395
|
+
</xsl:attribute-set><xsl:attribute-set name="example-name-style">
|
2372
1396
|
|
2373
1397
|
|
2374
1398
|
|
2375
|
-
<xsl:variable name="colwidths">
|
2376
|
-
<xsl:call-template name="calculate-column-widths">
|
2377
|
-
<xsl:with-param name="cols-count" select="$cols-count"/>
|
2378
|
-
<xsl:with-param name="table" select="$simple-table"/>
|
2379
|
-
</xsl:call-template>
|
2380
|
-
</xsl:variable>
|
2381
1399
|
|
2382
|
-
<!-- <xsl:variable name="colwidths2">
|
2383
|
-
<xsl:call-template name="calculate-column-widths">
|
2384
|
-
<xsl:with-param name="cols-count" select="$cols-count"/>
|
2385
|
-
</xsl:call-template>
|
2386
|
-
</xsl:variable> -->
|
2387
1400
|
|
2388
|
-
<!-- cols-count=<xsl:copy-of select="$cols-count"/>
|
2389
|
-
colwidthsNew=<xsl:copy-of select="$colwidths"/>
|
2390
|
-
colwidthsOld=<xsl:copy-of select="$colwidths2"/>z -->
|
2391
1401
|
|
2392
|
-
<xsl:variable name="margin-left">
|
2393
|
-
<xsl:choose>
|
2394
|
-
<xsl:when test="sum(xalan:nodeset($colwidths)//column) > 75">15</xsl:when>
|
2395
|
-
<xsl:otherwise>0</xsl:otherwise>
|
2396
|
-
</xsl:choose>
|
2397
|
-
</xsl:variable>
|
2398
1402
|
|
2399
|
-
|
2400
|
-
|
2401
|
-
|
2402
|
-
|
2403
|
-
|
2404
|
-
|
2405
|
-
|
2406
|
-
|
2407
|
-
|
2408
|
-
|
2409
|
-
|
2410
|
-
|
2411
|
-
|
2412
|
-
<fo:table id="{@id}" table-layout="fixed" width="100%" margin-left="{$margin-left}mm" margin-right="{$margin-left}mm" table-omit-footer-at-break="true">
|
2413
|
-
|
2414
|
-
|
2415
|
-
|
2416
|
-
|
2417
|
-
|
2418
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
2419
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
2420
|
-
|
2421
|
-
|
2422
|
-
|
2423
|
-
|
2424
|
-
|
2425
|
-
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
2426
|
-
|
1403
|
+
|
1404
|
+
|
1405
|
+
|
1406
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1407
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1408
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1409
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1410
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1411
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1412
|
+
|
1413
|
+
|
1414
|
+
|
1415
|
+
|
2427
1416
|
|
1417
|
+
|
1418
|
+
|
1419
|
+
|
1420
|
+
</xsl:attribute-set><xsl:attribute-set name="example-p-style">
|
1421
|
+
|
1422
|
+
|
1423
|
+
|
1424
|
+
|
1425
|
+
|
1426
|
+
|
1427
|
+
|
1428
|
+
|
1429
|
+
<xsl:attribute name="margin-bottom">14pt</xsl:attribute>
|
1430
|
+
|
1431
|
+
|
1432
|
+
|
1433
|
+
|
1434
|
+
|
1435
|
+
|
1436
|
+
</xsl:attribute-set><xsl:attribute-set name="termexample-name-style">
|
1437
|
+
|
1438
|
+
<xsl:attribute name="padding-right">10mm</xsl:attribute>
|
1439
|
+
|
1440
|
+
|
1441
|
+
|
2428
1442
|
|
2429
|
-
|
2430
|
-
|
2431
|
-
|
2432
|
-
|
2433
|
-
|
2434
|
-
|
2435
|
-
<fo:table-column column-width="proportional-column-width({.})"/>
|
2436
|
-
</xsl:otherwise>
|
2437
|
-
</xsl:choose>
|
2438
|
-
</xsl:for-each>
|
1443
|
+
</xsl:attribute-set><xsl:attribute-set name="table-name-style">
|
1444
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1445
|
+
|
1446
|
+
|
1447
|
+
|
1448
|
+
|
2439
1449
|
|
2440
|
-
|
2441
|
-
|
2442
|
-
|
2443
|
-
|
2444
|
-
|
2445
|
-
|
2446
|
-
|
2447
|
-
|
1450
|
+
|
1451
|
+
|
1452
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1453
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1454
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
1455
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1456
|
+
|
1457
|
+
|
2448
1458
|
|
2449
|
-
|
2450
|
-
|
2451
|
-
|
2452
|
-
|
2453
|
-
</fo:block-container>
|
2454
|
-
</xsl:template><xsl:template name="getTableNumber">
|
2455
|
-
<xsl:choose>
|
2456
|
-
<xsl:when test="ancestor::*[local-name()='executivesummary']"> <!-- NIST -->
|
2457
|
-
<xsl:text>ES-</xsl:text><xsl:number format="1" count="*[local-name()='executivesummary']//*[local-name()='table'][not(@unnumbered) or @unnumbered != 'true']"/>
|
2458
|
-
</xsl:when>
|
2459
|
-
<xsl:when test="ancestor::*[local-name()='annex']">
|
1459
|
+
|
1460
|
+
|
1461
|
+
</xsl:attribute-set><xsl:attribute-set name="appendix-style">
|
2460
1462
|
|
1463
|
+
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
1464
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1465
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1466
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1467
|
+
|
1468
|
+
|
1469
|
+
|
1470
|
+
</xsl:attribute-set><xsl:attribute-set name="appendix-example-style">
|
1471
|
+
|
1472
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1473
|
+
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
1474
|
+
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
1475
|
+
|
1476
|
+
|
1477
|
+
|
1478
|
+
</xsl:attribute-set><xsl:attribute-set name="xref-style">
|
1479
|
+
|
1480
|
+
|
1481
|
+
<xsl:attribute name="color">blue</xsl:attribute>
|
1482
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
2461
1483
|
|
1484
|
+
</xsl:attribute-set><xsl:attribute-set name="eref-style">
|
1485
|
+
|
1486
|
+
|
1487
|
+
<xsl:attribute name="color">blue</xsl:attribute>
|
1488
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1489
|
+
|
1490
|
+
|
1491
|
+
</xsl:attribute-set><xsl:attribute-set name="note-style">
|
1492
|
+
|
1493
|
+
|
1494
|
+
|
2462
1495
|
|
2463
|
-
|
1496
|
+
|
1497
|
+
|
1498
|
+
|
1499
|
+
|
1500
|
+
|
1501
|
+
|
1502
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1503
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1504
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1505
|
+
<xsl:attribute name="line-height">115%</xsl:attribute>
|
1506
|
+
|
1507
|
+
|
1508
|
+
|
1509
|
+
|
1510
|
+
|
1511
|
+
|
1512
|
+
</xsl:attribute-set><xsl:attribute-set name="note-name-style">
|
1513
|
+
|
1514
|
+
|
1515
|
+
|
1516
|
+
|
1517
|
+
|
1518
|
+
|
1519
|
+
|
1520
|
+
|
1521
|
+
|
1522
|
+
<xsl:attribute name="padding-right">4mm</xsl:attribute>
|
2464
1523
|
|
1524
|
+
|
1525
|
+
</xsl:attribute-set><xsl:attribute-set name="note-p-style">
|
1526
|
+
|
1527
|
+
|
1528
|
+
|
2465
1529
|
|
1530
|
+
|
1531
|
+
|
1532
|
+
|
1533
|
+
|
1534
|
+
|
1535
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1536
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1537
|
+
|
1538
|
+
|
1539
|
+
|
1540
|
+
|
1541
|
+
|
1542
|
+
</xsl:attribute-set><xsl:attribute-set name="termnote-style">
|
1543
|
+
|
1544
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1545
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1546
|
+
|
1547
|
+
|
1548
|
+
|
1549
|
+
|
1550
|
+
|
1551
|
+
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
1552
|
+
|
1553
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1554
|
+
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
1555
|
+
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
1556
|
+
|
1557
|
+
|
1558
|
+
|
1559
|
+
|
1560
|
+
|
1561
|
+
|
1562
|
+
</xsl:attribute-set><xsl:attribute-set name="quote-source-style">
|
1563
|
+
|
1564
|
+
<xsl:attribute name="text-align">right</xsl:attribute>
|
1565
|
+
<xsl:attribute name="margin-right">25mm</xsl:attribute>
|
1566
|
+
|
2466
1567
|
|
2467
1568
|
|
1569
|
+
</xsl:attribute-set><xsl:attribute-set name="termsource-style">
|
1570
|
+
|
1571
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1572
|
+
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
1573
|
+
|
1574
|
+
|
1575
|
+
|
1576
|
+
|
1577
|
+
|
1578
|
+
</xsl:attribute-set><xsl:attribute-set name="origin-style">
|
1579
|
+
|
1580
|
+
|
1581
|
+
<xsl:attribute name="color">blue</xsl:attribute>
|
1582
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1583
|
+
|
1584
|
+
</xsl:attribute-set><xsl:attribute-set name="term-style">
|
1585
|
+
|
1586
|
+
</xsl:attribute-set><xsl:attribute-set name="figure-name-style">
|
1587
|
+
|
1588
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1589
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1590
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1591
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1592
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1593
|
+
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
2468
1594
|
|
1595
|
+
|
1596
|
+
|
1597
|
+
|
1598
|
+
|
1599
|
+
|
1600
|
+
|
1601
|
+
|
1602
|
+
|
1603
|
+
|
1604
|
+
|
1605
|
+
|
1606
|
+
|
1607
|
+
|
1608
|
+
|
1609
|
+
|
1610
|
+
</xsl:attribute-set><xsl:attribute-set name="formula-style">
|
1611
|
+
|
1612
|
+
</xsl:attribute-set><xsl:attribute-set name="image-style">
|
1613
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1614
|
+
|
1615
|
+
<xsl:attribute name="space-before">12pt</xsl:attribute>
|
1616
|
+
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
1617
|
+
|
1618
|
+
|
1619
|
+
|
1620
|
+
|
1621
|
+
|
1622
|
+
</xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
|
1623
|
+
|
1624
|
+
</xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
|
1625
|
+
|
1626
|
+
<xsl:attribute name="width">100%</xsl:attribute>
|
1627
|
+
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
1628
|
+
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
1629
|
+
|
1630
|
+
|
1631
|
+
|
2469
1632
|
|
2470
|
-
|
2471
|
-
|
1633
|
+
|
1634
|
+
</xsl:attribute-set><xsl:attribute-set name="tt-style">
|
1635
|
+
|
1636
|
+
|
1637
|
+
<xsl:attribute name="font-family">Courier</xsl:attribute>
|
1638
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1639
|
+
|
1640
|
+
</xsl:attribute-set><xsl:attribute-set name="sourcecode-name-style">
|
1641
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1642
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1643
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1644
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1645
|
+
</xsl:attribute-set><xsl:attribute-set name="domain-style">
|
2472
1646
|
|
1647
|
+
</xsl:attribute-set><xsl:attribute-set name="admitted-style">
|
1648
|
+
|
1649
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1650
|
+
|
1651
|
+
|
1652
|
+
</xsl:attribute-set><xsl:attribute-set name="deprecates-style">
|
1653
|
+
|
1654
|
+
</xsl:attribute-set><xsl:attribute-set name="definition-style">
|
1655
|
+
|
1656
|
+
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
1657
|
+
|
1658
|
+
|
1659
|
+
</xsl:attribute-set><xsl:template name="processPrefaceSectionsDefault_Contents">
|
1660
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
1661
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
1662
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']" mode="contents"/>
|
1663
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']" mode="contents"/>
|
1664
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']" mode="contents"/>
|
1665
|
+
</xsl:template><xsl:template name="processMainSectionsDefault_Contents">
|
1666
|
+
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']" mode="contents"/>
|
1667
|
+
|
1668
|
+
<!-- Normative references -->
|
1669
|
+
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']" mode="contents"/>
|
1670
|
+
<!-- Terms and definitions -->
|
1671
|
+
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='terms'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='terms']] | /*/*[local-name()='sections']/*[local-name()='definitions'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='definitions']]" mode="contents"/>
|
1672
|
+
<!-- Another main sections -->
|
1673
|
+
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name() != 'terms' and local-name() != 'definitions' and not(@type='scope') and not(local-name() = 'clause' and .//*[local-name()='terms']) and not(local-name() = 'clause' and .//*[local-name()='definitions'])]" mode="contents"/>
|
1674
|
+
<xsl:apply-templates select="/*/*[local-name()='annex']" mode="contents"/>
|
1675
|
+
<!-- Bibliography -->
|
1676
|
+
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')]" mode="contents"/>
|
1677
|
+
</xsl:template><xsl:template name="processPrefaceSectionsDefault">
|
1678
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']"/>
|
1679
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']"/>
|
1680
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']"/>
|
1681
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']"/>
|
1682
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']"/>
|
1683
|
+
</xsl:template><xsl:template name="processMainSectionsDefault">
|
1684
|
+
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']"/>
|
1685
|
+
|
1686
|
+
<!-- Normative references -->
|
1687
|
+
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']"/>
|
1688
|
+
<!-- Terms and definitions -->
|
1689
|
+
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='terms'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='terms']] | /*/*[local-name()='sections']/*[local-name()='definitions'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='definitions']]"/>
|
1690
|
+
<!-- Another main sections -->
|
1691
|
+
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name() != 'terms' and local-name() != 'definitions' and not(@type='scope') and not(local-name() = 'clause' and .//*[local-name()='terms']) and not(local-name() = 'clause' and .//*[local-name()='definitions'])]"/>
|
1692
|
+
<xsl:apply-templates select="/*/*[local-name()='annex']"/>
|
1693
|
+
<!-- Bibliography -->
|
1694
|
+
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')]"/>
|
1695
|
+
</xsl:template><xsl:template match="text()">
|
1696
|
+
<xsl:value-of select="."/>
|
1697
|
+
</xsl:template><xsl:template match="*[local-name()='br']">
|
1698
|
+
<xsl:value-of select="$linebreak"/>
|
1699
|
+
</xsl:template><xsl:template match="*[local-name()='td']//text() | *[local-name()='th']//text() | *[local-name()='dt']//text() | *[local-name()='dd']//text()" priority="1">
|
1700
|
+
<!-- <xsl:call-template name="add-zero-spaces"/> -->
|
1701
|
+
<xsl:call-template name="add-zero-spaces-java"/>
|
1702
|
+
</xsl:template><xsl:template match="*[local-name()='table']">
|
1703
|
+
|
1704
|
+
<xsl:variable name="simple-table">
|
1705
|
+
<xsl:call-template name="getSimpleTable"/>
|
1706
|
+
</xsl:variable>
|
1707
|
+
|
1708
|
+
|
1709
|
+
|
1710
|
+
|
1711
|
+
|
1712
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
1713
|
+
|
2473
1714
|
|
2474
|
-
<xsl:number format="A." count="*[local-name()='annex']"/>
|
2475
|
-
<xsl:number format="1" level="any" count="//*[local-name()='table'] [not(ancestor::*[local-name()='annex']) and not(ancestor::*[local-name()='executivesummary']) and not(ancestor::*[local-name()='bibdata'])] [not(@unnumbered) or @unnumbered != 'true']"/>
|
2476
|
-
|
2477
|
-
</xsl:otherwise>
|
2478
|
-
</xsl:choose>
|
2479
|
-
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='name']"/><xsl:template match="*[local-name()='table']/*[local-name()='name']" mode="process">
|
2480
|
-
<xsl:apply-templates/>
|
2481
|
-
</xsl:template><xsl:template name="calculate-columns-numbers">
|
2482
|
-
<xsl:param name="table-row"/>
|
2483
|
-
<xsl:variable name="columns-count" select="count($table-row/*)"/>
|
2484
|
-
<xsl:variable name="sum-colspans" select="sum($table-row/*/@colspan)"/>
|
2485
|
-
<xsl:variable name="columns-with-colspan" select="count($table-row/*[@colspan])"/>
|
2486
|
-
<xsl:value-of select="$columns-count + $sum-colspans - $columns-with-colspan"/>
|
2487
|
-
</xsl:template><xsl:template name="calculate-column-widths">
|
2488
|
-
<xsl:param name="table"/>
|
2489
|
-
<xsl:param name="cols-count"/>
|
2490
|
-
<xsl:param name="curr-col" select="1"/>
|
2491
|
-
<xsl:param name="width" select="0"/>
|
2492
1715
|
|
2493
|
-
|
2494
|
-
|
2495
|
-
|
2496
|
-
|
2497
|
-
|
2498
|
-
|
2499
|
-
|
2500
|
-
|
2501
|
-
|
2502
|
-
|
2503
|
-
|
2504
|
-
|
2505
|
-
|
2506
|
-
|
2507
|
-
|
2508
|
-
|
2509
|
-
|
2510
|
-
|
2511
|
-
|
2512
|
-
|
2513
|
-
|
2514
|
-
|
2515
|
-
|
2516
|
-
|
2517
|
-
|
1716
|
+
<xsl:call-template name="fn_name_display"/>
|
1717
|
+
|
1718
|
+
|
1719
|
+
|
1720
|
+
<xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
|
1721
|
+
|
1722
|
+
<!-- <xsl:variable name="cols-count">
|
1723
|
+
<xsl:choose>
|
1724
|
+
<xsl:when test="*[local-name()='thead']">
|
1725
|
+
<xsl:call-template name="calculate-columns-numbers">
|
1726
|
+
<xsl:with-param name="table-row" select="*[local-name()='thead']/*[local-name()='tr'][1]"/>
|
1727
|
+
</xsl:call-template>
|
1728
|
+
</xsl:when>
|
1729
|
+
<xsl:otherwise>
|
1730
|
+
<xsl:call-template name="calculate-columns-numbers">
|
1731
|
+
<xsl:with-param name="table-row" select="*[local-name()='tbody']/*[local-name()='tr'][1]"/>
|
1732
|
+
</xsl:call-template>
|
1733
|
+
</xsl:otherwise>
|
1734
|
+
</xsl:choose>
|
1735
|
+
</xsl:variable> -->
|
1736
|
+
<!-- cols-count=<xsl:copy-of select="$cols-count"/> -->
|
1737
|
+
<!-- cols-count2=<xsl:copy-of select="$cols-count2"/> -->
|
1738
|
+
|
1739
|
+
|
1740
|
+
|
1741
|
+
<xsl:variable name="colwidths">
|
1742
|
+
<xsl:call-template name="calculate-column-widths">
|
1743
|
+
<xsl:with-param name="cols-count" select="$cols-count"/>
|
1744
|
+
<xsl:with-param name="table" select="$simple-table"/>
|
1745
|
+
</xsl:call-template>
|
1746
|
+
</xsl:variable>
|
1747
|
+
|
1748
|
+
<!-- <xsl:variable name="colwidths2">
|
1749
|
+
<xsl:call-template name="calculate-column-widths">
|
1750
|
+
<xsl:with-param name="cols-count" select="$cols-count"/>
|
1751
|
+
</xsl:call-template>
|
1752
|
+
</xsl:variable> -->
|
1753
|
+
|
1754
|
+
<!-- cols-count=<xsl:copy-of select="$cols-count"/>
|
1755
|
+
colwidthsNew=<xsl:copy-of select="$colwidths"/>
|
1756
|
+
colwidthsOld=<xsl:copy-of select="$colwidths2"/>z -->
|
1757
|
+
|
1758
|
+
<xsl:variable name="margin-left">
|
1759
|
+
<xsl:choose>
|
1760
|
+
<xsl:when test="sum(xalan:nodeset($colwidths)//column) > 75">15</xsl:when>
|
1761
|
+
<xsl:otherwise>0</xsl:otherwise>
|
1762
|
+
</xsl:choose>
|
1763
|
+
</xsl:variable>
|
1764
|
+
|
1765
|
+
<fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
|
1766
|
+
|
1767
|
+
|
1768
|
+
|
1769
|
+
|
1770
|
+
|
1771
|
+
|
1772
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1773
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
1774
|
+
<xsl:attribute name="space-after">12pt</xsl:attribute>
|
1775
|
+
|
1776
|
+
|
1777
|
+
|
1778
|
+
|
1779
|
+
<fo:table id="{@id}" table-layout="fixed" width="100%" margin-left="{$margin-left}mm" margin-right="{$margin-left}mm" table-omit-footer-at-break="true">
|
1780
|
+
|
1781
|
+
|
1782
|
+
|
1783
|
+
|
1784
|
+
|
1785
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1786
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
1787
|
+
|
1788
|
+
|
1789
|
+
|
1790
|
+
|
1791
|
+
|
1792
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1793
|
+
|
1794
|
+
|
1795
|
+
|
1796
|
+
|
1797
|
+
<xsl:for-each select="xalan:nodeset($colwidths)//column">
|
1798
|
+
<xsl:choose>
|
1799
|
+
<xsl:when test=". = 1 or . = 0">
|
1800
|
+
<fo:table-column column-width="proportional-column-width(2)"/>
|
1801
|
+
</xsl:when>
|
1802
|
+
<xsl:otherwise>
|
1803
|
+
<fo:table-column column-width="proportional-column-width({.})"/>
|
1804
|
+
</xsl:otherwise>
|
1805
|
+
</xsl:choose>
|
1806
|
+
</xsl:for-each>
|
1807
|
+
|
1808
|
+
<xsl:choose>
|
1809
|
+
<xsl:when test="not(*[local-name()='tbody']) and *[local-name()='thead']">
|
1810
|
+
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
1811
|
+
</xsl:when>
|
1812
|
+
<xsl:otherwise>
|
1813
|
+
<xsl:apply-templates/>
|
1814
|
+
</xsl:otherwise>
|
1815
|
+
</xsl:choose>
|
1816
|
+
|
1817
|
+
</fo:table>
|
1818
|
+
|
1819
|
+
|
1820
|
+
|
1821
|
+
|
1822
|
+
|
1823
|
+
</fo:block-container>
|
1824
|
+
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']"/><xsl:template match="*[local-name()='table']/*[local-name() = 'name']" mode="presentation">
|
1825
|
+
<xsl:if test="normalize-space() != ''">
|
1826
|
+
<fo:block xsl:use-attribute-sets="table-name-style">
|
1827
|
+
<xsl:apply-templates/>
|
1828
|
+
</fo:block>
|
1829
|
+
</xsl:if>
|
1830
|
+
</xsl:template><xsl:template name="calculate-columns-numbers">
|
1831
|
+
<xsl:param name="table-row"/>
|
1832
|
+
<xsl:variable name="columns-count" select="count($table-row/*)"/>
|
1833
|
+
<xsl:variable name="sum-colspans" select="sum($table-row/*/@colspan)"/>
|
1834
|
+
<xsl:variable name="columns-with-colspan" select="count($table-row/*[@colspan])"/>
|
1835
|
+
<xsl:value-of select="$columns-count + $sum-colspans - $columns-with-colspan"/>
|
1836
|
+
</xsl:template><xsl:template name="calculate-column-widths">
|
1837
|
+
<xsl:param name="table"/>
|
1838
|
+
<xsl:param name="cols-count"/>
|
1839
|
+
<xsl:param name="curr-col" select="1"/>
|
1840
|
+
<xsl:param name="width" select="0"/>
|
1841
|
+
|
1842
|
+
<xsl:if test="$curr-col <= $cols-count">
|
1843
|
+
<xsl:variable name="widths">
|
1844
|
+
<xsl:choose>
|
1845
|
+
<xsl:when test="not($table)"><!-- this branch is not using in production, for debug only -->
|
1846
|
+
<xsl:for-each select="*[local-name()='thead']//*[local-name()='tr']">
|
1847
|
+
<xsl:variable name="words">
|
1848
|
+
<xsl:call-template name="tokenize">
|
1849
|
+
<xsl:with-param name="text" select="translate(*[local-name()='th'][$curr-col],'- —:', ' ')"/>
|
1850
|
+
</xsl:call-template>
|
1851
|
+
</xsl:variable>
|
1852
|
+
<xsl:variable name="max_length">
|
1853
|
+
<xsl:call-template name="max_length">
|
1854
|
+
<xsl:with-param name="words" select="xalan:nodeset($words)"/>
|
1855
|
+
</xsl:call-template>
|
1856
|
+
</xsl:variable>
|
1857
|
+
<width>
|
1858
|
+
<xsl:value-of select="$max_length"/>
|
1859
|
+
</width>
|
1860
|
+
</xsl:for-each>
|
1861
|
+
<xsl:for-each select="*[local-name()='tbody']//*[local-name()='tr']">
|
1862
|
+
<xsl:variable name="words">
|
1863
|
+
<xsl:call-template name="tokenize">
|
1864
|
+
<xsl:with-param name="text" select="translate(*[local-name()='td'][$curr-col],'- —:', ' ')"/>
|
1865
|
+
</xsl:call-template>
|
1866
|
+
</xsl:variable>
|
2518
1867
|
<xsl:variable name="max_length">
|
2519
1868
|
<xsl:call-template name="max_length">
|
2520
1869
|
<xsl:with-param name="words" select="xalan:nodeset($words)"/>
|
@@ -2695,6 +2044,16 @@
|
|
2695
2044
|
</fo:table-row>
|
2696
2045
|
</xsl:template><xsl:template match="*[local-name()='th']">
|
2697
2046
|
<fo:table-cell text-align="{@align}" font-weight="bold" border="solid black 1pt" padding-left="1mm" display-align="center">
|
2047
|
+
<xsl:attribute name="text-align">
|
2048
|
+
<xsl:choose>
|
2049
|
+
<xsl:when test="@align">
|
2050
|
+
<xsl:value-of select="@align"/>
|
2051
|
+
</xsl:when>
|
2052
|
+
<xsl:otherwise>center</xsl:otherwise>
|
2053
|
+
</xsl:choose>
|
2054
|
+
</xsl:attribute>
|
2055
|
+
|
2056
|
+
|
2698
2057
|
|
2699
2058
|
|
2700
2059
|
|
@@ -2718,10 +2077,18 @@
|
|
2718
2077
|
</fo:table-cell>
|
2719
2078
|
</xsl:template><xsl:template match="*[local-name()='td']">
|
2720
2079
|
<fo:table-cell text-align="{@align}" display-align="center" border="solid black 1pt" padding-left="1mm">
|
2080
|
+
<xsl:attribute name="text-align">
|
2081
|
+
<xsl:choose>
|
2082
|
+
<xsl:when test="@align">
|
2083
|
+
<xsl:value-of select="@align"/>
|
2084
|
+
</xsl:when>
|
2085
|
+
<xsl:otherwise>left</xsl:otherwise>
|
2086
|
+
</xsl:choose>
|
2087
|
+
</xsl:attribute>
|
2721
2088
|
|
2722
2089
|
|
2723
2090
|
|
2724
|
-
|
2091
|
+
|
2725
2092
|
|
2726
2093
|
|
2727
2094
|
|
@@ -2740,21 +2107,9 @@
|
|
2740
2107
|
<fo:block>
|
2741
2108
|
|
2742
2109
|
<xsl:apply-templates/>
|
2743
|
-
</fo:block>
|
2744
|
-
<!-- <xsl:choose>
|
2745
|
-
<xsl:when test="count(*) = 1 and *[local-name() = 'p']">
|
2746
|
-
<xsl:apply-templates />
|
2747
|
-
</xsl:when>
|
2748
|
-
<xsl:otherwise>
|
2749
|
-
<fo:block>
|
2750
|
-
<xsl:apply-templates />
|
2751
|
-
</fo:block>
|
2752
|
-
</xsl:otherwise>
|
2753
|
-
</xsl:choose> -->
|
2754
|
-
|
2755
|
-
|
2110
|
+
</fo:block>
|
2756
2111
|
</fo:table-cell>
|
2757
|
-
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']"/><xsl:template match="*[local-name()='table']/*[local-name()='note']" mode="process">
|
2112
|
+
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2"/><xsl:template match="*[local-name()='table']/*[local-name()='note']" mode="process">
|
2758
2113
|
|
2759
2114
|
|
2760
2115
|
<fo:block font-size="10pt" margin-bottom="12pt">
|
@@ -2765,26 +2120,15 @@
|
|
2765
2120
|
<fo:inline padding-right="2mm">
|
2766
2121
|
|
2767
2122
|
|
2768
|
-
<xsl:variable name="title-note">
|
2769
|
-
<xsl:call-template name="getTitle">
|
2770
|
-
<xsl:with-param name="name" select="'title-note'"/>
|
2771
|
-
</xsl:call-template>
|
2772
|
-
</xsl:variable>
|
2773
|
-
<xsl:value-of select="$title-note"/>
|
2774
2123
|
|
2775
|
-
|
2776
|
-
|
2777
|
-
<xsl:number count="*[local-name()='note'][ancestor::*[@id = $id]]" level="any"/>
|
2778
|
-
</xsl:if>
|
2124
|
+
|
2125
|
+
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
2779
2126
|
|
2780
|
-
|
2781
|
-
|
2782
|
-
|
2783
2127
|
</fo:inline>
|
2784
2128
|
<xsl:apply-templates mode="process"/>
|
2785
2129
|
</fo:block>
|
2786
2130
|
|
2787
|
-
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" mode="process">
|
2131
|
+
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='name']" mode="process"/><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" mode="process">
|
2788
2132
|
<xsl:apply-templates/>
|
2789
2133
|
</xsl:template><xsl:template name="fn_display">
|
2790
2134
|
<xsl:variable name="references">
|
@@ -2850,7 +2194,7 @@
|
|
2850
2194
|
<!-- and (not(@class) or @class !='pseudocode') -->
|
2851
2195
|
</xsl:variable>
|
2852
2196
|
<xsl:variable name="references">
|
2853
|
-
<xsl:for-each select=".//*[local-name()='fn']">
|
2197
|
+
<xsl:for-each select=".//*[local-name()='fn'][not(parent::*[local-name()='name'])]">
|
2854
2198
|
<fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
|
2855
2199
|
<xsl:apply-templates/>
|
2856
2200
|
</fn>
|
@@ -3127,7 +2471,7 @@
|
|
3127
2471
|
<xsl:value-of select="string-length(normalize-space(.))"/>
|
3128
2472
|
</xsl:if>
|
3129
2473
|
</xsl:for-each>
|
3130
|
-
</xsl:template><xsl:template match="*[local-name()='dl']/*[local-name()='note']">
|
2474
|
+
</xsl:template><xsl:template match="*[local-name()='dl']/*[local-name()='note']" priority="2">
|
3131
2475
|
<xsl:param name="key_iso"/>
|
3132
2476
|
|
3133
2477
|
<!-- <tr>
|
@@ -3143,12 +2487,7 @@
|
|
3143
2487
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
3144
2488
|
<xsl:attribute name="margin-top">0</xsl:attribute>
|
3145
2489
|
</xsl:if>
|
3146
|
-
<xsl:
|
3147
|
-
<xsl:call-template name="getTitle">
|
3148
|
-
<xsl:with-param name="name" select="'title-note'"/>
|
3149
|
-
</xsl:call-template>
|
3150
|
-
</xsl:variable>
|
3151
|
-
<xsl:value-of select="$title-note"/>
|
2490
|
+
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
3152
2491
|
</fo:block>
|
3153
2492
|
</fo:table-cell>
|
3154
2493
|
<fo:table-cell>
|
@@ -3220,7 +2559,7 @@
|
|
3220
2559
|
<fo:inline font-style="italic">
|
3221
2560
|
<xsl:apply-templates/>
|
3222
2561
|
</fo:inline>
|
3223
|
-
</xsl:template><xsl:template match="*[local-name()='strong']">
|
2562
|
+
</xsl:template><xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
3224
2563
|
<fo:inline font-weight="bold">
|
3225
2564
|
<xsl:apply-templates/>
|
3226
2565
|
</fo:inline>
|
@@ -3233,7 +2572,7 @@
|
|
3233
2572
|
<xsl:apply-templates/>
|
3234
2573
|
</fo:inline>
|
3235
2574
|
</xsl:template><xsl:template match="*[local-name()='tt']">
|
3236
|
-
<fo:inline
|
2575
|
+
<fo:inline xsl:use-attribute-sets="tt-style">
|
3237
2576
|
<xsl:apply-templates/>
|
3238
2577
|
</fo:inline>
|
3239
2578
|
</xsl:template><xsl:template match="*[local-name()='del']">
|
@@ -3564,117 +2903,860 @@
|
|
3564
2903
|
<xsl:copy-of select="."/>
|
3565
2904
|
</fo:instream-foreign-object>
|
3566
2905
|
</fo:inline>
|
3567
|
-
</xsl:template><xsl:template match="*[local-name()='localityStack']">
|
3568
|
-
<xsl:for-each select="*[local-name()='locality']">
|
3569
|
-
<xsl:if test="position() =1"><xsl:text>, </xsl:text></xsl:if>
|
3570
|
-
<xsl:apply-templates select="."/>
|
3571
|
-
<xsl:if test="position() != last()"><xsl:text>; </xsl:text></xsl:if>
|
3572
|
-
</xsl:for-each>
|
3573
|
-
</xsl:template><xsl:template match="*[local-name()='link']" name="link">
|
2906
|
+
</xsl:template><xsl:template match="*[local-name()='localityStack']"/><xsl:template match="*[local-name()='link']" name="link">
|
3574
2907
|
<xsl:variable name="target">
|
3575
2908
|
<xsl:choose>
|
3576
|
-
<xsl:when test="starts-with(normalize-space(@target), 'mailto:')">
|
3577
|
-
<xsl:value-of select="normalize-space(substring-after(@target, 'mailto:'))"/>
|
2909
|
+
<xsl:when test="starts-with(normalize-space(@target), 'mailto:')">
|
2910
|
+
<xsl:value-of select="normalize-space(substring-after(@target, 'mailto:'))"/>
|
2911
|
+
</xsl:when>
|
2912
|
+
<xsl:otherwise>
|
2913
|
+
<xsl:value-of select="normalize-space(@target)"/>
|
2914
|
+
</xsl:otherwise>
|
2915
|
+
</xsl:choose>
|
2916
|
+
</xsl:variable>
|
2917
|
+
<fo:inline xsl:use-attribute-sets="link-style">
|
2918
|
+
<xsl:choose>
|
2919
|
+
<xsl:when test="$target = ''">
|
2920
|
+
<xsl:apply-templates/>
|
2921
|
+
</xsl:when>
|
2922
|
+
<xsl:otherwise>
|
2923
|
+
<fo:basic-link external-destination="{@target}" fox:alt-text="{@target}">
|
2924
|
+
<xsl:choose>
|
2925
|
+
<xsl:when test="normalize-space(.) = ''">
|
2926
|
+
<xsl:value-of select="$target"/>
|
2927
|
+
</xsl:when>
|
2928
|
+
<xsl:otherwise>
|
2929
|
+
<xsl:apply-templates/>
|
2930
|
+
</xsl:otherwise>
|
2931
|
+
</xsl:choose>
|
2932
|
+
</fo:basic-link>
|
2933
|
+
</xsl:otherwise>
|
2934
|
+
</xsl:choose>
|
2935
|
+
</fo:inline>
|
2936
|
+
</xsl:template><xsl:template match="*[local-name()='bookmark']">
|
2937
|
+
<fo:inline id="{@id}"/>
|
2938
|
+
</xsl:template><xsl:template match="*[local-name()='appendix']">
|
2939
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
|
2940
|
+
<xsl:apply-templates select="*[local-name()='title']" mode="process"/>
|
2941
|
+
</fo:block>
|
2942
|
+
<xsl:apply-templates/>
|
2943
|
+
</xsl:template><xsl:template match="*[local-name()='appendix']/*[local-name()='title']"/><xsl:template match="*[local-name()='appendix']/*[local-name()='title']" mode="process">
|
2944
|
+
<fo:inline><xsl:apply-templates/></fo:inline>
|
2945
|
+
</xsl:template><xsl:template match="*[local-name()='appendix']//*[local-name()='example']" priority="2">
|
2946
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-example-style">
|
2947
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
2948
|
+
</fo:block>
|
2949
|
+
<xsl:apply-templates/>
|
2950
|
+
</xsl:template><xsl:template match="*[local-name() = 'callout']">
|
2951
|
+
<fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}"><<xsl:apply-templates/>></fo:basic-link>
|
2952
|
+
</xsl:template><xsl:template match="*[local-name() = 'annotation']">
|
2953
|
+
<xsl:variable name="annotation-id" select="@id"/>
|
2954
|
+
<xsl:variable name="callout" select="//*[@target = $annotation-id]/text()"/>
|
2955
|
+
<fo:block id="{$annotation-id}" white-space="nowrap">
|
2956
|
+
<fo:inline>
|
2957
|
+
<xsl:apply-templates>
|
2958
|
+
<xsl:with-param name="callout" select="concat('<', $callout, '> ')"/>
|
2959
|
+
</xsl:apply-templates>
|
2960
|
+
</fo:inline>
|
2961
|
+
</fo:block>
|
2962
|
+
</xsl:template><xsl:template match="*[local-name() = 'annotation']/*[local-name() = 'p']">
|
2963
|
+
<xsl:param name="callout"/>
|
2964
|
+
<fo:inline id="{@id}">
|
2965
|
+
<!-- for first p in annotation, put <x> -->
|
2966
|
+
<xsl:if test="not(preceding-sibling::*[local-name() = 'p'])"><xsl:value-of select="$callout"/></xsl:if>
|
2967
|
+
<xsl:apply-templates/>
|
2968
|
+
</fo:inline>
|
2969
|
+
</xsl:template><xsl:template match="*[local-name() = 'modification']">
|
2970
|
+
<xsl:variable name="title-modified">
|
2971
|
+
<xsl:call-template name="getTitle">
|
2972
|
+
<xsl:with-param name="name" select="'title-modified'"/>
|
2973
|
+
</xsl:call-template>
|
2974
|
+
</xsl:variable>
|
2975
|
+
<xsl:choose>
|
2976
|
+
<xsl:when test="$lang = 'zh'"><xsl:text>、</xsl:text><xsl:value-of select="$title-modified"/><xsl:text>—</xsl:text></xsl:when>
|
2977
|
+
<xsl:otherwise><xsl:text>, </xsl:text><xsl:value-of select="$title-modified"/><xsl:text> — </xsl:text></xsl:otherwise>
|
2978
|
+
</xsl:choose>
|
2979
|
+
<xsl:apply-templates/>
|
2980
|
+
</xsl:template><xsl:template match="*[local-name() = 'xref']">
|
2981
|
+
<fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
|
2982
|
+
|
2983
|
+
<xsl:apply-templates/>
|
2984
|
+
</fo:basic-link>
|
2985
|
+
</xsl:template><xsl:template match="*[local-name() = 'formula']" name="formula">
|
2986
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="formula-style">
|
2987
|
+
<xsl:apply-templates/>
|
2988
|
+
</fo:block>
|
2989
|
+
</xsl:template><xsl:template match="*[local-name() = 'formula']/*[local-name() = 'dt']/*[local-name() = 'stem']">
|
2990
|
+
<fo:inline>
|
2991
|
+
<xsl:apply-templates/>
|
2992
|
+
</fo:inline>
|
2993
|
+
</xsl:template><xsl:template match="*[local-name() = 'admitted']/*[local-name() = 'stem']">
|
2994
|
+
<fo:inline>
|
2995
|
+
<xsl:apply-templates/>
|
2996
|
+
</fo:inline>
|
2997
|
+
</xsl:template><xsl:template match="*[local-name() = 'formula']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'formula']/*[local-name() = 'name']" mode="presentation">
|
2998
|
+
<xsl:if test="normalize-space() != ''">
|
2999
|
+
<xsl:text>(</xsl:text><xsl:apply-templates/><xsl:text>)</xsl:text>
|
3000
|
+
</xsl:if>
|
3001
|
+
</xsl:template><xsl:template match="*[local-name() = 'note']" name="note">
|
3002
|
+
|
3003
|
+
<fo:block-container id="{@id}" xsl:use-attribute-sets="note-style">
|
3004
|
+
|
3005
|
+
|
3006
|
+
<xsl:if test="ancestor::ogc:ul or ancestor::ogc:ol and not(ancestor::ogc:note[1]/following-sibling::*)">
|
3007
|
+
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
3008
|
+
</xsl:if>
|
3009
|
+
|
3010
|
+
|
3011
|
+
|
3012
|
+
<fo:block-container margin-left="0mm">
|
3013
|
+
|
3014
|
+
|
3015
|
+
|
3016
|
+
|
3017
|
+
|
3018
|
+
|
3019
|
+
|
3020
|
+
|
3021
|
+
<fo:block>
|
3022
|
+
|
3023
|
+
|
3024
|
+
|
3025
|
+
|
3026
|
+
<fo:inline xsl:use-attribute-sets="note-name-style">
|
3027
|
+
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
3028
|
+
</fo:inline>
|
3029
|
+
<xsl:apply-templates/>
|
3030
|
+
</fo:block>
|
3031
|
+
|
3032
|
+
|
3033
|
+
</fo:block-container>
|
3034
|
+
</fo:block-container>
|
3035
|
+
|
3036
|
+
</xsl:template><xsl:template match="*[local-name() = 'note']/*[local-name() = 'p']">
|
3037
|
+
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
3038
|
+
<xsl:choose>
|
3039
|
+
<xsl:when test="$num = 1">
|
3040
|
+
<fo:inline xsl:use-attribute-sets="note-p-style">
|
3041
|
+
<xsl:apply-templates/>
|
3042
|
+
</fo:inline>
|
3043
|
+
</xsl:when>
|
3044
|
+
<xsl:otherwise>
|
3045
|
+
<fo:block xsl:use-attribute-sets="note-p-style">
|
3046
|
+
<xsl:apply-templates/>
|
3047
|
+
</fo:block>
|
3048
|
+
</xsl:otherwise>
|
3049
|
+
</xsl:choose>
|
3050
|
+
</xsl:template><xsl:template match="*[local-name() = 'termnote']">
|
3051
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
|
3052
|
+
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
3053
|
+
<xsl:apply-templates/>
|
3054
|
+
</fo:block>
|
3055
|
+
</xsl:template><xsl:template match="*[local-name() = 'note']/*[local-name() = 'name'] | *[local-name() = 'termnote']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'note']/*[local-name() = 'name']" mode="presentation">
|
3056
|
+
<xsl:param name="sfx"/>
|
3057
|
+
<xsl:variable name="suffix">
|
3058
|
+
<xsl:choose>
|
3059
|
+
<xsl:when test="$sfx != ''">
|
3060
|
+
<xsl:value-of select="$sfx"/>
|
3061
|
+
</xsl:when>
|
3062
|
+
<xsl:otherwise>
|
3063
|
+
|
3064
|
+
|
3065
|
+
</xsl:otherwise>
|
3066
|
+
</xsl:choose>
|
3067
|
+
</xsl:variable>
|
3068
|
+
<xsl:if test="normalize-space() != ''">
|
3069
|
+
<xsl:apply-templates/>
|
3070
|
+
<xsl:value-of select="$suffix"/>
|
3071
|
+
</xsl:if>
|
3072
|
+
</xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'name']" mode="presentation">
|
3073
|
+
<xsl:param name="sfx"/>
|
3074
|
+
<xsl:variable name="suffix">
|
3075
|
+
<xsl:choose>
|
3076
|
+
<xsl:when test="$sfx != ''">
|
3077
|
+
<xsl:value-of select="$sfx"/>
|
3078
|
+
</xsl:when>
|
3079
|
+
<xsl:otherwise>
|
3080
|
+
|
3081
|
+
<xsl:text>:</xsl:text>
|
3082
|
+
|
3083
|
+
|
3084
|
+
</xsl:otherwise>
|
3085
|
+
</xsl:choose>
|
3086
|
+
</xsl:variable>
|
3087
|
+
<xsl:if test="normalize-space() != ''">
|
3088
|
+
<xsl:apply-templates/>
|
3089
|
+
<xsl:value-of select="$suffix"/>
|
3090
|
+
</xsl:if>
|
3091
|
+
</xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
|
3092
|
+
<fo:inline><xsl:apply-templates/></fo:inline>
|
3093
|
+
</xsl:template><xsl:template match="*[local-name() = 'terms']">
|
3094
|
+
<fo:block id="{@id}">
|
3095
|
+
<xsl:apply-templates/>
|
3096
|
+
</fo:block>
|
3097
|
+
</xsl:template><xsl:template match="*[local-name() = 'term']">
|
3098
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
3099
|
+
|
3100
|
+
|
3101
|
+
|
3102
|
+
<xsl:apply-templates/>
|
3103
|
+
</fo:block>
|
3104
|
+
</xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
|
3105
|
+
<xsl:if test="normalize-space() != ''">
|
3106
|
+
<fo:inline>
|
3107
|
+
<xsl:apply-templates/>
|
3108
|
+
<!-- <xsl:if test="$namespace = 'gb' or $namespace = 'ogc'">
|
3109
|
+
<xsl:text>.</xsl:text>
|
3110
|
+
</xsl:if> -->
|
3111
|
+
</fo:inline>
|
3112
|
+
</xsl:if>
|
3113
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure']">
|
3114
|
+
<fo:block-container id="{@id}">
|
3115
|
+
<fo:block>
|
3116
|
+
<xsl:apply-templates/>
|
3117
|
+
</fo:block>
|
3118
|
+
<xsl:call-template name="fn_display_figure"/>
|
3119
|
+
<xsl:for-each select="*[local-name() = 'note']">
|
3120
|
+
<xsl:call-template name="note"/>
|
3121
|
+
</xsl:for-each>
|
3122
|
+
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
3123
|
+
</fo:block-container>
|
3124
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']">
|
3125
|
+
<fo:block id="{@id}">
|
3126
|
+
<xsl:apply-templates/>
|
3127
|
+
</fo:block>
|
3128
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']//*[local-name() = 'p']">
|
3129
|
+
<fo:block xsl:use-attribute-sets="figure-pseudocode-p-style">
|
3130
|
+
<xsl:apply-templates/>
|
3131
|
+
</fo:block>
|
3132
|
+
</xsl:template><xsl:template match="*[local-name() = 'image']">
|
3133
|
+
<fo:block xsl:use-attribute-sets="image-style">
|
3134
|
+
|
3135
|
+
|
3136
|
+
<xsl:variable name="src">
|
3137
|
+
<xsl:choose>
|
3138
|
+
<xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
|
3139
|
+
<xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
|
3140
|
+
</xsl:when>
|
3141
|
+
<xsl:otherwise>
|
3142
|
+
<xsl:value-of select="@src"/>
|
3143
|
+
</xsl:otherwise>
|
3144
|
+
</xsl:choose>
|
3145
|
+
</xsl:variable>
|
3146
|
+
|
3147
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
|
3148
|
+
</fo:block>
|
3149
|
+
</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">
|
3150
|
+
<xsl:apply-templates mode="contents"/>
|
3151
|
+
<xsl:text> </xsl:text>
|
3152
|
+
</xsl:template><xsl:template match="text()" mode="contents">
|
3153
|
+
<xsl:value-of select="."/>
|
3154
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'image']/*[local-name() = 'name']" mode="presentation">
|
3155
|
+
<xsl:if test="normalize-space() != ''">
|
3156
|
+
<fo:block xsl:use-attribute-sets="figure-name-style">
|
3157
|
+
|
3158
|
+
<xsl:apply-templates/>
|
3159
|
+
</fo:block>
|
3160
|
+
</xsl:if>
|
3161
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'fn']" priority="2"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'note']"/><xsl:template match="*[local-name() = 'title']" mode="contents_item">
|
3162
|
+
<xsl:apply-templates mode="contents_item"/>
|
3163
|
+
<!-- <xsl:text> </xsl:text> -->
|
3164
|
+
</xsl:template><xsl:template name="getSection">
|
3165
|
+
<xsl:value-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
|
3166
|
+
</xsl:template><xsl:template name="getName">
|
3167
|
+
<xsl:choose>
|
3168
|
+
<xsl:when test="*[local-name() = 'title']/*[local-name() = 'tab']">
|
3169
|
+
<xsl:copy-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/following-sibling::node()"/>
|
3170
|
+
</xsl:when>
|
3171
|
+
<xsl:otherwise>
|
3172
|
+
<xsl:copy-of select="*[local-name() = 'title']/node()"/>
|
3173
|
+
</xsl:otherwise>
|
3174
|
+
</xsl:choose>
|
3175
|
+
</xsl:template><xsl:template name="insertTitleAsListItem">
|
3176
|
+
<xsl:param name="provisional-distance-between-starts" select="'9.5mm'"/>
|
3177
|
+
<xsl:variable name="section">
|
3178
|
+
<xsl:for-each select="..">
|
3179
|
+
<xsl:call-template name="getSection"/>
|
3180
|
+
</xsl:for-each>
|
3181
|
+
</xsl:variable>
|
3182
|
+
<fo:list-block provisional-distance-between-starts="{$provisional-distance-between-starts}">
|
3183
|
+
<fo:list-item>
|
3184
|
+
<fo:list-item-label end-indent="label-end()">
|
3185
|
+
<fo:block>
|
3186
|
+
<xsl:value-of select="$section"/>
|
3187
|
+
</fo:block>
|
3188
|
+
</fo:list-item-label>
|
3189
|
+
<fo:list-item-body start-indent="body-start()">
|
3190
|
+
<fo:block>
|
3191
|
+
<xsl:choose>
|
3192
|
+
<xsl:when test="*[local-name() = 'tab']">
|
3193
|
+
<xsl:apply-templates select="*[local-name() = 'tab'][1]/following-sibling::node()"/>
|
3194
|
+
</xsl:when>
|
3195
|
+
<xsl:otherwise>
|
3196
|
+
<xsl:apply-templates/>
|
3197
|
+
</xsl:otherwise>
|
3198
|
+
</xsl:choose>
|
3199
|
+
</fo:block>
|
3200
|
+
</fo:list-item-body>
|
3201
|
+
</fo:list-item>
|
3202
|
+
</fo:list-block>
|
3203
|
+
</xsl:template><xsl:template name="extractTitle">
|
3204
|
+
<xsl:choose>
|
3205
|
+
<xsl:when test="*[local-name() = 'tab']">
|
3206
|
+
<xsl:apply-templates select="*[local-name() = 'tab'][1]/following-sibling::node()"/>
|
3207
|
+
</xsl:when>
|
3208
|
+
<xsl:otherwise>
|
3209
|
+
<xsl:apply-templates/>
|
3210
|
+
</xsl:otherwise>
|
3211
|
+
</xsl:choose>
|
3212
|
+
</xsl:template><xsl:template match="*[local-name() = 'fn']" mode="contents"/><xsl:template match="*[local-name() = 'fn']" mode="contents_item"/><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
|
3213
|
+
<xsl:text> </xsl:text>
|
3214
|
+
</xsl:template><xsl:template match="*[local-name() = 'strong']" mode="contents_item">
|
3215
|
+
<xsl:copy>
|
3216
|
+
<xsl:apply-templates mode="contents_item"/>
|
3217
|
+
</xsl:copy>
|
3218
|
+
</xsl:template><xsl:template match="*[local-name() = 'br']" mode="contents_item">
|
3219
|
+
<xsl:text> </xsl:text>
|
3220
|
+
</xsl:template><xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
|
3221
|
+
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
3222
|
+
<xsl:apply-templates/>
|
3223
|
+
</fo:block>
|
3224
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
3225
|
+
</xsl:template><xsl:template match="*[local-name()='sourcecode']/text()">
|
3226
|
+
<xsl:variable name="text">
|
3227
|
+
<xsl:call-template name="add-zero-spaces-equal"/>
|
3228
|
+
</xsl:variable>
|
3229
|
+
<xsl:call-template name="add-zero-spaces">
|
3230
|
+
<xsl:with-param name="text" select="$text"/>
|
3231
|
+
</xsl:call-template>
|
3232
|
+
</xsl:template><xsl:template match="*[local-name() = 'sourcecode']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'sourcecode']/*[local-name() = 'name']" mode="presentation">
|
3233
|
+
<xsl:if test="normalize-space() != ''">
|
3234
|
+
<fo:block xsl:use-attribute-sets="sourcecode-name-style">
|
3235
|
+
|
3236
|
+
<xsl:apply-templates/>
|
3237
|
+
</fo:block>
|
3238
|
+
</xsl:if>
|
3239
|
+
</xsl:template><xsl:template match="*[local-name() = 'permission']">
|
3240
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="permission-style">
|
3241
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
3242
|
+
<xsl:apply-templates/>
|
3243
|
+
</fo:block>
|
3244
|
+
</xsl:template><xsl:template match="*[local-name() = 'permission']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'permission']/*[local-name() = 'name']" mode="presentation">
|
3245
|
+
<xsl:if test="normalize-space() != ''">
|
3246
|
+
<fo:block xsl:use-attribute-sets="permission-name-style">
|
3247
|
+
<xsl:apply-templates/>
|
3248
|
+
|
3249
|
+
<xsl:text>:</xsl:text>
|
3250
|
+
|
3251
|
+
</fo:block>
|
3252
|
+
</xsl:if>
|
3253
|
+
</xsl:template><xsl:template match="*[local-name() = 'permission']/*[local-name() = 'label']">
|
3254
|
+
<fo:block xsl:use-attribute-sets="permission-label-style">
|
3255
|
+
<xsl:apply-templates/>
|
3256
|
+
</fo:block>
|
3257
|
+
</xsl:template><xsl:template match="*[local-name() = 'requirement']">
|
3258
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="requirement-style">
|
3259
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
3260
|
+
<xsl:apply-templates select="*[local-name()='label']" mode="presentation"/>
|
3261
|
+
<xsl:apply-templates select="@obligation" mode="presentation"/>
|
3262
|
+
<xsl:apply-templates select="*[local-name()='subject']" mode="presentation"/>
|
3263
|
+
<xsl:apply-templates/>
|
3264
|
+
</fo:block>
|
3265
|
+
</xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'name']" mode="presentation">
|
3266
|
+
<xsl:if test="normalize-space() != ''">
|
3267
|
+
<fo:block xsl:use-attribute-sets="requirement-name-style">
|
3268
|
+
|
3269
|
+
<xsl:if test="../@type = 'class'">
|
3270
|
+
<xsl:attribute name="background-color">white</xsl:attribute>
|
3271
|
+
</xsl:if>
|
3272
|
+
|
3273
|
+
<xsl:apply-templates/>
|
3274
|
+
|
3275
|
+
<xsl:text>:</xsl:text>
|
3276
|
+
|
3277
|
+
</fo:block>
|
3278
|
+
</xsl:if>
|
3279
|
+
</xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'label']"/><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'label']" mode="presentation">
|
3280
|
+
<fo:block xsl:use-attribute-sets="requirement-label-style">
|
3281
|
+
<xsl:apply-templates/>
|
3282
|
+
</fo:block>
|
3283
|
+
</xsl:template><xsl:template match="*[local-name() = 'requirement']/@obligation" mode="presentation">
|
3284
|
+
<fo:block>
|
3285
|
+
<fo:inline padding-right="3mm">Obligation</fo:inline><xsl:value-of select="."/>
|
3286
|
+
</fo:block>
|
3287
|
+
</xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'subject']"/><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'subject']" mode="presentation">
|
3288
|
+
<fo:block xsl:use-attribute-sets="requirement-subject-style">
|
3289
|
+
<xsl:text>Target Type </xsl:text><xsl:apply-templates/>
|
3290
|
+
</fo:block>
|
3291
|
+
</xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'inherit']">
|
3292
|
+
<fo:block xsl:use-attribute-sets="requirement-inherit-style">
|
3293
|
+
<xsl:text>Dependency </xsl:text><xsl:apply-templates/>
|
3294
|
+
</fo:block>
|
3295
|
+
</xsl:template><xsl:template match="*[local-name() = 'recommendation']">
|
3296
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="recommendation-style">
|
3297
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
3298
|
+
<xsl:apply-templates/>
|
3299
|
+
</fo:block>
|
3300
|
+
</xsl:template><xsl:template match="*[local-name() = 'recommendation']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'recommendation']/*[local-name() = 'name']" mode="presentation">
|
3301
|
+
<xsl:if test="normalize-space() != ''">
|
3302
|
+
<fo:block xsl:use-attribute-sets="recommendation-name-style">
|
3303
|
+
<xsl:apply-templates/>
|
3304
|
+
|
3305
|
+
</fo:block>
|
3306
|
+
</xsl:if>
|
3307
|
+
</xsl:template><xsl:template match="*[local-name() = 'recommendation']/*[local-name() = 'label']">
|
3308
|
+
<fo:block xsl:use-attribute-sets="recommendation-label-style">
|
3309
|
+
<xsl:apply-templates/>
|
3310
|
+
</fo:block>
|
3311
|
+
</xsl:template><xsl:template match="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
3312
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" margin-bottom="12pt">
|
3313
|
+
<fo:block-container margin-left="0mm" margin-right="0mm">
|
3314
|
+
<fo:table id="{@id}" table-layout="fixed" width="100%" border="0pt solid black">
|
3315
|
+
<xsl:variable name="simple-table">
|
3316
|
+
<xsl:call-template name="getSimpleTable"/>
|
3317
|
+
</xsl:variable>
|
3318
|
+
<xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
|
3319
|
+
<xsl:if test="$cols-count = 2 and not(ancestor::*[local-name()='table'])">
|
3320
|
+
<fo:table-column column-width="35mm"/>
|
3321
|
+
<fo:table-column column-width="115mm"/>
|
3322
|
+
</xsl:if>
|
3323
|
+
<xsl:apply-templates mode="requirement"/>
|
3324
|
+
</fo:table>
|
3325
|
+
<!-- fn processing -->
|
3326
|
+
<xsl:if test=".//*[local-name() = 'fn']">
|
3327
|
+
<xsl:for-each select="*[local-name() = 'tbody']">
|
3328
|
+
<fo:block font-size="90%" border-bottom="1.pt solid black">
|
3329
|
+
<xsl:call-template name="fn_display"/>
|
3330
|
+
</fo:block>
|
3331
|
+
</xsl:for-each>
|
3332
|
+
</xsl:if>
|
3333
|
+
</fo:block-container>
|
3334
|
+
</fo:block-container>
|
3335
|
+
</xsl:template><xsl:template match="*[local-name()='thead']" mode="requirement">
|
3336
|
+
<fo:table-header>
|
3337
|
+
<xsl:apply-templates mode="requirement"/>
|
3338
|
+
</fo:table-header>
|
3339
|
+
</xsl:template><xsl:template match="*[local-name()='tbody']" mode="requirement">
|
3340
|
+
<fo:table-body>
|
3341
|
+
<xsl:apply-templates mode="requirement"/>
|
3342
|
+
</fo:table-body>
|
3343
|
+
</xsl:template><xsl:template match="*[local-name()='tr']" mode="requirement">
|
3344
|
+
<fo:table-row>
|
3345
|
+
<xsl:apply-templates mode="requirement"/>
|
3346
|
+
</fo:table-row>
|
3347
|
+
</xsl:template><xsl:template match="*[local-name()='th']" mode="requirement">
|
3348
|
+
<fo:table-cell text-align="{@align}">
|
3349
|
+
<xsl:attribute name="text-align">
|
3350
|
+
<xsl:choose>
|
3351
|
+
<xsl:when test="@align">
|
3352
|
+
<xsl:value-of select="@align"/>
|
3353
|
+
</xsl:when>
|
3354
|
+
<xsl:otherwise>center</xsl:otherwise>
|
3355
|
+
</xsl:choose>
|
3356
|
+
</xsl:attribute>
|
3357
|
+
<xsl:if test="@colspan">
|
3358
|
+
<xsl:attribute name="number-columns-spanned">
|
3359
|
+
<xsl:value-of select="@colspan"/>
|
3360
|
+
</xsl:attribute>
|
3361
|
+
</xsl:if>
|
3362
|
+
<xsl:if test="@rowspan">
|
3363
|
+
<xsl:attribute name="number-rows-spanned">
|
3364
|
+
<xsl:value-of select="@rowspan"/>
|
3365
|
+
</xsl:attribute>
|
3366
|
+
</xsl:if>
|
3367
|
+
|
3368
|
+
<xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
|
3369
|
+
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
3370
|
+
<xsl:attribute name="background-color">rgb(165, 165, 165)</xsl:attribute>
|
3371
|
+
</xsl:if>
|
3372
|
+
<xsl:if test="ancestor::*[local-name()='table']/@type = 'recommendtest'">
|
3373
|
+
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
3374
|
+
<xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
|
3375
|
+
</xsl:if>
|
3376
|
+
|
3377
|
+
<fo:block>
|
3378
|
+
<xsl:apply-templates/>
|
3379
|
+
</fo:block>
|
3380
|
+
</fo:table-cell>
|
3381
|
+
</xsl:template><xsl:template match="*[local-name()='td']" mode="requirement">
|
3382
|
+
<fo:table-cell text-align="{@align}">
|
3383
|
+
<xsl:attribute name="text-align">
|
3384
|
+
<xsl:choose>
|
3385
|
+
<xsl:when test="@align">
|
3386
|
+
<xsl:value-of select="@align"/>
|
3387
|
+
</xsl:when>
|
3388
|
+
<xsl:otherwise>left</xsl:otherwise>
|
3389
|
+
</xsl:choose>
|
3390
|
+
</xsl:attribute>
|
3391
|
+
<xsl:if test="@colspan">
|
3392
|
+
<xsl:attribute name="number-columns-spanned">
|
3393
|
+
<xsl:value-of select="@colspan"/>
|
3394
|
+
</xsl:attribute>
|
3395
|
+
</xsl:if>
|
3396
|
+
<xsl:if test="@rowspan">
|
3397
|
+
<xsl:attribute name="number-rows-spanned">
|
3398
|
+
<xsl:value-of select="@rowspan"/>
|
3399
|
+
</xsl:attribute>
|
3400
|
+
</xsl:if>
|
3401
|
+
|
3402
|
+
<xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
|
3403
|
+
<xsl:attribute name="padding-left">0.5mm</xsl:attribute>
|
3404
|
+
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
3405
|
+
<xsl:if test="parent::*[local-name()='tr']/preceding-sibling::*[local-name()='tr'] and not(*[local-name()='table'])"> <!-- 2nd line and below -->
|
3406
|
+
<xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
|
3407
|
+
</xsl:if>
|
3408
|
+
</xsl:if>
|
3409
|
+
|
3410
|
+
<fo:block>
|
3411
|
+
<xsl:apply-templates/>
|
3412
|
+
</fo:block>
|
3413
|
+
</fo:table-cell>
|
3414
|
+
</xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
|
3415
|
+
<fo:block font-size="11pt" font-weight="bold" text-align="center" margin-bottom="4pt">
|
3416
|
+
<xsl:apply-templates/>
|
3417
|
+
</fo:block>
|
3418
|
+
</xsl:template><xsl:template match="*[local-name() = 'p'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
|
3419
|
+
<fo:block margin-bottom="10pt">
|
3420
|
+
<xsl:apply-templates/>
|
3421
|
+
</fo:block>
|
3422
|
+
</xsl:template><xsl:template match="*[local-name() = 'termexample']">
|
3423
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="termexample-style">
|
3424
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
3425
|
+
<xsl:apply-templates/>
|
3426
|
+
</fo:block>
|
3427
|
+
</xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'name']" mode="presentation">
|
3428
|
+
<xsl:if test="normalize-space() != ''">
|
3429
|
+
<fo:inline xsl:use-attribute-sets="termexample-name-style">
|
3430
|
+
<xsl:apply-templates/>
|
3431
|
+
</fo:inline>
|
3432
|
+
</xsl:if>
|
3433
|
+
</xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'p']">
|
3434
|
+
<fo:inline><xsl:apply-templates/></fo:inline>
|
3435
|
+
</xsl:template><xsl:template match="*[local-name() = 'example']">
|
3436
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="example-style">
|
3437
|
+
|
3438
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
3439
|
+
|
3440
|
+
<xsl:variable name="element">
|
3441
|
+
block
|
3442
|
+
|
3443
|
+
</xsl:variable>
|
3444
|
+
|
3445
|
+
<xsl:choose>
|
3446
|
+
<xsl:when test="normalize-space($element) = 'block'">
|
3447
|
+
<fo:block xsl:use-attribute-sets="example-body-style">
|
3448
|
+
<xsl:apply-templates/>
|
3449
|
+
</fo:block>
|
3450
|
+
</xsl:when>
|
3451
|
+
<xsl:otherwise>
|
3452
|
+
<fo:inline>
|
3453
|
+
<xsl:apply-templates/>
|
3454
|
+
</fo:inline>
|
3455
|
+
</xsl:otherwise>
|
3456
|
+
</xsl:choose>
|
3457
|
+
|
3458
|
+
</fo:block>
|
3459
|
+
</xsl:template><xsl:template match="*[local-name() = 'example']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'example']/*[local-name() = 'name']" mode="presentation">
|
3460
|
+
|
3461
|
+
<xsl:variable name="element">
|
3462
|
+
block
|
3463
|
+
|
3464
|
+
</xsl:variable>
|
3465
|
+
<xsl:choose>
|
3466
|
+
<xsl:when test="ancestor::*[local-name() = 'appendix']">
|
3467
|
+
<fo:inline>
|
3468
|
+
<xsl:apply-templates/>
|
3469
|
+
</fo:inline>
|
3470
|
+
</xsl:when>
|
3471
|
+
<xsl:when test="normalize-space($element) = 'block'">
|
3472
|
+
<fo:block xsl:use-attribute-sets="example-name-style">
|
3473
|
+
<xsl:apply-templates/>
|
3474
|
+
</fo:block>
|
3475
|
+
</xsl:when>
|
3476
|
+
<xsl:otherwise>
|
3477
|
+
<fo:inline xsl:use-attribute-sets="example-name-style">
|
3478
|
+
<xsl:apply-templates/>
|
3479
|
+
</fo:inline>
|
3480
|
+
</xsl:otherwise>
|
3481
|
+
</xsl:choose>
|
3482
|
+
|
3483
|
+
</xsl:template><xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
3484
|
+
<fo:block xsl:use-attribute-sets="example-p-style">
|
3485
|
+
|
3486
|
+
<xsl:apply-templates/>
|
3487
|
+
</fo:block>
|
3488
|
+
</xsl:template><xsl:template match="*[local-name() = 'termsource']">
|
3489
|
+
<fo:block xsl:use-attribute-sets="termsource-style">
|
3490
|
+
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
3491
|
+
<xsl:variable name="termsource_text">
|
3492
|
+
<xsl:apply-templates/>
|
3493
|
+
</xsl:variable>
|
3494
|
+
<xsl:choose>
|
3495
|
+
<xsl:when test="starts-with(normalize-space($termsource_text), '[')">
|
3496
|
+
<xsl:apply-templates/>
|
3578
3497
|
</xsl:when>
|
3579
3498
|
<xsl:otherwise>
|
3580
|
-
<xsl:
|
3499
|
+
<xsl:text>[</xsl:text>
|
3500
|
+
<xsl:apply-templates/>
|
3501
|
+
<xsl:text>]</xsl:text>
|
3581
3502
|
</xsl:otherwise>
|
3582
3503
|
</xsl:choose>
|
3504
|
+
</fo:block>
|
3505
|
+
</xsl:template><xsl:template match="*[local-name() = 'termsource']/text()">
|
3506
|
+
<xsl:if test="normalize-space() != ''">
|
3507
|
+
<xsl:value-of select="."/>
|
3508
|
+
</xsl:if>
|
3509
|
+
</xsl:template><xsl:template match="*[local-name() = 'origin']">
|
3510
|
+
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
3511
|
+
|
3512
|
+
<xsl:call-template name="getTitle">
|
3513
|
+
<xsl:with-param name="name" select="'title-source'"/>
|
3514
|
+
</xsl:call-template>
|
3515
|
+
<xsl:text>: </xsl:text>
|
3516
|
+
|
3517
|
+
<fo:inline xsl:use-attribute-sets="origin-style">
|
3518
|
+
<xsl:apply-templates/>
|
3519
|
+
</fo:inline>
|
3520
|
+
</fo:basic-link>
|
3521
|
+
</xsl:template><xsl:template match="*[local-name() = 'modification']/*[local-name() = 'p']">
|
3522
|
+
<fo:inline><xsl:apply-templates/></fo:inline>
|
3523
|
+
</xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
|
3524
|
+
<xsl:if test="normalize-space() != ''">
|
3525
|
+
<xsl:value-of select="."/>
|
3526
|
+
</xsl:if>
|
3527
|
+
</xsl:template><xsl:template match="*[local-name() = 'quote']">
|
3528
|
+
|
3529
|
+
<fo:block xsl:use-attribute-sets="quote-style">
|
3530
|
+
<xsl:apply-templates select=".//*[local-name() = 'p']"/>
|
3531
|
+
</fo:block>
|
3532
|
+
<xsl:if test="*[local-name() = 'author'] or *[local-name() = 'source']">
|
3533
|
+
<fo:block xsl:use-attribute-sets="quote-source-style">
|
3534
|
+
<!-- — ISO, ISO 7301:2011, Clause 1 -->
|
3535
|
+
<xsl:apply-templates select="*[local-name() = 'author']"/>
|
3536
|
+
<xsl:apply-templates select="*[local-name() = 'source']"/>
|
3537
|
+
</fo:block>
|
3538
|
+
</xsl:if>
|
3539
|
+
</xsl:template><xsl:template match="*[local-name() = 'source']">
|
3540
|
+
<xsl:if test="../*[local-name() = 'author']">
|
3541
|
+
<xsl:text>, </xsl:text>
|
3542
|
+
</xsl:if>
|
3543
|
+
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
3544
|
+
<xsl:apply-templates/>
|
3545
|
+
</fo:basic-link>
|
3546
|
+
</xsl:template><xsl:template match="*[local-name() = 'author']">
|
3547
|
+
<xsl:text>— </xsl:text>
|
3548
|
+
<xsl:apply-templates/>
|
3549
|
+
</xsl:template><xsl:template match="*[local-name() = 'eref']">
|
3550
|
+
<fo:inline xsl:use-attribute-sets="eref-style">
|
3551
|
+
<xsl:if test="@type = 'footnote'">
|
3552
|
+
|
3553
|
+
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
3554
|
+
<xsl:attribute name="font-size">80%</xsl:attribute>
|
3555
|
+
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
3556
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
3557
|
+
|
3558
|
+
|
3559
|
+
</xsl:if>
|
3560
|
+
|
3561
|
+
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
3562
|
+
|
3563
|
+
<xsl:if test="@type = 'inline'">
|
3564
|
+
|
3565
|
+
<xsl:attribute name="color">blue</xsl:attribute>
|
3566
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
3567
|
+
|
3568
|
+
|
3569
|
+
</xsl:if>
|
3570
|
+
|
3571
|
+
|
3572
|
+
<xsl:apply-templates/>
|
3573
|
+
</fo:basic-link>
|
3574
|
+
</fo:inline>
|
3575
|
+
</xsl:template><xsl:template match="*[local-name() = 'tab']">
|
3576
|
+
<!-- zero-space char -->
|
3577
|
+
<xsl:variable name="depth">
|
3578
|
+
<xsl:call-template name="getLevel">
|
3579
|
+
<xsl:with-param name="depth" select="../@depth"/>
|
3580
|
+
</xsl:call-template>
|
3583
3581
|
</xsl:variable>
|
3584
|
-
|
3582
|
+
|
3583
|
+
<xsl:variable name="padding">
|
3584
|
+
|
3585
|
+
|
3586
|
+
|
3587
|
+
|
3588
|
+
|
3589
|
+
|
3590
|
+
|
3591
|
+
|
3592
|
+
|
3593
|
+
|
3594
|
+
|
3595
|
+
|
3596
|
+
<xsl:choose>
|
3597
|
+
<xsl:when test="$depth >= 5"/>
|
3598
|
+
<xsl:when test="$depth >= 4">5</xsl:when>
|
3599
|
+
<xsl:when test="$depth >= 3 and ancestor::ogc:terms">3</xsl:when>
|
3600
|
+
<xsl:when test="$depth >= 2">4</xsl:when>
|
3601
|
+
<xsl:when test="$depth = 1">4</xsl:when>
|
3602
|
+
<xsl:otherwise>2</xsl:otherwise>
|
3603
|
+
</xsl:choose>
|
3604
|
+
|
3605
|
+
|
3606
|
+
|
3607
|
+
|
3608
|
+
|
3609
|
+
|
3610
|
+
</xsl:variable>
|
3611
|
+
|
3612
|
+
<xsl:variable name="padding-right">
|
3585
3613
|
<xsl:choose>
|
3586
|
-
<xsl:when test="$
|
3587
|
-
<xsl:apply-templates/>
|
3588
|
-
</xsl:when>
|
3614
|
+
<xsl:when test="normalize-space($padding) = ''">0</xsl:when>
|
3589
3615
|
<xsl:otherwise>
|
3590
|
-
<
|
3591
|
-
<xsl:choose>
|
3592
|
-
<xsl:when test="normalize-space(.) = ''">
|
3593
|
-
<xsl:value-of select="$target"/>
|
3594
|
-
</xsl:when>
|
3595
|
-
<xsl:otherwise>
|
3596
|
-
<xsl:apply-templates/>
|
3597
|
-
</xsl:otherwise>
|
3598
|
-
</xsl:choose>
|
3599
|
-
</fo:basic-link>
|
3616
|
+
<xsl:value-of select="normalize-space($padding)"/>
|
3600
3617
|
</xsl:otherwise>
|
3601
3618
|
</xsl:choose>
|
3602
|
-
</
|
3603
|
-
|
3604
|
-
<
|
3605
|
-
|
3606
|
-
|
3607
|
-
|
3608
|
-
|
3609
|
-
|
3610
|
-
|
3611
|
-
|
3619
|
+
</xsl:variable>
|
3620
|
+
|
3621
|
+
<xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
|
3622
|
+
|
3623
|
+
<xsl:choose>
|
3624
|
+
<xsl:when test="$language = 'zh'">
|
3625
|
+
<fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
|
3626
|
+
</xsl:when>
|
3627
|
+
<xsl:when test="../../@inline-header = 'true'">
|
3628
|
+
<fo:inline font-size="90%">
|
3629
|
+
<xsl:call-template name="insertNonBreakSpaces">
|
3630
|
+
<xsl:with-param name="count" select="$padding-right"/>
|
3631
|
+
</xsl:call-template>
|
3632
|
+
</fo:inline>
|
3633
|
+
</xsl:when>
|
3634
|
+
<xsl:otherwise>
|
3635
|
+
<fo:inline padding-right="{$padding-right}mm"></fo:inline>
|
3636
|
+
</xsl:otherwise>
|
3637
|
+
</xsl:choose>
|
3638
|
+
|
3639
|
+
</xsl:template><xsl:template name="insertNonBreakSpaces">
|
3640
|
+
<xsl:param name="count"/>
|
3641
|
+
<xsl:if test="$count > 0">
|
3642
|
+
<xsl:text> </xsl:text>
|
3643
|
+
<xsl:call-template name="insertNonBreakSpaces">
|
3644
|
+
<xsl:with-param name="count" select="$count - 1"/>
|
3645
|
+
</xsl:call-template>
|
3646
|
+
</xsl:if>
|
3647
|
+
</xsl:template><xsl:template match="*[local-name() = 'domain']">
|
3648
|
+
<fo:inline xsl:use-attribute-sets="domain-style"><<xsl:apply-templates/>></fo:inline>
|
3649
|
+
<xsl:text> </xsl:text>
|
3650
|
+
</xsl:template><xsl:template match="*[local-name() = 'admitted']">
|
3651
|
+
<fo:block xsl:use-attribute-sets="admitted-style">
|
3612
3652
|
<xsl:apply-templates/>
|
3613
3653
|
</fo:block>
|
3614
|
-
</xsl:template><xsl:template match="*[local-name()='
|
3615
|
-
<
|
3616
|
-
|
3617
|
-
|
3618
|
-
|
3619
|
-
|
3620
|
-
|
3621
|
-
|
3622
|
-
|
3623
|
-
|
3624
|
-
|
3654
|
+
</xsl:template><xsl:template match="*[local-name() = 'deprecates']">
|
3655
|
+
<xsl:variable name="title-deprecated">
|
3656
|
+
<xsl:call-template name="getTitle">
|
3657
|
+
<xsl:with-param name="name" select="'title-deprecated'"/>
|
3658
|
+
</xsl:call-template>
|
3659
|
+
</xsl:variable>
|
3660
|
+
<fo:block xsl:use-attribute-sets="deprecates-style">
|
3661
|
+
<xsl:value-of select="$title-deprecated"/>: <xsl:apply-templates/>
|
3662
|
+
</fo:block>
|
3663
|
+
</xsl:template><xsl:template match="*[local-name() = 'definition']">
|
3664
|
+
<fo:block xsl:use-attribute-sets="definition-style">
|
3665
|
+
<xsl:apply-templates/>
|
3625
3666
|
</fo:block>
|
3667
|
+
</xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]">
|
3626
3668
|
<xsl:apply-templates/>
|
3627
|
-
</xsl:template><xsl:template match="*[local-name()='
|
3628
|
-
<fo:inline
|
3629
|
-
|
3630
|
-
|
3631
|
-
|
3632
|
-
|
3633
|
-
|
3634
|
-
|
3635
|
-
|
3636
|
-
|
3637
|
-
|
3638
|
-
|
3639
|
-
|
3669
|
+
</xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p']">
|
3670
|
+
<fo:inline> <xsl:apply-templates/></fo:inline>
|
3671
|
+
<fo:block> </fo:block>
|
3672
|
+
</xsl:template><xsl:template match="/*/*[local-name() = 'sections']/*" priority="2">
|
3673
|
+
|
3674
|
+
<fo:block>
|
3675
|
+
<xsl:call-template name="setId"/>
|
3676
|
+
|
3677
|
+
|
3678
|
+
|
3679
|
+
|
3680
|
+
|
3681
|
+
|
3682
|
+
|
3683
|
+
<xsl:variable name="pos"><xsl:number count="ogc:sections/ogc:clause[not(@type='scope') and not(@type='conformance')]"/></xsl:variable> <!-- | ogc:sections/ogc:terms -->
|
3684
|
+
<xsl:if test="$pos >= 2">
|
3685
|
+
<xsl:attribute name="space-before">18pt</xsl:attribute>
|
3640
3686
|
</xsl:if>
|
3641
|
-
|
3642
|
-
|
3643
|
-
|
3687
|
+
|
3688
|
+
|
3689
|
+
|
3690
|
+
|
3691
|
+
<xsl:apply-templates/>
|
3644
3692
|
</fo:block>
|
3645
|
-
|
3646
|
-
|
3647
|
-
|
3648
|
-
</xsl:template><xsl:template match="
|
3649
|
-
<fo:
|
3650
|
-
|
3651
|
-
|
3652
|
-
<xsl:variable name="callout" select="//*[@target = $annotation-id]/text()"/>
|
3653
|
-
<fo:block id="{$annotation-id}" white-space="nowrap">
|
3654
|
-
<fo:inline>
|
3655
|
-
<xsl:apply-templates>
|
3656
|
-
<xsl:with-param name="callout" select="concat('<', $callout, '> ')"/>
|
3657
|
-
</xsl:apply-templates>
|
3658
|
-
</fo:inline>
|
3659
|
-
</fo:block>
|
3660
|
-
</xsl:template><xsl:template match="*[local-name() = 'annotation']/*[local-name() = 'p']">
|
3661
|
-
<xsl:param name="callout"/>
|
3662
|
-
<fo:inline id="{@id}">
|
3663
|
-
<!-- for first p in annotation, put <x> -->
|
3664
|
-
<xsl:if test="not(preceding-sibling::*[local-name() = 'p'])"><xsl:value-of select="$callout"/></xsl:if>
|
3693
|
+
|
3694
|
+
|
3695
|
+
|
3696
|
+
</xsl:template><xsl:template match="/*/*[local-name() = 'preface']/*" priority="2">
|
3697
|
+
<fo:block break-after="page"/>
|
3698
|
+
<fo:block>
|
3699
|
+
<xsl:call-template name="setId"/>
|
3665
3700
|
<xsl:apply-templates/>
|
3666
|
-
</fo:
|
3667
|
-
</xsl:template><xsl:template match="*[local-name() = '
|
3668
|
-
<
|
3669
|
-
<xsl:call-template name="
|
3670
|
-
|
3671
|
-
|
3672
|
-
|
3673
|
-
<
|
3674
|
-
<xsl:
|
3675
|
-
|
3676
|
-
|
3701
|
+
</fo:block>
|
3702
|
+
</xsl:template><xsl:template match="*[local-name() = 'clause']">
|
3703
|
+
<fo:block>
|
3704
|
+
<xsl:call-template name="setId"/>
|
3705
|
+
<xsl:apply-templates/>
|
3706
|
+
</fo:block>
|
3707
|
+
</xsl:template><xsl:template match="*[local-name() = 'definitions']">
|
3708
|
+
<fo:block id="{@id}">
|
3709
|
+
<xsl:apply-templates/>
|
3710
|
+
</fo:block>
|
3711
|
+
</xsl:template><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@normative='true']">
|
3712
|
+
|
3713
|
+
<fo:block id="{@id}">
|
3714
|
+
<xsl:apply-templates/>
|
3715
|
+
</fo:block>
|
3716
|
+
</xsl:template><xsl:template match="*[local-name() = 'annex']">
|
3717
|
+
<fo:block break-after="page"/>
|
3718
|
+
<fo:block id="{@id}">
|
3719
|
+
|
3720
|
+
</fo:block>
|
3677
3721
|
<xsl:apply-templates/>
|
3722
|
+
</xsl:template><xsl:template match="*[local-name() = 'review']">
|
3723
|
+
<!-- comment 2019-11-29 -->
|
3724
|
+
<!-- <fo:block font-weight="bold">Review:</fo:block>
|
3725
|
+
<xsl:apply-templates /> -->
|
3726
|
+
</xsl:template><xsl:template match="*[local-name() = 'name']/text()">
|
3727
|
+
<!-- 0xA0 to space replacement -->
|
3728
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
3729
|
+
</xsl:template><xsl:template match="*[local-name() = 'errata']">
|
3730
|
+
<!-- <row>
|
3731
|
+
<date>05-07-2013</date>
|
3732
|
+
<type>Editorial</type>
|
3733
|
+
<change>Changed CA-9 Priority Code from P1 to P2 in <xref target="tabled2"/>.</change>
|
3734
|
+
<pages>D-3</pages>
|
3735
|
+
</row>
|
3736
|
+
-->
|
3737
|
+
<fo:table table-layout="fixed" width="100%" font-size="10pt" border="1pt solid black">
|
3738
|
+
<fo:table-column column-width="20mm"/>
|
3739
|
+
<fo:table-column column-width="23mm"/>
|
3740
|
+
<fo:table-column column-width="107mm"/>
|
3741
|
+
<fo:table-column column-width="15mm"/>
|
3742
|
+
<fo:table-body>
|
3743
|
+
<fo:table-row font-family="Arial" text-align="center" font-weight="bold" background-color="black" color="white">
|
3744
|
+
<fo:table-cell border="1pt solid black"><fo:block>Date</fo:block></fo:table-cell>
|
3745
|
+
<fo:table-cell border="1pt solid black"><fo:block>Type</fo:block></fo:table-cell>
|
3746
|
+
<fo:table-cell border="1pt solid black"><fo:block>Change</fo:block></fo:table-cell>
|
3747
|
+
<fo:table-cell border="1pt solid black"><fo:block>Pages</fo:block></fo:table-cell>
|
3748
|
+
</fo:table-row>
|
3749
|
+
<xsl:apply-templates/>
|
3750
|
+
</fo:table-body>
|
3751
|
+
</fo:table>
|
3752
|
+
</xsl:template><xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']">
|
3753
|
+
<fo:table-row>
|
3754
|
+
<xsl:apply-templates/>
|
3755
|
+
</fo:table-row>
|
3756
|
+
</xsl:template><xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']/*">
|
3757
|
+
<fo:table-cell border="1pt solid black" padding-left="1mm" padding-top="0.5mm">
|
3758
|
+
<fo:block><xsl:apply-templates/></fo:block>
|
3759
|
+
</fo:table-cell>
|
3678
3760
|
</xsl:template><xsl:template name="convertDate">
|
3679
3761
|
<xsl:param name="date"/>
|
3680
3762
|
<xsl:param name="format" select="'short'"/>
|
@@ -3805,27 +3887,49 @@
|
|
3805
3887
|
</xsl:otherwise>
|
3806
3888
|
</xsl:choose>
|
3807
3889
|
</xsl:template><xsl:template name="getLevel">
|
3808
|
-
<xsl:
|
3809
|
-
<xsl:
|
3810
|
-
<xsl:
|
3811
|
-
<xsl:
|
3812
|
-
|
3813
|
-
|
3814
|
-
<xsl:
|
3815
|
-
|
3816
|
-
|
3817
|
-
<xsl:
|
3818
|
-
|
3819
|
-
|
3820
|
-
|
3821
|
-
|
3822
|
-
|
3823
|
-
|
3824
|
-
|
3825
|
-
|
3826
|
-
|
3827
|
-
|
3828
|
-
|
3890
|
+
<xsl:param name="depth"/>
|
3891
|
+
<xsl:choose>
|
3892
|
+
<xsl:when test="normalize-space(@depth) != ''">
|
3893
|
+
<xsl:value-of select="@depth"/>
|
3894
|
+
</xsl:when>
|
3895
|
+
<xsl:when test="normalize-space($depth) != ''">
|
3896
|
+
<xsl:value-of select="$depth"/>
|
3897
|
+
</xsl:when>
|
3898
|
+
<xsl:otherwise>
|
3899
|
+
<xsl:variable name="level_total" select="count(ancestor::*)"/>
|
3900
|
+
<xsl:variable name="level">
|
3901
|
+
<xsl:choose>
|
3902
|
+
<xsl:when test="parent::*[local-name() = 'preface']">
|
3903
|
+
<xsl:value-of select="$level_total - 1"/>
|
3904
|
+
</xsl:when>
|
3905
|
+
<xsl:when test="ancestor::*[local-name() = 'preface']">
|
3906
|
+
<xsl:value-of select="$level_total - 2"/>
|
3907
|
+
</xsl:when>
|
3908
|
+
<!-- <xsl:when test="parent::*[local-name() = 'sections']">
|
3909
|
+
<xsl:value-of select="$level_total - 1"/>
|
3910
|
+
</xsl:when> -->
|
3911
|
+
<xsl:when test="ancestor::*[local-name() = 'sections']">
|
3912
|
+
<xsl:value-of select="$level_total - 1"/>
|
3913
|
+
</xsl:when>
|
3914
|
+
<xsl:when test="ancestor::*[local-name() = 'bibliography']">
|
3915
|
+
<xsl:value-of select="$level_total - 1"/>
|
3916
|
+
</xsl:when>
|
3917
|
+
<xsl:when test="parent::*[local-name() = 'annex']">
|
3918
|
+
<xsl:value-of select="$level_total - 1"/>
|
3919
|
+
</xsl:when>
|
3920
|
+
<xsl:when test="ancestor::*[local-name() = 'annex']">
|
3921
|
+
<xsl:value-of select="$level_total"/>
|
3922
|
+
</xsl:when>
|
3923
|
+
<xsl:when test="local-name() = 'annex'">1</xsl:when>
|
3924
|
+
<xsl:when test="local-name(ancestor::*[1]) = 'annex'">1</xsl:when>
|
3925
|
+
<xsl:otherwise>
|
3926
|
+
<xsl:value-of select="$level_total - 1"/>
|
3927
|
+
</xsl:otherwise>
|
3928
|
+
</xsl:choose>
|
3929
|
+
</xsl:variable>
|
3930
|
+
<xsl:value-of select="$level"/>
|
3931
|
+
</xsl:otherwise>
|
3932
|
+
</xsl:choose>
|
3829
3933
|
</xsl:template><xsl:template name="split">
|
3830
3934
|
<xsl:param name="pText" select="."/>
|
3831
3935
|
<xsl:param name="sep" select="','"/>
|
@@ -3840,4 +3944,47 @@
|
|
3840
3944
|
</xsl:if>
|
3841
3945
|
</xsl:template><xsl:template name="getDocumentId">
|
3842
3946
|
<xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
|
3947
|
+
</xsl:template><xsl:template name="namespaceCheck">
|
3948
|
+
<xsl:variable name="documentNS" select="namespace-uri(/*)"/>
|
3949
|
+
<xsl:variable name="XSLNS">
|
3950
|
+
|
3951
|
+
|
3952
|
+
|
3953
|
+
|
3954
|
+
|
3955
|
+
|
3956
|
+
<xsl:value-of select="document('')//*/namespace::ogc"/>
|
3957
|
+
|
3958
|
+
|
3959
|
+
|
3960
|
+
|
3961
|
+
|
3962
|
+
|
3963
|
+
|
3964
|
+
|
3965
|
+
</xsl:variable>
|
3966
|
+
<xsl:if test="$documentNS != $XSLNS">
|
3967
|
+
<xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
|
3968
|
+
</xsl:if>
|
3969
|
+
</xsl:template><xsl:template name="getLanguage">
|
3970
|
+
<xsl:param name="lang"/>
|
3971
|
+
<xsl:variable name="language" select="java:toLowerCase(java:java.lang.String.new($lang))"/>
|
3972
|
+
<xsl:choose>
|
3973
|
+
<xsl:when test="$language = 'en'">English</xsl:when>
|
3974
|
+
<xsl:when test="$language = 'fr'">French</xsl:when>
|
3975
|
+
<xsl:when test="$language = 'de'">Deutsch</xsl:when>
|
3976
|
+
<xsl:when test="$language = 'cn'">Chinese</xsl:when>
|
3977
|
+
<xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
|
3978
|
+
</xsl:choose>
|
3979
|
+
</xsl:template><xsl:template name="setId">
|
3980
|
+
<xsl:attribute name="id">
|
3981
|
+
<xsl:choose>
|
3982
|
+
<xsl:when test="@id">
|
3983
|
+
<xsl:value-of select="@id"/>
|
3984
|
+
</xsl:when>
|
3985
|
+
<xsl:otherwise>
|
3986
|
+
<xsl:value-of select="generate-id()"/>
|
3987
|
+
</xsl:otherwise>
|
3988
|
+
</xsl:choose>
|
3989
|
+
</xsl:attribute>
|
3843
3990
|
</xsl:template></xsl:stylesheet>
|