This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Units in fo -> rtf using jfor
Thanks, I learned a lot while implementing that customization (see my
attempt below) ;-))
Well, as there are no % units any more jfor now suggests to replace
the em units as well ...
Ekkehard
[snip]
<xsl:if test="not(substring($page.width,1,3) = 210) or
not(substring($page.margin.inner,1,1) = 1) or
not(substring($page.margin.outer,1,1) = 1)">
<xsl:message terminate="yes">
Alloha unexpected page sizes:
page.width <xsl:value-of select="substring($page.width,1,3)"/>
page.margin.inner <xsl:value-of select="substring($page.margin.inner,1,1)"/>
page.margin.outer <xsl:value-of select="substring($page.margin.outer,1,1)"/>
</xsl:message>
</xsl:if>
<xsl:param name="eg_unit" select="'mm'"/>
<xsl:param name="eg_blockwidth"
select="substring($page.width,1,3)
- substring($page.margin.inner,1,1) * 2.54
- substring($page.margin.outer,1,1) * 2.54"/>
<xsl:param name="eg_colwidth_1" select="concat($eg_blockwidth * 0.33,$eg_unit)"/>
<xsl:param name="eg_colwidth_2" select="concat($eg_blockwidth * 0.34,$eg_unit)"/>
<xsl:param name="eg_colwidth_3" select="concat($eg_blockwidth * 0.33,$eg_unit)"/>
<xsl:param name="eg_blockwidth_u" select="concat($eg_blockwidth,$eg_unit)"/>
[snip]
--
Ekkehard Görlach Tumringerstrasse 287
e.goerlach@computer.org D-79539 Lörrach