Re: [PATCH] user-manual: ensure generated manual references stylesheet
- From
- J. Bruce Fields <bfields@fieldses.org>
- Date
- Mar 16, 2007, 14:24 UTC
- Message-ID
- <20070316142431.GE31722@fieldses.org>
- In-Reply-To
- <loom.20070316T134149-54@post.gmane.org>
On Fri, Mar 16, 2007 at 12:44:19PM +0000, Robert Pluim wrote:
Show 24 quoted lines
> J. Bruce Fields <bfields <at> 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 $ <at> $(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.