Yes, the overall text-align="justify" alignment is
set on the outer fo container, but this text-align is set on the inner para
block, so it takes precedence. With that customization, all para will be
left-aligned, and that is what I see when I test this. I don't see how your
chapter para could be justified unless something else is going on.
----- Original Message -----
Sent: Friday, March 23, 2007 7:02
AM
Subject: Re: [docbook-apps] Justify text
in an appendix
Bob
I traced the problem down to the presence of this in my customization
layer. Without this the appendix is justified left and right OK, with
it, it is left justified only.
Is this a precedence problem?
<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:attribute name="text-align">
<xsl:choose>
<xsl:when test="@role = 'Center'">center</xsl:when> <xsl:otherwise>start</xsl:otherwise>
</xsl:choose> </xsl:attribute>
<xsl:call-template name="anchor"/>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
Ron
Hi
Ron,
I'm not able to
duplicate this problem. para elements in appendix are justified as in
chapters. Do you get the same result when using the stock DocBook
stylesheet, compared to your customization stylesheet?
Bob Stayton Sagehill
Enterprises DocBook Consulting bobs@sagehill.net
----- Original Message -----
From: Ron
Catterall
To: docbook-apps@lists.oasis-open.org
Sent: Thursday, March 22, 2007 7:01 AM
Subject: [docbook-apps] Justify text in an
appendix
I can't get the text in an
appendix to be justified, I've tried
<xsl:param name="alignment" select="'justify'" />
and <xsl:attribute-set
name="root.properties">
<xsl:attribute
name="text-align">justify</xsl:attribute> </xsl:attribute-set> body text etc. is all justified, only the appendix is
wrong.
What am I
missing?
Ron
--
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
|