Summary: | can't use docbook due to missing folder | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Patrik Larsson <patrik.mrx> |
Component: | Current packages | Assignee: | Text-Markup Team (OBSOLETE) <text-markup+disabled> |
Status: | RESOLVED INVALID | ||
Severity: | major | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Patrik Larsson
2005-09-03 03:54:22 UTC
Please paste the complete output from the docbook2pdf command, and attach the input file you're using, so we can study the problem. Thanks. (In reply to comment #0) > When i've written a docbook file and want to turn it into pdf or what ever i run > 'docbook2pdf myfile.docbook'. I get a lot of 'can't find' errors. > > The problem: The ent folder is missing from '/usr/share/sgml/docbook/sgml-dtd-4.2' > Solution: run 'ln -sd /usr/share/sgml/docbook/xml-dtd-4.2/ent/ > /usr/share/sgml/docbook/sgml-dtd-4.2' > > Reproducible: Always > Steps to Reproduce: > 1. docbook2{what ever} > 2. > 3. > > Actual Results: > i get loads of can't find errors > > Expected Results: > can't find errors should not be printed at all, which happens when you've ran > the ln command above in my solution. Here comes the requested information... Need anything else, just ask :) File used: --------FILE: ex2_2.docbook-------- <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"> <book lang="sv"> <!-- Please remark the "lang" attribute here --> <bookinfo> <title>Hello, world</title> </bookinfo> <chapter id="introduction"> <title>Hello, world</title> <para>This is my first DocBook file.</para> </chapter> </book> -------End of FILE: ex2_2.docbook-------- Error messages: -------Begin----------- $ docbook2pdf ex2_2.docbook Using catalogs: /usr/share/sgml/sgml-iso-entities-8879.1sgml/opensp-1.5.1/OpenSP/catalog, /usr/share/sgml/openjagml/docbook/sgml-dtd-4.1/catalog, /usr/share/sgml/docbooog, /usr/share/sgml/docbook/sgml-dtd-3.0/catalog, /usr/s/catalog Using stylesheet: /usr/share/sgml/docbook/utils-0.6.12/d Working on: /home/patrik/lang/docbook/ex2_2.docbook jade:/usr/share/sgml/docbook/sgml-dtd-4.2/dbcentx.mod:30td-4.2/ent/iso-amsa.ent", "/usr/share/sgml/ent/iso-amsa. jade:/usr/share/sgml/docbook/sgml-dtd-4.2/dbcentx.mod:31td-4.2/ent/iso-amsb.ent", "/usr/share/sgml/ent/iso-amsb. jade:/usr/share/sgml/docbook/sgml-dtd-4.2/dbcentx.mod:31td-4.2/ent/iso-amsc.ent", "/usr/share/sgml/ent/iso-amsc. jade:/usr/share/sgml/docbook/sgml-dtd-4.2/dbcentx.mod:32td-4.2/ent/iso-amsn.ent", "/usr/share/sgml/ent/iso-amsn. jade:/usr/share/sgml/docbook/sgml-dtd-4.2/dbcentx.mod:32td-4.2/ent/iso-amso.ent", "/usr/share/sgml/ent/iso-amso. jade:/usr/share/sgml/docbook/sgml-dtd-4.2/dbcentx.mod:32td-4.2/ent/iso-amsr.ent", "/usr/share/sgml/ent/iso-amsr. jade:/usr/share/sgml/docbook/sgml-dtd-4.2/dbcentx.mod:33d-4.2/ent/iso-box.ent", "/usr/share/sgml/ent/iso-box.ent jade:/usr/share/sgml/docbook/sgml-dtd-4.2/dbcentx.mod:33td-4.2/ent/iso-cyr1.ent", "/usr/share/sgml/ent/iso-cyr1. jade:/usr/share/sgml/docbook/sgml-dtd-4.2/dbcentx.mod:34td-4.2/ent/iso-cyr2.ent", "/usr/share/sgml/ent/iso-cyr2. jade:/usr/share/sgml/docbook/sgml-dtd-4.2/dbcentx.mod:34d-4.2/ent/iso-dia.ent", "/usr/share/sgml/ent/iso-dia.ent jade:/usr/share/sgml/docbook/sgml-dtd-4.2/dbcentx.mod:34td-4.2/ent/iso-grk1.ent", "/usr/share/sgml/ent/iso-grk1. jade:/usr/share/sgml/docbook/sgml-dtd-4.2/dbcentx.mod:35td-4.2/ent/iso-grk2.ent", "/usr/share/sgml/ent/iso-grk2. jade:/usr/share/sgml/docbook/sgml-dtd-4.2/dbcentx.mod:35td-4.2/ent/iso-grk3.ent", "/usr/share/sgml/ent/iso-grk3. jade:/usr/share/sgml/docbook/sgml-dtd-4.2/dbcentx.mod:36td-4.2/ent/iso-grk4.ent", "/usr/share/sgml/ent/iso-grk4. jade:/usr/share/sgml/docbook/sgml-dtd-4.2/dbcentx.mod:36td-4.2/ent/iso-lat1.ent", "/usr/share/sgml/ent/iso-lat1. jade:/usr/share/sgml/docbook/sgml-dtd-4.2/dbcentx.mod:36td-4.2/ent/iso-lat2.ent", "/usr/share/sgml/ent/iso-lat2. jade:/usr/share/sgml/docbook/sgml-dtd-4.2/dbcentx.mod:37d-4.2/ent/iso-num.ent", "/usr/share/sgml/ent/iso-num.ent jade:/usr/share/sgml/docbook/sgml-dtd-4.2/dbcentx.mod:37d-4.2/ent/iso-pub.ent", "/usr/share/sgml/ent/iso-pub.ent jade:/usr/share/sgml/docbook/sgml-dtd-4.2/dbcentx.mod:38td-4.2/ent/iso-tech.ent", "/usr/share/sgml/ent/iso-tech. jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.77/prin GRPCNT (32) jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.77/prinRPCNT (32) -------End of error message---------- Same issue here. Had to link 4.3 though. ln -sd /usr/share/sgml/docbook/xml-dtd-4.3/ent /usr/share/sgml/docbook/sgml-dtd-4.2/ Sorry for the late reply. The problem seems to be that you're trying to use a toolchain designed for SGML documents with an XML document. You can either: a) Modify the DOCTYPE declaration to turn it into a SGML document: <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.2//EN"> Then docbook2pdf should work. b) Use an XML toolchain (e.g. xmlto). Still, you'd have to fix the DOCTYPE declaration, since it's missing a URL. Using something like: <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> and then "xmlto pdf inputfile" should work (in theory). Unfortunately, the PDF backend is buggy and can give you some problems. Running the following commands manually might help: xsltproc -o tmp.fo http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl inputfile pdfxmltex tmp.fo mv tmp.pdf outputfile |