allow h2/h3/h4 in text

This commit is contained in:
skyanth
2019-11-08 10:37:08 +01:00
parent c36f63c401
commit 8ebd781b4f
4 changed files with 49 additions and 1 deletions
+19 -1
View File
@@ -165,7 +165,9 @@
<fo:block xsl:use-attribute-sets="signee_signaturespace">
<fo:leader xsl:use-attribute-sets="signee_dottedline" leader-length="8cm"/>
</fo:block>
<fo:block margin-top="0.2cm" margin-bottom="0.2cm">(Name:<fo:leader xsl:use-attribute-sets="signee_dottedline" leader-length="7cm"/>)</fo:block>
<fo:block margin-top="0.2cm" margin-bottom="0.2cm">(Name:<fo:leader
xsl:use-attribute-sets="signee_dottedline" leader-length="7cm"
/>)</fo:block>
</fo:block-container>
</xsl:when>
<xsl:otherwise>
@@ -202,4 +204,20 @@
</xsl:if>
</xsl:template>
<xsl:template match="h2">
<fo:block xsl:use-attribute-sets="h2">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="h3">
<fo:block xsl:use-attribute-sets="h3">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="h4">
<fo:block xsl:use-attribute-sets="h4">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
</xsl:stylesheet>
+3
View File
@@ -134,6 +134,9 @@
<xsl:value-of select="$very-large-space"/>
</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="h2" use-attribute-sets="title-2"/>
<xsl:attribute-set name="h3" use-attribute-sets="title-3"/>
<xsl:attribute-set name="h4" use-attribute-sets="title-4"/>
<xsl:attribute-set name="bold">
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>