keep-together.within-page EXCEPT if it is to big ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

keep-together.within-page EXCEPT if it is to big ?

KEILHOLZ Werner
Hello,

We are using
keep-together.within-page="always"
to implement a block of framed text, because we don't want the frame to be split over 2 pages - except if the frame is bigger than a page. Is there a way to implement the 'except' part?
Here's the solution that works nicely as long as the framed text is smaller than the page size:

<xsl:template match="framed">
    <fo:block margin-bottom="15px"
              margin-top="13px"
              margin-left="15px"
              margin-right="15px"
              keep-together.within-page="always">
        <xsl:apply-templates select="node()"/>
    </fo:block>
</xsl:template>

The problem is that if the content of the framed element is bigger than the page size, the overflow is lost.

Thanks,
Werner

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: keep-together.within-page EXCEPT if it is to big ?

Daniel Norberg

Hi, have you tried to replace "always" with an integer? Though FOP claims it has "minimal support for integer values it might be worth trying.


https://xmlgraphics.apache.org/fop/compliance.html

https://www.w3.org/TR/xsl/#keep-together

http://w3schools.sinsixx.com/xslfo/prop_keep-together.asp.htm
http://www.datypic.com/sc/fo11/t-fo_keep-value.html


Br,

Daniel



1484211806213_Excosoft-Outlook

Excosoft • Daniel Norberg • Information Manager

Dag Hammarskjölds väg 26, SE-752 37 UPPSALA

Cell +46 (0)76-199 31 85

Email [hidden email]

www.excosoft.se


Our main products: Skribenta CCMS, Delivery Manager, Finder

Learn more about us on our website: www.excosoft.se


From: KEILHOLZ Werner <[hidden email]>
Sent: Monday, June 25, 2018 11:59:41 AM
To: [hidden email]
Subject: keep-together.within-page EXCEPT if it is to big ?
 
Hello,

We are using
keep-together.within-page="always"
to implement a block of framed text, because we don't want the frame to be split over 2 pages - except if the frame is bigger than a page. Is there a way to implement the 'except' part?
Here's the solution that works nicely as long as the framed text is smaller than the page size:

<xsl:template match="framed">
    <fo:block margin-bottom="15px"
              margin-top="13px"
              margin-left="15px"
              margin-right="15px"
              keep-together.within-page="always">
        <xsl:apply-templates select="node()"/>
    </fo:block>
</xsl:template>

The problem is that if the content of the framed element is bigger than the page size, the overflow is lost.

Thanks,
Werner

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]