On Saturday 08 October 2005 02:58, Osamu Aoki wrote: > d-i has all the style sheet in SVN repo. Are they written just for d-i > or did you copy them from other location? You may be confused by the stylesheets that are included for an experiment Nikolai Prokoschenko started using db2latex. Everyting in build/stylesheets/db2latex and build/stylesheets/lang-drivers is not actually used! > As I see ways to build xml, there seems to be 2 version on the d-i > repo. Neither seem to use xmlto package. Does all XML build process > needs to have their own style sheet like this big one or is there any > good common one? See the reply from Miroslav. We do use the common ones with minor tweaks from the stylesheets in build/stylesheets. Forget about the _ng versions of scripts for now. These go with Nikolai's experiments. > Why you did not use xmlto package and Speaking for me personally: because I did not know of its existence and the buildone script worked for the manual. I have today tried xmlto and it seems usable for html (after I discovered that I still need to first generate the profiled xml first). However, when I try generating pdf it fails miserably. I've tried: 1) xmlto -o build.out --extensions -v -v \ pdf build.tmp/install.en.profiled.xml &>pdf1.log 2) xmlto -o build.out --extensions -x stylesheets/style-pdf.xsl -v -v \ pdf build.tmp/install.en.profiled.xml &>pdf2.log Results are the same without the '--extensions'. Logs attached maybe someone knows what it means... I haven't been able to find the tmp.log file that these logs refer to. > what is the advantage of your buildone.sh script? The main advantages are: - it is flexible; - it does quite a bit more than just generating the files; - it works well with the wrapper script I use for daily builds, producing nice log files; - it does not require me to learn make ;-) The main disadvantages: - it is not suitable for more general use. I'll be happy to replace it with something more general. Cheers, FJP
Format script: /usr/share/xmlto/format/docbook/pdf Convert to XSL-FO Real stylesheet: http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl xmllint >/dev/null --xinclude --postvalid /home/fjp/projects/d-i/svn/manual/build/build.tmp/install.en.profiled.xml Stylesheet: /tmp/xmlto-xsl.Scbxgl xsltproc --nonet --xinclude --param use.extensions '1' --param passivetex.extensions '1' \ -o /tmp/xmlto.d1ziho/install.en.profiled.proc \ /tmp/xmlto-xsl.Scbxgl \ /home/fjp/projects/d-i/svn/manual/build/build.tmp/install.en.profiled.xml Making portrait pages on a4 paper (210 mm x 297 mm) No adjustColumnWidths function available. Post-process XSL-FO to PDF This is pdfeTeX, Version 3.14159-1.10b-2.1 (Web2C 7.4.5) entering extended mode (./tmp.fo{/usr/share/texmf/pdftex/config/pdftex.cfg} LaTeX2e <2001/06/01> Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, d utch, finnish, portuges, nohyphenation, catalan, irish, icelandic, swedish, loa ded. xmltex version: 2002/06/25 v1.9 (Exp): (/usr/share/texmf/tex/xmltex/config/xmltex.cfg) No File: tmp.cfg (/usr/share/texmf/tex/xmltex/passivetex/fotex.xmt) (/usr/share/texmf/tex/latex/base/article.cls Document Class: article 2001/04/21 v1.4e Standard LaTeX document class (/usr/share/texmf/tex/latex/base/size10.clo)) (/usr/share/texmf/tex/xmltex/passivetex/fotex.sty ) No file tmp.aux. (/usr/share/texmf/tex/latex/cyrillic/t2acmr.fd) (/usr/share/texmf/tex/latex/base/ts1cmr.fd) (/usr/share/texmf/tex/latex/psnfss/t1ptm.fd) No file tmp.out. No file tmp.out. INFO: Using normal, i.e. nonfrench-spacing in document (/usr/share/texmf/tex/latex/psnfss/t1phv.fd) [1{/var/lib/texmf/dvips/config/pdf tex.map}] (/usr/share/texmf/tex/latex/psnfss/ts1ptm.fd) (/usr/share/texmf/tex/latex/psnfss/t1pcr.fd) (/usr/share/texmf/tex/latex/amsfonts/umsa.fd) (/usr/share/texmf/tex/latex/amsfonts/umsb.fd) (/usr/share/texmf/tex/latex/wasysym/uwasy.fd) (/usr/share/texmf/tex/latex/misc/ustmry.fd) [2] [3] [4] [5] [6] ! LaTeX Error: Something's wrong--perhaps a missing \item. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.697 ..." hyphenation-remain-character-count="2"> Installing Debian GNU/Linu... ? ! Emergency stop. ... l.697 ..." hyphenation-remain-character-count="2"> Installing Debian GNU/Linu... ! ==> Fatal error occurred, the output PDF file is not finished! Transcript written on tmp.log.
Format script: /usr/share/xmlto/format/docbook/pdf Real stylesheet: /home/fjp/projects/d-i/svn/manual/build/stylesheets/style-pdf.xsl xmllint >/dev/null --xinclude --postvalid /home/fjp/projects/d-i/svn/manual/build/build.tmp/install.en.profiled.xml Stylesheet: /tmp/xmlto-xsl.bhdknQ xsltproc --nonet --xinclude --param use.extensions '1' --param passivetex.extensions '1' \ -o /tmp/xmlto.u0qzVQ/install.en.profiled.proc \ /tmp/xmlto-xsl.bhdknQ \ /home/fjp/projects/d-i/svn/manual/build/build.tmp/install.en.profiled.xml ################################################################################ XSLT stylesheets DocBook - LaTeX 2e Reqs: LaTeX 2e installation common packages ################################################################################ RELEASE : 0.8pre1+20050108 VERSION : $Id: VERSION.xml,v 1.6 2004/01/31 12:47:11 j-devenish Exp $ TAG : HEAD WWW : http://db2latex.sourceforge.net SUMMARY : http://www.sourceforge.net/projects/db2latex AUTHOR : Ramon Casellas casellas@infres.enst.fr AUTHOR : James Devenish j-devenish@users.sf.net USING : libxslt/xsltproc ################################################################################ DB2LaTeX: Need to process XPath match copyright/year Post-process XSL-FO to PDF This is pdfeTeX, Version 3.14159-1.10b-2.1 (Web2C 7.4.5) entering extended mode (./tmp.fo{/usr/share/texmf/pdftex/config/pdftex.cfg} LaTeX2e <2001/06/01> Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, d utch, finnish, portuges, nohyphenation, catalan, irish, icelandic, swedish, loa ded. xmltex version: 2002/06/25 v1.9 (Exp): (/usr/share/texmf/tex/xmltex/config/xmltex.cfg) No File: tmp.cfg ! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.1 % ------------------------------------------------------------ ? ! Emergency stop. ... l.1 % ------------------------------------------------------------ No pages of output. Transcript written on tmp.log.
Attachment:
pgp2hNPnRBW2e.pgp
Description: PGP signature