[docbook-apps] Get total page

2010-08-25 Thread rabarivelo solofo
Hi, Is there anyone who can help me to get a total page of a document? Actually, I followed what this url http://www.sagehill.net/docbookxsl/PrintHeaders.html#ConsecutivePageNumbers described, but I met the following message: " unresolved id="END-OF-DOCUMENT";.." I don't use XEP but XA

[docbook-apps] Controlling the publishing process - shell scripts, Ant, other tools

2010-08-25 Thread Peter Desjardins
Hi. I've been publishing DocBook for a few years and I've always used shell scripts to control the process. This has worked well for me but I'm starting a new publishing system from scratch and I'd like to improve the maintainability and scalability of the process if I can. Although I could do any

[docbook-apps] Segmented list issue with FOP

2010-08-25 Thread deannelson
Hello all, I am using a segmented list (1.75.2) and it gives me a warning in FOP 1.0 but still renders fine: WARNING: The following feature isn't implemented by Apache FOP, yet: table-layout="auto" (on fo:table) (See position 2:23461) Aug 25, 2010 2:05:58 PM org.apache.fop.events.Lo

Re: [docbook-apps] adding a cover image to the PDF

2010-08-25 Thread Robert Nagle
thanks. That did the trick. By the way, just for completeness, I will say that I initially got "object is not bound" error which went away after I added a reference to xmlns:fo to your stylesheet/customization layer like below. http://www.w3.org/1999/XSL/Transform"; xmlns:fo="http://www.w3.org/1

Re: [docbook-apps] adding a cover image to the PDF

2010-08-25 Thread Bob Stayton
Sorry, I answered too quickly and didn't check my work. I'll offer my explanation of how this should work. In FO output, all content needs to be inside a fo:page-sequence, and fo:page-sequences do not nest. In the template that matches on "book" in fo/division.xsl, several fo:page-sequences m

Re: [docbook-apps] adding a cover image to the PDF

2010-08-25 Thread Robert Nagle
That didn't work with a strange fo message. net.sf.saxon.trans.XPathException: org.apache.fop.fo.ValidationException: "fo:flow" is missing child elements. Required content model: marker* (%block;)+ (See position 1:-1) Looking at the example on 13.12, I'm guessing that you are assuming that I hav

Re: [docbook-apps] adding a cover image to the PDF

2010-08-25 Thread Bob Stayton
Hi Robert, The existing template that matches on book in fo/division.xsl already calls the template named "front.cover", so you don't need that bit. For the other template, I think all you need to add is putting the content into a page-sequence, which can be done with the utility template name

[docbook-apps] Re: adding a cover image to the PDF

2010-08-25 Thread Robert Nagle
Sorry, one more thing. The solution I tried DID not work. I'm looking for a quick-and-dirty solution and perhaps an idea for a template. I know Bob Staynton has a lot of info about covers and other things in Chapter 13, http://www.sagehill.net/docbookxsl/PrintCustomEx.html but I really haven't

Re: [docbook-apps] Re: dbfo-need height and FOP

2010-08-25 Thread Vincent Hennebert
Hi Antti, Antti Karanta wrote: > > On Wed, 03 Feb 2010 10:13:47 +0200, Antti Karanta > wrote: > >>> When I test dbfo-need with fop.0.95 and 1.75.2, I found that it does >>> work in some locations but not others. In the case of placing a >>> dbfo-need between block elements like para, it works.

[docbook-apps] adding a cover image to the PDF

2010-08-25 Thread Robert Nagle
Hi, there I need to produce a pre-release of my print book as a PDF. It's due tomorrow. It won't be "totally ready" (and I have not added a title page), but I just wanted to include a jpg for the page that will be the front cover. I'm using Apache FOP, although eventually I'll be using XEP. This

[docbook-apps] Re: dbfo-need height and FOP

2010-08-25 Thread Antti Karanta
On Wed, 03 Feb 2010 10:13:47 +0200, Antti Karanta wrote: When I test dbfo-need with fop.0.95 and 1.75.2, I found that it does work in some locations but not others. In the case of placing a dbfo-need between block elements like para, it works. But if you put the dbfo-need before a se

Re: [docbook-apps] Re: dbfo-need height and FOP

2010-08-25 Thread DeanNelson
Anitti, I do not know of a specific bugtrack item describing this. However, I do know that this has been going on for many years. FOP has a table of compatibility with the FO standard. You may want to check this. Regards, Dean Nelson In a message dated 08/25/10 03:38:31 Pacific Daylight Time

RE: [docbook-apps] Biblio reference display

2010-08-25 Thread Fabien Tillier
Ho Bob. Good shot, I have some formatting with If I set 5.4pt to 0, then, it is displayed as a single line. However, this leads to ugly tables where cell content is very close to each other. I will try to find a good value so that the ref stays in line and the cells are somehow separated (s