[daisy] Re: Chapter numbering in Book Rendering fails, if no Heading1 precedes other Headings

Karel Vervaeke karel at outerthought.org
Tue Jul 8 13:59:59 CEST 2008


I can't tell you exactly where you have to look, but I can give you some
pointers to get you started...

This is the file that you need to change:

/daisywiki/webapp/daisy/books/publicationtypes/pdf/html-to-xslfo.xsl

To speed up development time on books,
I typically use a teetransformer to dump the xslfo input to a file:

add this to the transformers at the top:

      <map:transformer name="tee"
src="org.apache.cocoon.transformation.TeeTransformer"/>

and then something like this before the map:serialize of the StyleBook
pipeline:

<map:transform type="tee" src="file:/home/kevin/xslfo-input.xml"/>

Now, when you publish a book, /home/kevin/xslfo-input.xml contains the
xslfo input and you don't need go through the whole book publishing
process to test your changes: with the proper 'xsltproc' invocation you
can create pdfs from the stylesheets and the xslfo input which allows
you to test your changes to html-to-xslfo.xsl quickly.

HTH,
Karel

On Tue, 2008-07-08 at 13:07 +0200, Kevin_Walsh at deichmann.com wrote:
> 
> Dear Karel, dear list, 
> 
> my idea was not to reinvent the wheel... 
> 
> I simply thought, I'd set up a book publication type that creates a
> pdf without using the document titles for numbering. I would then
> double the documents' title as a HEADING1s into the documents and -
> voilà! We should be set. Not nice, but a possible way to go. (Remember
> that in this case adhering to German Customs' rules is rather more
> important than good looks). 
> 
> Is that possible? Where would I find the transformation from the
> document-title to a Chapter Title? 
> 
> Thanks, 
> Kevin 
> 
> 
> 
> 
>   
> 
>   
> 
> Heinrich Deichmann-Schuhe GmbH & Co. KG, Deichmannweg 9, 45359 Essen
> 
> Registergericht Essen HRA 3564, Umsatzsteueridentifikations-Nr.: DE
> 119663402
> Persönlich haftende Gesellschafterin ist die Deichmann Verwaltungs-
> und
> Handelsgesellschaft mbH mit Sitz in Essen, Registergericht Essen HRB
> 2279.
> 
> Geschäftsführer:
> Dr. Heinz-Horst Deichmann * Dipl.- Kfm. Heinrich Otto Deichmann
> (Geschäftsführende Gesellschafter)
> Martin Fischer * Bjørn Gulden (MBA) * Dipl.-Kfm. Martin Heynen *
> Walter Neuroth
> Dipl.-Wirtsch.-Ing. Karsten Schütt * Dipl. Verwaltungswirt (FH)
> Wolfgang Wislsperger
> 
> 
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy


More information about the daisy mailing list