Unfortunately, this method does not work when you have multiple flows. I read the customisation FAQ many times, but found no way of linking Java code (the whole Docbook to XSL-FO to PDF 2-pass transformation as shown in the link I included in my previous email) to a conversion menu item. I guess regular commands are not intended for such purposes, are they ?
On Thu, Oct 27, 2011 at 9:53 AM, Hussein Shafie <[email protected]> wrote: >> I'm trying to use XXE to generate PDFs from DocBook documents and >> include the total page count in the output document, but cannot find >> an easy way to do so, even through customisation. Manually, it is >> possible using the 2-pass technique described here : >> http://xmlgraphics.apache.org/fop/fo.html#fo-total-pages > > How implement this whatever the XSL-FO processor being used is described > here: > > http://www.sagehill.net/docbookxsl/PrintHeaders.html#PageNumbering > > Look for "Page x of y numbering". > > > >> >> Is there a way to integrate this workaround in XXE conversion workflow ? > > Please refer to this FAQ: > > --- > How do I customize the HTML, PDF, RTF, etc, generated using the "Convert > Document" menu? > --- > > http://www.xmlmind.com/xmleditor/faq.html#custom_deliverables > > > >> >> Any pointer would be highly appreciated. > > > > --- > PS: The <fo:block id="END-OF-DOCUMENT"/> method works fine with FOP. We use > it to implement the page-count feature in XMLmind DITA Converter -- > http://www.xmlmind.com/ditac/_distrib/doc/manual/xsltParams.html. > -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

