Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XSL pagination control >Thread Next - Re: XSL pagination control Re: XSL pagination controlTo: NULL Date: 7/4/2006 12:54:00 AM Hi Jean-Fran=E7ois, Thanks very much for your reply. Naively, I hadn't factored in the "just make it work" methodology to solving the formatting problems, I was expecting FO to provide mechanisms to handle the functionality I mentioned in my post - they didn't seem that obscure. I'm looking into XML / XSL as a replacement to an inhouse developed reporting solution and one of the requirements was this pagination control. Additionally, this potential reporting solution is to be used by people who aren't primarily developers, but accountants - so the solution mustn't be too challenging to use. Do you have any thoughts / comments on XSL as a reporting solution. I've had a look at the Altova, XSLFast and StylusStudio tools, however, if I put these applications in front of the end users, capable as the applications are, I'm fairly certain the users would not thank me for it. I'm coming to the conclusion that XSL et al are powerful tools, but there is a need for a seasoned XSL et al developer to create the solutions - it's not the sort of thing you just dive into. Google is indeed a powerful friend, it's a shame he / she's not psychic - though I'm sure that's only a matter of time :) I've spent so long trying to phrase my searches in google to try and get the answer I'm looking for that I'm thinking of doing a Phd in frustration management techniques.. I've been using Apache FOP for the rendering and it does seem OK. However, one of the other requirements for this reporting solution was to be able to create RTF, which the latest beta does, however, it renders the same FO document differently to RTF and PDF - which is a little frustrating.. I know you can generate RTF straight out of the XSL transform, however, do you not then forfeit the layout capabilities built into FO? - specifically the pagination control. Thanks again for your assistance. Regards, Howard Jean-Fran=E7ois Michaud wrote: > Hello Howard, > > howardr101@h... wrote: > > Hi, > > > > I'm really new to this XSL stuff and there's a lot of information out > > there on the web, I just can't seem to find a definitive answer to my > > question, hence...... > > > > In FO, I know that you define a block and use the keep-together > > attribute to specify whether or not the block should be split over > > multiple pages - unless the block itself is longer than a page. > > > > However, if you allow the block to be split over two pages, is there a > > mechanism to put some text at the top of the split piece of the block. > > > > As far as splitting text goes, you want to look at orphans/widows. When > the attribute is set to a certain value, it garanties that you will get > at least what you are asking for or else the whole content of the block > carries over to the next page. Not all XSLT processors support this > feature, you want to make sure that the processor you use supports all > the features you are looking for. Most of the time, they support one > feature, but not the other and vice versa. Its difficult to get a very > good one that supports all the important features. > > If you are not in for hardcore technical publications, FOP (open > source) is actually not so bad (it doesn't support orphans/widows > though). > > > Specifically, say I have a table and the table gets split over two > > pages half way down its body. So the top half of the table is at the > > bottom of page 1 and the bottom half of the table is at the top of page > > 2. Is there a mechanism in FO to reprint the table column headers at > > the top of the chunk of table on page 2. > > > > I read somewhere that this might be possible by writing another XSLT to > > do some post processing, additionally, I've read that XSL is a fire and > > forget kind of technology and you can't do this. If you don't know > > that this table splitting is going to happen until it's run through the > > FO processor and once it's gone through the processor you've got (in > > this case) a PDF file - how would you then insert the column headers in > > again, by the time the table has been split, it's too late to easily > > insert the column headers. > > Google is a very powerful friend ;-). This seems to be what you are > looking for: > > http://www.idealliance.org/papers/dx_xmle04/papers/04-02-01/04-02-01.html= #s6 > > > I'd like to ask the same question with regards to a table caption, in > > order to achieve a table title at the top of the split chunk of table > > on page 2. e.g. > > Something to keep in mind also, often you will have to use tricks to > pull off certain effects (nested indentation using lists for example > even though the content of your XML isn't contained in lists; to get > sequencial labeling across multiple sections for example. An invisible > table column for which you set the width to align a table exactly like > you want on a page). Don't be afraid to use constructs that don't seem > to be "appropriate" or that look very different (under FO) than what > you have in your XML. Whatever works, works. If there is not direct way > to do something by using the functionalities of the language directly, > you might be able to achieve the desired result through indirect means > (oddly enough, when you are working on solid projects, this happens > very often). Currently, the language is simply not descriptive enough > (functional only). A functional/procedural language hybrid would be > much more appropriate. > > In the case of your table caption, you could use an borderless row in a > fo:table-header. > =20 > [snip] >=20 > Regards > Jean-Francois Michaud | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
