OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook] Fixed layout page numbers in html and epub output


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
henrik.ryom@gmail.com



On 19/03/2014, at 17.41, Bob Stayton <bobs@sagehill.net> 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
> bobs@sagehill.net
> 
> 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: docbook-unsubscribe@lists.oasis-open.org For additional
>> commands, e-mail: docbook-help@lists.oasis-open.org
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-help@lists.oasis-open.org
> 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]