metanorma-ogc 2.4.0 → 2.4.1
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 +34 -15
- data/lib/isodoc/ogc/ogc.best-practice.xsl +34 -15
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +34 -15
- data/lib/isodoc/ogc/ogc.community-practice.xsl +34 -15
- data/lib/isodoc/ogc/ogc.community-standard.xsl +34 -15
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +34 -15
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +34 -15
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +34 -15
- data/lib/isodoc/ogc/ogc.other.xsl +34 -15
- data/lib/isodoc/ogc/ogc.policy.xsl +34 -15
- data/lib/isodoc/ogc/ogc.reference-model.xsl +34 -15
- data/lib/isodoc/ogc/ogc.release-notes.xsl +34 -15
- data/lib/isodoc/ogc/ogc.standard.xsl +34 -15
- data/lib/isodoc/ogc/ogc.test-suite.xsl +34 -15
- data/lib/isodoc/ogc/ogc.user-guide.xsl +34 -15
- data/lib/isodoc/ogc/ogc.white-paper.xsl +34 -15
- data/lib/isodoc/ogc/presentation_xml_convert.rb +0 -27
- data/lib/isodoc/ogc/xref.rb +21 -46
- data/lib/metanorma/ogc/isodoc.rng +4 -1
- data/lib/metanorma/ogc/version.rb +1 -1
- data/metanorma-ogc.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df6f6cbb5bc0bc2323c2ca580974c1b8088c17cd1b8e54ce952ad349990518d1
|
4
|
+
data.tar.gz: c33fb7fe87342becdb7d44ecd64422d5b911230622f0f571b1318d802b89ead2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c8ce9e3fd6cdf2a2f8f349c5991bde3d6809d73cba6b515a20f99dde628d041012602697bad104f21b9578622e18b5acfe6d7b172ae80b08546396f5fdfb527
|
7
|
+
data.tar.gz: 70e85764d9f88e93075742ca70b5d2c4bfed91b12c5ccf201421f1760235f684732f70f73073e7795dca982f9ec39ef7e14bc8648afb8e9ed6bd7e411e06aa6a
|
@@ -1822,11 +1822,26 @@
|
|
1822
1822
|
<xsl:value-of select="$font_extended"/><xsl:text>, </xsl:text>
|
1823
1823
|
</xsl:if>
|
1824
1824
|
|
1825
|
-
<xsl:
|
1825
|
+
<xsl:variable name="font_family" select="."/>
|
1826
1826
|
|
1827
|
-
<xsl:
|
1828
|
-
<xsl:
|
1829
|
-
|
1827
|
+
<xsl:choose>
|
1828
|
+
<xsl:when test="$additional_fonts = ''">
|
1829
|
+
<xsl:value-of select="$font_family"/>
|
1830
|
+
</xsl:when>
|
1831
|
+
<xsl:otherwise> <!-- $additional_fonts != '' -->
|
1832
|
+
<xsl:choose>
|
1833
|
+
<xsl:when test="contains($font_family, ',')">
|
1834
|
+
<xsl:value-of select="substring-before($font_family, ',')"/>
|
1835
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
1836
|
+
<xsl:text>, </xsl:text><xsl:value-of select="substring-after($font_family, ',')"/>
|
1837
|
+
</xsl:when>
|
1838
|
+
<xsl:otherwise>
|
1839
|
+
<xsl:value-of select="$font_family"/>
|
1840
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
1841
|
+
</xsl:otherwise>
|
1842
|
+
</xsl:choose>
|
1843
|
+
</xsl:otherwise>
|
1844
|
+
</xsl:choose>
|
1830
1845
|
</xsl:attribute>
|
1831
1846
|
</xsl:when>
|
1832
1847
|
<xsl:otherwise>
|
@@ -4480,21 +4495,21 @@
|
|
4480
4495
|
|
4481
4496
|
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
4482
4497
|
|
4483
|
-
|
4498
|
+
<fo:block xsl:use-attribute-sets="table-note-style">
|
4484
4499
|
|
4485
|
-
|
4500
|
+
<xsl:call-template name="refine_table-note-style"/>
|
4486
4501
|
|
4487
|
-
|
4488
|
-
|
4502
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
4503
|
+
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
4489
4504
|
|
4490
|
-
|
4505
|
+
<xsl:call-template name="refine_table-note-name-style"/>
|
4491
4506
|
|
4492
|
-
|
4507
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/>
|
4493
4508
|
|
4494
|
-
|
4509
|
+
</fo:inline>
|
4495
4510
|
|
4496
|
-
|
4497
|
-
|
4511
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
4512
|
+
</fo:block>
|
4498
4513
|
|
4499
4514
|
</xsl:template> <!-- table/note -->
|
4500
4515
|
|
@@ -7637,8 +7652,12 @@
|
|
7637
7652
|
<xsl:variable name="isAdded" select="../@added"/>
|
7638
7653
|
<xsl:variable name="isDeleted" select="../@deleted"/>
|
7639
7654
|
<xsl:choose>
|
7640
|
-
<xsl:when test="ancestor::*[local-name() = 'title']">
|
7655
|
+
<xsl:when test="ancestor::*[local-name() = 'title'] or not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']">
|
7641
7656
|
<fo:inline padding-left="1mm" padding-right="1mm">
|
7657
|
+
<xsl:if test="not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']">
|
7658
|
+
<xsl:attribute name="padding-left">0mm</xsl:attribute>
|
7659
|
+
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
7660
|
+
</xsl:if>
|
7642
7661
|
<xsl:variable name="src">
|
7643
7662
|
<xsl:call-template name="image_src"/>
|
7644
7663
|
</xsl:variable>
|
@@ -7671,7 +7690,7 @@
|
|
7671
7690
|
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style">
|
7672
7691
|
<xsl:if test="not(@mimetype = 'image/svg+xml') and ../*[local-name() = 'name'] and not(ancestor::*[local-name() = 'table'])">
|
7673
7692
|
|
7674
|
-
<xsl:if test="@width != '' and @width != 'auto'">
|
7693
|
+
<xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
|
7675
7694
|
<xsl:attribute name="width">
|
7676
7695
|
<xsl:value-of select="@width"/>
|
7677
7696
|
</xsl:attribute>
|
@@ -1822,11 +1822,26 @@
|
|
1822
1822
|
<xsl:value-of select="$font_extended"/><xsl:text>, </xsl:text>
|
1823
1823
|
</xsl:if>
|
1824
1824
|
|
1825
|
-
<xsl:
|
1825
|
+
<xsl:variable name="font_family" select="."/>
|
1826
1826
|
|
1827
|
-
<xsl:
|
1828
|
-
<xsl:
|
1829
|
-
|
1827
|
+
<xsl:choose>
|
1828
|
+
<xsl:when test="$additional_fonts = ''">
|
1829
|
+
<xsl:value-of select="$font_family"/>
|
1830
|
+
</xsl:when>
|
1831
|
+
<xsl:otherwise> <!-- $additional_fonts != '' -->
|
1832
|
+
<xsl:choose>
|
1833
|
+
<xsl:when test="contains($font_family, ',')">
|
1834
|
+
<xsl:value-of select="substring-before($font_family, ',')"/>
|
1835
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
1836
|
+
<xsl:text>, </xsl:text><xsl:value-of select="substring-after($font_family, ',')"/>
|
1837
|
+
</xsl:when>
|
1838
|
+
<xsl:otherwise>
|
1839
|
+
<xsl:value-of select="$font_family"/>
|
1840
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
1841
|
+
</xsl:otherwise>
|
1842
|
+
</xsl:choose>
|
1843
|
+
</xsl:otherwise>
|
1844
|
+
</xsl:choose>
|
1830
1845
|
</xsl:attribute>
|
1831
1846
|
</xsl:when>
|
1832
1847
|
<xsl:otherwise>
|
@@ -4480,21 +4495,21 @@
|
|
4480
4495
|
|
4481
4496
|
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
4482
4497
|
|
4483
|
-
|
4498
|
+
<fo:block xsl:use-attribute-sets="table-note-style">
|
4484
4499
|
|
4485
|
-
|
4500
|
+
<xsl:call-template name="refine_table-note-style"/>
|
4486
4501
|
|
4487
|
-
|
4488
|
-
|
4502
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
4503
|
+
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
4489
4504
|
|
4490
|
-
|
4505
|
+
<xsl:call-template name="refine_table-note-name-style"/>
|
4491
4506
|
|
4492
|
-
|
4507
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/>
|
4493
4508
|
|
4494
|
-
|
4509
|
+
</fo:inline>
|
4495
4510
|
|
4496
|
-
|
4497
|
-
|
4511
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
4512
|
+
</fo:block>
|
4498
4513
|
|
4499
4514
|
</xsl:template> <!-- table/note -->
|
4500
4515
|
|
@@ -7637,8 +7652,12 @@
|
|
7637
7652
|
<xsl:variable name="isAdded" select="../@added"/>
|
7638
7653
|
<xsl:variable name="isDeleted" select="../@deleted"/>
|
7639
7654
|
<xsl:choose>
|
7640
|
-
<xsl:when test="ancestor::*[local-name() = 'title']">
|
7655
|
+
<xsl:when test="ancestor::*[local-name() = 'title'] or not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']">
|
7641
7656
|
<fo:inline padding-left="1mm" padding-right="1mm">
|
7657
|
+
<xsl:if test="not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']">
|
7658
|
+
<xsl:attribute name="padding-left">0mm</xsl:attribute>
|
7659
|
+
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
7660
|
+
</xsl:if>
|
7642
7661
|
<xsl:variable name="src">
|
7643
7662
|
<xsl:call-template name="image_src"/>
|
7644
7663
|
</xsl:variable>
|
@@ -7671,7 +7690,7 @@
|
|
7671
7690
|
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style">
|
7672
7691
|
<xsl:if test="not(@mimetype = 'image/svg+xml') and ../*[local-name() = 'name'] and not(ancestor::*[local-name() = 'table'])">
|
7673
7692
|
|
7674
|
-
<xsl:if test="@width != '' and @width != 'auto'">
|
7693
|
+
<xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
|
7675
7694
|
<xsl:attribute name="width">
|
7676
7695
|
<xsl:value-of select="@width"/>
|
7677
7696
|
</xsl:attribute>
|
@@ -1822,11 +1822,26 @@
|
|
1822
1822
|
<xsl:value-of select="$font_extended"/><xsl:text>, </xsl:text>
|
1823
1823
|
</xsl:if>
|
1824
1824
|
|
1825
|
-
<xsl:
|
1825
|
+
<xsl:variable name="font_family" select="."/>
|
1826
1826
|
|
1827
|
-
<xsl:
|
1828
|
-
<xsl:
|
1829
|
-
|
1827
|
+
<xsl:choose>
|
1828
|
+
<xsl:when test="$additional_fonts = ''">
|
1829
|
+
<xsl:value-of select="$font_family"/>
|
1830
|
+
</xsl:when>
|
1831
|
+
<xsl:otherwise> <!-- $additional_fonts != '' -->
|
1832
|
+
<xsl:choose>
|
1833
|
+
<xsl:when test="contains($font_family, ',')">
|
1834
|
+
<xsl:value-of select="substring-before($font_family, ',')"/>
|
1835
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
1836
|
+
<xsl:text>, </xsl:text><xsl:value-of select="substring-after($font_family, ',')"/>
|
1837
|
+
</xsl:when>
|
1838
|
+
<xsl:otherwise>
|
1839
|
+
<xsl:value-of select="$font_family"/>
|
1840
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
1841
|
+
</xsl:otherwise>
|
1842
|
+
</xsl:choose>
|
1843
|
+
</xsl:otherwise>
|
1844
|
+
</xsl:choose>
|
1830
1845
|
</xsl:attribute>
|
1831
1846
|
</xsl:when>
|
1832
1847
|
<xsl:otherwise>
|
@@ -4480,21 +4495,21 @@
|
|
4480
4495
|
|
4481
4496
|
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
4482
4497
|
|
4483
|
-
|
4498
|
+
<fo:block xsl:use-attribute-sets="table-note-style">
|
4484
4499
|
|
4485
|
-
|
4500
|
+
<xsl:call-template name="refine_table-note-style"/>
|
4486
4501
|
|
4487
|
-
|
4488
|
-
|
4502
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
4503
|
+
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
4489
4504
|
|
4490
|
-
|
4505
|
+
<xsl:call-template name="refine_table-note-name-style"/>
|
4491
4506
|
|
4492
|
-
|
4507
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/>
|
4493
4508
|
|
4494
|
-
|
4509
|
+
</fo:inline>
|
4495
4510
|
|
4496
|
-
|
4497
|
-
|
4511
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
4512
|
+
</fo:block>
|
4498
4513
|
|
4499
4514
|
</xsl:template> <!-- table/note -->
|
4500
4515
|
|
@@ -7637,8 +7652,12 @@
|
|
7637
7652
|
<xsl:variable name="isAdded" select="../@added"/>
|
7638
7653
|
<xsl:variable name="isDeleted" select="../@deleted"/>
|
7639
7654
|
<xsl:choose>
|
7640
|
-
<xsl:when test="ancestor::*[local-name() = 'title']">
|
7655
|
+
<xsl:when test="ancestor::*[local-name() = 'title'] or not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']">
|
7641
7656
|
<fo:inline padding-left="1mm" padding-right="1mm">
|
7657
|
+
<xsl:if test="not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']">
|
7658
|
+
<xsl:attribute name="padding-left">0mm</xsl:attribute>
|
7659
|
+
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
7660
|
+
</xsl:if>
|
7642
7661
|
<xsl:variable name="src">
|
7643
7662
|
<xsl:call-template name="image_src"/>
|
7644
7663
|
</xsl:variable>
|
@@ -7671,7 +7690,7 @@
|
|
7671
7690
|
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style">
|
7672
7691
|
<xsl:if test="not(@mimetype = 'image/svg+xml') and ../*[local-name() = 'name'] and not(ancestor::*[local-name() = 'table'])">
|
7673
7692
|
|
7674
|
-
<xsl:if test="@width != '' and @width != 'auto'">
|
7693
|
+
<xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
|
7675
7694
|
<xsl:attribute name="width">
|
7676
7695
|
<xsl:value-of select="@width"/>
|
7677
7696
|
</xsl:attribute>
|
@@ -1822,11 +1822,26 @@
|
|
1822
1822
|
<xsl:value-of select="$font_extended"/><xsl:text>, </xsl:text>
|
1823
1823
|
</xsl:if>
|
1824
1824
|
|
1825
|
-
<xsl:
|
1825
|
+
<xsl:variable name="font_family" select="."/>
|
1826
1826
|
|
1827
|
-
<xsl:
|
1828
|
-
<xsl:
|
1829
|
-
|
1827
|
+
<xsl:choose>
|
1828
|
+
<xsl:when test="$additional_fonts = ''">
|
1829
|
+
<xsl:value-of select="$font_family"/>
|
1830
|
+
</xsl:when>
|
1831
|
+
<xsl:otherwise> <!-- $additional_fonts != '' -->
|
1832
|
+
<xsl:choose>
|
1833
|
+
<xsl:when test="contains($font_family, ',')">
|
1834
|
+
<xsl:value-of select="substring-before($font_family, ',')"/>
|
1835
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
1836
|
+
<xsl:text>, </xsl:text><xsl:value-of select="substring-after($font_family, ',')"/>
|
1837
|
+
</xsl:when>
|
1838
|
+
<xsl:otherwise>
|
1839
|
+
<xsl:value-of select="$font_family"/>
|
1840
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
1841
|
+
</xsl:otherwise>
|
1842
|
+
</xsl:choose>
|
1843
|
+
</xsl:otherwise>
|
1844
|
+
</xsl:choose>
|
1830
1845
|
</xsl:attribute>
|
1831
1846
|
</xsl:when>
|
1832
1847
|
<xsl:otherwise>
|
@@ -4480,21 +4495,21 @@
|
|
4480
4495
|
|
4481
4496
|
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
4482
4497
|
|
4483
|
-
|
4498
|
+
<fo:block xsl:use-attribute-sets="table-note-style">
|
4484
4499
|
|
4485
|
-
|
4500
|
+
<xsl:call-template name="refine_table-note-style"/>
|
4486
4501
|
|
4487
|
-
|
4488
|
-
|
4502
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
4503
|
+
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
4489
4504
|
|
4490
|
-
|
4505
|
+
<xsl:call-template name="refine_table-note-name-style"/>
|
4491
4506
|
|
4492
|
-
|
4507
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/>
|
4493
4508
|
|
4494
|
-
|
4509
|
+
</fo:inline>
|
4495
4510
|
|
4496
|
-
|
4497
|
-
|
4511
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
4512
|
+
</fo:block>
|
4498
4513
|
|
4499
4514
|
</xsl:template> <!-- table/note -->
|
4500
4515
|
|
@@ -7637,8 +7652,12 @@
|
|
7637
7652
|
<xsl:variable name="isAdded" select="../@added"/>
|
7638
7653
|
<xsl:variable name="isDeleted" select="../@deleted"/>
|
7639
7654
|
<xsl:choose>
|
7640
|
-
<xsl:when test="ancestor::*[local-name() = 'title']">
|
7655
|
+
<xsl:when test="ancestor::*[local-name() = 'title'] or not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']">
|
7641
7656
|
<fo:inline padding-left="1mm" padding-right="1mm">
|
7657
|
+
<xsl:if test="not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']">
|
7658
|
+
<xsl:attribute name="padding-left">0mm</xsl:attribute>
|
7659
|
+
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
7660
|
+
</xsl:if>
|
7642
7661
|
<xsl:variable name="src">
|
7643
7662
|
<xsl:call-template name="image_src"/>
|
7644
7663
|
</xsl:variable>
|
@@ -7671,7 +7690,7 @@
|
|
7671
7690
|
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style">
|
7672
7691
|
<xsl:if test="not(@mimetype = 'image/svg+xml') and ../*[local-name() = 'name'] and not(ancestor::*[local-name() = 'table'])">
|
7673
7692
|
|
7674
|
-
<xsl:if test="@width != '' and @width != 'auto'">
|
7693
|
+
<xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
|
7675
7694
|
<xsl:attribute name="width">
|
7676
7695
|
<xsl:value-of select="@width"/>
|
7677
7696
|
</xsl:attribute>
|
@@ -1822,11 +1822,26 @@
|
|
1822
1822
|
<xsl:value-of select="$font_extended"/><xsl:text>, </xsl:text>
|
1823
1823
|
</xsl:if>
|
1824
1824
|
|
1825
|
-
<xsl:
|
1825
|
+
<xsl:variable name="font_family" select="."/>
|
1826
1826
|
|
1827
|
-
<xsl:
|
1828
|
-
<xsl:
|
1829
|
-
|
1827
|
+
<xsl:choose>
|
1828
|
+
<xsl:when test="$additional_fonts = ''">
|
1829
|
+
<xsl:value-of select="$font_family"/>
|
1830
|
+
</xsl:when>
|
1831
|
+
<xsl:otherwise> <!-- $additional_fonts != '' -->
|
1832
|
+
<xsl:choose>
|
1833
|
+
<xsl:when test="contains($font_family, ',')">
|
1834
|
+
<xsl:value-of select="substring-before($font_family, ',')"/>
|
1835
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
1836
|
+
<xsl:text>, </xsl:text><xsl:value-of select="substring-after($font_family, ',')"/>
|
1837
|
+
</xsl:when>
|
1838
|
+
<xsl:otherwise>
|
1839
|
+
<xsl:value-of select="$font_family"/>
|
1840
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
1841
|
+
</xsl:otherwise>
|
1842
|
+
</xsl:choose>
|
1843
|
+
</xsl:otherwise>
|
1844
|
+
</xsl:choose>
|
1830
1845
|
</xsl:attribute>
|
1831
1846
|
</xsl:when>
|
1832
1847
|
<xsl:otherwise>
|
@@ -4480,21 +4495,21 @@
|
|
4480
4495
|
|
4481
4496
|
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
4482
4497
|
|
4483
|
-
|
4498
|
+
<fo:block xsl:use-attribute-sets="table-note-style">
|
4484
4499
|
|
4485
|
-
|
4500
|
+
<xsl:call-template name="refine_table-note-style"/>
|
4486
4501
|
|
4487
|
-
|
4488
|
-
|
4502
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
4503
|
+
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
4489
4504
|
|
4490
|
-
|
4505
|
+
<xsl:call-template name="refine_table-note-name-style"/>
|
4491
4506
|
|
4492
|
-
|
4507
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/>
|
4493
4508
|
|
4494
|
-
|
4509
|
+
</fo:inline>
|
4495
4510
|
|
4496
|
-
|
4497
|
-
|
4511
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
4512
|
+
</fo:block>
|
4498
4513
|
|
4499
4514
|
</xsl:template> <!-- table/note -->
|
4500
4515
|
|
@@ -7637,8 +7652,12 @@
|
|
7637
7652
|
<xsl:variable name="isAdded" select="../@added"/>
|
7638
7653
|
<xsl:variable name="isDeleted" select="../@deleted"/>
|
7639
7654
|
<xsl:choose>
|
7640
|
-
<xsl:when test="ancestor::*[local-name() = 'title']">
|
7655
|
+
<xsl:when test="ancestor::*[local-name() = 'title'] or not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']">
|
7641
7656
|
<fo:inline padding-left="1mm" padding-right="1mm">
|
7657
|
+
<xsl:if test="not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']">
|
7658
|
+
<xsl:attribute name="padding-left">0mm</xsl:attribute>
|
7659
|
+
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
7660
|
+
</xsl:if>
|
7642
7661
|
<xsl:variable name="src">
|
7643
7662
|
<xsl:call-template name="image_src"/>
|
7644
7663
|
</xsl:variable>
|
@@ -7671,7 +7690,7 @@
|
|
7671
7690
|
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style">
|
7672
7691
|
<xsl:if test="not(@mimetype = 'image/svg+xml') and ../*[local-name() = 'name'] and not(ancestor::*[local-name() = 'table'])">
|
7673
7692
|
|
7674
|
-
<xsl:if test="@width != '' and @width != 'auto'">
|
7693
|
+
<xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
|
7675
7694
|
<xsl:attribute name="width">
|
7676
7695
|
<xsl:value-of select="@width"/>
|
7677
7696
|
</xsl:attribute>
|
@@ -1822,11 +1822,26 @@
|
|
1822
1822
|
<xsl:value-of select="$font_extended"/><xsl:text>, </xsl:text>
|
1823
1823
|
</xsl:if>
|
1824
1824
|
|
1825
|
-
<xsl:
|
1825
|
+
<xsl:variable name="font_family" select="."/>
|
1826
1826
|
|
1827
|
-
<xsl:
|
1828
|
-
<xsl:
|
1829
|
-
|
1827
|
+
<xsl:choose>
|
1828
|
+
<xsl:when test="$additional_fonts = ''">
|
1829
|
+
<xsl:value-of select="$font_family"/>
|
1830
|
+
</xsl:when>
|
1831
|
+
<xsl:otherwise> <!-- $additional_fonts != '' -->
|
1832
|
+
<xsl:choose>
|
1833
|
+
<xsl:when test="contains($font_family, ',')">
|
1834
|
+
<xsl:value-of select="substring-before($font_family, ',')"/>
|
1835
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
1836
|
+
<xsl:text>, </xsl:text><xsl:value-of select="substring-after($font_family, ',')"/>
|
1837
|
+
</xsl:when>
|
1838
|
+
<xsl:otherwise>
|
1839
|
+
<xsl:value-of select="$font_family"/>
|
1840
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
1841
|
+
</xsl:otherwise>
|
1842
|
+
</xsl:choose>
|
1843
|
+
</xsl:otherwise>
|
1844
|
+
</xsl:choose>
|
1830
1845
|
</xsl:attribute>
|
1831
1846
|
</xsl:when>
|
1832
1847
|
<xsl:otherwise>
|
@@ -4480,21 +4495,21 @@
|
|
4480
4495
|
|
4481
4496
|
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
4482
4497
|
|
4483
|
-
|
4498
|
+
<fo:block xsl:use-attribute-sets="table-note-style">
|
4484
4499
|
|
4485
|
-
|
4500
|
+
<xsl:call-template name="refine_table-note-style"/>
|
4486
4501
|
|
4487
|
-
|
4488
|
-
|
4502
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
4503
|
+
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
4489
4504
|
|
4490
|
-
|
4505
|
+
<xsl:call-template name="refine_table-note-name-style"/>
|
4491
4506
|
|
4492
|
-
|
4507
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/>
|
4493
4508
|
|
4494
|
-
|
4509
|
+
</fo:inline>
|
4495
4510
|
|
4496
|
-
|
4497
|
-
|
4511
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
4512
|
+
</fo:block>
|
4498
4513
|
|
4499
4514
|
</xsl:template> <!-- table/note -->
|
4500
4515
|
|
@@ -7637,8 +7652,12 @@
|
|
7637
7652
|
<xsl:variable name="isAdded" select="../@added"/>
|
7638
7653
|
<xsl:variable name="isDeleted" select="../@deleted"/>
|
7639
7654
|
<xsl:choose>
|
7640
|
-
<xsl:when test="ancestor::*[local-name() = 'title']">
|
7655
|
+
<xsl:when test="ancestor::*[local-name() = 'title'] or not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']">
|
7641
7656
|
<fo:inline padding-left="1mm" padding-right="1mm">
|
7657
|
+
<xsl:if test="not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']">
|
7658
|
+
<xsl:attribute name="padding-left">0mm</xsl:attribute>
|
7659
|
+
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
7660
|
+
</xsl:if>
|
7642
7661
|
<xsl:variable name="src">
|
7643
7662
|
<xsl:call-template name="image_src"/>
|
7644
7663
|
</xsl:variable>
|
@@ -7671,7 +7690,7 @@
|
|
7671
7690
|
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style">
|
7672
7691
|
<xsl:if test="not(@mimetype = 'image/svg+xml') and ../*[local-name() = 'name'] and not(ancestor::*[local-name() = 'table'])">
|
7673
7692
|
|
7674
|
-
<xsl:if test="@width != '' and @width != 'auto'">
|
7693
|
+
<xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
|
7675
7694
|
<xsl:attribute name="width">
|
7676
7695
|
<xsl:value-of select="@width"/>
|
7677
7696
|
</xsl:attribute>
|
@@ -1822,11 +1822,26 @@
|
|
1822
1822
|
<xsl:value-of select="$font_extended"/><xsl:text>, </xsl:text>
|
1823
1823
|
</xsl:if>
|
1824
1824
|
|
1825
|
-
<xsl:
|
1825
|
+
<xsl:variable name="font_family" select="."/>
|
1826
1826
|
|
1827
|
-
<xsl:
|
1828
|
-
<xsl:
|
1829
|
-
|
1827
|
+
<xsl:choose>
|
1828
|
+
<xsl:when test="$additional_fonts = ''">
|
1829
|
+
<xsl:value-of select="$font_family"/>
|
1830
|
+
</xsl:when>
|
1831
|
+
<xsl:otherwise> <!-- $additional_fonts != '' -->
|
1832
|
+
<xsl:choose>
|
1833
|
+
<xsl:when test="contains($font_family, ',')">
|
1834
|
+
<xsl:value-of select="substring-before($font_family, ',')"/>
|
1835
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
1836
|
+
<xsl:text>, </xsl:text><xsl:value-of select="substring-after($font_family, ',')"/>
|
1837
|
+
</xsl:when>
|
1838
|
+
<xsl:otherwise>
|
1839
|
+
<xsl:value-of select="$font_family"/>
|
1840
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
1841
|
+
</xsl:otherwise>
|
1842
|
+
</xsl:choose>
|
1843
|
+
</xsl:otherwise>
|
1844
|
+
</xsl:choose>
|
1830
1845
|
</xsl:attribute>
|
1831
1846
|
</xsl:when>
|
1832
1847
|
<xsl:otherwise>
|
@@ -4480,21 +4495,21 @@
|
|
4480
4495
|
|
4481
4496
|
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
4482
4497
|
|
4483
|
-
|
4498
|
+
<fo:block xsl:use-attribute-sets="table-note-style">
|
4484
4499
|
|
4485
|
-
|
4500
|
+
<xsl:call-template name="refine_table-note-style"/>
|
4486
4501
|
|
4487
|
-
|
4488
|
-
|
4502
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
4503
|
+
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
4489
4504
|
|
4490
|
-
|
4505
|
+
<xsl:call-template name="refine_table-note-name-style"/>
|
4491
4506
|
|
4492
|
-
|
4507
|
+
<xsl:apply-templates select="*[local-name() = 'name']"/>
|
4493
4508
|
|
4494
|
-
|
4509
|
+
</fo:inline>
|
4495
4510
|
|
4496
|
-
|
4497
|
-
|
4511
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
4512
|
+
</fo:block>
|
4498
4513
|
|
4499
4514
|
</xsl:template> <!-- table/note -->
|
4500
4515
|
|
@@ -7637,8 +7652,12 @@
|
|
7637
7652
|
<xsl:variable name="isAdded" select="../@added"/>
|
7638
7653
|
<xsl:variable name="isDeleted" select="../@deleted"/>
|
7639
7654
|
<xsl:choose>
|
7640
|
-
<xsl:when test="ancestor::*[local-name() = 'title']">
|
7655
|
+
<xsl:when test="ancestor::*[local-name() = 'title'] or not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']">
|
7641
7656
|
<fo:inline padding-left="1mm" padding-right="1mm">
|
7657
|
+
<xsl:if test="not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']">
|
7658
|
+
<xsl:attribute name="padding-left">0mm</xsl:attribute>
|
7659
|
+
<xsl:attribute name="padding-right">0mm</xsl:attribute>
|
7660
|
+
</xsl:if>
|
7642
7661
|
<xsl:variable name="src">
|
7643
7662
|
<xsl:call-template name="image_src"/>
|
7644
7663
|
</xsl:variable>
|
@@ -7671,7 +7690,7 @@
|
|
7671
7690
|
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style">
|
7672
7691
|
<xsl:if test="not(@mimetype = 'image/svg+xml') and ../*[local-name() = 'name'] and not(ancestor::*[local-name() = 'table'])">
|
7673
7692
|
|
7674
|
-
<xsl:if test="@width != '' and @width != 'auto'">
|
7693
|
+
<xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
|
7675
7694
|
<xsl:attribute name="width">
|
7676
7695
|
<xsl:value-of select="@width"/>
|
7677
7696
|
</xsl:attribute>
|