[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] How to reduce size of text in a <para>
OK, I figured it out -
<xsl:template match="para">
<fo:block xsl:use-attribute-sets="normal.para.spacing">
<xsl:attribute name="font-size">
<xsl:choose>
<xsl:when test="@size = 'Less'">85%</xsl:when>
<xsl:when test="@size = 'Small'">75%</xsl:when>
<xsl:when test="@size = 'Smaller'">65%</xsl:when>
<xsl:otherwise>100%</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:call-template name="anchor"/>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
Thanks anyway. perhaps it might be of use to someone.
I want to be able to change the font-size of text in a <para> element, e.g <para size="Small">qwerty asdfgh</para>How do I do this please?
--
Ron Catterall, Phd, DScemail: ron@catterall.net
Prolongacion de Hidalgo 140http://catterall.net/
San Felipe del Aguatel: +52 951 520 1821
Oaxaca 68020Mexico fax: +1 530 348 8309
--------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
--
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]