Hi, I have extracted a lot of page numbers from these intermediate files (not only DocBook). My experience is, that they often are huge and an XSL processor will run out of memory. Instead I use SAX parsing (written in Java, Ruby …) which parses even very huge documents very quickly. And well - SAX parsers are often hard to maintain - but they do the job.
Henrik Ryom [email protected] On 19/03/2014, at 17.41, Bob Stayton <[email protected]> wrote: > It's possible. The trick is to capture the pagination information and apply > it to the epub output. Each of the XSL-FO formatters has an intermediate > file format that indicates page boundaries. FOP has two, described here: > > http://xmlgraphics.apache.org/fop/1.1/intermediate.html > > You would have to write an XSLT to extract the page number information from > the intermediate file. You could use the olink database to store the page > number information associated with id values. You would use the @page > attribute on each div or obj element in the olink data, as desribed here: > > http://www.sagehill.net/docbookxsl/OlinkPrintOutput.html#OlinkPageRefs > > Then you could customize the epub stylesheet to read and output this page > number data according to the guidelines. It would be challenging to get the > details right, but it seems it could be done. > > Bob Stayton > Sagehill Enterprises > [email protected] > > On 3/19/2014 3:44 AM, Peter Fleck wrote: >> Hi all, >> >> Is there any way to implement page numbers in the HTML or ePub outputs? >> I mean specifically if there is already a printed book equivalent or PDF >> created >> from the Docbook file? >> >> IDPF offer advise >> http://www.idpf.org/accessibility/guidelines/content/xhtml/pagenum.php but >> except for manually encoding these post-conversion is there a way to do it in >> the Docbook markup? >> >> Many thanks, >> >> Peter >> --------------------------------------------------------------------- To >> unsubscribe, e-mail: [email protected] For additional >> commands, e-mail: [email protected] >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
