metanorma-ogc 2.6.11 → 2.6.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +36 -14
- data/lib/isodoc/ogc/ogc.best-practice.xsl +36 -14
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +36 -14
- data/lib/isodoc/ogc/ogc.community-practice.xsl +36 -14
- data/lib/isodoc/ogc/ogc.community-standard.xsl +36 -14
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +36 -14
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +36 -14
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +36 -14
- data/lib/isodoc/ogc/ogc.other.xsl +36 -14
- data/lib/isodoc/ogc/ogc.policy.xsl +36 -14
- data/lib/isodoc/ogc/ogc.reference-model.xsl +36 -14
- data/lib/isodoc/ogc/ogc.release-notes.xsl +36 -14
- data/lib/isodoc/ogc/ogc.standard.xsl +36 -14
- data/lib/isodoc/ogc/ogc.test-suite.xsl +36 -14
- data/lib/isodoc/ogc/ogc.user-guide.xsl +36 -14
- data/lib/isodoc/ogc/ogc.white-paper.xsl +31 -9
- data/lib/metanorma/ogc/biblio.rng +2 -0
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc2727e5e894d6303e7a7993ddbb02e7f9c3cc33b6bb31b61bd6f08da9bae690
|
4
|
+
data.tar.gz: 5a288048cf0963d050a405f0261752f77143d0ebdb9e6164962c8b033de871a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed4064a33173b76169d51cf64cdcd6f7e4f390199ddaf94e3a16785169da5649ccde16f4c1c4f7d58804cbb9b9237bf91542e72d8b37893c963a9205c4d1f6e8
|
7
|
+
data.tar.gz: e62fbed59741654e4d57cc0f0832edcce763f9c2a852a6e597f0b858e326df3089223a13ada69842e15bf964b255c8aa0f50303c82f493f4cf6e87c6a3d4ac10
|
@@ -158,23 +158,23 @@
|
|
158
158
|
<xsl:variable name="toc_recommendations_">
|
159
159
|
<xsl:for-each select="//ogc:table[.//ogc:p[@class = 'RecommendationTitle']]">
|
160
160
|
<xsl:variable name="table_id" select="@id"/>
|
161
|
-
<recommendation alt-text="{.//ogc:p[@class = 'RecommendationTitle'][1]
|
161
|
+
<recommendation alt-text="{.//ogc:p[@class = 'RecommendationTitle'][1]}">
|
162
162
|
<xsl:copy-of select="@id"/>
|
163
163
|
<xsl:variable name="title">
|
164
|
-
<xsl:apply-templates select=".//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/node()"/>
|
164
|
+
<xsl:apply-templates select=".//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name/node()"/>
|
165
165
|
<xsl:if test=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()">
|
166
166
|
<xsl:text>: </xsl:text>
|
167
167
|
<xsl:variable name="recommendationLabel">
|
168
|
-
<tt><xsl:copy-of select=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()"/></tt>
|
168
|
+
<tt><xsl:copy-of select=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name/node()"/></tt>
|
169
169
|
</xsl:variable>
|
170
170
|
<xsl:apply-templates select="xalan:nodeset($recommendationLabel)/node()"/>
|
171
171
|
</xsl:if>
|
172
172
|
</xsl:variable>
|
173
173
|
<xsl:variable name="bookmark">
|
174
|
-
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/
|
174
|
+
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name)"/>
|
175
175
|
<xsl:if test=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()">
|
176
176
|
<xsl:text>: </xsl:text>
|
177
|
-
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/
|
177
|
+
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name)"/>
|
178
178
|
</xsl:if>
|
179
179
|
</xsl:variable>
|
180
180
|
<xsl:variable name="regex_str" select="'^([^0-9]+) (\d+).*'"/>
|
@@ -7368,9 +7368,14 @@
|
|
7368
7368
|
|
7369
7369
|
<xsl:variable name="simple-table">
|
7370
7370
|
|
7371
|
+
<xsl:variable name="table_without_semantic_elements">
|
7372
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
7373
|
+
</xsl:variable>
|
7374
|
+
|
7371
7375
|
<!-- Step 0. replace <br/> to <p>...</p> -->
|
7372
7376
|
<xsl:variable name="table_without_br">
|
7373
|
-
<xsl:apply-templates mode="table-without-br"/>
|
7377
|
+
<!-- <xsl:apply-templates mode="table-without-br"/> -->
|
7378
|
+
<xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
|
7374
7379
|
</xsl:variable>
|
7375
7380
|
|
7376
7381
|
<!-- Step 1. colspan processing -->
|
@@ -13428,16 +13433,30 @@
|
|
13428
13433
|
|
13429
13434
|
<xsl:template match="*[local-name() = 'fmt-name']"/>
|
13430
13435
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
|
13431
|
-
<xsl:
|
13432
|
-
<xsl:
|
13433
|
-
|
13434
|
-
|
13436
|
+
<xsl:choose>
|
13437
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
13438
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13439
|
+
</xsl:when>
|
13440
|
+
<xsl:otherwise>
|
13441
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
13442
|
+
<xsl:copy-of select="@*"/>
|
13443
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13444
|
+
</xsl:element>
|
13445
|
+
</xsl:otherwise>
|
13446
|
+
</xsl:choose>
|
13435
13447
|
</xsl:template>
|
13436
13448
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
|
13437
|
-
<xsl:
|
13438
|
-
<xsl:
|
13439
|
-
|
13440
|
-
|
13449
|
+
<xsl:choose>
|
13450
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
13451
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13452
|
+
</xsl:when>
|
13453
|
+
<xsl:otherwise>
|
13454
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
13455
|
+
<xsl:copy-of select="@*"/>
|
13456
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
13457
|
+
</xsl:element>
|
13458
|
+
</xsl:otherwise>
|
13459
|
+
</xsl:choose>
|
13441
13460
|
</xsl:template>
|
13442
13461
|
|
13443
13462
|
<xsl:template match="*[local-name() = 'fmt-preferred']"/>
|
@@ -13535,6 +13554,9 @@
|
|
13535
13554
|
<xsl:apply-templates mode="update_xml_pres"/>
|
13536
13555
|
</xsl:template>
|
13537
13556
|
|
13557
|
+
<xsl:template match="*[local-name() = 'semx']">
|
13558
|
+
<xsl:apply-templates/>
|
13559
|
+
</xsl:template>
|
13538
13560
|
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
|
13539
13561
|
<xsl:apply-templates mode="update_xml_step1"/>
|
13540
13562
|
</xsl:template>
|
@@ -158,23 +158,23 @@
|
|
158
158
|
<xsl:variable name="toc_recommendations_">
|
159
159
|
<xsl:for-each select="//ogc:table[.//ogc:p[@class = 'RecommendationTitle']]">
|
160
160
|
<xsl:variable name="table_id" select="@id"/>
|
161
|
-
<recommendation alt-text="{.//ogc:p[@class = 'RecommendationTitle'][1]
|
161
|
+
<recommendation alt-text="{.//ogc:p[@class = 'RecommendationTitle'][1]}">
|
162
162
|
<xsl:copy-of select="@id"/>
|
163
163
|
<xsl:variable name="title">
|
164
|
-
<xsl:apply-templates select=".//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/node()"/>
|
164
|
+
<xsl:apply-templates select=".//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name/node()"/>
|
165
165
|
<xsl:if test=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()">
|
166
166
|
<xsl:text>: </xsl:text>
|
167
167
|
<xsl:variable name="recommendationLabel">
|
168
|
-
<tt><xsl:copy-of select=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()"/></tt>
|
168
|
+
<tt><xsl:copy-of select=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name/node()"/></tt>
|
169
169
|
</xsl:variable>
|
170
170
|
<xsl:apply-templates select="xalan:nodeset($recommendationLabel)/node()"/>
|
171
171
|
</xsl:if>
|
172
172
|
</xsl:variable>
|
173
173
|
<xsl:variable name="bookmark">
|
174
|
-
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/
|
174
|
+
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name)"/>
|
175
175
|
<xsl:if test=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()">
|
176
176
|
<xsl:text>: </xsl:text>
|
177
|
-
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/
|
177
|
+
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name)"/>
|
178
178
|
</xsl:if>
|
179
179
|
</xsl:variable>
|
180
180
|
<xsl:variable name="regex_str" select="'^([^0-9]+) (\d+).*'"/>
|
@@ -7368,9 +7368,14 @@
|
|
7368
7368
|
|
7369
7369
|
<xsl:variable name="simple-table">
|
7370
7370
|
|
7371
|
+
<xsl:variable name="table_without_semantic_elements">
|
7372
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
7373
|
+
</xsl:variable>
|
7374
|
+
|
7371
7375
|
<!-- Step 0. replace <br/> to <p>...</p> -->
|
7372
7376
|
<xsl:variable name="table_without_br">
|
7373
|
-
<xsl:apply-templates mode="table-without-br"/>
|
7377
|
+
<!-- <xsl:apply-templates mode="table-without-br"/> -->
|
7378
|
+
<xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
|
7374
7379
|
</xsl:variable>
|
7375
7380
|
|
7376
7381
|
<!-- Step 1. colspan processing -->
|
@@ -13428,16 +13433,30 @@
|
|
13428
13433
|
|
13429
13434
|
<xsl:template match="*[local-name() = 'fmt-name']"/>
|
13430
13435
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
|
13431
|
-
<xsl:
|
13432
|
-
<xsl:
|
13433
|
-
|
13434
|
-
|
13436
|
+
<xsl:choose>
|
13437
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
13438
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13439
|
+
</xsl:when>
|
13440
|
+
<xsl:otherwise>
|
13441
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
13442
|
+
<xsl:copy-of select="@*"/>
|
13443
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13444
|
+
</xsl:element>
|
13445
|
+
</xsl:otherwise>
|
13446
|
+
</xsl:choose>
|
13435
13447
|
</xsl:template>
|
13436
13448
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
|
13437
|
-
<xsl:
|
13438
|
-
<xsl:
|
13439
|
-
|
13440
|
-
|
13449
|
+
<xsl:choose>
|
13450
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
13451
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13452
|
+
</xsl:when>
|
13453
|
+
<xsl:otherwise>
|
13454
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
13455
|
+
<xsl:copy-of select="@*"/>
|
13456
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
13457
|
+
</xsl:element>
|
13458
|
+
</xsl:otherwise>
|
13459
|
+
</xsl:choose>
|
13441
13460
|
</xsl:template>
|
13442
13461
|
|
13443
13462
|
<xsl:template match="*[local-name() = 'fmt-preferred']"/>
|
@@ -13535,6 +13554,9 @@
|
|
13535
13554
|
<xsl:apply-templates mode="update_xml_pres"/>
|
13536
13555
|
</xsl:template>
|
13537
13556
|
|
13557
|
+
<xsl:template match="*[local-name() = 'semx']">
|
13558
|
+
<xsl:apply-templates/>
|
13559
|
+
</xsl:template>
|
13538
13560
|
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
|
13539
13561
|
<xsl:apply-templates mode="update_xml_step1"/>
|
13540
13562
|
</xsl:template>
|
@@ -158,23 +158,23 @@
|
|
158
158
|
<xsl:variable name="toc_recommendations_">
|
159
159
|
<xsl:for-each select="//ogc:table[.//ogc:p[@class = 'RecommendationTitle']]">
|
160
160
|
<xsl:variable name="table_id" select="@id"/>
|
161
|
-
<recommendation alt-text="{.//ogc:p[@class = 'RecommendationTitle'][1]
|
161
|
+
<recommendation alt-text="{.//ogc:p[@class = 'RecommendationTitle'][1]}">
|
162
162
|
<xsl:copy-of select="@id"/>
|
163
163
|
<xsl:variable name="title">
|
164
|
-
<xsl:apply-templates select=".//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/node()"/>
|
164
|
+
<xsl:apply-templates select=".//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name/node()"/>
|
165
165
|
<xsl:if test=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()">
|
166
166
|
<xsl:text>: </xsl:text>
|
167
167
|
<xsl:variable name="recommendationLabel">
|
168
|
-
<tt><xsl:copy-of select=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()"/></tt>
|
168
|
+
<tt><xsl:copy-of select=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name/node()"/></tt>
|
169
169
|
</xsl:variable>
|
170
170
|
<xsl:apply-templates select="xalan:nodeset($recommendationLabel)/node()"/>
|
171
171
|
</xsl:if>
|
172
172
|
</xsl:variable>
|
173
173
|
<xsl:variable name="bookmark">
|
174
|
-
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/
|
174
|
+
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name)"/>
|
175
175
|
<xsl:if test=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()">
|
176
176
|
<xsl:text>: </xsl:text>
|
177
|
-
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/
|
177
|
+
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name)"/>
|
178
178
|
</xsl:if>
|
179
179
|
</xsl:variable>
|
180
180
|
<xsl:variable name="regex_str" select="'^([^0-9]+) (\d+).*'"/>
|
@@ -7368,9 +7368,14 @@
|
|
7368
7368
|
|
7369
7369
|
<xsl:variable name="simple-table">
|
7370
7370
|
|
7371
|
+
<xsl:variable name="table_without_semantic_elements">
|
7372
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
7373
|
+
</xsl:variable>
|
7374
|
+
|
7371
7375
|
<!-- Step 0. replace <br/> to <p>...</p> -->
|
7372
7376
|
<xsl:variable name="table_without_br">
|
7373
|
-
<xsl:apply-templates mode="table-without-br"/>
|
7377
|
+
<!-- <xsl:apply-templates mode="table-without-br"/> -->
|
7378
|
+
<xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
|
7374
7379
|
</xsl:variable>
|
7375
7380
|
|
7376
7381
|
<!-- Step 1. colspan processing -->
|
@@ -13428,16 +13433,30 @@
|
|
13428
13433
|
|
13429
13434
|
<xsl:template match="*[local-name() = 'fmt-name']"/>
|
13430
13435
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
|
13431
|
-
<xsl:
|
13432
|
-
<xsl:
|
13433
|
-
|
13434
|
-
|
13436
|
+
<xsl:choose>
|
13437
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
13438
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13439
|
+
</xsl:when>
|
13440
|
+
<xsl:otherwise>
|
13441
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
13442
|
+
<xsl:copy-of select="@*"/>
|
13443
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13444
|
+
</xsl:element>
|
13445
|
+
</xsl:otherwise>
|
13446
|
+
</xsl:choose>
|
13435
13447
|
</xsl:template>
|
13436
13448
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
|
13437
|
-
<xsl:
|
13438
|
-
<xsl:
|
13439
|
-
|
13440
|
-
|
13449
|
+
<xsl:choose>
|
13450
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
13451
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13452
|
+
</xsl:when>
|
13453
|
+
<xsl:otherwise>
|
13454
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
13455
|
+
<xsl:copy-of select="@*"/>
|
13456
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
13457
|
+
</xsl:element>
|
13458
|
+
</xsl:otherwise>
|
13459
|
+
</xsl:choose>
|
13441
13460
|
</xsl:template>
|
13442
13461
|
|
13443
13462
|
<xsl:template match="*[local-name() = 'fmt-preferred']"/>
|
@@ -13535,6 +13554,9 @@
|
|
13535
13554
|
<xsl:apply-templates mode="update_xml_pres"/>
|
13536
13555
|
</xsl:template>
|
13537
13556
|
|
13557
|
+
<xsl:template match="*[local-name() = 'semx']">
|
13558
|
+
<xsl:apply-templates/>
|
13559
|
+
</xsl:template>
|
13538
13560
|
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
|
13539
13561
|
<xsl:apply-templates mode="update_xml_step1"/>
|
13540
13562
|
</xsl:template>
|
@@ -158,23 +158,23 @@
|
|
158
158
|
<xsl:variable name="toc_recommendations_">
|
159
159
|
<xsl:for-each select="//ogc:table[.//ogc:p[@class = 'RecommendationTitle']]">
|
160
160
|
<xsl:variable name="table_id" select="@id"/>
|
161
|
-
<recommendation alt-text="{.//ogc:p[@class = 'RecommendationTitle'][1]
|
161
|
+
<recommendation alt-text="{.//ogc:p[@class = 'RecommendationTitle'][1]}">
|
162
162
|
<xsl:copy-of select="@id"/>
|
163
163
|
<xsl:variable name="title">
|
164
|
-
<xsl:apply-templates select=".//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/node()"/>
|
164
|
+
<xsl:apply-templates select=".//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name/node()"/>
|
165
165
|
<xsl:if test=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()">
|
166
166
|
<xsl:text>: </xsl:text>
|
167
167
|
<xsl:variable name="recommendationLabel">
|
168
|
-
<tt><xsl:copy-of select=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()"/></tt>
|
168
|
+
<tt><xsl:copy-of select=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name/node()"/></tt>
|
169
169
|
</xsl:variable>
|
170
170
|
<xsl:apply-templates select="xalan:nodeset($recommendationLabel)/node()"/>
|
171
171
|
</xsl:if>
|
172
172
|
</xsl:variable>
|
173
173
|
<xsl:variable name="bookmark">
|
174
|
-
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/
|
174
|
+
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name)"/>
|
175
175
|
<xsl:if test=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()">
|
176
176
|
<xsl:text>: </xsl:text>
|
177
|
-
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/
|
177
|
+
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name)"/>
|
178
178
|
</xsl:if>
|
179
179
|
</xsl:variable>
|
180
180
|
<xsl:variable name="regex_str" select="'^([^0-9]+) (\d+).*'"/>
|
@@ -7368,9 +7368,14 @@
|
|
7368
7368
|
|
7369
7369
|
<xsl:variable name="simple-table">
|
7370
7370
|
|
7371
|
+
<xsl:variable name="table_without_semantic_elements">
|
7372
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
7373
|
+
</xsl:variable>
|
7374
|
+
|
7371
7375
|
<!-- Step 0. replace <br/> to <p>...</p> -->
|
7372
7376
|
<xsl:variable name="table_without_br">
|
7373
|
-
<xsl:apply-templates mode="table-without-br"/>
|
7377
|
+
<!-- <xsl:apply-templates mode="table-without-br"/> -->
|
7378
|
+
<xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
|
7374
7379
|
</xsl:variable>
|
7375
7380
|
|
7376
7381
|
<!-- Step 1. colspan processing -->
|
@@ -13428,16 +13433,30 @@
|
|
13428
13433
|
|
13429
13434
|
<xsl:template match="*[local-name() = 'fmt-name']"/>
|
13430
13435
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
|
13431
|
-
<xsl:
|
13432
|
-
<xsl:
|
13433
|
-
|
13434
|
-
|
13436
|
+
<xsl:choose>
|
13437
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
13438
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13439
|
+
</xsl:when>
|
13440
|
+
<xsl:otherwise>
|
13441
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
13442
|
+
<xsl:copy-of select="@*"/>
|
13443
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13444
|
+
</xsl:element>
|
13445
|
+
</xsl:otherwise>
|
13446
|
+
</xsl:choose>
|
13435
13447
|
</xsl:template>
|
13436
13448
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
|
13437
|
-
<xsl:
|
13438
|
-
<xsl:
|
13439
|
-
|
13440
|
-
|
13449
|
+
<xsl:choose>
|
13450
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
13451
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13452
|
+
</xsl:when>
|
13453
|
+
<xsl:otherwise>
|
13454
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
13455
|
+
<xsl:copy-of select="@*"/>
|
13456
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
13457
|
+
</xsl:element>
|
13458
|
+
</xsl:otherwise>
|
13459
|
+
</xsl:choose>
|
13441
13460
|
</xsl:template>
|
13442
13461
|
|
13443
13462
|
<xsl:template match="*[local-name() = 'fmt-preferred']"/>
|
@@ -13535,6 +13554,9 @@
|
|
13535
13554
|
<xsl:apply-templates mode="update_xml_pres"/>
|
13536
13555
|
</xsl:template>
|
13537
13556
|
|
13557
|
+
<xsl:template match="*[local-name() = 'semx']">
|
13558
|
+
<xsl:apply-templates/>
|
13559
|
+
</xsl:template>
|
13538
13560
|
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
|
13539
13561
|
<xsl:apply-templates mode="update_xml_step1"/>
|
13540
13562
|
</xsl:template>
|
@@ -158,23 +158,23 @@
|
|
158
158
|
<xsl:variable name="toc_recommendations_">
|
159
159
|
<xsl:for-each select="//ogc:table[.//ogc:p[@class = 'RecommendationTitle']]">
|
160
160
|
<xsl:variable name="table_id" select="@id"/>
|
161
|
-
<recommendation alt-text="{.//ogc:p[@class = 'RecommendationTitle'][1]
|
161
|
+
<recommendation alt-text="{.//ogc:p[@class = 'RecommendationTitle'][1]}">
|
162
162
|
<xsl:copy-of select="@id"/>
|
163
163
|
<xsl:variable name="title">
|
164
|
-
<xsl:apply-templates select=".//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/node()"/>
|
164
|
+
<xsl:apply-templates select=".//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name/node()"/>
|
165
165
|
<xsl:if test=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()">
|
166
166
|
<xsl:text>: </xsl:text>
|
167
167
|
<xsl:variable name="recommendationLabel">
|
168
|
-
<tt><xsl:copy-of select=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()"/></tt>
|
168
|
+
<tt><xsl:copy-of select=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name/node()"/></tt>
|
169
169
|
</xsl:variable>
|
170
170
|
<xsl:apply-templates select="xalan:nodeset($recommendationLabel)/node()"/>
|
171
171
|
</xsl:if>
|
172
172
|
</xsl:variable>
|
173
173
|
<xsl:variable name="bookmark">
|
174
|
-
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/
|
174
|
+
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name)"/>
|
175
175
|
<xsl:if test=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()">
|
176
176
|
<xsl:text>: </xsl:text>
|
177
|
-
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/
|
177
|
+
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name)"/>
|
178
178
|
</xsl:if>
|
179
179
|
</xsl:variable>
|
180
180
|
<xsl:variable name="regex_str" select="'^([^0-9]+) (\d+).*'"/>
|
@@ -7368,9 +7368,14 @@
|
|
7368
7368
|
|
7369
7369
|
<xsl:variable name="simple-table">
|
7370
7370
|
|
7371
|
+
<xsl:variable name="table_without_semantic_elements">
|
7372
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
7373
|
+
</xsl:variable>
|
7374
|
+
|
7371
7375
|
<!-- Step 0. replace <br/> to <p>...</p> -->
|
7372
7376
|
<xsl:variable name="table_without_br">
|
7373
|
-
<xsl:apply-templates mode="table-without-br"/>
|
7377
|
+
<!-- <xsl:apply-templates mode="table-without-br"/> -->
|
7378
|
+
<xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
|
7374
7379
|
</xsl:variable>
|
7375
7380
|
|
7376
7381
|
<!-- Step 1. colspan processing -->
|
@@ -13428,16 +13433,30 @@
|
|
13428
13433
|
|
13429
13434
|
<xsl:template match="*[local-name() = 'fmt-name']"/>
|
13430
13435
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
|
13431
|
-
<xsl:
|
13432
|
-
<xsl:
|
13433
|
-
|
13434
|
-
|
13436
|
+
<xsl:choose>
|
13437
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
13438
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13439
|
+
</xsl:when>
|
13440
|
+
<xsl:otherwise>
|
13441
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
13442
|
+
<xsl:copy-of select="@*"/>
|
13443
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13444
|
+
</xsl:element>
|
13445
|
+
</xsl:otherwise>
|
13446
|
+
</xsl:choose>
|
13435
13447
|
</xsl:template>
|
13436
13448
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
|
13437
|
-
<xsl:
|
13438
|
-
<xsl:
|
13439
|
-
|
13440
|
-
|
13449
|
+
<xsl:choose>
|
13450
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
13451
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13452
|
+
</xsl:when>
|
13453
|
+
<xsl:otherwise>
|
13454
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
13455
|
+
<xsl:copy-of select="@*"/>
|
13456
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
13457
|
+
</xsl:element>
|
13458
|
+
</xsl:otherwise>
|
13459
|
+
</xsl:choose>
|
13441
13460
|
</xsl:template>
|
13442
13461
|
|
13443
13462
|
<xsl:template match="*[local-name() = 'fmt-preferred']"/>
|
@@ -13535,6 +13554,9 @@
|
|
13535
13554
|
<xsl:apply-templates mode="update_xml_pres"/>
|
13536
13555
|
</xsl:template>
|
13537
13556
|
|
13557
|
+
<xsl:template match="*[local-name() = 'semx']">
|
13558
|
+
<xsl:apply-templates/>
|
13559
|
+
</xsl:template>
|
13538
13560
|
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
|
13539
13561
|
<xsl:apply-templates mode="update_xml_step1"/>
|
13540
13562
|
</xsl:template>
|
@@ -158,23 +158,23 @@
|
|
158
158
|
<xsl:variable name="toc_recommendations_">
|
159
159
|
<xsl:for-each select="//ogc:table[.//ogc:p[@class = 'RecommendationTitle']]">
|
160
160
|
<xsl:variable name="table_id" select="@id"/>
|
161
|
-
<recommendation alt-text="{.//ogc:p[@class = 'RecommendationTitle'][1]
|
161
|
+
<recommendation alt-text="{.//ogc:p[@class = 'RecommendationTitle'][1]}">
|
162
162
|
<xsl:copy-of select="@id"/>
|
163
163
|
<xsl:variable name="title">
|
164
|
-
<xsl:apply-templates select=".//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/node()"/>
|
164
|
+
<xsl:apply-templates select=".//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name/node()"/>
|
165
165
|
<xsl:if test=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()">
|
166
166
|
<xsl:text>: </xsl:text>
|
167
167
|
<xsl:variable name="recommendationLabel">
|
168
|
-
<tt><xsl:copy-of select=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()"/></tt>
|
168
|
+
<tt><xsl:copy-of select=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name/node()"/></tt>
|
169
169
|
</xsl:variable>
|
170
170
|
<xsl:apply-templates select="xalan:nodeset($recommendationLabel)/node()"/>
|
171
171
|
</xsl:if>
|
172
172
|
</xsl:variable>
|
173
173
|
<xsl:variable name="bookmark">
|
174
|
-
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/
|
174
|
+
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name)"/>
|
175
175
|
<xsl:if test=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()">
|
176
176
|
<xsl:text>: </xsl:text>
|
177
|
-
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/
|
177
|
+
<xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name)"/>
|
178
178
|
</xsl:if>
|
179
179
|
</xsl:variable>
|
180
180
|
<xsl:variable name="regex_str" select="'^([^0-9]+) (\d+).*'"/>
|
@@ -7368,9 +7368,14 @@
|
|
7368
7368
|
|
7369
7369
|
<xsl:variable name="simple-table">
|
7370
7370
|
|
7371
|
+
<xsl:variable name="table_without_semantic_elements">
|
7372
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
7373
|
+
</xsl:variable>
|
7374
|
+
|
7371
7375
|
<!-- Step 0. replace <br/> to <p>...</p> -->
|
7372
7376
|
<xsl:variable name="table_without_br">
|
7373
|
-
<xsl:apply-templates mode="table-without-br"/>
|
7377
|
+
<!-- <xsl:apply-templates mode="table-without-br"/> -->
|
7378
|
+
<xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
|
7374
7379
|
</xsl:variable>
|
7375
7380
|
|
7376
7381
|
<!-- Step 1. colspan processing -->
|
@@ -13428,16 +13433,30 @@
|
|
13428
13433
|
|
13429
13434
|
<xsl:template match="*[local-name() = 'fmt-name']"/>
|
13430
13435
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
|
13431
|
-
<xsl:
|
13432
|
-
<xsl:
|
13433
|
-
|
13434
|
-
|
13436
|
+
<xsl:choose>
|
13437
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
13438
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13439
|
+
</xsl:when>
|
13440
|
+
<xsl:otherwise>
|
13441
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
13442
|
+
<xsl:copy-of select="@*"/>
|
13443
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13444
|
+
</xsl:element>
|
13445
|
+
</xsl:otherwise>
|
13446
|
+
</xsl:choose>
|
13435
13447
|
</xsl:template>
|
13436
13448
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
|
13437
|
-
<xsl:
|
13438
|
-
<xsl:
|
13439
|
-
|
13440
|
-
|
13449
|
+
<xsl:choose>
|
13450
|
+
<xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
|
13451
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13452
|
+
</xsl:when>
|
13453
|
+
<xsl:otherwise>
|
13454
|
+
<xsl:element name="name" namespace="{$namespace_full}">
|
13455
|
+
<xsl:copy-of select="@*"/>
|
13456
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
13457
|
+
</xsl:element>
|
13458
|
+
</xsl:otherwise>
|
13459
|
+
</xsl:choose>
|
13441
13460
|
</xsl:template>
|
13442
13461
|
|
13443
13462
|
<xsl:template match="*[local-name() = 'fmt-preferred']"/>
|
@@ -13535,6 +13554,9 @@
|
|
13535
13554
|
<xsl:apply-templates mode="update_xml_pres"/>
|
13536
13555
|
</xsl:template>
|
13537
13556
|
|
13557
|
+
<xsl:template match="*[local-name() = 'semx']">
|
13558
|
+
<xsl:apply-templates/>
|
13559
|
+
</xsl:template>
|
13538
13560
|
<xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
|
13539
13561
|
<xsl:apply-templates mode="update_xml_step1"/>
|
13540
13562
|
</xsl:template>
|