xsl-list
[Top] [All Lists]

Re: [xsl] Widows and orphans in XSL-FO

2009-10-30 18:33:33
Hi Tony,
I looked at that function and am not sure if it would be useful or not. However, a Google search on it did lead me to within-page. The article warned that FOP (which I am using) did not support this, but found me a free download of XEP. When I tried to run my stylesheet, XEP failed on the current-time() function from XSLT. I could get along without that, but then it failed on the base-uri(/) function, which is necessary, so that XEP seems dead unless there is a way to get XEP to recognize these functions. I'll look around for an XEP list.

Thanks again, even though my problem is still unresolved.
Mark

--------------------------------------------------
From: "Tony Graham" <Tony(_dot_)Graham(_at_)MenteithConsulting(_dot_)com>
Sent: Friday, October 30, 2009 12:38 PM
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: Re: [xsl] Widows and orphans in XSL-FO

On Fri, Oct 30 2009 18:19:34 +0000, mark(_at_)knihtisk(_dot_)org wrote:
I am compiling a journal index. The output is generated via XSLT and
XSL-FO. I have been looking for a way to deal with widows and orphans
in XSL-FO, but all of the information I have found seems to be focused
on breaks *within* an <fo:block>rather than *between*
different<fo:block>s. My problem is that I only want to end a page if
the processor has started rendering (or has completed rendering), a
specific <fo:block>, one containing the content from an <Article>
element.  Is there a mechanism for forcing a page to end with, or
within, a specific <fo:block>type?

Have you looked at break-after [1], specifically, break-after="page"?

Regards,


Tony Graham                         
Tony(_dot_)Graham(_at_)MenteithConsulting(_dot_)com
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd                               XML Guild member
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2

[1] http://www.w3.org/TR/xsl11/#break-after

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--