[PATCH libX11] docbook: Don't use --nonet in XSLTPROC_FLAGS

Dan Nicholson dbn.lists at gmail.com
Thu Apr 28 17:25:36 PDT 2011


On Thu, Apr 28, 2011 at 1:33 PM, Jeremy Huddleston <jeremyhu at apple.com> wrote:
>
> We are explicitly pulling in resources from the net, so this would always fail.
>
> %.html.db: %.xml  $(chapters)
>        $(AM_V_GEN)$(XSLTPROC) $(XSLTPROC_FLAGS) \
>        http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl $<
>
> %.fo.db: %.xml $(chapters)
>        $(AM_V_GEN)$(XSLTPROC) $(XSLTPROC_FLAGS) \
>        http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl $<

This isn't true. If your xml catalog is setup correctly, the url will
be converted to a local file. In /etc/xml/catalog on my F13 box:

  <rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl/current"
rewritePrefix="file:///usr/share/sgml/docbook/xsl-stylesheets-1.75.2"/>

This is no different than having an http:// URI at the top of an xml
document. Others may feel differently, but I think it's much preferred
to not start pulling bits off the network during a build. If you run
xmlto (rather than xsltproc directly), it will always pass --nonet to
xsltproc.

--
Dan


More information about the xorg-devel mailing list