This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] setting font size based on body.font.master
- From: Dave Pawson <dpawson at gotadsl dot co dot uk>
- To: Ben Adams <benjadams at yahoo dot com>,docbook-apps at lists dot oasis-open dot org
- Date: Mon, 18 Oct 2004 18:26:57 +0100
- Subject: Re: [docbook-apps] setting font size based on body.font.master
- References: <20041018003957.53450.qmail@web60006.mail.yahoo.com>
At 01:39 18/10/2004, Ben Adams wrote:
The following works for me when hard coding the
numbers:
<xsl:attribute name="font-size">12pt</xsl:attribute>
Yep, simple string value.
However, both of the following have no effect:
<xsl:attribute name="font-size">{$body.font.master *
0.8}pt</xsl:attribute>
It produces exactly what you said :-)
But the AVT isn't executed/evaluated though.
<xsl:attribute name="font-size"
select="{$body.font.master * 0.8}pt"/>
<xsl:attribute name="font-size">
<xsl:value-of select="concat($body.font.master * 0.8,'pt')"/></xsl:attribute>
Might be better?
I.e. calculate it.
HTH DaveP