473,385 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

XSL:FO - How to identify the last word in a page

2
I am creating numerous pdf letters . I do not want the part of the signature to go to the next page or the signature alone to go to the next page.

eg:

Yours sincerely
J

I do not want Yours Sincerley to be the last word of a page and J in the next page or Yours sincerely J to be a stand alone of a page. in both scenarios i would need to apply for a page break.

will checking for position() = last() help , or there is more specific method for xsl:fo?

Thanks
J
Jan 10 '15 #1
2 4227
Dormilich
8,658 Expert Mod 8TB
what you’re looking for is the widows property.
Jan 11 '15 #2
J5883
2
Okay , I just read about the property , but i am not sure how it has to be implemented in my case. Explaining it in detail .

First Page
<fo:block>some text 1</fo:block>
<fo:block>some text 2</fo:block>
<fo:block>some text 3</fo:block>
<fo:block>some text 4</fo:block>

Second Page
<fo:block>Yours sincerely</fo:block>
<fo:block>signature text 1</fo:block>
<fo:block>signature text 2</fo:block>
<fo:block>signature text 3</fo:block>

So whenever i have my second page starting with any of the mentioned above blocks , I need to add a break in <fo:block>some text 4</fo:block>, so that now the signature part is not a stand alone , but comes with a paragraph.

Can this be implemented with widows property ?

Thanks!
Jan 12 '15 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Mason A. Clark | last post by:
LAST WORD(s): 1. MSIE6 and Firefox will go to the top of the page on command <a href="#top">go upsy</a> even if there is NO name="top" or id="top" They know what a "top" is :-) Opera...
6
by: Ilias Lazaridis | last post by:
- Ï/Ç metaperl: Ilias Lazaridis: Michael Bayer wrote within: http://groups.google.com/group/sqlalchemy/msg/9d7a096a61abfc6f I understand your elaborations.
5
by: neobagsjol | last post by:
hi guys.. i have a problem on how to omit the last word..like for example i have this words; cafe\restaurant\hotel i would only like to view on the textbox.text the words only...
3
by: madhurchadha | last post by:
how do i remove the last word from a string in c# suppose string is "hi how are you" i wanna remove you
0
by: Drupan c | last post by:
hello everybody, i m new to vc# , i want an application where i can select multiple word files using File Dialog and change the page setup property of all the word files...
3
by: houghi | last post by:
I have a parameter $name that contavins e.g. "Turn left at Blooming Grove Turnpike/Quassaic Turnpike/RT-94 Continue to follow RT-94". I just want to have the last word. The number of words will be...
5
Claus Mygind
by: Claus Mygind | last post by:
I have a list box and want to limit the user to selecting a max of 5 items from the list. I've put in a counter which warns the user that more than 5 items have been selected, however I cannot...
2
by: rienh | last post by:
Hello all, I try to accomplish the following. I have a string like: “volkswagen-golf-gti” ** And I want it to change the string into: “Volkswagen Golf GTI” (last part completely uppercase) But...
1
by: dphir | last post by:
Does Javascript have a function that can identify where the selected word exist? if i have HTML element that contains a number of words: <p>the harvest is **the** process of gathering mature...
6
by: roblee | last post by:
I've imported a CSV file into my Access Database and the Address field also contains a City name, ie: 123 SE Main St. #A Seattle 8235 127th St Ct E Tacoma 47 Wilson River Highway Unit H1...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.