From: J. Bruce Fields Date: Fri, 16 Mar 2007 14:24:31 GMT Subject: Re: [PATCH] user-manual: ensure generated manual references stylesheet Message-ID: <20070316142431.GE31722@fieldses.org> In-Reply-To: On Fri, Mar 16, 2007 at 12:44:19PM +0000, Robert Pluim wrote: > J. Bruce Fields citi.umich.edu> writes: > > > > +XSLT = http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl > > +XSLTOPTS = --nonet --xinclude --stringparam html.stylesheet docbook-xsl.css > > + > > user-manual.html: user-manual.xml > > - xmlto html-nochunks $< > > + xsltproc $(XSLTOPTS) -o $ $(XSLT) $< > > Does this actually work for you? I get: > > xsltproc --nonet --xinclude --stringparam html.stylesheet docbook-xsl.css -o > user-manual.html > http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl user-manual.xml > I/O error : Attempt to load network entity > http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl > warning: failed to load external entity > "http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl" > cannot parse http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl > make[1]: *** [user-manual.html] Error 4 > > > If I remove the --nonet it works fine. Yes, it works for me. From a quick strace, it appears to find the file by opening /etc/xml/catalog, aplying some URL-rewriting rules found there, then finding a file on my local filesystem under /usr/share/sgml/docbook/. Those files appear to be provided by a package named docbook-style-xsl on my fedora box, and something called docbook-xsl on my debian box. I'd prefer the build not require network access, if possible. --b.