Changing font-size of the list used in table cells
Posted: Thu Apr 14, 2022 8:52 am
Hi,
Through my custom plugin, I did the following to change font-size of the <li> elements used in the <table>:
Added following in the <custom-plugn>\cfg\fo\attrs]\custom.xsl file:
And added following in the <custom-plugn>\cfg\fo\xsl\custom.xsl
But it's not working. The generated PDF is using the default font-size to format lists in tables.
Through my custom plugin, I did the following to change font-size of the <li> elements used in the <table>:
Added following in the <custom-plugn>\cfg\fo\attrs]\custom.xsl file:
Code: Select all
<xsl:attribute-set name="table_ul" use-attribute-sets="common.block">
<xsl:attribute name="font-size">8pt</xsl:attribute>
</xsl:attribute-set>
Code: Select all
<xsl:template match="*[contains(@class,' topic/entry ')]/*[contains(@class,' topic/li ')]">
<fo:list-item>
<fo:list-item-label/>
<fo:list-item-body>
<fo:block xsl:use-attribute-sets="table_ul">
<xsl:call-template name="commonattributes"/>
<xsl:apply-templates/>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</xsl:template>