From: Tony G. <Ton...@Su...> - 2006-06-29 10:57:23
|
Welcome to xmlroff and the xmlroff-list. Please subscribe if you are going to continue this thread. "W. Borgert" <de...@de...> writes: > I just tried out xmlroff on a simple example, but failed. > Maybe I did something wrong and you could help me, please? > > What I did: > > $ xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl \ > simple.dbk > simple.fo > $ xmlroff simple.fo I'm having trouble getting your files onto the machine that I use with xmlroff, so I haven't tried your files yet, but you should be able to use the '--compat' option to have your FO file run through the compatibility stylesheet before being formatted. You should be able to do: xmlroff --compat simple.dbk /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl and have it all just work. I would have also said that '--compat' was documented in the README and in xmlroff.fo (and shortly in an xmlroff man page from Oliver Kiddle). If it wasn't adequately documented, how should it have been documented? > (process:32210): libfo-CRITICAL **: fo_region_body_get_writing_mode: assertion > `fo_region_body != NULL' failed > (process:32210): libfo-CRITICAL **: fo_region_body_area_new: assertion `fo != > NULL' failed > (process:32210): libfo-CRITICAL **: fo_area_set_generated_by: assertion `fo_area > != NULL' failed > (process:32210): libfo-CRITICAL **: fo_area_page_add_child: assertion `child != > NULL' failed > (process:32210): libfo-CRITICAL **: fo_node_parent: assertion `fo_node != NULL' > failed > libfo-ERROR **: area_size_request:: parent is NULL > aborting... > > The versions of docbook-xml, docbook-xsl, and xsltproc are: > > docbook-xml 4.4-5 > docbook-xsl 1.68.1.dfsg.1-0.2 > xsltproc 1.1.17-1 > > I have both simple.dbk and simple.fo attached. > I'm running Debian GNU/Linux etch a.k.a. testing. > Please CC me, as I'm not subscribed. > > Cheers, W. Borgert > > Btw. the packages needed for building xmlroff under Debian are: > > libfontconfig1-dev 2.3.2-7 > libfreetype6-dev 2.2.1-2 > libglib2.0-dev 2.10.2-1 > libgnomeprint2.2-dev 2.12.1-4 > libgtk2.0-dev 2.8.18-1 > libpango1.0-dev 1.12.3-1 Are these the packages that you have to use or the packages that you used? In principle, if you're not using the Cairo backend, the minimum Pango version is 1.6. Pango 1.12 is pretty recent, and even when the Cairo backend is enabled, the minimum Pango version is 1.10. > libpopt-dev 1.10-2 > libxml2-dev 2.6.26.dfsg-1 > libxslt1-dev 1.1.17-1 > > Note, that libgtk2.0-dev is not mentioned in the list at > http://xmlroff.org/building.html, maybe you could add it. My mistake. It's a recent addition related to graphics support. > libpopt is used, but not checked for during ./configure, > and also missing in the list. Noted. > Note also, that I could not build the package by running > ./configure twice - I had to build pangoxsl and "make > install" it first, than xmlroff could be built. Whereas I could. When I did it, I deleted all existing installed PangoXSL files before I started and built from the .tar.gz distribution. I'll do it again to see if it still can be done and see if there is something I didn't delete that let it work. Regards, Tony. |