metanorma-itu 1.2.16 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/itu/cleanup.rb +9 -6
- data/lib/asciidoctor/itu/converter.rb +13 -15
- data/lib/asciidoctor/itu/isodoc.rng +130 -1
- data/lib/asciidoctor/itu/itu.rng +0 -30
- data/lib/isodoc/itu/base_convert.rb +25 -37
- data/lib/isodoc/itu/html/_coverpage.css +7 -0
- data/lib/isodoc/itu/html/htmlstyle.css +14 -7
- data/lib/isodoc/itu/html/htmlstyle.scss +0 -9
- data/lib/isodoc/itu/html/itu.css +0 -7
- data/lib/isodoc/itu/html/itu.scss +0 -7
- data/lib/isodoc/itu/html_convert.rb +0 -1
- data/lib/isodoc/itu/i18n-zh-Hans.yaml +80 -0
- data/lib/isodoc/itu/i18n.rb +4 -1
- data/lib/isodoc/itu/itu.implementers-guide.xsl +44 -18
- data/lib/isodoc/itu/itu.in-force.xsl +44 -18
- data/lib/isodoc/itu/itu.recommendation-annex.xsl +44 -18
- data/lib/isodoc/itu/itu.recommendation-supplement.xsl +44 -18
- data/lib/isodoc/itu/itu.recommendation.xsl +44 -18
- data/lib/isodoc/itu/itu.resolution.xsl +44 -18
- data/lib/isodoc/itu/itu.technical-paper.xsl +44 -18
- data/lib/isodoc/itu/itu.technical-report.xsl +44 -18
- data/lib/isodoc/itu/presentation_xml_convert.rb +1 -1
- data/lib/metanorma/itu/version.rb +1 -1
- data/metanorma-itu.gemspec +4 -4
- metadata +29 -29
- data/lib/asciidoctor/itu/macros.rb +0 -27
@@ -5,6 +5,7 @@
|
|
5
5
|
<xsl:param name="svg_images"/>
|
6
6
|
<xsl:param name="external_index"/><!-- path to index xml, generated on 1st pass, based on FOP Intermediate Format -->
|
7
7
|
<xsl:variable name="images" select="document($svg_images)"/>
|
8
|
+
<xsl:param name="basepath"/>
|
8
9
|
|
9
10
|
|
10
11
|
|
@@ -2354,12 +2355,18 @@
|
|
2354
2355
|
|
2355
2356
|
</xsl:attribute-set><xsl:attribute-set name="admitted-style">
|
2356
2357
|
|
2357
|
-
|
2358
|
+
|
2358
2359
|
</xsl:attribute-set><xsl:attribute-set name="deprecates-style">
|
2359
2360
|
|
2360
2361
|
</xsl:attribute-set><xsl:attribute-set name="definition-style">
|
2361
2362
|
|
2362
2363
|
|
2364
|
+
</xsl:attribute-set><xsl:attribute-set name="add-style">
|
2365
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
2366
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
2367
|
+
</xsl:attribute-set><xsl:attribute-set name="del-style">
|
2368
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
2369
|
+
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
2363
2370
|
</xsl:attribute-set><xsl:template name="processPrefaceSectionsDefault_Contents">
|
2364
2371
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
2365
2372
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
@@ -3772,8 +3779,12 @@
|
|
3772
3779
|
<fo:inline text-decoration="underline">
|
3773
3780
|
<xsl:apply-templates/>
|
3774
3781
|
</fo:inline>
|
3782
|
+
</xsl:template><xsl:template match="*[local-name()='add']">
|
3783
|
+
<fo:inline xsl:use-attribute-sets="add-style">
|
3784
|
+
<xsl:apply-templates/>
|
3785
|
+
</fo:inline>
|
3775
3786
|
</xsl:template><xsl:template match="*[local-name()='del']">
|
3776
|
-
<fo:inline
|
3787
|
+
<fo:inline xsl:use-attribute-sets="del-style">
|
3777
3788
|
<xsl:apply-templates/>
|
3778
3789
|
</fo:inline>
|
3779
3790
|
</xsl:template><xsl:template match="*[local-name()='hi']">
|
@@ -4393,22 +4404,37 @@
|
|
4393
4404
|
<xsl:apply-templates/>
|
4394
4405
|
</fo:block>
|
4395
4406
|
</xsl:template><xsl:template match="*[local-name() = 'image']">
|
4396
|
-
<
|
4397
|
-
|
4398
|
-
|
4399
|
-
|
4400
|
-
|
4401
|
-
|
4402
|
-
|
4403
|
-
|
4404
|
-
|
4405
|
-
|
4406
|
-
|
4407
|
-
|
4408
|
-
|
4409
|
-
|
4410
|
-
|
4411
|
-
|
4407
|
+
<xsl:choose>
|
4408
|
+
<xsl:when test="ancestor::*[local-name() = 'title']">
|
4409
|
+
<fo:inline padding-left="1mm" padding-right="1mm">
|
4410
|
+
<xsl:variable name="src">
|
4411
|
+
<xsl:call-template name="image_src"/>
|
4412
|
+
</xsl:variable>
|
4413
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle"/>
|
4414
|
+
</fo:inline>
|
4415
|
+
</xsl:when>
|
4416
|
+
<xsl:otherwise>
|
4417
|
+
<fo:block xsl:use-attribute-sets="image-style">
|
4418
|
+
|
4419
|
+
<xsl:variable name="src">
|
4420
|
+
<xsl:call-template name="image_src"/>
|
4421
|
+
</xsl:variable>
|
4422
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
|
4423
|
+
</fo:block>
|
4424
|
+
</xsl:otherwise>
|
4425
|
+
</xsl:choose>
|
4426
|
+
</xsl:template><xsl:template name="image_src">
|
4427
|
+
<xsl:choose>
|
4428
|
+
<xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
|
4429
|
+
<xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
|
4430
|
+
</xsl:when>
|
4431
|
+
<xsl:when test="not(starts-with(@src, 'data:'))">
|
4432
|
+
<xsl:value-of select="concat('url(file:',$basepath, @src, ')')"/>
|
4433
|
+
</xsl:when>
|
4434
|
+
<xsl:otherwise>
|
4435
|
+
<xsl:value-of select="@src"/>
|
4436
|
+
</xsl:otherwise>
|
4437
|
+
</xsl:choose>
|
4412
4438
|
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="contents">
|
4413
4439
|
<xsl:apply-templates mode="contents"/>
|
4414
4440
|
<xsl:text> </xsl:text>
|
@@ -5,6 +5,7 @@
|
|
5
5
|
<xsl:param name="svg_images"/>
|
6
6
|
<xsl:param name="external_index"/><!-- path to index xml, generated on 1st pass, based on FOP Intermediate Format -->
|
7
7
|
<xsl:variable name="images" select="document($svg_images)"/>
|
8
|
+
<xsl:param name="basepath"/>
|
8
9
|
|
9
10
|
|
10
11
|
|
@@ -2354,12 +2355,18 @@
|
|
2354
2355
|
|
2355
2356
|
</xsl:attribute-set><xsl:attribute-set name="admitted-style">
|
2356
2357
|
|
2357
|
-
|
2358
|
+
|
2358
2359
|
</xsl:attribute-set><xsl:attribute-set name="deprecates-style">
|
2359
2360
|
|
2360
2361
|
</xsl:attribute-set><xsl:attribute-set name="definition-style">
|
2361
2362
|
|
2362
2363
|
|
2364
|
+
</xsl:attribute-set><xsl:attribute-set name="add-style">
|
2365
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
2366
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
2367
|
+
</xsl:attribute-set><xsl:attribute-set name="del-style">
|
2368
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
2369
|
+
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
2363
2370
|
</xsl:attribute-set><xsl:template name="processPrefaceSectionsDefault_Contents">
|
2364
2371
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
2365
2372
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
@@ -3772,8 +3779,12 @@
|
|
3772
3779
|
<fo:inline text-decoration="underline">
|
3773
3780
|
<xsl:apply-templates/>
|
3774
3781
|
</fo:inline>
|
3782
|
+
</xsl:template><xsl:template match="*[local-name()='add']">
|
3783
|
+
<fo:inline xsl:use-attribute-sets="add-style">
|
3784
|
+
<xsl:apply-templates/>
|
3785
|
+
</fo:inline>
|
3775
3786
|
</xsl:template><xsl:template match="*[local-name()='del']">
|
3776
|
-
<fo:inline
|
3787
|
+
<fo:inline xsl:use-attribute-sets="del-style">
|
3777
3788
|
<xsl:apply-templates/>
|
3778
3789
|
</fo:inline>
|
3779
3790
|
</xsl:template><xsl:template match="*[local-name()='hi']">
|
@@ -4393,22 +4404,37 @@
|
|
4393
4404
|
<xsl:apply-templates/>
|
4394
4405
|
</fo:block>
|
4395
4406
|
</xsl:template><xsl:template match="*[local-name() = 'image']">
|
4396
|
-
<
|
4397
|
-
|
4398
|
-
|
4399
|
-
|
4400
|
-
|
4401
|
-
|
4402
|
-
|
4403
|
-
|
4404
|
-
|
4405
|
-
|
4406
|
-
|
4407
|
-
|
4408
|
-
|
4409
|
-
|
4410
|
-
|
4411
|
-
|
4407
|
+
<xsl:choose>
|
4408
|
+
<xsl:when test="ancestor::*[local-name() = 'title']">
|
4409
|
+
<fo:inline padding-left="1mm" padding-right="1mm">
|
4410
|
+
<xsl:variable name="src">
|
4411
|
+
<xsl:call-template name="image_src"/>
|
4412
|
+
</xsl:variable>
|
4413
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle"/>
|
4414
|
+
</fo:inline>
|
4415
|
+
</xsl:when>
|
4416
|
+
<xsl:otherwise>
|
4417
|
+
<fo:block xsl:use-attribute-sets="image-style">
|
4418
|
+
|
4419
|
+
<xsl:variable name="src">
|
4420
|
+
<xsl:call-template name="image_src"/>
|
4421
|
+
</xsl:variable>
|
4422
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
|
4423
|
+
</fo:block>
|
4424
|
+
</xsl:otherwise>
|
4425
|
+
</xsl:choose>
|
4426
|
+
</xsl:template><xsl:template name="image_src">
|
4427
|
+
<xsl:choose>
|
4428
|
+
<xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
|
4429
|
+
<xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
|
4430
|
+
</xsl:when>
|
4431
|
+
<xsl:when test="not(starts-with(@src, 'data:'))">
|
4432
|
+
<xsl:value-of select="concat('url(file:',$basepath, @src, ')')"/>
|
4433
|
+
</xsl:when>
|
4434
|
+
<xsl:otherwise>
|
4435
|
+
<xsl:value-of select="@src"/>
|
4436
|
+
</xsl:otherwise>
|
4437
|
+
</xsl:choose>
|
4412
4438
|
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="contents">
|
4413
4439
|
<xsl:apply-templates mode="contents"/>
|
4414
4440
|
<xsl:text> </xsl:text>
|
@@ -5,6 +5,7 @@
|
|
5
5
|
<xsl:param name="svg_images"/>
|
6
6
|
<xsl:param name="external_index"/><!-- path to index xml, generated on 1st pass, based on FOP Intermediate Format -->
|
7
7
|
<xsl:variable name="images" select="document($svg_images)"/>
|
8
|
+
<xsl:param name="basepath"/>
|
8
9
|
|
9
10
|
|
10
11
|
|
@@ -2354,12 +2355,18 @@
|
|
2354
2355
|
|
2355
2356
|
</xsl:attribute-set><xsl:attribute-set name="admitted-style">
|
2356
2357
|
|
2357
|
-
|
2358
|
+
|
2358
2359
|
</xsl:attribute-set><xsl:attribute-set name="deprecates-style">
|
2359
2360
|
|
2360
2361
|
</xsl:attribute-set><xsl:attribute-set name="definition-style">
|
2361
2362
|
|
2362
2363
|
|
2364
|
+
</xsl:attribute-set><xsl:attribute-set name="add-style">
|
2365
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
2366
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
2367
|
+
</xsl:attribute-set><xsl:attribute-set name="del-style">
|
2368
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
2369
|
+
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
2363
2370
|
</xsl:attribute-set><xsl:template name="processPrefaceSectionsDefault_Contents">
|
2364
2371
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
2365
2372
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
@@ -3772,8 +3779,12 @@
|
|
3772
3779
|
<fo:inline text-decoration="underline">
|
3773
3780
|
<xsl:apply-templates/>
|
3774
3781
|
</fo:inline>
|
3782
|
+
</xsl:template><xsl:template match="*[local-name()='add']">
|
3783
|
+
<fo:inline xsl:use-attribute-sets="add-style">
|
3784
|
+
<xsl:apply-templates/>
|
3785
|
+
</fo:inline>
|
3775
3786
|
</xsl:template><xsl:template match="*[local-name()='del']">
|
3776
|
-
<fo:inline
|
3787
|
+
<fo:inline xsl:use-attribute-sets="del-style">
|
3777
3788
|
<xsl:apply-templates/>
|
3778
3789
|
</fo:inline>
|
3779
3790
|
</xsl:template><xsl:template match="*[local-name()='hi']">
|
@@ -4393,22 +4404,37 @@
|
|
4393
4404
|
<xsl:apply-templates/>
|
4394
4405
|
</fo:block>
|
4395
4406
|
</xsl:template><xsl:template match="*[local-name() = 'image']">
|
4396
|
-
<
|
4397
|
-
|
4398
|
-
|
4399
|
-
|
4400
|
-
|
4401
|
-
|
4402
|
-
|
4403
|
-
|
4404
|
-
|
4405
|
-
|
4406
|
-
|
4407
|
-
|
4408
|
-
|
4409
|
-
|
4410
|
-
|
4411
|
-
|
4407
|
+
<xsl:choose>
|
4408
|
+
<xsl:when test="ancestor::*[local-name() = 'title']">
|
4409
|
+
<fo:inline padding-left="1mm" padding-right="1mm">
|
4410
|
+
<xsl:variable name="src">
|
4411
|
+
<xsl:call-template name="image_src"/>
|
4412
|
+
</xsl:variable>
|
4413
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle"/>
|
4414
|
+
</fo:inline>
|
4415
|
+
</xsl:when>
|
4416
|
+
<xsl:otherwise>
|
4417
|
+
<fo:block xsl:use-attribute-sets="image-style">
|
4418
|
+
|
4419
|
+
<xsl:variable name="src">
|
4420
|
+
<xsl:call-template name="image_src"/>
|
4421
|
+
</xsl:variable>
|
4422
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
|
4423
|
+
</fo:block>
|
4424
|
+
</xsl:otherwise>
|
4425
|
+
</xsl:choose>
|
4426
|
+
</xsl:template><xsl:template name="image_src">
|
4427
|
+
<xsl:choose>
|
4428
|
+
<xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
|
4429
|
+
<xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
|
4430
|
+
</xsl:when>
|
4431
|
+
<xsl:when test="not(starts-with(@src, 'data:'))">
|
4432
|
+
<xsl:value-of select="concat('url(file:',$basepath, @src, ')')"/>
|
4433
|
+
</xsl:when>
|
4434
|
+
<xsl:otherwise>
|
4435
|
+
<xsl:value-of select="@src"/>
|
4436
|
+
</xsl:otherwise>
|
4437
|
+
</xsl:choose>
|
4412
4438
|
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="contents">
|
4413
4439
|
<xsl:apply-templates mode="contents"/>
|
4414
4440
|
<xsl:text> </xsl:text>
|
@@ -5,6 +5,7 @@
|
|
5
5
|
<xsl:param name="svg_images"/>
|
6
6
|
<xsl:param name="external_index"/><!-- path to index xml, generated on 1st pass, based on FOP Intermediate Format -->
|
7
7
|
<xsl:variable name="images" select="document($svg_images)"/>
|
8
|
+
<xsl:param name="basepath"/>
|
8
9
|
|
9
10
|
|
10
11
|
|
@@ -2354,12 +2355,18 @@
|
|
2354
2355
|
|
2355
2356
|
</xsl:attribute-set><xsl:attribute-set name="admitted-style">
|
2356
2357
|
|
2357
|
-
|
2358
|
+
|
2358
2359
|
</xsl:attribute-set><xsl:attribute-set name="deprecates-style">
|
2359
2360
|
|
2360
2361
|
</xsl:attribute-set><xsl:attribute-set name="definition-style">
|
2361
2362
|
|
2362
2363
|
|
2364
|
+
</xsl:attribute-set><xsl:attribute-set name="add-style">
|
2365
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
2366
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
2367
|
+
</xsl:attribute-set><xsl:attribute-set name="del-style">
|
2368
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
2369
|
+
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
2363
2370
|
</xsl:attribute-set><xsl:template name="processPrefaceSectionsDefault_Contents">
|
2364
2371
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
2365
2372
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
@@ -3772,8 +3779,12 @@
|
|
3772
3779
|
<fo:inline text-decoration="underline">
|
3773
3780
|
<xsl:apply-templates/>
|
3774
3781
|
</fo:inline>
|
3782
|
+
</xsl:template><xsl:template match="*[local-name()='add']">
|
3783
|
+
<fo:inline xsl:use-attribute-sets="add-style">
|
3784
|
+
<xsl:apply-templates/>
|
3785
|
+
</fo:inline>
|
3775
3786
|
</xsl:template><xsl:template match="*[local-name()='del']">
|
3776
|
-
<fo:inline
|
3787
|
+
<fo:inline xsl:use-attribute-sets="del-style">
|
3777
3788
|
<xsl:apply-templates/>
|
3778
3789
|
</fo:inline>
|
3779
3790
|
</xsl:template><xsl:template match="*[local-name()='hi']">
|
@@ -4393,22 +4404,37 @@
|
|
4393
4404
|
<xsl:apply-templates/>
|
4394
4405
|
</fo:block>
|
4395
4406
|
</xsl:template><xsl:template match="*[local-name() = 'image']">
|
4396
|
-
<
|
4397
|
-
|
4398
|
-
|
4399
|
-
|
4400
|
-
|
4401
|
-
|
4402
|
-
|
4403
|
-
|
4404
|
-
|
4405
|
-
|
4406
|
-
|
4407
|
-
|
4408
|
-
|
4409
|
-
|
4410
|
-
|
4411
|
-
|
4407
|
+
<xsl:choose>
|
4408
|
+
<xsl:when test="ancestor::*[local-name() = 'title']">
|
4409
|
+
<fo:inline padding-left="1mm" padding-right="1mm">
|
4410
|
+
<xsl:variable name="src">
|
4411
|
+
<xsl:call-template name="image_src"/>
|
4412
|
+
</xsl:variable>
|
4413
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle"/>
|
4414
|
+
</fo:inline>
|
4415
|
+
</xsl:when>
|
4416
|
+
<xsl:otherwise>
|
4417
|
+
<fo:block xsl:use-attribute-sets="image-style">
|
4418
|
+
|
4419
|
+
<xsl:variable name="src">
|
4420
|
+
<xsl:call-template name="image_src"/>
|
4421
|
+
</xsl:variable>
|
4422
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
|
4423
|
+
</fo:block>
|
4424
|
+
</xsl:otherwise>
|
4425
|
+
</xsl:choose>
|
4426
|
+
</xsl:template><xsl:template name="image_src">
|
4427
|
+
<xsl:choose>
|
4428
|
+
<xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
|
4429
|
+
<xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
|
4430
|
+
</xsl:when>
|
4431
|
+
<xsl:when test="not(starts-with(@src, 'data:'))">
|
4432
|
+
<xsl:value-of select="concat('url(file:',$basepath, @src, ')')"/>
|
4433
|
+
</xsl:when>
|
4434
|
+
<xsl:otherwise>
|
4435
|
+
<xsl:value-of select="@src"/>
|
4436
|
+
</xsl:otherwise>
|
4437
|
+
</xsl:choose>
|
4412
4438
|
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="contents">
|
4413
4439
|
<xsl:apply-templates mode="contents"/>
|
4414
4440
|
<xsl:text> </xsl:text>
|
@@ -5,6 +5,7 @@
|
|
5
5
|
<xsl:param name="svg_images"/>
|
6
6
|
<xsl:param name="external_index"/><!-- path to index xml, generated on 1st pass, based on FOP Intermediate Format -->
|
7
7
|
<xsl:variable name="images" select="document($svg_images)"/>
|
8
|
+
<xsl:param name="basepath"/>
|
8
9
|
|
9
10
|
|
10
11
|
|
@@ -2354,12 +2355,18 @@
|
|
2354
2355
|
|
2355
2356
|
</xsl:attribute-set><xsl:attribute-set name="admitted-style">
|
2356
2357
|
|
2357
|
-
|
2358
|
+
|
2358
2359
|
</xsl:attribute-set><xsl:attribute-set name="deprecates-style">
|
2359
2360
|
|
2360
2361
|
</xsl:attribute-set><xsl:attribute-set name="definition-style">
|
2361
2362
|
|
2362
2363
|
|
2364
|
+
</xsl:attribute-set><xsl:attribute-set name="add-style">
|
2365
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
2366
|
+
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
2367
|
+
</xsl:attribute-set><xsl:attribute-set name="del-style">
|
2368
|
+
<xsl:attribute name="color">red</xsl:attribute>
|
2369
|
+
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
|
2363
2370
|
</xsl:attribute-set><xsl:template name="processPrefaceSectionsDefault_Contents">
|
2364
2371
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
2365
2372
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
@@ -3772,8 +3779,12 @@
|
|
3772
3779
|
<fo:inline text-decoration="underline">
|
3773
3780
|
<xsl:apply-templates/>
|
3774
3781
|
</fo:inline>
|
3782
|
+
</xsl:template><xsl:template match="*[local-name()='add']">
|
3783
|
+
<fo:inline xsl:use-attribute-sets="add-style">
|
3784
|
+
<xsl:apply-templates/>
|
3785
|
+
</fo:inline>
|
3775
3786
|
</xsl:template><xsl:template match="*[local-name()='del']">
|
3776
|
-
<fo:inline
|
3787
|
+
<fo:inline xsl:use-attribute-sets="del-style">
|
3777
3788
|
<xsl:apply-templates/>
|
3778
3789
|
</fo:inline>
|
3779
3790
|
</xsl:template><xsl:template match="*[local-name()='hi']">
|
@@ -4393,22 +4404,37 @@
|
|
4393
4404
|
<xsl:apply-templates/>
|
4394
4405
|
</fo:block>
|
4395
4406
|
</xsl:template><xsl:template match="*[local-name() = 'image']">
|
4396
|
-
<
|
4397
|
-
|
4398
|
-
|
4399
|
-
|
4400
|
-
|
4401
|
-
|
4402
|
-
|
4403
|
-
|
4404
|
-
|
4405
|
-
|
4406
|
-
|
4407
|
-
|
4408
|
-
|
4409
|
-
|
4410
|
-
|
4411
|
-
|
4407
|
+
<xsl:choose>
|
4408
|
+
<xsl:when test="ancestor::*[local-name() = 'title']">
|
4409
|
+
<fo:inline padding-left="1mm" padding-right="1mm">
|
4410
|
+
<xsl:variable name="src">
|
4411
|
+
<xsl:call-template name="image_src"/>
|
4412
|
+
</xsl:variable>
|
4413
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle"/>
|
4414
|
+
</fo:inline>
|
4415
|
+
</xsl:when>
|
4416
|
+
<xsl:otherwise>
|
4417
|
+
<fo:block xsl:use-attribute-sets="image-style">
|
4418
|
+
|
4419
|
+
<xsl:variable name="src">
|
4420
|
+
<xsl:call-template name="image_src"/>
|
4421
|
+
</xsl:variable>
|
4422
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
|
4423
|
+
</fo:block>
|
4424
|
+
</xsl:otherwise>
|
4425
|
+
</xsl:choose>
|
4426
|
+
</xsl:template><xsl:template name="image_src">
|
4427
|
+
<xsl:choose>
|
4428
|
+
<xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
|
4429
|
+
<xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
|
4430
|
+
</xsl:when>
|
4431
|
+
<xsl:when test="not(starts-with(@src, 'data:'))">
|
4432
|
+
<xsl:value-of select="concat('url(file:',$basepath, @src, ')')"/>
|
4433
|
+
</xsl:when>
|
4434
|
+
<xsl:otherwise>
|
4435
|
+
<xsl:value-of select="@src"/>
|
4436
|
+
</xsl:otherwise>
|
4437
|
+
</xsl:choose>
|
4412
4438
|
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="contents">
|
4413
4439
|
<xsl:apply-templates mode="contents"/>
|
4414
4440
|
<xsl:text> </xsl:text>
|