Re: Several problems with the files generated from DocBook with the standard DocBook stylesheets
Hussein Shafie <[email protected]> Thu, 17 Jul 2014 10:14:50 +0200
| Newsgroups | gmane.text.xml.xfc.general |
|---|---|
| Message-ID | <[email protected]> |
Pete J. wrote: > > I am trying to convert a document that > was generated from DocBook with the standard DocBook FO stylesheets. > > One problem that see with the converted output is that the page headers > seem to be rendered with a very narrow bounding box and they come out all > messed up. I have never seen this problem and I don't know how to reproduce it using the standard DocBook XSL stylesheets. See for example, the following files which have all been generated using XMLmind XSL-FO Converter out of DocBook documents using latest standard DocBook XSL stylesheets. http://www.xmlmind.com/foconverter/_distrib/doc/user/userguide.docx http://www.xmlmind.com/foconverter/_distrib/doc/user/userguide.rtf http://www.xmlmind.com/foconverter/_distrib/xslutil/doc/help/help.docx http://www.xmlmind.com/foconverter/_distrib/xslutil/doc/help/help.rtf Note that if you have a lot of text in your running headers/footers, then 1) this well-known issue has several DocBook workarounds 2) the generated headers/footers will be also messed up, in various other ways, by all the other XSL-FO processors (Apache FOP, RenderX XEP, etc). I mean, there is no way to automatically fit a lot of text into a small header/footer. > Another issue is that the page number references in the front > matter are all zero. I have a screen shot that shows the problem. If this problem only occurs with RTF, DOCX, ODT, then it's normal. Please refer to the following FAQ to understand why. http://www.xmlmind.com/foconverter/faq.html#fields --- I use the page-number-citation object to print the number of pages in my document, but the displayed value is always 0 when I load the document in MS-Word. How can I get the correct value? --- > > Another problem is that the text in my figures is missing. The figures are > done in SVG. Sorry but once again, I have never seen this problem and I don't know how to reproduce it. See for example, the following DOCX has been generated using XMLmind XSL-FO Converter and some of its figures are done in SVG: http://www.xmlmind.com/ditac/_distrib/doc/manual/manual.docx http://www.xmlmind.com/ditac/_distrib/doc/manual/manual.rtf > I have attached a screen shot of the output for that as well. > Please use XMLmind XSL Utility to convert your DocBook document. It comes with everything needed (DocBook XSL stylesheets, SVG support, MathML support, etc) to convert your DocBook document to other formats. Also make sure to use the DocBook 4 (=DocBook having no namespace) XSL stylesheets if your document is a DocBook 4 one and the DocBook 5 (=DocBook having a namespace) XSL stylesheets if your document is a DocBook 5 one. XMLmind XSL Utility makes it easy using the right --bundled with the app-- DocBook XSL stylesheets. If you are already using XMLmind XSL Utility, then I'm afraid that your evaluation ends here. > > I would like to have the output RTF and Word XML files use paragraph > styles. That seems to require support for that in the stylesheet that > generates the FO input file. Do you know of a way to do that with DocBook > without requiring additional coding of the stylesheet on my part? > No, this is technically not possible. The XSLT stylesheet must have *designed* to generate XSL-FO having named styles. This feature is impossible to retrofit in the standard DocBook XSL-FO stylesheets See "XSL-FO extension for generating named styles" http://www.xmlmind.com/foconverter/_distrib/doc/user/user_styles.html -- XMLmind FO Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xfc-support