metanorma-ogc 2.7.5 → 2.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +26 -3
- data/lib/isodoc/ogc/ogc.best-practice.xsl +26 -3
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +26 -3
- data/lib/isodoc/ogc/ogc.community-practice.xsl +26 -3
- data/lib/isodoc/ogc/ogc.community-standard.xsl +26 -3
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +26 -3
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +26 -3
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +26 -3
- data/lib/isodoc/ogc/ogc.other.xsl +26 -3
- data/lib/isodoc/ogc/ogc.policy.xsl +26 -3
- data/lib/isodoc/ogc/ogc.reference-model.xsl +26 -3
- data/lib/isodoc/ogc/ogc.release-notes.xsl +26 -3
- data/lib/isodoc/ogc/ogc.standard.xsl +26 -3
- data/lib/isodoc/ogc/ogc.test-suite.xsl +26 -3
- data/lib/isodoc/ogc/ogc.user-guide.xsl +26 -3
- data/lib/isodoc/ogc/ogc.white-paper.xsl +26 -3
- data/lib/metanorma/ogc/basicdoc.rng +9 -5
- data/lib/metanorma/ogc/cleanup.rb +2 -2
- data/lib/metanorma/ogc/converter.rb +2 -10
- data/lib/metanorma/ogc/isodoc.rng +132 -5
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +2 -2
@@ -10422,11 +10422,11 @@
|
|
10422
10422
|
</xsl:template>
|
10423
10423
|
|
10424
10424
|
<!-- figure/fn -->
|
10425
|
-
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'fn']" priority="2"/>
|
10425
|
+
<xsl:template match="*[local-name() = 'figure'][not(@class = 'pseudocode')]/*[local-name() = 'fn']" priority="2"/>
|
10426
10426
|
<!-- figure/note -->
|
10427
|
-
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'note']" priority="2"/>
|
10427
|
+
<xsl:template match="*[local-name() = 'figure'][not(@class = 'pseudocode')]/*[local-name() = 'note']" priority="2"/>
|
10428
10428
|
<!-- figure/example -->
|
10429
|
-
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'example']" priority="2"/>
|
10429
|
+
<xsl:template match="*[local-name() = 'figure'][not(@class = 'pseudocode')]/*[local-name() = 'example']" priority="2"/>
|
10430
10430
|
|
10431
10431
|
<!-- figure/note[@type = 'units'] -->
|
10432
10432
|
<!-- image/note[@type = 'units'] -->
|
@@ -13960,6 +13960,9 @@
|
|
13960
13960
|
<xsl:template match="*[local-name() = 'quote']/*[local-name() = 'author']" mode="update_xml_pres"/>
|
13961
13961
|
<xsl:template match="*[local-name() = 'amend']" mode="update_xml_step1"/>
|
13962
13962
|
<xsl:template match="*[local-name() = 'amend']" mode="update_xml_pres"/>
|
13963
|
+
<!-- https://github.com/metanorma/isodoc/issues/687 -->
|
13964
|
+
<xsl:template match="*[local-name() = 'source']" mode="update_xml_step1"/>
|
13965
|
+
<xsl:template match="*[local-name() = 'source']" mode="update_xml_pres"/>
|
13963
13966
|
|
13964
13967
|
<xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
|
13965
13968
|
<xsl:copy>
|
@@ -14242,6 +14245,20 @@
|
|
14242
14245
|
</xsl:element>
|
14243
14246
|
</xsl:template>
|
14244
14247
|
|
14248
|
+
<xsl:template match="*[local-name() = 'fmt-source']"/>
|
14249
|
+
<xsl:template match="*[local-name() = 'fmt-source']" mode="update_xml_step1">
|
14250
|
+
<xsl:element name="source" namespace="{$namespace_full}">
|
14251
|
+
<xsl:copy-of select="@*"/>
|
14252
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14253
|
+
</xsl:element>
|
14254
|
+
</xsl:template>
|
14255
|
+
<xsl:template match="*[local-name() = 'fmt-source']" mode="update_xml_pres">
|
14256
|
+
<xsl:element name="source" namespace="{$namespace_full}">
|
14257
|
+
<xsl:copy-of select="@*"/>
|
14258
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14259
|
+
</xsl:element>
|
14260
|
+
</xsl:template>
|
14261
|
+
|
14245
14262
|
<xsl:template match="*[local-name() = 'span'][ @class = 'fmt-caption-label' or @class = 'fmt-element-name' or @class = 'fmt-caption-delim' or @class = 'fmt-autonum-delim']" mode="update_xml_step1" priority="3">
|
14246
14263
|
<xsl:apply-templates mode="update_xml_step1"/>
|
14247
14264
|
</xsl:template>
|
@@ -15601,6 +15618,12 @@
|
|
15601
15618
|
</xsl:if>
|
15602
15619
|
</xsl:template>
|
15603
15620
|
|
15621
|
+
<xsl:template name="setIDforNamedDestinationInline">
|
15622
|
+
<xsl:if test="@named_dest">
|
15623
|
+
<fo:inline><xsl:call-template name="setIDforNamedDestination"/></fo:inline>
|
15624
|
+
</xsl:if>
|
15625
|
+
</xsl:template>
|
15626
|
+
|
15604
15627
|
<xsl:template name="setNamedDestination">
|
15605
15628
|
<!-- skip GUID, e.g. _33eac3cb-9663-4291-ae26-1d4b6f4635fc -->
|
15606
15629
|
<xsl:if test="@id and normalize-space(java:matches(java:java.lang.String.new(@id), '_[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}')) = 'false'">
|
@@ -10422,11 +10422,11 @@
|
|
10422
10422
|
</xsl:template>
|
10423
10423
|
|
10424
10424
|
<!-- figure/fn -->
|
10425
|
-
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'fn']" priority="2"/>
|
10425
|
+
<xsl:template match="*[local-name() = 'figure'][not(@class = 'pseudocode')]/*[local-name() = 'fn']" priority="2"/>
|
10426
10426
|
<!-- figure/note -->
|
10427
|
-
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'note']" priority="2"/>
|
10427
|
+
<xsl:template match="*[local-name() = 'figure'][not(@class = 'pseudocode')]/*[local-name() = 'note']" priority="2"/>
|
10428
10428
|
<!-- figure/example -->
|
10429
|
-
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'example']" priority="2"/>
|
10429
|
+
<xsl:template match="*[local-name() = 'figure'][not(@class = 'pseudocode')]/*[local-name() = 'example']" priority="2"/>
|
10430
10430
|
|
10431
10431
|
<!-- figure/note[@type = 'units'] -->
|
10432
10432
|
<!-- image/note[@type = 'units'] -->
|
@@ -13960,6 +13960,9 @@
|
|
13960
13960
|
<xsl:template match="*[local-name() = 'quote']/*[local-name() = 'author']" mode="update_xml_pres"/>
|
13961
13961
|
<xsl:template match="*[local-name() = 'amend']" mode="update_xml_step1"/>
|
13962
13962
|
<xsl:template match="*[local-name() = 'amend']" mode="update_xml_pres"/>
|
13963
|
+
<!-- https://github.com/metanorma/isodoc/issues/687 -->
|
13964
|
+
<xsl:template match="*[local-name() = 'source']" mode="update_xml_step1"/>
|
13965
|
+
<xsl:template match="*[local-name() = 'source']" mode="update_xml_pres"/>
|
13963
13966
|
|
13964
13967
|
<xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
|
13965
13968
|
<xsl:copy>
|
@@ -14242,6 +14245,20 @@
|
|
14242
14245
|
</xsl:element>
|
14243
14246
|
</xsl:template>
|
14244
14247
|
|
14248
|
+
<xsl:template match="*[local-name() = 'fmt-source']"/>
|
14249
|
+
<xsl:template match="*[local-name() = 'fmt-source']" mode="update_xml_step1">
|
14250
|
+
<xsl:element name="source" namespace="{$namespace_full}">
|
14251
|
+
<xsl:copy-of select="@*"/>
|
14252
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14253
|
+
</xsl:element>
|
14254
|
+
</xsl:template>
|
14255
|
+
<xsl:template match="*[local-name() = 'fmt-source']" mode="update_xml_pres">
|
14256
|
+
<xsl:element name="source" namespace="{$namespace_full}">
|
14257
|
+
<xsl:copy-of select="@*"/>
|
14258
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14259
|
+
</xsl:element>
|
14260
|
+
</xsl:template>
|
14261
|
+
|
14245
14262
|
<xsl:template match="*[local-name() = 'span'][ @class = 'fmt-caption-label' or @class = 'fmt-element-name' or @class = 'fmt-caption-delim' or @class = 'fmt-autonum-delim']" mode="update_xml_step1" priority="3">
|
14246
14263
|
<xsl:apply-templates mode="update_xml_step1"/>
|
14247
14264
|
</xsl:template>
|
@@ -15601,6 +15618,12 @@
|
|
15601
15618
|
</xsl:if>
|
15602
15619
|
</xsl:template>
|
15603
15620
|
|
15621
|
+
<xsl:template name="setIDforNamedDestinationInline">
|
15622
|
+
<xsl:if test="@named_dest">
|
15623
|
+
<fo:inline><xsl:call-template name="setIDforNamedDestination"/></fo:inline>
|
15624
|
+
</xsl:if>
|
15625
|
+
</xsl:template>
|
15626
|
+
|
15604
15627
|
<xsl:template name="setNamedDestination">
|
15605
15628
|
<!-- skip GUID, e.g. _33eac3cb-9663-4291-ae26-1d4b6f4635fc -->
|
15606
15629
|
<xsl:if test="@id and normalize-space(java:matches(java:java.lang.String.new(@id), '_[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}')) = 'false'">
|
@@ -10422,11 +10422,11 @@
|
|
10422
10422
|
</xsl:template>
|
10423
10423
|
|
10424
10424
|
<!-- figure/fn -->
|
10425
|
-
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'fn']" priority="2"/>
|
10425
|
+
<xsl:template match="*[local-name() = 'figure'][not(@class = 'pseudocode')]/*[local-name() = 'fn']" priority="2"/>
|
10426
10426
|
<!-- figure/note -->
|
10427
|
-
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'note']" priority="2"/>
|
10427
|
+
<xsl:template match="*[local-name() = 'figure'][not(@class = 'pseudocode')]/*[local-name() = 'note']" priority="2"/>
|
10428
10428
|
<!-- figure/example -->
|
10429
|
-
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'example']" priority="2"/>
|
10429
|
+
<xsl:template match="*[local-name() = 'figure'][not(@class = 'pseudocode')]/*[local-name() = 'example']" priority="2"/>
|
10430
10430
|
|
10431
10431
|
<!-- figure/note[@type = 'units'] -->
|
10432
10432
|
<!-- image/note[@type = 'units'] -->
|
@@ -13960,6 +13960,9 @@
|
|
13960
13960
|
<xsl:template match="*[local-name() = 'quote']/*[local-name() = 'author']" mode="update_xml_pres"/>
|
13961
13961
|
<xsl:template match="*[local-name() = 'amend']" mode="update_xml_step1"/>
|
13962
13962
|
<xsl:template match="*[local-name() = 'amend']" mode="update_xml_pres"/>
|
13963
|
+
<!-- https://github.com/metanorma/isodoc/issues/687 -->
|
13964
|
+
<xsl:template match="*[local-name() = 'source']" mode="update_xml_step1"/>
|
13965
|
+
<xsl:template match="*[local-name() = 'source']" mode="update_xml_pres"/>
|
13963
13966
|
|
13964
13967
|
<xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
|
13965
13968
|
<xsl:copy>
|
@@ -14242,6 +14245,20 @@
|
|
14242
14245
|
</xsl:element>
|
14243
14246
|
</xsl:template>
|
14244
14247
|
|
14248
|
+
<xsl:template match="*[local-name() = 'fmt-source']"/>
|
14249
|
+
<xsl:template match="*[local-name() = 'fmt-source']" mode="update_xml_step1">
|
14250
|
+
<xsl:element name="source" namespace="{$namespace_full}">
|
14251
|
+
<xsl:copy-of select="@*"/>
|
14252
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14253
|
+
</xsl:element>
|
14254
|
+
</xsl:template>
|
14255
|
+
<xsl:template match="*[local-name() = 'fmt-source']" mode="update_xml_pres">
|
14256
|
+
<xsl:element name="source" namespace="{$namespace_full}">
|
14257
|
+
<xsl:copy-of select="@*"/>
|
14258
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14259
|
+
</xsl:element>
|
14260
|
+
</xsl:template>
|
14261
|
+
|
14245
14262
|
<xsl:template match="*[local-name() = 'span'][ @class = 'fmt-caption-label' or @class = 'fmt-element-name' or @class = 'fmt-caption-delim' or @class = 'fmt-autonum-delim']" mode="update_xml_step1" priority="3">
|
14246
14263
|
<xsl:apply-templates mode="update_xml_step1"/>
|
14247
14264
|
</xsl:template>
|
@@ -15601,6 +15618,12 @@
|
|
15601
15618
|
</xsl:if>
|
15602
15619
|
</xsl:template>
|
15603
15620
|
|
15621
|
+
<xsl:template name="setIDforNamedDestinationInline">
|
15622
|
+
<xsl:if test="@named_dest">
|
15623
|
+
<fo:inline><xsl:call-template name="setIDforNamedDestination"/></fo:inline>
|
15624
|
+
</xsl:if>
|
15625
|
+
</xsl:template>
|
15626
|
+
|
15604
15627
|
<xsl:template name="setNamedDestination">
|
15605
15628
|
<!-- skip GUID, e.g. _33eac3cb-9663-4291-ae26-1d4b6f4635fc -->
|
15606
15629
|
<xsl:if test="@id and normalize-space(java:matches(java:java.lang.String.new(@id), '_[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}')) = 'false'">
|
@@ -10422,11 +10422,11 @@
|
|
10422
10422
|
</xsl:template>
|
10423
10423
|
|
10424
10424
|
<!-- figure/fn -->
|
10425
|
-
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'fn']" priority="2"/>
|
10425
|
+
<xsl:template match="*[local-name() = 'figure'][not(@class = 'pseudocode')]/*[local-name() = 'fn']" priority="2"/>
|
10426
10426
|
<!-- figure/note -->
|
10427
|
-
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'note']" priority="2"/>
|
10427
|
+
<xsl:template match="*[local-name() = 'figure'][not(@class = 'pseudocode')]/*[local-name() = 'note']" priority="2"/>
|
10428
10428
|
<!-- figure/example -->
|
10429
|
-
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'example']" priority="2"/>
|
10429
|
+
<xsl:template match="*[local-name() = 'figure'][not(@class = 'pseudocode')]/*[local-name() = 'example']" priority="2"/>
|
10430
10430
|
|
10431
10431
|
<!-- figure/note[@type = 'units'] -->
|
10432
10432
|
<!-- image/note[@type = 'units'] -->
|
@@ -13960,6 +13960,9 @@
|
|
13960
13960
|
<xsl:template match="*[local-name() = 'quote']/*[local-name() = 'author']" mode="update_xml_pres"/>
|
13961
13961
|
<xsl:template match="*[local-name() = 'amend']" mode="update_xml_step1"/>
|
13962
13962
|
<xsl:template match="*[local-name() = 'amend']" mode="update_xml_pres"/>
|
13963
|
+
<!-- https://github.com/metanorma/isodoc/issues/687 -->
|
13964
|
+
<xsl:template match="*[local-name() = 'source']" mode="update_xml_step1"/>
|
13965
|
+
<xsl:template match="*[local-name() = 'source']" mode="update_xml_pres"/>
|
13963
13966
|
|
13964
13967
|
<xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
|
13965
13968
|
<xsl:copy>
|
@@ -14242,6 +14245,20 @@
|
|
14242
14245
|
</xsl:element>
|
14243
14246
|
</xsl:template>
|
14244
14247
|
|
14248
|
+
<xsl:template match="*[local-name() = 'fmt-source']"/>
|
14249
|
+
<xsl:template match="*[local-name() = 'fmt-source']" mode="update_xml_step1">
|
14250
|
+
<xsl:element name="source" namespace="{$namespace_full}">
|
14251
|
+
<xsl:copy-of select="@*"/>
|
14252
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14253
|
+
</xsl:element>
|
14254
|
+
</xsl:template>
|
14255
|
+
<xsl:template match="*[local-name() = 'fmt-source']" mode="update_xml_pres">
|
14256
|
+
<xsl:element name="source" namespace="{$namespace_full}">
|
14257
|
+
<xsl:copy-of select="@*"/>
|
14258
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14259
|
+
</xsl:element>
|
14260
|
+
</xsl:template>
|
14261
|
+
|
14245
14262
|
<xsl:template match="*[local-name() = 'span'][ @class = 'fmt-caption-label' or @class = 'fmt-element-name' or @class = 'fmt-caption-delim' or @class = 'fmt-autonum-delim']" mode="update_xml_step1" priority="3">
|
14246
14263
|
<xsl:apply-templates mode="update_xml_step1"/>
|
14247
14264
|
</xsl:template>
|
@@ -15601,6 +15618,12 @@
|
|
15601
15618
|
</xsl:if>
|
15602
15619
|
</xsl:template>
|
15603
15620
|
|
15621
|
+
<xsl:template name="setIDforNamedDestinationInline">
|
15622
|
+
<xsl:if test="@named_dest">
|
15623
|
+
<fo:inline><xsl:call-template name="setIDforNamedDestination"/></fo:inline>
|
15624
|
+
</xsl:if>
|
15625
|
+
</xsl:template>
|
15626
|
+
|
15604
15627
|
<xsl:template name="setNamedDestination">
|
15605
15628
|
<!-- skip GUID, e.g. _33eac3cb-9663-4291-ae26-1d4b6f4635fc -->
|
15606
15629
|
<xsl:if test="@id and normalize-space(java:matches(java:java.lang.String.new(@id), '_[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}')) = 'false'">
|
@@ -10422,11 +10422,11 @@
|
|
10422
10422
|
</xsl:template>
|
10423
10423
|
|
10424
10424
|
<!-- figure/fn -->
|
10425
|
-
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'fn']" priority="2"/>
|
10425
|
+
<xsl:template match="*[local-name() = 'figure'][not(@class = 'pseudocode')]/*[local-name() = 'fn']" priority="2"/>
|
10426
10426
|
<!-- figure/note -->
|
10427
|
-
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'note']" priority="2"/>
|
10427
|
+
<xsl:template match="*[local-name() = 'figure'][not(@class = 'pseudocode')]/*[local-name() = 'note']" priority="2"/>
|
10428
10428
|
<!-- figure/example -->
|
10429
|
-
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'example']" priority="2"/>
|
10429
|
+
<xsl:template match="*[local-name() = 'figure'][not(@class = 'pseudocode')]/*[local-name() = 'example']" priority="2"/>
|
10430
10430
|
|
10431
10431
|
<!-- figure/note[@type = 'units'] -->
|
10432
10432
|
<!-- image/note[@type = 'units'] -->
|
@@ -13960,6 +13960,9 @@
|
|
13960
13960
|
<xsl:template match="*[local-name() = 'quote']/*[local-name() = 'author']" mode="update_xml_pres"/>
|
13961
13961
|
<xsl:template match="*[local-name() = 'amend']" mode="update_xml_step1"/>
|
13962
13962
|
<xsl:template match="*[local-name() = 'amend']" mode="update_xml_pres"/>
|
13963
|
+
<!-- https://github.com/metanorma/isodoc/issues/687 -->
|
13964
|
+
<xsl:template match="*[local-name() = 'source']" mode="update_xml_step1"/>
|
13965
|
+
<xsl:template match="*[local-name() = 'source']" mode="update_xml_pres"/>
|
13963
13966
|
|
13964
13967
|
<xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
|
13965
13968
|
<xsl:copy>
|
@@ -14242,6 +14245,20 @@
|
|
14242
14245
|
</xsl:element>
|
14243
14246
|
</xsl:template>
|
14244
14247
|
|
14248
|
+
<xsl:template match="*[local-name() = 'fmt-source']"/>
|
14249
|
+
<xsl:template match="*[local-name() = 'fmt-source']" mode="update_xml_step1">
|
14250
|
+
<xsl:element name="source" namespace="{$namespace_full}">
|
14251
|
+
<xsl:copy-of select="@*"/>
|
14252
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
14253
|
+
</xsl:element>
|
14254
|
+
</xsl:template>
|
14255
|
+
<xsl:template match="*[local-name() = 'fmt-source']" mode="update_xml_pres">
|
14256
|
+
<xsl:element name="source" namespace="{$namespace_full}">
|
14257
|
+
<xsl:copy-of select="@*"/>
|
14258
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
14259
|
+
</xsl:element>
|
14260
|
+
</xsl:template>
|
14261
|
+
|
14245
14262
|
<xsl:template match="*[local-name() = 'span'][ @class = 'fmt-caption-label' or @class = 'fmt-element-name' or @class = 'fmt-caption-delim' or @class = 'fmt-autonum-delim']" mode="update_xml_step1" priority="3">
|
14246
14263
|
<xsl:apply-templates mode="update_xml_step1"/>
|
14247
14264
|
</xsl:template>
|
@@ -15601,6 +15618,12 @@
|
|
15601
15618
|
</xsl:if>
|
15602
15619
|
</xsl:template>
|
15603
15620
|
|
15621
|
+
<xsl:template name="setIDforNamedDestinationInline">
|
15622
|
+
<xsl:if test="@named_dest">
|
15623
|
+
<fo:inline><xsl:call-template name="setIDforNamedDestination"/></fo:inline>
|
15624
|
+
</xsl:if>
|
15625
|
+
</xsl:template>
|
15626
|
+
|
15604
15627
|
<xsl:template name="setNamedDestination">
|
15605
15628
|
<!-- skip GUID, e.g. _33eac3cb-9663-4291-ae26-1d4b6f4635fc -->
|
15606
15629
|
<xsl:if test="@id and normalize-space(java:matches(java:java.lang.String.new(@id), '_[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}')) = 'false'">
|
@@ -9177,11 +9177,11 @@
|
|
9177
9177
|
</xsl:template>
|
9178
9178
|
|
9179
9179
|
<!-- figure/fn -->
|
9180
|
-
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'fn']" priority="2"/>
|
9180
|
+
<xsl:template match="*[local-name() = 'figure'][not(@class = 'pseudocode')]/*[local-name() = 'fn']" priority="2"/>
|
9181
9181
|
<!-- figure/note -->
|
9182
|
-
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'note']" priority="2"/>
|
9182
|
+
<xsl:template match="*[local-name() = 'figure'][not(@class = 'pseudocode')]/*[local-name() = 'note']" priority="2"/>
|
9183
9183
|
<!-- figure/example -->
|
9184
|
-
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'example']" priority="2"/>
|
9184
|
+
<xsl:template match="*[local-name() = 'figure'][not(@class = 'pseudocode')]/*[local-name() = 'example']" priority="2"/>
|
9185
9185
|
|
9186
9186
|
<!-- figure/note[@type = 'units'] -->
|
9187
9187
|
<!-- image/note[@type = 'units'] -->
|
@@ -12719,6 +12719,9 @@
|
|
12719
12719
|
<xsl:template match="*[local-name() = 'quote']/*[local-name() = 'author']" mode="update_xml_pres"/>
|
12720
12720
|
<xsl:template match="*[local-name() = 'amend']" mode="update_xml_step1"/>
|
12721
12721
|
<xsl:template match="*[local-name() = 'amend']" mode="update_xml_pres"/>
|
12722
|
+
<!-- https://github.com/metanorma/isodoc/issues/687 -->
|
12723
|
+
<xsl:template match="*[local-name() = 'source']" mode="update_xml_step1"/>
|
12724
|
+
<xsl:template match="*[local-name() = 'source']" mode="update_xml_pres"/>
|
12722
12725
|
|
12723
12726
|
<xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
|
12724
12727
|
<xsl:copy>
|
@@ -13001,6 +13004,20 @@
|
|
13001
13004
|
</xsl:element>
|
13002
13005
|
</xsl:template>
|
13003
13006
|
|
13007
|
+
<xsl:template match="*[local-name() = 'fmt-source']"/>
|
13008
|
+
<xsl:template match="*[local-name() = 'fmt-source']" mode="update_xml_step1">
|
13009
|
+
<xsl:element name="source" namespace="{$namespace_full}">
|
13010
|
+
<xsl:copy-of select="@*"/>
|
13011
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13012
|
+
</xsl:element>
|
13013
|
+
</xsl:template>
|
13014
|
+
<xsl:template match="*[local-name() = 'fmt-source']" mode="update_xml_pres">
|
13015
|
+
<xsl:element name="source" namespace="{$namespace_full}">
|
13016
|
+
<xsl:copy-of select="@*"/>
|
13017
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
13018
|
+
</xsl:element>
|
13019
|
+
</xsl:template>
|
13020
|
+
|
13004
13021
|
<xsl:template match="*[local-name() = 'span'][ @class = 'fmt-caption-label' or @class = 'fmt-element-name' or @class = 'fmt-caption-delim' or @class = 'fmt-autonum-delim']" mode="update_xml_step1" priority="3">
|
13005
13022
|
<xsl:apply-templates mode="update_xml_step1"/>
|
13006
13023
|
</xsl:template>
|
@@ -14360,6 +14377,12 @@
|
|
14360
14377
|
</xsl:if>
|
14361
14378
|
</xsl:template>
|
14362
14379
|
|
14380
|
+
<xsl:template name="setIDforNamedDestinationInline">
|
14381
|
+
<xsl:if test="@named_dest">
|
14382
|
+
<fo:inline><xsl:call-template name="setIDforNamedDestination"/></fo:inline>
|
14383
|
+
</xsl:if>
|
14384
|
+
</xsl:template>
|
14385
|
+
|
14363
14386
|
<xsl:template name="setNamedDestination">
|
14364
14387
|
<!-- skip GUID, e.g. _33eac3cb-9663-4291-ae26-1d4b6f4635fc -->
|
14365
14388
|
<xsl:if test="@id and normalize-space(java:matches(java:java.lang.String.new(@id), '_[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}')) = 'false'">
|
@@ -267,6 +267,10 @@ in a document (e.g. sourcecode annotations)</a:documentation>
|
|
267
267
|
<value>justified</value>
|
268
268
|
</choice>
|
269
269
|
</define>
|
270
|
+
<define name="IdRefType">
|
271
|
+
<a:documentation>Type of cross-references to elements. In BasicDoc, these always point to id { xsd:ID } </a:documentation>
|
272
|
+
<data type="IDREF"/>
|
273
|
+
</define>
|
270
274
|
<define name="RequiredId">
|
271
275
|
<a:documentation>Mandatory anchor of element, to be used for cross-references within the document</a:documentation>
|
272
276
|
<attribute name="id">
|
@@ -409,13 +413,13 @@ in a document (e.g. sourcecode annotations)</a:documentation>
|
|
409
413
|
<attribute name="from">
|
410
414
|
<a:documentation>Identifier for the start of the text or point in the text to which the comment applies.
|
411
415
|
If not provided, the comment applies in the vicinity of the place it has been inserted into the text</a:documentation>
|
412
|
-
<
|
416
|
+
<ref name="IdRefType"/>
|
413
417
|
</attribute>
|
414
418
|
</optional>
|
415
419
|
<optional>
|
416
420
|
<attribute name="to">
|
417
421
|
<a:documentation>Identifier for the end of the text to which the comment applies</a:documentation>
|
418
|
-
<
|
422
|
+
<ref name="IdRefType"/>
|
419
423
|
</attribute>
|
420
424
|
</optional>
|
421
425
|
</define>
|
@@ -1504,7 +1508,7 @@ Restricted recursively to contain only other such inline elements with no identi
|
|
1504
1508
|
<attribute name="to">
|
1505
1509
|
<a:documentation>A reference to an anchor element (typically a bookmark),
|
1506
1510
|
to indicate that the index range covers a range of locations between the current index element and the `to` anchor</a:documentation>
|
1507
|
-
<
|
1511
|
+
<ref name="IdRefType"/>
|
1508
1512
|
</attribute>
|
1509
1513
|
</optional>
|
1510
1514
|
<ref name="index-primary">
|
@@ -1662,7 +1666,7 @@ which can be bookmarks as well as block or section references</a:documentation>
|
|
1662
1666
|
<define name="XrefAttributes">
|
1663
1667
|
<attribute name="target">
|
1664
1668
|
<a:documentation>The identifier of a section, block or inlined element being referenced</a:documentation>
|
1665
|
-
<
|
1669
|
+
<ref name="IdRefType"/>
|
1666
1670
|
</attribute>
|
1667
1671
|
<optional>
|
1668
1672
|
<attribute name="type">
|
@@ -1723,7 +1727,7 @@ The target of a footnote is the location it is embedded in within the text</a:do
|
|
1723
1727
|
<attribute name="target">
|
1724
1728
|
<a:documentation>The target of the callout is understood to be the location of the callout within the source code;
|
1725
1729
|
the extent of the target is not expressed overtly</a:documentation>
|
1726
|
-
<
|
1730
|
+
<ref name="IdRefType"/>
|
1727
1731
|
</attribute>
|
1728
1732
|
<text>
|
1729
1733
|
<a:documentation>The label of the callout, used to identify its target within the source code</a:documentation>
|
@@ -18,7 +18,7 @@ module Metanorma
|
|
18
18
|
insert_submitters(xml, sect)
|
19
19
|
end
|
20
20
|
|
21
|
-
def
|
21
|
+
def add_id_txt
|
22
22
|
%(id="_#{UUIDTools::UUID.random_create}")
|
23
23
|
end
|
24
24
|
|
@@ -45,7 +45,7 @@ module Metanorma
|
|
45
45
|
description = "standard" if %w(standard community-standard)
|
46
46
|
.include?(doctype)
|
47
47
|
<<~CLAUSE
|
48
|
-
<clause type='security' #{
|
48
|
+
<clause type='security' #{add_id_txt}>
|
49
49
|
<title>Security considerations</title>
|
50
50
|
<p>#{@i18n.security_empty.sub('%', description)}</p></clause>
|
51
51
|
CLAUSE
|
@@ -7,9 +7,6 @@ require_relative "cleanup"
|
|
7
7
|
|
8
8
|
module Metanorma
|
9
9
|
module Ogc
|
10
|
-
# A {Converter} implementation that generates RSD output, and a document
|
11
|
-
# schema encapsulation of the document for validation
|
12
|
-
#
|
13
10
|
class Converter < Standoc::Converter
|
14
11
|
register_for "ogc"
|
15
12
|
|
@@ -83,8 +80,7 @@ module Metanorma
|
|
83
80
|
when "foreword", "introduction" then "donotrecognise-foreword"
|
84
81
|
when "references" then "normative references"
|
85
82
|
when "glossary" then "terms and definitions"
|
86
|
-
else
|
87
|
-
super
|
83
|
+
else super
|
88
84
|
end
|
89
85
|
end
|
90
86
|
|
@@ -154,6 +150,7 @@ module Metanorma
|
|
154
150
|
attrs1 = attrs.merge(id: "_#{UUIDTools::UUID.random_create}")
|
155
151
|
xml.annex **attr_code(attrs1) do |xml_section|
|
156
152
|
xml_section.title { |name| name << node.title }
|
153
|
+
attrs.delete(:anchor)
|
157
154
|
xml_section.terms **attr_code(attrs) do |terms|
|
158
155
|
(s = node.attr("source")) && s.split(",").each do |s1|
|
159
156
|
terms.termdocsource(nil, **attr_code(bibitemid: s1))
|
@@ -163,11 +160,6 @@ module Metanorma
|
|
163
160
|
end
|
164
161
|
end
|
165
162
|
|
166
|
-
# KILL
|
167
|
-
def highlight_parsex(text, xml)
|
168
|
-
xml.hi { |s| s << text }
|
169
|
-
end
|
170
|
-
|
171
163
|
def set_obligation(attrs, node)
|
172
164
|
if node.attr("style") == "appendix" && node.level == 1
|
173
165
|
attrs[:obligation] = if node.attributes.has_key?("obligation")
|