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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c236820b15f1ea7e11470e96e91eb0fe23b2d6e36655d35f08b0c2266486e1a
4
- data.tar.gz: b398e486a7281d6b58c8cce648877a2cbc7e1f9b8429ec42761565943bf3a4dd
3
+ metadata.gz: fc2727e5e894d6303e7a7993ddbb02e7f9c3cc33b6bb31b61bd6f08da9bae690
4
+ data.tar.gz: 5a288048cf0963d050a405f0261752f77143d0ebdb9e6164962c8b033de871a9
5
5
  SHA512:
6
- metadata.gz: a83230f83b7a7f9f2e135ee5b87cef038f7f2ed22cafc343095b2176626a712e33054449a54ff3abc8ef9a157c06ea4df9e9c436a394061500cb1509d3594532
7
- data.tar.gz: bbcc9c0d90cce488c06d023732257255508accacf8c916e960bdaf2824b356b01fe85e1c42ac913659d4eb1a8dc23104b946b99ce833d085fd162982377707a2
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]/text()}">
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]]/node())"/>
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]]/node())"/>
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:element name="name" namespace="{$namespace_full}">
13432
- <xsl:copy-of select="@*"/>
13433
- <xsl:apply-templates mode="update_xml_step1"/>
13434
- </xsl:element>
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:element name="name" namespace="{$namespace_full}">
13438
- <xsl:copy-of select="@*"/>
13439
- <xsl:apply-templates mode="update_xml_pres"/>
13440
- </xsl:element>
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]/text()}">
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]]/node())"/>
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]]/node())"/>
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:element name="name" namespace="{$namespace_full}">
13432
- <xsl:copy-of select="@*"/>
13433
- <xsl:apply-templates mode="update_xml_step1"/>
13434
- </xsl:element>
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:element name="name" namespace="{$namespace_full}">
13438
- <xsl:copy-of select="@*"/>
13439
- <xsl:apply-templates mode="update_xml_pres"/>
13440
- </xsl:element>
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]/text()}">
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]]/node())"/>
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]]/node())"/>
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:element name="name" namespace="{$namespace_full}">
13432
- <xsl:copy-of select="@*"/>
13433
- <xsl:apply-templates mode="update_xml_step1"/>
13434
- </xsl:element>
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:element name="name" namespace="{$namespace_full}">
13438
- <xsl:copy-of select="@*"/>
13439
- <xsl:apply-templates mode="update_xml_pres"/>
13440
- </xsl:element>
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]/text()}">
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]]/node())"/>
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]]/node())"/>
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:element name="name" namespace="{$namespace_full}">
13432
- <xsl:copy-of select="@*"/>
13433
- <xsl:apply-templates mode="update_xml_step1"/>
13434
- </xsl:element>
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:element name="name" namespace="{$namespace_full}">
13438
- <xsl:copy-of select="@*"/>
13439
- <xsl:apply-templates mode="update_xml_pres"/>
13440
- </xsl:element>
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]/text()}">
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]]/node())"/>
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]]/node())"/>
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:element name="name" namespace="{$namespace_full}">
13432
- <xsl:copy-of select="@*"/>
13433
- <xsl:apply-templates mode="update_xml_step1"/>
13434
- </xsl:element>
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:element name="name" namespace="{$namespace_full}">
13438
- <xsl:copy-of select="@*"/>
13439
- <xsl:apply-templates mode="update_xml_pres"/>
13440
- </xsl:element>
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]/text()}">
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]]/node())"/>
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]]/node())"/>
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:element name="name" namespace="{$namespace_full}">
13432
- <xsl:copy-of select="@*"/>
13433
- <xsl:apply-templates mode="update_xml_step1"/>
13434
- </xsl:element>
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:element name="name" namespace="{$namespace_full}">
13438
- <xsl:copy-of select="@*"/>
13439
- <xsl:apply-templates mode="update_xml_pres"/>
13440
- </xsl:element>
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>