|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
region-after set size to autoHi,
I have a <fo:region-after region-name="xsl-region-after"/> that holds "footer" information. Sometime there is about 3.5 inches of info and sometimes 1.0. If I set the properties to: <fo:region-after region-name="xsl-region-after" extent="3.5"/> and there is only 1.5in of data the "footer" is in half way up the page. Is there a way to set to "Auto"? and always be at the bottom of the page no matter how content there is in the footer? Thx |
|
|
RE: region-after set size to autoI believe all you need is display-align="after" on the fo:region-after.
Eric Amick Legislative Computer Systems Office of the Clerk -----Original Message----- From: bonekrusher [mailto:djseek@...] Sent: Thursday, June 19, 2008 14:15 To: fop-users@... Subject: region-after set size to auto Hi, I have a <fo:region-after region-name="xsl-region-after"/> that holds "footer" information. Sometime there is about 3.5 inches of info and sometimes 1.0. If I set the properties to: <fo:region-after region-name="xsl-region-after" extent="3.5"/> and there is only 1.5in of data the "footer" is in half way up the page. Is there a way to set to "Auto"? and always be at the bottom of the page no matter how content there is in the footer? Thx -- View this message in context: http://www.nabble.com/region-after-set-size-to-auto-tp18014924p18014924. html Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... |
|
|
RE: region-after set size to autoThanks but that didn't work. I ended up calculating the extend size based on the length of the content:
<!-- Calculate page footer size--> <xsl:variable name="content-size"> <xsl:value-of select="string-length(//notices)"/> </xsl:variable> <xsl:variable name="footer-size"> <xsl:value-of select="$content-size div 450"/> </xsl:variable> <xsl:variable name="extent-size"> <xsl:choose> <xsl:when test="$footer-size < 1.5">1.5</xsl:when> <xsl:otherwise> <xsl:value-of select="$footer-size"/> </xsl:otherwise> </xsl:choose> </xsl:variable> ..... <fo:region-after region-name="xsl-region-after" extent="{$extent-size}in"/> I just thought there was an easier way. thanks for the help. Bones
|
|
|
Re: region-after set size to autoOn Jun 19, 2008, at 21:02, bonekrusher wrote:
Just FYI: > Thanks but that didn't work. I ended up calculating the extend size > based on > the length of the content: > > <!-- Calculate page footer size--> > <xsl:variable name="content-size"> > <xsl:value-of select="string-length(//notices)"/> > </xsl:variable> Better, in XSLT terms would be: <xsl:variable name="content-size" select="string-length(//notices)" /> And if you don't need the content-size variable further on, just make it: <xsl:variable name="footer-size" select="(string-length(//notices) div 450)" /> > <snip /> > I just thought there was an easier way. Unfortunately not. OTOH, I can't tell if this would be a feasible alternative for you, but you might be able to achieve the same using fo:footnotes and no region-after... If the footer information needs to be preceded by some form of static-content, then this could be done by means of fo:footnote-separator (?) Maybe worth a try... HTH! Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... |
|
|
RE: region-after set size to autoHere's the thing, Andreas: the spec says display-align is available on
region-after, but it may be that FOP doesn't support it. Am I reading the compliance page right? Eric Amick Legislative Computer Systems Office of the Clerk -----Original Message----- From: Andreas Delmelle [mailto:andreas.delmelle@...] Sent: Thursday, June 19, 2008 15:13 To: fop-users@... Subject: Re: region-after set size to auto On Jun 19, 2008, at 21:02, bonekrusher wrote: Just FYI: > Thanks but that didn't work. I ended up calculating the extend size > based on the length of the content: > > <!-- Calculate page footer size--> > <xsl:variable name="content-size"> > <xsl:value-of select="string-length(//notices)"/> > </xsl:variable> Better, in XSLT terms would be: <xsl:variable name="content-size" select="string-length(//notices)" /> And if you don't need the content-size variable further on, just make it: <xsl:variable name="footer-size" select="(string-length(//notices) div 450)" /> > <snip /> > I just thought there was an easier way. Unfortunately not. OTOH, I can't tell if this would be a feasible alternative for you, but you might be able to achieve the same using fo:footnotes and no region-after... If the footer information needs to be preceded by some form of static-content, then this could be done by means of fo:footnote-separator (?) Maybe worth a try... HTH! Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... |
|
|
Re: region-after set size to autoAndreas,
Thanks for the help. I will stick to the calculation, it seems to work well. If it poses a problem in the future, I will try your suggestion. Thanks again. bones
|
|
|
Re: region-after set size to autoOn Jun 19, 2008, at 21:22, Amick, Eric wrote:
Hi Eric > Here's the thing, Andreas: the spec says display-align is available on > region-after, but it may be that FOP doesn't support it. Am I reading > the compliance page right? As far as I can tell, display-align in regions should work. We have testcase checking for this, and it's not disabled... As I understood the OP, the issue was that the region-after, even if after-aligned, still takes up 3.5in of space. This could be avoided by putting the footer-content in an fo:footnote, whose height is dynamically allocated based upon the content. The only thing to watch out for would be that footnotes can potentially be broken over multiple pages, so one also needs keep-together.within-page="always" on the footnote-content. Cheers Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... |
| Free Forum Powered by Nabble | Forum Help |