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.
@@ -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 font-size="10pt" color="red" text-decoration="line-through">
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
- <fo:block xsl:use-attribute-sets="image-style">
4397
-
4398
-
4399
- <xsl:variable name="src">
4400
- <xsl:choose>
4401
- <xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
4402
- <xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
4403
- </xsl:when>
4404
- <xsl:otherwise>
4405
- <xsl:value-of select="@src"/>
4406
- </xsl:otherwise>
4407
- </xsl:choose>
4408
- </xsl:variable>
4409
-
4410
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
4411
- </fo:block>
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 font-size="10pt" color="red" text-decoration="line-through">
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
- <fo:block xsl:use-attribute-sets="image-style">
4397
-
4398
-
4399
- <xsl:variable name="src">
4400
- <xsl:choose>
4401
- <xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
4402
- <xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
4403
- </xsl:when>
4404
- <xsl:otherwise>
4405
- <xsl:value-of select="@src"/>
4406
- </xsl:otherwise>
4407
- </xsl:choose>
4408
- </xsl:variable>
4409
-
4410
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
4411
- </fo:block>
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 font-size="10pt" color="red" text-decoration="line-through">
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
- <fo:block xsl:use-attribute-sets="image-style">
4397
-
4398
-
4399
- <xsl:variable name="src">
4400
- <xsl:choose>
4401
- <xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
4402
- <xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
4403
- </xsl:when>
4404
- <xsl:otherwise>
4405
- <xsl:value-of select="@src"/>
4406
- </xsl:otherwise>
4407
- </xsl:choose>
4408
- </xsl:variable>
4409
-
4410
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
4411
- </fo:block>
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 font-size="10pt" color="red" text-decoration="line-through">
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
- <fo:block xsl:use-attribute-sets="image-style">
4397
-
4398
-
4399
- <xsl:variable name="src">
4400
- <xsl:choose>
4401
- <xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
4402
- <xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
4403
- </xsl:when>
4404
- <xsl:otherwise>
4405
- <xsl:value-of select="@src"/>
4406
- </xsl:otherwise>
4407
- </xsl:choose>
4408
- </xsl:variable>
4409
-
4410
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
4411
- </fo:block>
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 font-size="10pt" color="red" text-decoration="line-through">
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
- <fo:block xsl:use-attribute-sets="image-style">
4397
-
4398
-
4399
- <xsl:variable name="src">
4400
- <xsl:choose>
4401
- <xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
4402
- <xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
4403
- </xsl:when>
4404
- <xsl:otherwise>
4405
- <xsl:value-of select="@src"/>
4406
- </xsl:otherwise>
4407
- </xsl:choose>
4408
- </xsl:variable>
4409
-
4410
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
4411
- </fo:block>
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>