[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK: website dtd newbie
If you are still unable to resolve your catalogs in xsltproc, check the version of libxml2 that it is based on. Libxml2 version 2.3.7 had a broken catalog function that was fixed in 2.3.8. bobs Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 Caldera International, Inc. fax: (831) 429-1887 email: bobs@caldera.com ================================================================ From mail.ca.caldera.com!lists.oasis-open.org!docbook-errors Tue Nov 20 02:44:14 2001 Delivered-To: bobs@caldera.com Date: Tue, 20 Nov 2001 11:35:26 +0100 From: Massimiliano Mirra <list@chromatic-harp.com> Subject: Re: DOCBOOK: website dtd newbie In-reply-to: <200111200132.TAA29827@chestburster.urbana.css.mot.com> To: Matthew Braun <mbraun@urbana.css.mot.com> Cc: docbook@lists.oasis-open.org Message-id: <20011120113526.A1084@prism.localnet> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.3.22i References: <20011120012802.A5408@prism.localnet> <200111200132.TAA29827@chestburster.urbana.css.mot.com> List-Owner: <mailto:docbook-help@lists.oasis-open.org> List-Post: <mailto:docbook@lists.oasis-open.org> List-Subscribe: <http://lists.oasis-open.org/ob/adm.pl>, <mailto:docbook-request@lists.oasis-open.org?body=subscribe> List-Unsubscribe: <http://lists.oasis-open.org/ob/adm.pl>, <mailto:docbook-request@lists.oasis-open.org?body=unsubscribe> List-Archive: <http://lists.oasis-open.org/archives/docbook> List-Help: <http://lists.oasis-open.org/elists/admin.shtml>, <mailto:docbook-request@lists.oasis-open.org?body=help> List-Id: <docbook.lists.oasis-open.org> On Mon, Nov 19, 2001 at 07:32:06PM -0600, Matthew Braun wrote: > >What am I missing? > Have you tried adding the --nonet or --warnnet options? Yes. > Are you sure the public ID matches the catalog entry? (Please give > the top of the doc, so it can be compared it to the catalog contents.) <!DOCTYPE webpage PUBLIC "-//Norman Walsh//DTD Website V2.0b1//EN" Followed by: "http://docbook.sourceforge.net/release/website/2.0b1/website.dtd"> and: "file:///usr/share/sgml/docbook/custom/website/2.0b1/website.dtd"> (Tried both) > If you're running on a linux system, you can use the "strace" command to > get a trace of the system calls that it's executing. (On solaris, use > the "truss" command.) So for instance, on linux, you could say: > strace -o /tmp/out -f xsltproc --catalogs --nonet stylesheet.xsl website.xml > Then look into /tmp/out. You should see it at least "open" and "read" > calls, where it opens and reads the catalog files. If it isn't opening > them, then it probably doesn't know where the catalogs are, so maybe > SGML_CATALOG_FILES isn't set or exported correctly. It seems that files are fetched correctly from the disk: 1267 open("/usr/share/sgml/docbook/custom/website/2.0b1/catalog", O_RDONLY) = 4 1267 open("/usr/share/sgml/docbook/custom/website/2.0b1/xsl/tabular.xsl", O_RDONLY) = 4 1267 open("/usr/share/sgml/docbook/custom/website/2.0b1/xsl/website-common .xsl", O_RDONLY) = 4 But at some point it must be happening something that forces xsltproc to look on the net for something it is not finding on the system: 1267 read(4, "xsl:variable name=\"next-child\"\n select=\"$tocentry/descendant::tocentry[1]\"/>\n\n <xsl:variable name=\"nextid\">\n "..., 4096) = 1370 1267 read(4, "", 4096) = 0 1267 brk(0x8089000) = 0x8089000 [...] 1267 read(4, "", 4096) = 0 [...] 1267 close(4) = 0 1267 munmap(0x40016000, 4096) = 0 1267 brk(0x808c000) = 0x808c000 [...] 1267 stat64(0x807d7f0, 0xbffff5ac) = -1 ENOENT (No such file or directory) 1267 stat64(0x807b2d8, 0xbffff5ac) = -1 ENOENT (No such file or directory) 1267 write(2, "Attempt to load network entity http://docbook.sourceforge.net/release/xsl/snapshot/html/docbook.xsl \n", 101) = 101 1267 write(2, "compilation error: file /usr/share/sgml/docbook/custom/website/2.0b1/xsl/website-common.xsl line 20 element import\n", 115) = 115 1267 write(2, "xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/snapshot/html/docbook.xsl\ n", 97) = 97 I see it is not finding the docbook.xsl on my system. ``locate docbook.xsl'' yields this: /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/fo/docbook.xsl /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/docbook.xsl /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/xhtml/docbook.xsl I also tried setting and exporting SGML_CATALOG_FILES to /usr/share/sgml/docbook/custom/website/2.0b1/catalog:/usr/share/sgml/ docbook/dtd/xml/4.1.2/docbook.cat, with no success. > m@ Whatever way this will end up, thanks a lot! Massimiliano
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC