[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
At 2008-08-21 13:24 +0530, Mandar Jagtap wrote:
There is a caveat with your suggestion ... to go that way I would use the following:
The reason is because when you simply say keep-together="always" that sets keep-together.within-line="always" ... which means the block with your figure title will be kept on one line ... which means if you have a long title, it will go off the end of the column boundary.
You don't get that problem on sibling blocks when using keep-with-next= or keep-with-previous= because the change in block breaks the line.
But I always advise my students to never use keep-together= without using the compound property they need in the particular context in which they are working.
I hope this helps.
. . . . . . . . . . . . . Ken
Re: [xsl] keep-together property
Subject: Re: [xsl] keep-together property From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 21 Aug 2008 08:28:42 -0400 |
At 2008-08-21 13:24 +0530, Mandar Jagtap wrote:
I would have done it as below:
<fo:block keep-together="always"> <fo:block> Figure Title....</fo:block> <fo:external-graphics/> </fo:block>
Hope this helps...
There is a caveat with your suggestion ... to go that way I would use the following:
<fo:block keep-together.within-column="always"> <fo:block> Figure Title....</fo:block> <fo:external-graphics/> </fo:block>
The reason is because when you simply say keep-together="always" that sets keep-together.within-line="always" ... which means the block with your figure title will be kept on one line ... which means if you have a long title, it will go off the end of the column boundary.
You don't get that problem on sibling blocks when using keep-with-next= or keep-with-previous= because the change in block breaks the line.
But I always advise my students to never use keep-together= without using the compound property they need in the particular context in which they are working.
I hope this helps.
. . . . . . . . . . . . . Ken
-- Upcoming XSLT/XSL-FO hands-on courses: Wellington, NZ 2009-01 Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] keep-together property, Mandar Jagtap | Thread | [xsl] Using xsl:key and key() funct, Russ Loucks |
Re: [xsl] XSL editor recommendation, Andrew Welch | Date | RE: [xsl] XSL editor recommendation, Ferry, Jeremy |
Month |