Re: [docbook-apps] How to reduce size of text in a <para>It works for me. Where are you adding it?
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net ----- Original Message -----
From: Ron Catterall
To:
docbook-apps@lists.oasis-open.org Sent: Thursday, February 22, 2007 1:41 PM
Subject: Re: [docbook-apps] How to reduce size of text in a <para>
Not quite. How do I add the attribute 'size' to the DTD for the element 'para' so the source using <para size="Small"> will validate OK. I have a local-adds entity which does this for 'literallayout' using
What is the equivalent for para ?
doesn't work.
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, DSc email:
ron@catterall.net Prolongacion de Hidalgo 140
http://catterall.net/ San Felipe del Agua tel: +52 951 520 1821
Oaxaca 68020 Mexico 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--
Ron Catterall, Phd, DSc email:
ron@catterall.net Prolongacion de Hidalgo 140
http://catterall.net/ San Felipe del Agua tel: +52 951 520 1821
Oaxaca 68020 Mexico 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