Is table scaling only available for CALS tables?
Posted: Sat Feb 29, 2020 12:40 am
I checked the DITA specs and the scale attribute is only listed for CALS tables and not simple tables.
We just started using this attribute and like it a lot. But we just noticed that only CALS tables scale and not the simple tables.
We are using Oxygen version 18 and the scale attribute is available for simple tables. Is this correct, or has it been removed in future releases?
And has anyone added custom code to their PDF plugins to allow scaling in simple tables?
Here is the code I found in the org.dita.pdf2/xsl/fo/tables.xsl file.
Thanks
Bob
We just started using this attribute and like it a lot. But we just noticed that only CALS tables scale and not the simple tables.
We are using Oxygen version 18 and the scale attribute is available for simple tables. Is this correct, or has it been removed in future releases?
And has anyone added custom code to their PDF plugins to allow scaling in simple tables?
Here is the code I found in the org.dita.pdf2/xsl/fo/tables.xsl file.
Code: Select all
<xsl:template match="*[contains(@class, ' topic/table ')]">
<!-- FIXME, empty value -->
<xsl:variable name="scale" as="xs:string?">
<xsl:call-template name="getTableScale"/>
</xsl:variable>
<fo:block-container xsl:use-attribute-sets="table__container">
<fo:block xsl:use-attribute-sets="table">
<xsl:call-template name="commonattributes"/>
<xsl:if test="not(@id)">
<xsl:attribute name="id">
<xsl:call-template name="get-id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="exists($scale)">
<xsl:attribute name="font-size" select="concat($scale, '%')"/>
</xsl:if>
<xsl:apply-templates select="*[contains(@class,' ditaot-d/ditaval-startprop ')]" mode="outofline"/>
<xsl:apply-templates/>
<xsl:apply-templates select="*[contains(@class,' ditaot-d/ditaval-endprop ')]" mode="outofline"/>
</fo:block>
</fo:block-container>
</xsl:template>
Bob